/* 
   Mind Influencer - Styling
   Colors: Navy #0A0A52, White #FFFFFF, Gold #D4AF37
   Fonts: Poppins (Headings), Manrope (Body)
*/

:root {
    /* ── Core palette ─────────────────────────────────────────────────────── */
    --color-navy: #0A0A52;
    /* Deep Institutional Navy               */
    --color-navy-light: #15157a;
    /* Hover / active navy                   */
    --color-gold: #D4AF37;
    /* Opportunity Gold                      */
    --color-gold-hover: #b8972e;
    /* Gold hover                            */
    --color-white: #FFFFFF;
    /* Pure White                            */
    --color-light: #F5F6F8;
    /* Soft Cool Grey (background)           */
    --color-gray: #545963;
    /* Slate Charcoal (body text)            */
    --color-dark: #1F2229;
    /* Dark text                             */
    --color-error: #dc3545;
    /* Error red                             */
    --color-success: #28a745;
    /* Success green                         */

    /* ── Brand alias tokens (spec names) ─────────────────────────────────── */
    --navy: var(--color-navy);
    --gold: var(--color-gold);
    --white: var(--color-white);
    --background: #F5F6FA;
    /* Soft Cool Grey                        */
    --text: #555B66;
    /* Slate Charcoal                        */
    --light-navy: #E9EAF5;
    /* Light Navy Lavender                   */
    --soft-gold: #F7EBC1;
    /* Soft Warm Gold                        */
    --border: #D9DBE8;
    /* Border colour                         */

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 12px rgba(10, 10, 82, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 10, 82, 0.08);
    --shadow-lg: 0 16px 40px rgba(10, 10, 82, 0.12);
    --border-radius: 12px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -1px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.5px;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: var(--color-navy);
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--color-light);
}

.bg-navy {
    background-color: var(--color-navy);
}

.bg-white {
    background-color: var(--color-white);
}

.text-gold {
    color: var(--color-gold) !important;
}

.text-white {
    color: var(--color-white) !important;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
}

.btn-navy {
    background-color: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
}

.btn-navy:hover {
    background-color: var(--color-navy-light);
    border-color: var(--color-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-white);
}

.btn-outline-navy {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn-outline-navy:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-block {
    width: 100%;
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1.25rem 0;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Shared Brand Lockup ───────────────────────────────────────────────── */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: white;
    text-decoration: none;
    max-width: 100%;
}

.brand-mark {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    /* allow text to shrink without overflow */
}

.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.8vw, 2.35rem);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    color: inherit;
}

.brand-tagline {
    font-family: var(--font-heading);
    font-size: clamp(0.72rem, 1.15vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
    color: #d9b85d;
    white-space: nowrap;
}

/* ── Navbar brand-lockup variant ───────────────────────────────────────── */
.navbar-brand-lockup {
    gap: 14px;
}

.navbar-brand-mark {
    width: 52px;
    height: 52px;
}

.navbar-brand-name {
    font-size: clamp(1.35rem, 2vw, 1.6rem);
    color: var(--color-navy);
    letter-spacing: -0.5px;
}

.navbar-brand-tagline {
    font-size: clamp(0.68rem, 1vw, 0.82rem);
    color: var(--text);
    letter-spacing: 0.07em;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: var(--color-navy);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--color-navy-light);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-navy);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--color-light);
}

.mobile-nav.active {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    background-color: var(--color-light);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    max-width: 90%;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brand Value Section */
.brand-value {
    padding: 4rem 0;
}

.brand-value-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.brand-value-header h2 {
    color: var(--color-white);
    font-size: 2rem;
}

.brand-value-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-point {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-icon {
    font-size: 2rem;
    color: var(--color-gold);
}

.value-point h3 {
    color: var(--color-white);
    font-size: 1.125rem;
}

/* About / Founder Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.founder-photo {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
    margin: 0 auto;
}

.section-title {
    margin-bottom: 1rem;
}

.founder-name {
    margin-bottom: 0.25rem;
}

.founder-title {
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--color-gray);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Courses Section */
.courses .section-title {
    margin-bottom: 4rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.course-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 10, 82, 0.05);
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.course-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.course-desc {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-features {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.course-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
}

.course-features li i {
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.course-btn {
    width: 100%;
    margin-top: auto;
}

/* Why Choose Us Section */
.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us .section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.editorial-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.editorial-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-light);
    padding: 1.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.editorial-list li:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.editorial-list li:hover .list-icon {
    color: var(--color-gold);
    background: rgba(255, 255, 255, 0.1);
}

.list-icon {
    width: 48px;
    height: 48px;
    background: var(--color-white);
    color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.list-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.why-visual {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.why-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.why-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 82, 0.4);
    z-index: 1;
}

.why-visual-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accent-line {
    width: 40px;
    height: 4px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.why-visual-caption p {
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    max-width: 80%;
}

/* Process Section */
.process .section-title {
    margin-bottom: 4rem;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(10, 10, 82, 0.1);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 0 1rem;
}

.step-number {
    width: 64px;
    height: 64px;
    background-color: var(--color-navy);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 8px var(--color-light);
}

.step-title {
    font-size: 1.125rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

.contact-desc {
    color: var(--color-gray);
    margin-bottom: 3rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background-color: var(--color-light);
    color: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.contact-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.contact-item a {
    color: var(--color-gray);
    font-size: 1.05rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-navy);
}

.contact-form-wrapper {
    background-color: var(--light-navy);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-size: 0.95rem;
}

.optional-label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text);
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--color-dark);
    box-shadow: var(--shadow-sm);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10, 10, 82, 0.12);
    background-color: var(--white);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--color-error);
    background-color: #fff8f8;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-icon {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-gray);
    pointer-events: none;
}

