/* Modern & Vivid Design System - Research Pathway Ltd */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;500;600&display=swap');

:root {
    /* Color Palette - Vivid, Inviting, EdTech */
    --primary-color: #2563EB;      /* Royal Blue - Trust & Clarity */
    --primary-dark: #1E40AF;       /* Darker Blue for Hover/Text */
    --primary-light: #EFF6FF;      /* Very Light Blue for backgrounds */
    
    --accent-color: #F97316;       /* Vibrant Orange - Energy & Action */
    --accent-hover: #EA580C;       
    
    --text-main: #1F2937;          /* Dark Gray - Softer than black */
    --text-muted: #6B7280;         /* Medium Gray */
    
    --bg-body: #FFFFFF;
    --bg-surface: #F3F4F6;         /* Light Gray Surface */
    
    /* Typography - Friendly & Modern */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    
    /* Enhanced spacing system */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Shadows - Soft & Modern */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-body);
    margin: 0;
    padding: 0;
}

/* Enhanced typography hierarchy */
h1 { font-size: 3.5rem; font-weight: 700; letter-spacing: -1px; margin-bottom: var(--space-md); }
h2 { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.5px; margin-bottom: var(--space-md); }
h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: var(--space-sm); }
h4 { font-size: 1.3rem; font-weight: 600; margin-bottom: var(--space-sm); }

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-3xl) 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* Navigation - Clean & Easy */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-main);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    font-size: 1.05rem;
}

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

/* Buttons - Interactive & Tactile */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-heading);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-accent {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

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

.btn-outline:hover::before {
    transform: scale(1);
}

/* Hero Section - Inviting & Bright */
.hero {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
}

.hero h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 2.5rem;
}

/* Cards & Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

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

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    /* overflow: hidden; Removed to prevent cutoff of badges/shadows */
}

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

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* Pricing Card Special Styles */
.pricing-card {
    border-top: 5px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative; /* Ensure positioning context */
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.price-tag {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 1.5rem 0;
    font-family: var(--font-heading);
}

.price-tag span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .text-muted {
    text-align: center;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Footer - Professional & Polished */
footer {
    background: var(--primary-dark);
    color: #E5E7EB;
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

footer a {
    color: #D1D5DB;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    color: white;
    padding-left: 5px;
}

footer .logo,
footer .logo span {
    color: white !important;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #64748B;
}

/* FAQ Accordion Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: 4rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #E5E7EB;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    font-size: 1.1rem;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--bg-surface);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 400;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem 2rem;
    max-height: 1000px; /* Arbitrary large number */
    transition: max-height 0.5s ease-in, padding 0.3s ease;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* In a real project, we'd add a mobile menu here */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-control {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}
