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

body {
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #0C2240;
    background: #F7F4ED;
}

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

/* Navigation */
.navbar {
    position: static;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0C2240;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.logo img {
    display: block;
    object-fit: cover;
    height: 50px;
    width: auto;
    transform: scale(1.5);
    transform-origin: center;
}

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

.nav-links a {
    text-decoration: none;
    color: #0C2240;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    /* Apply the same animated gradient as ali-gradient to link text */
    background: linear-gradient(45deg, #3B82F6, #EC4899, #8B5CF6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

/* Hero Section */
.hero {
    padding: 80px 0 145px; /* +15px bottom to increase overall section height */
    background: white;
    color: #0C2240;
    min-height: calc(100vh + 65px); /* +15px to overall min-height */
    display: flex;
    flex-direction: column; /* Stack banner above the grid */
    align-items: center;
}

/* Hero banner headline above video */
.hero-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
}

.hero-banner-title {
    font-size: 36px;
    line-height: 44px;
    font-weight: 800;
    margin: 0 auto;
    color: #0C2240;
    max-width: 1200px;
    padding: 0 20px;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .hero-banner-title {
        font-size: 36px;
        line-height: 44px;
        white-space: normal; /* allow wrapping on smaller screens */
    }
}

@media (max-width: 768px) {
    /* Reduce hero section padding on mobile - eliminate bottom padding */
    .hero {
        padding: 20px 0 0 !important; /* NO bottom padding to eliminate gap */
        min-height: auto !important;
    }
    
    /* Reduce gap between logo and heading */
    .hero-banner {
        margin-bottom: 8px;
    }
    
    .hero-banner-title {
        font-size: 28px;
        line-height: 36px;
        white-space: normal;
        margin-bottom: 0; /* remove default margin */
    }

    /* Reduce gap between heading and "Hi I'm Alli" */
    .hero-container {
        margin-top: 16px !important; /* much smaller gap after heading */
        gap: 1.5rem; /* reduce gap between elements */
        margin-bottom: 0 !important; /* no bottom margin */
    }

    /* Ensure metrics sit directly below the video on mobile - use negative margin */
    .hero-stats-section {
        margin-top: -10px !important; /* pull up into hero section to close gap */
        padding: 8px 16px 24px !important; /* minimal padding */
        position: relative; /* ensure it flows naturally in document flow */
    }

    /* Remove all spacing below the video */
    .hero-visual {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero-video {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Remove any spacing from hero-content */
    .hero-content {
        margin-bottom: 0 !important;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 85px; /* +15px to move text+video down proportionately */
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 1rem;
    color: #0C2240;
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0C2240;
    white-space: nowrap;
}

.hero-description {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 2rem;
    color: #0C2240;
    opacity: 0.8;
}

.hero-waitlist {
    padding: 0;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.hero-form-group {
    flex: 1;
}

.hero-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #BDD7EF;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: #0C2240;
    transition: border-color 0.3s ease;
}

.hero-form-group input::placeholder {
    color: #0C2240;
    opacity: 0.6;
}

.hero-form-group input:focus {
    outline: none;
    border-color: #78C6A3;
}

.hero-submit-btn {
    padding: 12px 24px;
    font-size: 14px;
    height: 48px;
    white-space: nowrap;
}

.hero-stats-section {
    display: flex;
    justify-content: center;
    padding: 30px 0 80px;
    background: white;
    margin-top: -315px; /* move metrics down by an additional 15px */
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}

.hero-stats .stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stats .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #D4C4A8;
    white-space: nowrap;
}

.hero-stats .stat-label {
    font-size: 16px;
    line-height: 1.2;
    color: #000000;
    opacity: 0.8;
    white-space: nowrap;
}

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

.btn-primary, .btn-secondary {
    padding: 12px 64px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    height: 58px;
}

.btn-primary {
    background: #E5D8C0;
    color: #0C2240;
    box-shadow: 0 2px 4px rgba(229, 216, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 196, 168, 0.4);
}

.btn-secondary {
    background: #FF6B6B;
    color: white;
    border: 1px solid #FF6B6B;
}

.btn-secondary:hover {
    background: #e55a5a;
    transform: translateY(-2px);
}

.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #DC2626;
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* Hero Video */
/* Hero Visual Container */


/* App Preview Section */
.app-preview {
    padding: 80px 0 80px;
    background: #F7F4ED;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    color: #0C2240;
    opacity: 0.8;
    margin-bottom: 3rem;
    margin-top: 0;
}

.app-preview .section-subtitle {
    margin-top: 30px;
}

.app-preview .section-title {
    margin-bottom: 0.5rem;
}

.app-screens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

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

.screen-container h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin: 1.5rem 0 0.5rem;
    color: #0C2240;
}

.screen-container p {
    font-size: 16px;
    line-height: 24px;
    color: #0C2240;
    opacity: 0.8;
}

.app-screen {
    background: #F7F4ED;
    border-radius: 20px;
    overflow: hidden;
    max-width: 280px;
    margin: 0 auto;
    height: 500px;
    display: flex;
    flex-direction: column;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.screen-header {
    background: #0C2240;
    color: #F7F4ED;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screen-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-logo img {
    display: block;
    object-fit: contain;
}

.screen-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.screen-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Dashboard Screen */
.food-image {
    height: 120px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.smoothie-bowl {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #78C6A3, #9DD4B8);
    border-radius: 50%;
    position: relative;
}

.smoothie-bowl::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #FF6B6B;
    border-radius: 50%;
}

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

.intake-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #0C2240;
    margin-bottom: 0.5rem;
}

.calories, .protein {
    font-size: 12px;
    color: #0C2240;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
}

.progress-item span:first-child {
    width: 40px;
    text-align: left;
    color: #0C2240;
    font-weight: 600;
}

.progress-item span:last-child {
    width: 60px;
    text-align: right;
    color: #0C2240;
    opacity: 0.8;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #E6E5E3;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
}

.protein-fill {
    background: #78C6A3;
    width: 65%;
}

.carbs-fill {
    background: #78C6A3;
    width: 65%;
}

.fat-fill {
    background: #78C6A3;
    width: 65%;
}

.screen-btn {
    margin-top: auto;
    width: 100%;
    height: 40px;
    font-size: 14px;
}

/* Meal Plan Screen */
.calendar {
    background: white;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #0C2240;
    margin-bottom: 0.25rem;
}

.calendar-row:last-child {
    margin-bottom: 0;
}

.selected {
    background: #FF6B6B;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-chart h5 {
    font-size: 12px;
    font-weight: 600;
    color: #0C2240;
    margin-bottom: 0.5rem;
}

.chart-bars {
    display: flex;
    gap: 2px;
    height: 40px;
    align-items: end;
}

.bar {
    flex: 1;
    border-radius: 2px;
}

.bar.mint {
    background: #78C6A3;
    height: 60%;
}

.bar.coral {
    background: #FF6B6B;
    height: 80%;
}

.meal-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meal-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
}

.meal-image {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.meal-image.avocado {
    background: linear-gradient(45deg, #78C6A3, #9DD4B8);
}

.meal-image.chicken {
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
}

.meal-info h6 {
    font-size: 12px;
    font-weight: 600;
    color: #0C2240;
    margin: 0;
}

.meal-info span {
    font-size: 10px;
    color: #0C2240;
    opacity: 0.8;
}

/* Chat Screen */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

.message {
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 12px;
    line-height: 16px;
}

.user-message {
    background: #BDD7EF;
    color: #0C2240;
    align-self: flex-end;
}

.ai-message {
    background: white;
    color: #0C2240;
    align-self: flex-start;
    border: 1px solid #E6E5E3;
}

.message p {
    margin: 0;
}

.chat-input {
    border-top: 1px solid #E6E5E3;
    padding-top: 0.5rem;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: white;
    border: 1px solid #0C2240;
    border-radius: 8px;
    padding: 4px 8px;
}

.input-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 12px;
    color: #0C2240;
    background: transparent;
}

.input-container input::placeholder {
    color: #0C2240;
    opacity: 0.6;
}

.input-container i {
    color: #0C2240;
    font-size: 12px;
}

/* Features Section */
.features {
    padding: 80px 0 40px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 6rem;
    color: #0C2240;
}

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

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.feature-card {
    background: white;
    padding: 16px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-align: center;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border: 2px solid #D4C4A8;
}

.feature-card:hover .feature-icon {
    background: transparent;
    color: #D4C4A8;
    transform: scale(1.1);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: transparent;
    border: none;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.25rem;
    color: #D4C4A8;
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 1rem;
    color: #0C2240;
}

.feature-card p {
    color: #6B7280;
    line-height: 24px;
    font-size: 15px;
    padding-bottom: 15px;
}

.coming-banner {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #D4C4A8, #B8A082);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(212, 196, 168, 0.3);
    z-index: 10;
}

/* How It Works Section */
.how-it-works {
    padding: 140px 0 80px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.how-it-works-title {
    margin-bottom: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.step-number {
    width: 144px;
    height: 144px;
    background: transparent;
    border-radius: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 700;
    color: #D4C4A8;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 0.5rem;
    color: #0C2240;
    text-align: center;
}

.step-content p {
    color: #0C2240;
    line-height: 24px;
    font-size: 16px;
    text-align: center;
}

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

/* Waitlist Section */
.waitlist {
    padding: 20px 0;
    background: #0C2240;
    color: #F7F4ED;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.waitlist-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    margin-top: 30px;
}

/* Klaviyo form styling - ensure full width */
.klaviyo-form-WGG8sC {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.klaviyo-form-WGG8sC > * {
    max-width: 100% !important;
    width: 100% !important;
}

.klaviyo-form-WGG8sC form {
    max-width: 100% !important;
    width: 100% !important;
}

.klaviyo-form-WGG8sC .needsclick,
.klaviyo-form-WGG8sC .klaviyo-form {
    max-width: 100% !important;
    width: 100% !important;
}

.klaviyo-form-WGG8sC input[type="text"],
.klaviyo-form-WGG8sC input[type="email"],
.klaviyo-form-WGG8sC button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

.waitlist-title {
    color: #F7F4ED !important;
    margin-top: 25px;
    margin-bottom: 1rem;
}

.waitlist-subtitle {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 1.5rem;
    margin-top: 10px;
    opacity: 0.9;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #BDD7EF;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    color: #0C2240;
}

.form-group input::placeholder {
    color: #0C2240;
    opacity: 0.6;
    text-align: center;
}

.form-group select {
    color: #0C2240;
}

.form-group select option {
    background: white;
    color: #0C2240;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    height: 48px;
}

.waitlist-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 0.5rem;
    color: #78C6A3;
    white-space: nowrap;
}

.stat-label {
    font-size: 12px;
    line-height: 16px;
    opacity: 0.8;
    white-space: nowrap;
}

/* Footer */
.footer {
    background: #0C2240;
    color: #F7F4ED;
    padding: 10px 0 10px;
}

/* Resources page specific footer fix */
body:has(.resources-section) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body:has(.resources-section) .resources-section {
    flex: 1;
}

body:has(.resources-section) .footer {
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0;
    padding-top: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 8px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(247, 244, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F7F4ED;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #BDD7EF;
    color: #0C2240;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(247, 244, 237, 0.1);
    color: #BDD7EF;
    font-size: 14px;
    line-height: 20px;
}

/* ALI Gradient Text */
.ali-gradient {
    background: linear-gradient(45deg, #3B82F6, #EC4899, #8B5CF6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    font-weight: 700;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pre-Order Section */
.pre-order-section {
    margin-top: 1rem;
    text-align: center;
}

.pre-order-bubble-wide {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.pre-order-bubble-wide:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pre-order-bubble {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pre-order-bubble:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bubble-header {
    margin-bottom: 1.5rem;
}

.bubble-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F7F4ED;
    margin-bottom: 0.5rem;
}

.bubble-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(120, 198, 163, 0.2);
    color: #78C6A3;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.bubble-badge.premium {
    background: linear-gradient(45deg, #FF6B6B, #EC4899);
    color: white;
}

.bubble-benefits {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.bubble-benefits li {
    color: #F7F4ED;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.premium-benefits h5 {
    color: #F7F4ED;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.premium-note {
    color: #BDD7EF;
    font-size: 0.85rem;
    font-style: italic;
    margin: 1rem 0;
    line-height: 1.4;
}

.pre-order-bubble .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .pre-order-bubble-wide {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-waitlist {
    padding: 0;
        margin-bottom: 1rem;
    }
    
/* Hero Visual Container */

    
    .hero-submit-btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    

    
    .nav-links {
        display: none;
    }
    
    /* Center logo on mobile */
    .nav-container {
        justify-content: center;
    }
    
    .app-screens {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .waitlist-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
        height: 44px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .app-screen {
        max-width: 260px;
        height: 450px;
    }
}

/* Founding Membership Page Styles */
.founding-membership-hero {
    background: #0C2240;
    color: #F7F4ED;
    padding: 120px 0 0 0; /* Remove bottom padding to merge with next section */
    text-align: center;
}

.founding-membership-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #F7F4ED; /* Ensure heading is white */
}

.founding-membership-hero .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #F7F4ED; /* Make subtitle white for better readability */
}

.founding-membership-hero .hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #F7F4ED; /* Make description white for better readability */
    padding-bottom: 40px; /* Add padding below the description */
}

.founding-membership-section {
    padding: 0 0 80px 0; /* Remove top padding to merge with hero */
    background: #0C2240; /* Same blue gradient as hero */
    color: #F7F4ED; /* Ensure text is readable on blue background */
}

.founding-membership-section .pre-order-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px; /* Add padding around the founding membership bubble */
}

/* Ensure the founding membership bubble has good contrast */
.founding-membership-section .pre-order-bubble {
    background: #FFFFFF; /* Solid white background */
    border: 2px solid #BDD7EF; /* Light blue border for definition */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* Enhanced shadow for depth */
    padding: 0; /* Remove padding to let Stripe table fill entire space */
    border-radius: 16px; /* Ensure rounded corners */
}

/* Stripe Pricing Table Styling */
.founding-membership-section stripe-pricing-table {
    margin: 0;
    display: block;
    width: 100%;
    height: 100%;
}

/* Ensure the Stripe pricing table fills the entire bubble */
.founding-membership-section .pre-order-bubble stripe-pricing-table {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Hide navigation buttons on founding membership page */
.founding-membership-page .nav-links {
    display: none;
}

/* Alternative approach: hide nav-links when on founding membership page */
body:has(.founding-membership-hero) .nav-links {
    display: none;
}

/* Responsive adjustments for founding membership page */
@media (max-width: 768px) {
    .founding-membership-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .founding-membership-hero .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .founding-membership-hero .hero-description {
        font-size: 1.1rem;
    }
}

 
/* Enhanced Stripe Pricing Table Styling with Rounded Corners */
.founding-membership-section stripe-pricing-table {
    margin: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px !important; /* Round the corners to match the bubble */
    overflow: hidden !important; /* Ensure content respects the rounded corners */
}

/* Ensure the Stripe pricing table fills the entire bubble */
.founding-membership-section .pre-order-bubble stripe-pricing-table {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px !important; /* Round the corners */
    overflow: hidden !important; /* Clip content to rounded corners */
}

/* Force Stripe table to respect rounded corners */
.founding-membership-section .pre-order-bubble {
    overflow: hidden !important; /* Ensure child elements respect rounded corners */
}

/* Alternative: Full white background option */
.founding-membership-page-full-white {
    background: #FFFFFF !important;
}

.founding-membership-page-full-white .founding-membership-hero,
.founding-membership-page-full-white .founding-membership-section {
    background: #FFFFFF !important;
}

.founding-membership-page-full-white .hero-title,
.founding-membership-page-full-white .hero-subtitle,
.founding-membership-page-full-white .hero-description {
    color: #0C2240 !important; /* Dark text on white background */
}

/* Unified Founding Membership Section - Single seamless blue background */
.founding-membership-unified {
    background: #0C2240;
    color: #F7F4ED;
    padding: 120px 0 80px 0;
    text-align: center;
    min-height: 100vh; /* Ensure it covers the full viewport */
}

.founding-membership-unified .hero-content {
    margin-bottom: 60px;
}

.founding-membership-unified .hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #F7F4ED;
}

.founding-membership-unified .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #F7F4ED;
}

.founding-membership-unified .hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #F7F4ED;
    padding-bottom: 40px;
}

.founding-membership-unified .pre-order-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Ensure the founding membership bubble has good contrast */
.founding-membership-unified .pre-order-bubble {
    background: #FFFFFF;
    border: 2px solid #BDD7EF;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 0;
    border-radius: 16px;
    overflow: hidden !important;
}

/* Stripe Pricing Table Styling for unified section */
.founding-membership-unified stripe-pricing-table {
    margin: 0;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.founding-membership-unified .pre-order-bubble stripe-pricing-table {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px !important;
    overflow: hidden !important;
}

/* Responsive adjustments for unified section */
@media (max-width: 768px) {
    .founding-membership-unified .hero-title {
        font-size: 2.5rem;
    }
    
    .founding-membership-unified .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .founding-membership-unified .hero-description {
        font-size: 1.1rem;
    }
}

/* Video Section Styling */
.video-section {
    margin: 40px auto 60px auto;
    max-width: 800px;
    text-align: center;
}

.waitlist-video {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid #BDD7EF;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .video-section {
        margin: 30px auto 50px auto;
        padding: 0 20px;
    }
    
    .waitlist-video {
        max-width: 100%;
    }
}

/* Updated layout for video above subheadings */
.founding-membership-unified .hero-content {
    margin-bottom: 40px;
}

.founding-membership-unified .video-section {
    margin: 0 auto 40px auto;
    max-width: 800px;
    text-align: center;
}

.hero-content-below-video {
    text-align: center;
    margin-bottom: 60px;
}

.hero-content-below-video .hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #F7F4ED;
}

.hero-content-below-video .hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    color: #F7F4ED;
}

/* Responsive adjustments for new layout */
@media (max-width: 768px) {
    .founding-membership-unified .hero-content {
        margin-bottom: 30px;
    }
    
    .founding-membership-unified .video-section {
        margin: 0 auto 30px auto;
        padding: 0 20px;
    }
    
    .hero-content-below-video {
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .hero-content-below-video .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-content-below-video .hero-description {
        font-size: 1.1rem;
    }
}

/* Ensure description text stays on one line for laptop view */
.hero-content-below-video .hero-description {
    font-size: 1.2rem;
    max-width: 800px; /* Increased from 600px to accommodate longer text */
    margin: 0 auto;
    line-height: 1.6;
    color: #F7F4ED;
    white-space: nowrap; /* Force text to stay on one line */
    overflow: hidden; /* Hide any overflow */
    text-overflow: ellipsis; /* Add ellipsis if text is too long */
}

/* Responsive adjustments to ensure one-line display */
@media (min-width: 768px) and (max-width: 1200px) {
    .hero-content-below-video .hero-description {
        white-space: nowrap;
        max-width: 100%;
        padding: 0 20px;
    }
}

/* For very small screens, allow wrapping */
@media (max-width: 767px) {
    .hero-content-below-video .hero-description {
        white-space: normal;
        max-width: 600px;
        padding: 0 20px;
    }
}

/* Fix description text to show full sentence - allow wrapping if needed */
.hero-content-below-video .hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: #F7F4ED;
    white-space: normal; /* Allow text to wrap naturally */
    overflow: visible; /* Show all text */
    text-overflow: unset; /* Remove ellipsis */
}

/* Responsive adjustments - allow wrapping on all screen sizes */
@media (min-width: 768px) and (max-width: 1200px) {
    .hero-content-below-video .hero-description {
        white-space: normal;
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .hero-content-below-video .hero-description {
        white-space: normal;
        max-width: 600px;
        padding: 0 20px;
    }
}

/* Floating Countdown Bubble */
.countdown-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Use the same animated gradient as ali-gradient for background */
    background: linear-gradient(45deg, #3B82F6, #EC4899, #8B5CF6);
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.28);
    z-index: 1000;
    min-width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.countdown-bubble:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.35);
}

.countdown-content {
    text-align: center;
    color: white;
}

.countdown-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 35px;
}

.time-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
}

