@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
    --primary: #1A6B5A;
    --primary-light: #248c77;
    --secondary: #E8A020;
    --secondary-light: #f5b94d;
    --accent: #E8614A;
    --bg: #FAF7F2;
    --text: #2D2D2D;
    --muted: #7A8A85;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(26, 107, 90, 0.08);
    --shadow-hover: 0 10px 30px rgba(26, 107, 90, 0.12);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
    font-family: 'Fraunces', serif;
    font-weight: 600;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

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

/* UI Elements */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 107, 90, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 160, 32, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

/* Navigation */
nav {
    background-color: var(--bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

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

/* Hamburger Button */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 10px;
}

.mobile-nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 44px;
    width: auto;
}

.nav-content .logo-icon {
    height: 40px;
}

.logo-text {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
}

.nav-links a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        gap: 24px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1000;
        display: flex; /* Overriding display:none to handle with right property */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .nav-content .btn-secondary {
        display: none; /* Hide top CTA on mobile to save space */
    }
}

/* Trust Bar */
.trust-bar {
    background: var(--white);
    padding: 12px 0;
    border-top: 1px solid rgba(26, 107, 90, 0.1);
    border-bottom: 1px solid rgba(26, 107, 90, 0.1);
}

.trust-bar-content {
    display: flex;
    justify-content: center;
    gap: 40px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-bar-content {
        flex-wrap: wrap;
        gap: 20px;
        text-align: center;
    }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

input, select, textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(26, 107, 90, 0.2);
    background: var(--bg);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 107, 90, 0.05);
}

/* Footer */
footer {
    background-color: var(--bg);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(26, 107, 90, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-logo-area p {
    margin-top: 20px;
    color: var(--muted);
}

.footer-links h4 {
    margin-bottom: 24px;
    color: var(--primary);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-disclaimer {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.5;
    padding-top: 40px;
    border-top: 1px solid rgba(26, 107, 90, 0.1);
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Organic blobs */
.blob {
    position: absolute;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* Redesigned Sections */
.subheading {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header-centered h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Who We Are */
.who-we-are {
    background-color: var(--white);
    border-radius: 40px;
    margin: 40px auto;
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center; /* Vertically center */
}

.about-content h2 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
    color: var(--text);
    opacity: 0.8;
}

.mission-box {
    background: var(--bg);
    padding: 32px;
    border-radius: 20px;
    border-left: 5px solid var(--secondary);
    margin-top: 40px;
}

.mission-box h3 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mission-box p {
    margin-bottom: 0;
    font-style: italic;
    opacity: 1;
    font-size: 1.1rem;
    color: var(--text);
}

.about-image-area .image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image-area .image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 24px;
    z-index: -1;
}

.about-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-badge .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Fraunces', serif;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Dynamic Bento Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.resource-card {
    background: var(--white);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(0,0,0,0.05);
    text-decoration: none;
    color: var(--text);
}

/* Card Specific Sizing */
.card-featured {
    grid-column: span 8;
    grid-row: span 2;
    background: #f0f7f5;
}

.card-learn {
    grid-column: span 4;
    grid-row: span 2;
    background: #fdf5e6; /* subtle amber */
}

.card-tools {
    grid-column: span 4;
    grid-row: span 1;
    background: #f0f4f8; /* subtle blue */
}

.card-plan {
    grid-column: span 4;
    grid-row: span 1;
    background: #fdf0f0; /* subtle coral */
}

.card-check {
    grid-column: span 4;
    grid-row: span 1;
    background: #f5f0fd; /* subtle purple */
}

/* Tag styling */
.card-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 20px;
    width: fit-content;
}

/* Image Backgrounds */
.card-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    filter: grayscale(100%);
    transition: all 0.6s ease;
}

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

/* Content layer */
.card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--primary);
}

.card-featured h3 {
    font-size: 3.2rem;
}

.card-content p {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 450px;
}

.card-link {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(26, 107, 90, 0.15);
}

.resource-card:hover .card-image-bg {
    opacity: 0.25;
    filter: grayscale(0%);
    transform: scale(1.05);
}

