:root {
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #4f8ef7;
    --primary-hover: #3b82f6;
    --card-bg: #ffffff;
    --border: #e2e8f0;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* Legal agreement links: underlined everywhere except footer */
a[href*="/terms"],
a[href*="/privacy"] {
    text-decoration: underline;
}

.footer a[href*="/terms"],
.footer a[href*="/privacy"],
.footer-col a[href*="/terms"],
.footer-col a[href*="/privacy"],
.footer-links a[href*="/terms"],
.footer-links a[href*="/privacy"] {
    text-decoration: none;
}
.footer-col a[href*="/terms"]:hover,
.footer-col a[href*="/privacy"]:hover {
    text-decoration: underline;
}

.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 2.15rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.brand:hover {
    opacity: 0.88;
}

.brand span {
    color: #4f8ef7; /* Primary Blue from original palette */
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand .brand-icon {
    flex-shrink: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.35));
}

.brand:hover .brand-icon {
    transform: translateY(-2px) rotate(-8deg) scale(1.08);
}

/* Footer brand variant */
.footer-logo span {
    color: #4f8ef7;
    background: none;
    -webkit-text-fill-color: #4f8ef7;
}
.footer-logo .brand-icon {
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.35));
}


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

.nav-links a { font-weight: 500; transition: color 0.2s;}
.nav-links a:hover { color: var(--primary); }

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: #f3f4f6;
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.btn-secondary:hover { background: #e5e7eb; }

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 160px);
}

.hero {
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
    border-radius: 24px;
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #002147;
}