.time-label {
    font-size: 10px;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-subtitle {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    margin-top: 4px;
}

/* Mobile responsiveness for countdown bubble */
@media (max-width: 768px) {
    .countdown-bubble {
        bottom: 15px;
        right: 15px;
        padding: 15px;
        min-width: 180px;
    }
    
    .time-number {
        font-size: 18px;
    }
    
    .time-label {
        font-size: 9px;
    }
    
    .countdown-title {
        font-size: 13px;
    }
    
    .countdown-subtitle {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .countdown-bubble {
        bottom: 10px;
        right: 10px;
        padding: 12px;
        min-width: 160px;
    }
    
    .time-number {
        font-size: 16px;
    }
    
    .time-label {
        font-size: 8px;
    }
    
    .countdown-timer {
        gap: 6px;
    }
}

/* FAQ Section Styles */
.faq-section {
    background: #0C2240;
    padding: 80px 0;
    color: white;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: white;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.2rem;
    color: #78C6A3;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Mobile responsiveness for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-question {
        padding: 20px 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
        padding-right: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* General mobile adjustments */
    .container {
        padding: 0 20px;
    }
    
    /* Hero section mobile improvements */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 2rem;
    }
    
    /* Waitlist section mobile improvements */
    .waitlist {
        padding: 40px 0;
        min-height: auto;
    }
    
    .waitlist-content {
        padding: 0 20px;
        margin-top: 0;
    }
    
    .waitlist-title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 1rem;
    }
    
    .waitlist-subtitle {
        font-size: 16px;
        line-height: 24px;
        margin-bottom: 2rem;
    }
    
    .waitlist-form {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px;
        height: 50px;
    }
    
    .btn-primary {
        padding: 14px 24px;
        font-size: 16px;
        height: 50px;
        width: 100%;
    }
    
    /* Countdown bubble mobile improvements */
    .countdown-bubble {
        bottom: 15px;
        right: 15px;
        padding: 12px;
        min-width: 140px;
        max-width: 160px;
    }
    
    .countdown-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .countdown-timer {
        gap: 4px;
        margin-bottom: 6px;
    }
    
    .time-unit {
        min-width: 28px;
    }
    
    .time-number {
        font-size: 14px;
        font-weight: 700;
    }
    
    .time-label {
        font-size: 8px;
        margin-top: 2px;
    }
    
    .countdown-subtitle {
        font-size: 9px;
    }
    
    /* Stats section mobile */
    .waitlist-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        line-height: 24px;
    }
    
    .waitlist-title {
        font-size: 22px;
        line-height: 30px;
    }
    
    .waitlist-subtitle {
        font-size: 15px;
        line-height: 22px;
    }
    
    /* Even smaller countdown bubble */
    .countdown-bubble {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        min-width: 120px;
        max-width: 140px;
    }
    
    .countdown-title {
        font-size: 10px;
    }
    
    .time-number {
        font-size: 12px;
    }
    
    .time-label {
        font-size: 7px;
    }
    
    .countdown-subtitle {
        font-size: 8px;
    }
    
    .countdown-timer {
        gap: 3px;
    }
    
    .time-unit {
        min-width: 24px;
    }
}

