/* === COMMECS REVIEWS - PROFESSIONAL DESIGN === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-blue: #104075;
    --dark-navy: #0a2d54;
    --accent-yellow: #FFC107;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #E0E0E0;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #FAFAFA;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
    background: var(--white);
}

/* === NAVBAR === */
.navbar {
    background: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo_img {
    height: 55px;
    width: auto;
    display: block;
}

.navbar-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.tagline-primary {
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    display: block;
    line-height: 1.3;
}

.tagline-secondary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 400;
    font-style: italic;
    display: block;
    line-height: 1.3;
}

.nav-links {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
    border-radius: 4px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-signup {
    background: var(--accent-yellow);
    color: var(--text-dark);
}

.btn-signup:hover {
    background: #FFB300;
}

.btn-outline {
    background: var(--white);
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 24px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: none;
}

.btn-cancel {
    background: #E0E0E0;
    color: var(--text-dark);
}

.btn-cancel:hover {
    background: #BDBDBD;
}

.btn-confirm {
    background: #4CAF50;
    color: var(--white);
}

.btn-page {
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 12px;
    min-width: 40px;
    font-weight: 500;
}

.btn-page:hover:not(.active):not(:disabled) {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #f0f4f8;
}

.btn-page.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === QUOTE SECTION === */
.quote-section {
    background: linear-gradient(135deg, #EDF2F7 0%, #E2E8F0 100%);
    border-left: 4px solid var(--primary-blue);
    border-radius: 4px;
    padding: 32px;
    margin: 32px 0;
    text-align: center;
}

.quote-text {
    font-size: 21px;
    font-weight: 500;
    color: var(--primary-blue);
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.5;
}

.quote-author {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

/* === SEARCH SECTION === */
h3 {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--accent-yellow);
}

.search-form-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 1;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
    transition: all 0.2s ease;
}

.search-input-professor input {
    padding-left: 44px;
}

.search-input-group input:focus,
.search-input-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.search-input-select {
    position: relative;
}

.search-input-select::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-light);
    font-size: 10px;
}

.search-input-select select {
    appearance: none;
    cursor: pointer;
}

/* === FACULTY CARDS === */
.results-count {
    text-align: right;
    color: var(--text-light);
    font-size: 13px;
    margin: 20px 0;
    font-weight: 500;
}

.faculty-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.faculty-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(15, 76, 129, 0.15);
}

.faculty-details {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 20px;
}

.faculty-photo {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.faculty-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.faculty-school {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.faculty-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.stars .gold {
    color: var(--accent-yellow);
}

.stars .grey {
    color: #E0E0E0;
}

.rating-text {
    font-weight: 700;
    color: var(--text-dark);
}

.review-count {
    color: var(--text-light);
    font-size: 12px;
}

.faculty-actions {
    display: flex;
    gap: 10px;
}

/* === PAGINATION === */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 8px;
    font-weight: 600;
}

/* === MODALS === */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Sign up and sign in modals should appear above review modal */
#signup-modal,
#signin-modal {
    z-index: 1100;
}

.modal-content {
    background: var(--white);
    border-radius: 8px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: 300;
}

.close-btn:hover {
    background: #F5F5F5;
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--primary-blue);
    font-size: 26px;
    margin-bottom: 24px;
    font-weight: 700;
}

/* View Reviews Modal Specific Styling */
#view-reviews-modal .modal-content {
    max-width: 700px;
}

#view-reviews-modal h2 {
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding: 0;
}

#view-reviews-modal .modal-content > p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 20px 0;
}

#reviews-list-container {
    background: #FAFAFA;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    max-height: none;
    overflow-y: visible;
}

#reviews-list-container h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0 0 16px 0;
}

/* Review modal responsive */
@media (max-width: 768px) {
    #view-reviews-modal .modal-content {
        max-width: 95%;
        padding: 20px 16px;
    }

    #view-reviews-modal h2 {
        font-size: 20px;
    }

    #view-reviews-avg-rating {
        font-size: 24px !important;
    }

    #view-reviews-stars {
        font-size: 16px !important;
    }

    #view-reviews-count {
        font-size: 12px !important;
    }
}