.hero p {
    font-size: 1.25rem;
    color: #4169E1;
    margin-bottom: 2.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.hero-visual img:hover {
    transform: rotate(0deg) scale(1.02);
}

.search-bar {
    display: flex;
    max-width: 100%;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: border-color 0.2s;
}

.search-bar input:focus { border-color: var(--primary); }

.search-bar button {
    padding: 0 2.5rem;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.2s;
}

.search-bar button:hover { background: var(--primary-hover); }

/* Grid */
.counselors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.counselor-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.counselor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    height: 220px;
    background: #e5e7eb;
    overflow: hidden;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 { margin: 0 0 0.4rem 0; font-size: 1.4rem; color: #111827;}
.card-info .title { color: var(--primary); font-weight: 500; font-size: 1rem; margin: 0 0 1rem 0; }
.card-info .rating { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.25rem; }
.star { color: #f59e0b; }
.card-info .location { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.about-preview { font-size: 1rem; color: var(--text-muted); margin: 1.2rem 0; line-height: 1.6; }

/* Profile Page */
.profile-header {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 4rem 3rem;
    border: 1px solid var(--border);
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-image img { width: 100%; height: 100%; object-fit: cover; }

.profile-details h1 { margin: 0 0 0.5rem 0; font-size: 3rem; letter-spacing: -1px; }
.profile-details .title { color: var(--primary); font-size: 1.4rem; font-weight: 500; margin: 0 0 1.2rem 0; }
.meta-info { display: flex; gap: 2rem; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem;}
.about-text { font-size: 1.15rem; line-height: 1.7; color: var(--text-main); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-header h3 { margin: 0; font-size: 1.5rem; color: #111827; }
.service-header .price { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.service-card .duration { color: var(--text-muted); font-weight: 500; font-size: 1rem; margin-bottom: 1.2rem; }
.service-card .desc { line-height: 1.6; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; flex: 1;}

.full-width { width: 100%; padding: 1rem; font-size: 1.1rem; }

.footer { text-align: center; color: var(--text-muted); padding: 2rem; border-top: 1px solid var(--border); font-size: 1rem; margin-top: 4rem; }

/* Flash Messages */
.flashes {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.flash-msg {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Forms */
.form-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.form-section h2 { margin: 0 0 1.5rem 0; font-size: 1.5rem; color: #111827; }

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Reviews Section */
.reviews-section {
    margin-top: 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 24px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #0f172a;
}

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

.review-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.review-text {
    font-size: 1.05rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    margin: 1rem 0;
    flex: 1;
}

.reviewer {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin: 0;
}

/* AI Match Section */
.ai-match-section {
    margin: 2rem 0 1rem 0;
    padding: 0;
}

.ai-match-container {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid #bbf7d0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03), 0 5px 15px rgba(34, 197, 94, 0.05);
}

.ai-match-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ai-match-header h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    background: linear-gradient(90deg, #047857, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-match-header p {
    font-size: 1.15rem;
    color: #065f46;
    max-width: 600px;
    margin: 0 auto;
}

.ai-form .form-group label {
    color: #065f46;
}

.ai-form .form-row {
    display: flex;
    gap: 2rem;
}

.ai-form .form-row > .form-group {
    flex: 1;
}

.btn-ai {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.btn-ai:hover {
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(90deg, #059669, #047857);
}

.ai-form select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.ai-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Value Prop Section */
.value-prop-section {
    padding: 1rem 0 1.5rem 0;
}

.value-prop-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.value-prop-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.value-prop-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

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

.value-prop-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #eff6ff;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.value-prop-card:hover {
    transform: translateY(-5px);
}

.vp-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 50%;
}

.value-prop-card h3 {
    font-size: 1.4rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.value-prop-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 2rem 0;
    margin-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 2rem;
}

.how-it-works-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.how-it-works-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    background: transparent;
    text-align: center;
    position: relative;
    padding: 1rem;
}

.step-card:hover .step-number {
    transform: scale(1.15);
}

.step-number {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #2563eb, #0284c7);
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: none;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.step-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Footer Section */
.footer {
    background: #4b5563;
    color: #f9fafb;
    padding: 5rem 2rem 2rem 2rem;
    margin-top: 4rem;
    border-top: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    border-bottom: 1px solid #6b7280;
    padding-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 1.85rem;
}

.footer-brand h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: #d1d5db;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 4px 0 0.5rem 0;
}

.footer-col a {
    color: #d1d5db;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-title {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    color: var(--text-main);
}

.dropdown:hover .dropdown-title {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 8px;
    border: 1px solid var(--border);
    top: 100%;
    right: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Cookie & Privacy Consent Banner */
.cookie-banner,
.edula-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 900px;
    margin: 0 auto;
}

.cookie-banner.show,
.edula-consent-banner.show {
    transform: translateY(0) !important;
}

.cookie-content,
.consent-content {
    flex: 1;
}

.cookie-content h4,
.consent-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.05rem;
    color: var(--text-main);
}

.cookie-content p,
.consent-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cookie-content a,
.consent-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons,
.consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cookie-accept,
.btn-consent-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.btn-cookie-accept:hover,
.btn-consent-accept:hover {
    background: var(--primary-hover);
}

.btn-cookie-decline,
.btn-consent-decline {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.btn-cookie-decline:hover,
.btn-consent-decline:hover {
    background: var(--bg-main);
}

/* =============================================
   RESPONSIVE MEDIA QUERIES
   ============================================= */

/* Mobile close button — hidden on desktop, shown inside mobile nav overlay */
.nav-close-btn {
    display: none;
}

/* ── Mobile hamburger menu ───────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.nav-hamburger:hover { background: #f3f4f6; }
.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Tablet (≤ 1024px) ───────────────────────── */
@media (max-width: 1024px) {
    .content {
        padding: 2rem 1.5rem;
    }

    .hero {
        padding: 2rem 2.5rem;
        gap: 2.5rem;
    }

    .hero h1 { font-size: 2.8rem; }

    .counselors-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.75rem;
    }

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

    .ai-match-container {
        padding: 2.5rem 2rem;
    }

    .footer-container {
        gap: 2.5rem;
    }
}

/* ── Small tablet / large phone (≤ 768px) ──────── */
@media (max-width: 768px) {
    /* Navbar — collapse to hamburger */
    .nav-hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(8px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 200;
        font-size: 1.2rem;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links .dropdown {
        text-align: center;
    }

    .nav-links .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: transparent;
        display: none;
        text-align: center;
        padding: 0;
    }

    .nav-links .dropdown:hover .dropdown-content,
    .nav-links .dropdown.open .dropdown-content {
        display: block;
    }

    .nav-links .dropdown-content a {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        color: var(--text-muted);
    }

    /* Mobile close button inside nav */
    .nav-close-btn {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-muted);
        line-height: 1;
    }

    /* Content */
    .content {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    /* Hero */
    .hero {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 2rem;
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .hero-content { max-width: 100%; }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .hero p { font-size: 1.05rem; margin-bottom: 1.75rem; }

    .hero-visual {
        justify-content: center;
        width: 100%;
    }

    .hero-visual img {
        max-height: 240px;
        width: 100%;
        transform: none;
    }

    /* Search bar */
    .search-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-bar button {
        padding: 0.9rem 1.5rem;
        border-radius: 50px;
        width: 100%;
    }

    /* Grids → single column */
    .counselors-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .value-prop-grid,
    .how-it-works-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

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

    /* Profile header */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .profile-image {
        width: 130px;
        height: 130px;
        margin: 0 auto;
    }

    .profile-details h1 { font-size: 2rem; }
    .profile-details .title { font-size: 1.1rem; }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    /* AI match form */
    .ai-match-container {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }

    .ai-match-header h2 { font-size: 1.8rem; }
    .ai-match-header p { font-size: 1rem; }

    .ai-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-brand { min-width: 0; }
    .footer-brand h3 { font-size: 1.5rem; }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* Cookie banner */
    .cookie-banner,
    .edula-consent-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 1rem;
    }

    .cookie-buttons,
    .consent-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    /* Form sections */
    .form-section { padding: 1.5rem 1.25rem; }

    /* Section headings */
    .value-prop-header h2,
    .how-it-works-header h2,
    .reviews-section h2 {
        font-size: 1.75rem;
    }
}

/* ── Small phones (≤ 480px) ─────────────────── */
@media (max-width: 480px) {
    .navbar { padding: 0.9rem 1rem; }

    .brand { font-size: 1.4rem; }
    .brand-icon { width: 32px !important; height: 32px !important; }

    .hero h1 { font-size: 1.85rem; }
    .hero { padding: 1.5rem 1rem; }

    .content { padding: 1.25rem 0.85rem; }

    .profile-header { padding: 1.5rem 1rem; }
    .profile-image { width: 100px; height: 100px; }
    .profile-details h1 { font-size: 1.65rem; }

    .ai-match-container { padding: 1.25rem 1rem; }
    .ai-match-header h2 { font-size: 1.5rem; }

    .btn-ai { font-size: 1rem; padding: 1rem; }

    .service-card { padding: 1.5rem 1.25rem; }
    .service-header h3 { font-size: 1.2rem; }
    .service-header .price { font-size: 1.4rem; }

    .footer { padding: 2.5rem 1rem 1rem; }
    .footer-brand h3 { font-size: 1.3rem; }

    .step-number { width: 54px; height: 54px; font-size: 1.4rem; }
}

/* ── Universal Drawer UI ─────────────────── */
.drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(2px);
    z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.active { opacity: 1; pointer-events: auto; }

.drawer-content {
    position: fixed; top: 0; right: -500px; bottom: 0;
    width: 100%; max-width: 480px;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.drawer-overlay.active .drawer-content { right: 0; }

.drawer-top-bar {
    position: sticky; top: 0;
    background: #ffffff; z-index: 10;
    display: flex; justify-content: flex-end; padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.drawer-close-btn {
    background: #f1f5f9; border: none; border-radius: 50%;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-weight: bold; cursor: pointer;
    transition: all 0.2s;
}
.drawer-close-btn:hover { background: #e2e8f0; color: #0f172a; }

.drawer-content-container { padding: 1.5rem; }
.drawer-header { margin-bottom: 1.5rem; display: flex; gap: 1rem; align-items: center; }
.drawer-title { font-size: 1.5rem; color: #0f172a; margin: 0 0 0.25rem 0; font-weight: 700; line-height: 1.2; }
.drawer-meta { font-size: 0.95rem; color: #64748b; margin: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }

.drawer-section { margin-bottom: 2rem; }
.drawer-section-title { font-size: 1rem; font-weight: 600; color: #1e293b; margin: 0 0 1rem 0; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5rem; display: inline-block; }
.drawer-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.25rem; }

/* ── Choices.js UI Fixes ─────────────────── */
.choices {
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.choices__inner, .choices__list--dropdown {
    box-sizing: border-box !important;
    max-width: 100%;
}
.choices[data-type*="select-multiple"] .choices__inner,
.choices[data-type*="select-one"] .choices__inner {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: white;
    font-size: 0.95rem;
    min-height: 44px;
    padding: 0.2rem 0.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.choices__input {
    margin-bottom: 0 !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
}
.choices[data-type*="select-multiple"] .choices__input {
    min-width: 150px !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    width: auto !important;
}
.choices__list--multiple:not(:empty) ~ .choices__input::placeholder {
    color: transparent !important;
}
.choices__list--multiple {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px;
}
.choices__list--dropdown .choices__item {
    white-space: normal !important;
    word-break: break-word;
}

/* ── Drawer Visuals and Stats ─────────────────── */
.acc-gauge-wrap { position: relative; width: 80px; height: 80px; margin: 0.5rem auto; }
.acc-gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.acc-gauge .circle-bg { fill: none; stroke: #e2e8f0; stroke-width: 3.5; }
.acc-gauge .circle-fill { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray 1s ease-out; }
.acc-gauge-val { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: #1e293b; }

/* Horizontal Score Bars */
.score-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.85rem; }
.score-name { width: 125px; font-weight: 600; color: #475569; }
.score-val { width: 75px; font-weight: 700; text-align: right; color: #0f172a; }
.score-track { flex: 1; height: 8px; background: #e2e8f0; border-radius: 4px; position: relative; min-width: 80px; }
.score-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.sat-fill { background: #3b82f6; }
.act-fill { background: #10b981; }

.bg-green { background: #10b981; }
.bg-blue { background: #3b82f6; }
.bg-orange { background: #f59e0b; }

.roi-badge { padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 700; font-size: 0.8rem; }
.roi-excellent { background: #dcfce7; color: #166534; }
.roi-good { background: #dbeafe; color: #1e40af; }
.roi-low { background: #ffedd5; color: #9a3412; }

/* Outcomes Grid */
.outcome-stat { display: flex; align-items: center; gap: 0.75rem; }
.outcome-icon { font-size: 1.5rem; background: white; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.outcome-value { font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.outcome-desc { font-size: 0.75rem; color: #64748b; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.outcome-timeframe { background: #f1f5f9; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.65rem; }
.outcome-badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 0.25rem; }
.hbcu-badge { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.womens-badge { background: #fce7f3; color: #9d174d; border: 1px solid #fbcfe8; }