.resource-card:hover .card-link {
    transform: translateX(5px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 120px;
    overflow: hidden;
    background-color: var(--bg);
    display: flex;
    align-items: center;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    z-index: 0;
}

.hero-bg-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, var(--bg) 0%, rgba(250, 247, 242, 0) 50%, rgba(250, 247, 242, 0) 100%), 
                linear-gradient(to bottom, rgba(250, 247, 242, 0) 60%, var(--bg) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 4.8rem;
    line-height: 1.05;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 48px;
    max-width: 580px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Responsive Tablet */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.8rem; }
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
    }
    .card-featured, .card-learn, .card-tools, .card-plan, .card-check {
        grid-column: span 1;
        grid-row: span 1;
    }
    .card-featured {
        grid-column: span 2;
    }
}

/* Mobile Friendly Optimization */
@media (max-width: 768px) {
    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-bg-video, .hero-bg-overlay {
        display: none; /* Hide video on mobile as requested */
    }

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

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 32px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    /* Who We Are Mobile */
    .who-we-are {
        padding: 60px 0;
        margin: 20px auto;
        border-radius: 0; /* Full width feel on mobile */
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .about-content p {
        font-size: 1rem;
    }

    .about-image-area {
        order: -1; /* Image first on mobile */
    }

    .experience-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin: -40px auto 20px;
        display: inline-block;
        padding: 20px;
    }

    /* Resources Mobile - Reverting to vertical stack */
    .resources-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0;
        margin: 0;
        overflow-x: visible; /* Disable horizontal scroll */
    }

    .resource-card {
        flex: 1 1 auto;
        min-height: auto;
        padding: 32px 24px;
    }

    .card-featured h3 {
        font-size: 2rem;
    }

    .card-content h3 {
        font-size: 1.6rem;
    }

    .section-header-centered h2 {
        font-size: 2.2rem;
    }
}


/* Counselling Section */
.counselling-banner {
    background: var(--primary);
    border-radius: 32px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    color: var(--white);
    box-shadow: var(--shadow-hover);
}

.counselling-banner.text-only {
    grid-template-columns: 1fr;
    text-align: center;
}

.counselling-image {
    height: 100%;
}

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

.counselling-content {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.counselling-banner.text-only .counselling-content {
    align-items: center;
    padding: 100px 40px;
}

.counselling-content .subheading {
    color: var(--secondary);
}

.counselling-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--white);
}

.counselling-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
}

@media (max-width: 992px) {
    .counselling-banner {
        grid-template-columns: 1fr;
    }
    .counselling-image {
        height: 300px;
    }
    .counselling-content {
        padding: 40px;
        text-align: center;
        align-items: center;
    }
    .counselling-content h2 {
        font-size: 2.2rem;
    }
}


/* Financial Term Highlights */
.financial-term {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--primary);
    text-underline-offset: 4px;
    cursor: help;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.2s;
}

.financial-term:hover {
    background-color: rgba(26, 107, 90, 0.1);
    border-radius: 4px;
}

/* Financial Term Popup Wrapper */
.financial-term-popup {
    position: absolute;
    z-index: 9999;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    width: 320px;
    max-width: 90vw;
    padding: 20px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(26, 107, 90, 0.1);
    font-size: 0.95rem;
}

.financial-term-popup.active {
    opacity: 1;
    transform: translateY(0);
}

.financial-term-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 8px;
}

.financial-term-popup .popup-header strong {
    color: var(--primary);
    font-size: 1.1rem;
    font-family: 'Fraunces', serif;
}

.financial-term-popup .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.financial-term-popup .popup-body {
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.5;
}

.financial-term-popup .popup-link {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
}

.financial-term-popup .popup-link:hover {
    color: var(--secondary-light);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}
.toggle-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}
.toggle-switch .slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
.toggle-switch input:checked + .slider {
  background-color: var(--primary);
}
.toggle-switch input:checked + .slider:before {
  transform: translateX(24px);
}
#slc-payment-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #eee;
  outline: none;
}
#slc-payment-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