.modal-content label {
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.modal-content textarea {
    min-height: 100px;
    resize: vertical;
}

/* === CAPTCHA CONTAINER - ONE LINE MINIMAL === */
#signup-captcha-container,
#signin-captcha-container,
#report-captcha-container,
#admin-captcha-container {
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

#signup-captcha-question,
#signin-captcha-question,
#report-captcha-question,
#admin-captcha-question {
    flex: 0 0 auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 3px;
    padding: 6px 10px;
    border: 1px solid #ddd;
}

#signup-captcha-question svg,
#signin-captcha-question svg,
#report-captcha-question svg,
#admin-captcha-question svg {
    max-width: 120px;
    height: auto;
}

#signup-captcha-answer,
#signin-captcha-answer,
#report-captcha-answer,
#admin-captcha-answer {
    flex: 1;
    min-width: 120px;
    max-width: 180px;
    padding: 9px 12px !important;
    text-align: left;
    font-weight: 400;
    font-size: 14px !important;
    letter-spacing: 0;
    text-transform: none;
    border: 1px solid var(--border-color) !important;
    border-radius: 3px !important;
    background: var(--white) !important;
}

#signup-captcha-answer:focus,
#signin-captcha-answer:focus,
#report-captcha-answer:focus,
#admin-captcha-answer:focus {
    border-color: var(--primary-blue) !important;
    outline: none !important;
    box-shadow: none !important;
}

#signup-captcha-refresh,
#signin-captcha-refresh,
#report-captcha-refresh,
#admin-captcha-refresh {
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    color: var(--primary-blue);
    border: none;
    cursor: pointer;
    font-weight: 400;
    font-size: 13px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#signup-captcha-refresh:hover,
#signin-captcha-refresh:hover,
#report-captcha-refresh:hover,
#admin-captcha-refresh:hover {
    text-decoration: underline;
    color: var(--dark-navy);
}

.auth-switch {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.auth-switch a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 10px;
}

.star-rating i {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #E0E0E0;
    font-size: 24px;
}

.star-rating i.gold {
    color: var(--accent-yellow);
}

.star-rating i:hover,
.star-rating i:hover ~ i {
    color: #E0E0E0;
}

.star-rating i:hover {
    color: var(--accent-yellow);
}

/* All stars before hovered star should be gold */
.star-rating:hover i {
    color: var(--accent-yellow);
}

.star-rating i:hover ~ i {
    color: #E0E0E0 !important;
}

/* User Review Section */
#user-review-section {
    background: #FFFBF0;
    border: 1px solid #FFE082;
    border-left: 4px solid var(--accent-yellow);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Reviews Section */
.single-review {
    background: #FAFAFA;
    border: none;
    border-radius: 8px;
    padding: 20px 18px;
    margin-bottom: 10px;
    transition: none;
}

.single-review:hover {
    background: #F5F5F5;
}

.single-review .stars {
    margin-bottom: 8px;
}