/* Ensure proper viewport scaling */
@media screen and (max-width: 768px) {
    html {
    overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    body {
    overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}


/* Hero Visual Container */


/* Hero Visual Container - Clean Centering */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Hero Video - Clean Sizing */
.hero-video {
    width: 100%;
    max-width: 640px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-video {
        max-width: 100%;
        border-radius: 15px;
    }
}

/* Resources Page Styles */
.resources-section {
    padding: 120px 0 80px;
    background: #F7F4ED;
    flex: 1;
}

.resources-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 1rem;
    color: #0C2240;
    transition: opacity 0.3s ease;
}

.resources-title:hover {
    opacity: 0.8;
}

.resources-subtitle {
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    color: #0C2240;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.admin-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

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

.resource-card {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #D4C4A8;
}

/* Animated Bubble Effect */
.resource-bubble {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 196, 168, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    transform: scale(0);
}

.resource-card:hover .resource-bubble {
    opacity: 1;
    transform: scale(1);
    animation: bubble-pulse 2s ease-in-out infinite;
}

@keyframes bubble-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

/* Multiple bubbles for more effect */
.resource-card::before,
.resource-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(120, 198, 163, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
}

.resource-card::before {
    top: 20%;
    right: 10%;
    width: 150px;
    height: 150px;
    transform: scale(0);
}

.resource-card::after {
    bottom: 10%;
    left: 15%;
    width: 120px;
    height: 120px;
    transform: scale(0);
}

.resource-card:hover::before,
.resource-card:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: bubble-float 3s ease-in-out infinite;
}

@keyframes bubble-float {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-10px);
    }
}

