/* Public CSS for Abroad MBBS Finder Pro v1.0.0 */

.amfp-widget-container {
    max-width: 100%;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000000 !important;
    padding: 20px;
    background: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.amfp-widget-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    color: #000000 !important;
    font-weight: 700;
}

/* Filters */
.amfp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: #ffffff !important;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: flex-end;
    border: 1px solid #cccccc !important;
}

.amfp-filter-group {
    flex: 1;
    min-width: 150px;
}

.amfp-search-group {
    flex: 2;
    min-width: 200px;
}

.amfp-filter-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: #000000 !important;
    font-size: 0.85em;
    text-transform: uppercase;
}

.amfp-filter-select, .amfp-filter-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cccccc !important;
    border-radius: 4px;
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 0.95em;
    transition: all 0.2s;
}

.amfp-search-button {
    padding: 0 20px;
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95em;
    transition: background-color 0.2s;
    height: 42px;
}

.amfp-search-button:hover {
    background-color: #333333 !important;
}

/* View Controls */
.amfp-view-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f5f5f5 !important;
    border-radius: 4px;
    flex-wrap: wrap;
}

.amfp-view-controls label {
    font-weight: 700;
    color: #000000 !important;
}

.amfp-view-toggle {
    padding: 8px 16px;
    border: 2px solid #cccccc !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.amfp-view-toggle.active {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
}

.amfp-per-page {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.amfp-per-page-select {
    padding: 6px 10px;
    border: 1px solid #cccccc !important;
    border-radius: 4px;
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Grid View */
.amfp-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.amfp-college-card {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.amfp-card-header {
    margin-bottom: 15px;
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 10px;
}

.amfp-college-name {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #000000 !important;
    font-weight: 700;
}

.amfp-college-country {
    margin: 0;
    font-size: 0.9em;
    color: #666666 !important;
    font-weight: 600;
    text-transform: uppercase;
}

.amfp-card-body {
    margin-bottom: 15px;
    flex-grow: 1;
}

.amfp-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee !important;
    font-size: 0.9em;
}

.amfp-label {
    font-weight: 700;
    color: #000000 !important;
}

.amfp-value {
    color: #000000 !important;
    text-align: right;
}

.amfp-card-fees {
    background: #f9f9f9 !important;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #000000 !important;
}

.amfp-fee-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.9em;
}

.amfp-fee-label {
    font-weight: 700;
    color: #000000 !important;
}

.amfp-fee-value {
    color: #000000 !important;
    font-weight: 600;
}

.amfp-card-highlight, .amfp-card-exposure, .amfp-card-notes {
    font-size: 0.85em;
    color: #000000 !important;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.amfp-card-highlight { background: #eefbff !important; border-left: 4px solid #00a8e8 !important; }
.amfp-card-exposure { background: #fff8ee !important; border-left: 4px solid #ffa800 !important; }
.amfp-card-notes { background: #f0f0f0 !important; border-left: 4px solid #666666 !important; }

/* List View */
.amfp-list-view {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}

.amfp-listing-table {
    width: 100%;
    min-width: 2400px; /* Ensure all columns are visible with horizontal scroll */
    border-collapse: collapse;
    font-size: 0.85em;
    background: #ffffff !important;
}

.amfp-listing-table th, .amfp-listing-table td {
    padding: 12px 10px !important;
    text-align: left !important;
    border: 1px solid #cccccc !important;
    color: #000000 !important;
    vertical-align: top !important;
    white-space: normal !important;
}

.amfp-listing-table th {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-weight: 700;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

/* Make college name column sticky for better navigation */
.amfp-college-name-cell {
    font-weight: 700 !important;
    background-color: #f9f9f9 !important;
    min-width: 180px !important;
}

/* Long text cells */
.amfp-long-text {
    max-width: 250px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* Grid View - Section Titles */
.amfp-section-title {
    font-size: 0.9em;
    font-weight: 700;
    color: #000000 !important;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #cccccc !important;
}

/* Grid View - Country Info Section */
.amfp-card-country-info {
    background: #f0f8ff !important;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #0066cc !important;
}

/* Pagination */
.amfp-pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.amfp-pagination-container span, .amfp-pagination-container a {
    padding: 8px 12px !important;
    border: 1px solid #cccccc !important;
    border-radius: 4px;
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    background-color: #ffffff !important;
}

.amfp-pagination-container span.current {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .amfp-grid-view { grid-template-columns: 1fr; }
}