.form-submit-btn {
    margin-top: 1rem;
    font-size: 1.125rem;
    padding: 1rem;
}

.form-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: none;
    /* JS sets display:block when visible */
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.5;
}

.form-alert i {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.form-alert a {
    color: inherit;
    text-decoration: underline;
}

.form-alert.pending {
    display: block;
    background-color: var(--light-navy);
    color: var(--navy);
    border: 1px solid var(--border);
}

.form-alert.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-alert.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

/* ── Footer brand-lockup variant ──────────────────────────────────────── */
.footer-brand-lockup {
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.footer-brand-mark {
    width: 72px;
    height: 72px;
}

.footer-brand-name {
    color: var(--color-white);
}

.footer-brand-tagline {
    color: #d9b85d;
}

.footer-brand {
    overflow: hidden;
    /* guard against horizontal overflow on mobile */
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 320px;
    font-size: 0.95rem;
}


.footer h4 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-icons a:hover {
    background-color: var(--color-gold);
    color: var(--color-navy);
    transform: translateY(-4px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .brand-value-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .why-us-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-visual {
        min-height: 350px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .hero {
        padding: 8rem 0 4rem;
    }

    .brand-value-points {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .process-timeline::before {
        top: 0;
        left: 32px;
        width: 2px;
        height: 100%;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
        padding: 0;
    }

    .step-number {
        margin-bottom: 0;
        box-shadow: 0 0 0 8px var(--color-light);
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
    }

    /* Brand lockup — mobile */
    .brand-lockup {
        gap: 10px;
    }

    /* Footer emblem */
    .footer-brand-mark {
        width: 62px;
        height: 62px;
    }

    .footer-brand-name {
        font-size: 1.25rem;
    }

    .footer-brand-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.035em;
    }

    /* Navbar emblem */
    .navbar-brand-mark {
        width: 42px;
        height: 42px;
    }

    .navbar-brand-name {
        font-size: 1.2rem;
    }

    .navbar-brand-tagline {
        font-size: 0.65rem;
        letter-spacing: 0.04em;
    }
}


/* ── Student Reviews Section ────────────────────────────────────────────── */
.reviews-section {
    background-color: var(--background);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reviewer-name {
    font-size: 1.125rem;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.reviewer-course {
    font-size: 0.85rem;
    color: var(--gray);
    background-color: var(--light-navy);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
}

.review-rating {
    color: var(--gold);
    font-size: 0.9rem;
}

.review-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.review-body {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--light-navy);
}

/* Review Form Layout */
.review-form-container {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.review-form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.review-form-title {
    font-size: 1.75rem;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.review-form-subtitle {
    color: var(--text);
    font-size: 1rem;
}

/* Rating Stars Input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: var(--border);
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0;
    line-height: 1;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: var(--gold);
}

/* Focus ring for keyboard accessibility */
.rating-input input:focus-visible+label {
    outline: 2px solid var(--navy);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── Course Filter Pills ─────────────────────────────────────────────────── */
.reviews-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.filter-btn:hover {
    border-color: var(--navy);
    color: var(--navy);
    background: var(--light-navy);
}

.filter-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.filter-btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ── Loading Skeleton ────────────────────────────────────────────────────── */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.review-skeleton {
    background: linear-gradient(90deg,
            var(--light-navy) 25%,
            var(--background) 50%,
            var(--light-navy) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: var(--border-radius);
    min-height: 200px;
    border: 1px solid var(--border);
}

/* ── Reviews Divider ─────────────────────────────────────────────────────── */
.reviews-divider {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin: 3rem 0;
}

.reviews-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.reviews-divider-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

/* ── Review Form Two-Column Row ──────────────────────────────────────────── */
.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* ── Character Counter ───────────────────────────────────────────────────── */
.char-counter {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text);
    margin-top: 0.35rem;
    font-weight: 500;
}

.char-counter.near-limit {
    color: #b85c00;
}

.char-counter.at-limit {
    color: var(--color-error);
    font-weight: 700;
}

/* ── Responsive — Reviews ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .review-form-row {
        grid-template-columns: 1fr;
    }

    .review-form-container {
        padding: 2rem 1.5rem;
    }

    .reviews-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }
}

@media (max-width: 480px) {
    .reviews-divider-text {
        font-size: 0.75rem;
    }
}