.resource-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.resource-content {
    padding: 1.5rem;
}

.resource-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 0.75rem;
    color: #0C2240;
}

.resource-card-description {
    font-size: 15px;
    line-height: 24px;
    color: #6B7280;
    margin-bottom: 1rem;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6B7280;
    padding-top: 1rem;
    border-top: 1px solid #E6E5E3;
}

.resource-author,
.resource-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-author i,
.resource-date i {
    font-size: 12px;
}

/* Edit Article Button */
.edit-article-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #D4C4A8;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edit-article-btn:hover {
    background: #D4C4A8;
    border-color: #B8A082;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edit-article-btn i {
    color: #0C2240;
    font-size: 16px;
}

.edit-article-btn:hover i {
    color: white;
}

.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: #6B7280;
    font-size: 18px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E6E5E3;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #0C2240;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #F3F4F6;
    color: #0C2240;
}

.modal-body {
    padding: 2rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #0C2240;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #BDD7EF;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #0C2240;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    outline: none;
    border-color: #78C6A3;
}

.modal-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Inter', sans-serif;
}

.modal-error {
    background: #FEE2E2;
    color: #991B1B;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.modal-actions .btn-primary,
.modal-actions .btn-secondary,
.modal-actions .btn-danger {
    padding: 12px 24px;
    font-size: 16px;
    height: auto;
}

.modal-actions .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0C2240;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Article Page Styles */
.article-section {
    padding: 120px 0 80px;
    background: #F7F4ED;
    min-height: calc(100vh - 200px);
}

.article-header {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0C2240;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #78C6A3;
}

.article {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.article-header-content {
    padding: 2.5rem 3rem;
    border-bottom: 1px solid #E6E5E3;
}

.article-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    margin-bottom: 1rem;
    color: #0C2240;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 14px;
    color: #6B7280;
}

.article-author,
.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-body {
    padding: 3rem;
    line-height: 1.8;
    color: #0C2240;
}

.article-body h1 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0C2240;
}

.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #0C2240;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0C2240;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 16px;
    line-height: 1.8;
}

.article-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    font-size: 16px;
    line-height: 1.8;
}

.article-body strong {
    font-weight: 600;
    color: #0C2240;
}

.article-loading,
.article-error {
    text-align: center;
    padding: 4rem 2rem;
}

.article-error h2 {
    font-size: 28px;
    margin-bottom: 1rem;
    color: #0C2240;
}

.article-error p {
    margin-bottom: 2rem;
    color: #6B7280;
}

/* Responsive Design for Resources */
@media (max-width: 768px) {
    .resources-section {
        padding: 100px 0 60px;
    }
    
    .resources-title {
        font-size: 32px;
        line-height: 40px;
    }
    
    .resources-subtitle {
        font-size: 16px;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .article-header-content {
        padding: 2rem 1.5rem;
    }
    
    .article-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .article-body {
        padding: 2rem 1.5rem;
    }
    
    .article-body h1 {
        font-size: 24px;
    }
    
    .article-body h2 {
        font-size: 22px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-image {
        height: 250px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .resources-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .resource-card-title {
        font-size: 20px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .article-title {
        font-size: 24px;
        line-height: 32px;
    }
}