.single-review p {
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Report Button */
.btn-report {
    padding: 8px 14px !important;
    font-size: 12px !important;
    background: transparent !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
}

.btn-report:hover {
    background: #EF4444 !important;
    color: var(--white) !important;
    border-color: #EF4444 !important;
    transform: translateY(-1px);
}

/* Logout Modal */
.logout-modal-content {
    max-width: 420px;
    text-align: center;
}

.logout-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.logout-buttons .btn {
    flex: 1;
}

/* === FOOTER === */
.main-footer {
    background: var(--primary-blue);
    padding: 32px 0;
    margin-top: 60px;
    border-top: 4px solid var(--accent-yellow);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-admin-link {
    color: var(--white) !important;
    font-weight: 500 !important;
}

.footer-admin-link:hover {
    color: var(--white) !important;
    text-decoration: underline !important;
}

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

/* === RATING DISTRIBUTION DROPDOWN === */
#rating-distribution {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rating-distribution-toggle {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.rating-distribution-toggle:hover {
    color: var(--dark-navy);
}

.rating-distribution-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.rating-distribution-toggle.active i {
    transform: rotate(180deg);
}

#rating-distribution-bars {
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#rating-distribution-bars.show {
    max-height: 300px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rating-bar-label {
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
    min-width: 60px;
}

.rating-bar-container {
    flex: 1;
    height: 8px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-yellow), #FFD54F);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rating-bar-count {
    font-size: 13px;
    color: var(--text-light);
    min-width: 30px;
    text-align: right;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
    .navbar-container {
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
        flex: 0 0 auto;
    }

    .btn-signup {
        order: 3;
        flex: 0 0 auto;
        padding: 8px 20px;
        font-size: 12px;
    }

    .navbar-info {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        text-align: center;
        margin: 0;
        padding: 6px 0 0 0;
    }

    .nav-links {
        order: 5;
        width: 100%;
        position: static;
        background: var(--primary-blue);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        max-height: 200px;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .tagline-primary {
        font-size: 13px;
    }

    .tagline-secondary {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 16px;
    }

    .navbar-container {
        padding: 14px 20px;
        flex-wrap: wrap;
    }

    .logo_img {
        height: 45px;
    }

    .search-form-grid {
        grid-template-columns: 1fr;
    }

    .faculty-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .faculty-actions {
        width: 100%;
        margin-top: 16px;
    }

    .faculty-actions .btn {
        flex: 1;
    }

    .modal-content {
        padding: 24px 20px;
        max-width: 95%;
    }

    .modal-content h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 16px;
    }

    .footer-nav {
        justify-content: center;
        gap: 16px;
    }

    .footer-copyright {
        text-align: center;
    }

    .quote-section {
        padding: 20px 16px;
    }

    .quote-text {
        font-size: 17px;
    }

    /* Captcha responsive - keep one line but allow wrapping on very small screens */
    #signup-captcha-container,
    #signin-captcha-container,
    #report-captcha-container,
    #admin-captcha-container {
        flex-wrap: wrap;
        gap: 8px;
    }

    #signup-captcha-question,
    #signin-captcha-question,
    #report-captcha-question,
    #admin-captcha-question {
        min-height: 36px;
    }

    #signup-captcha-question svg,
    #signin-captcha-question svg,
    #report-captcha-question svg,
    #admin-captcha-question svg {
        max-width: 100px;
    }

    #signup-captcha-answer,
    #signin-captcha-answer,
    #report-captcha-answer,
    #admin-captcha-answer {
        min-width: 100px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .btn {
        font-size: 12px;
        padding: 9px 20px;
    }

    .logo_img {
        height: 40px;
    }

    .faculty-photo {
        width: 70px;
        height: 90px;
    }

    .pagination-controls {
        gap: 4px;
    }

    .btn-page {
        padding: 6px 10px;
        min-width: 34px;
        font-size: 12px;
    }
}

/* === UTILITIES === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* === PAGE NAVIGATION === */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === TOP RATED PAGE === */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px 20px;
}

.page-header h1 {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 700;
}

.page-header i {
    margin-right: 12px;
    color: var(--accent-yellow);
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.top-rated-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--border-color);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.top-rated-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.top-rated-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.top-rated-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rank-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-yellow), #FFD54F);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.top-rated-photo {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    margin: 20px auto 16px;
    display: block;
    border: 3px solid var(--border-color);
}

.top-rated-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 700;
}

.top-rated-card .subject {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.top-rated-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-yellow);
}

.rating-stars {
    color: var(--accent-yellow);
    font-size: 16px;
}

.review-count {
    font-size: 13px;
    color: var(--text-light);
}

/* === ABOUT US PAGE === */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about-section h2 {
    font-size: 24px;
    color: var(--primary-blue);
    margin-bottom: 16px;
    font-weight: 700;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.feature-card {
    text-align: center;
    padding: 24px;
    background: #F8F9FA;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.guidelines-list {
    list-style: none;
    padding: 0;
}

.guidelines-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.guidelines-list li:last-child {
    border-bottom: none;
}

.guidelines-list i.fa-check {
    color: #4CAF50;
    font-size: 18px;
}

.guidelines-list i.fa-times {
    color: #ef4444;
    font-size: 18px;
}

.stats-section {
    background: linear-gradient(135deg, var(--primary-blue), #8b5cf6);
    color: var(--white);
}

.stats-section h2 {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-section a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-section a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 28px;
    }

    .about-section {
        padding: 24px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-rated-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 36px;
    }
}
