:root {
    --primary: #002347;
    /* Deep Navy */
    --secondary: #FF8C00;
    /* Vibrant Orange */
    --accent: #334155;
    /* Slate */
    --bg: #F8FAFC;
    --text: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
}

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

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

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

header {
    background-color: var(--white);
    padding: 1rem 0;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #001A35;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
}

#story-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
}

footer {
    padding: 4rem 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

/* Mission Section */
.mission-section {
    background-color: var(--white);
    border-bottom: 1px solid #f0f0f0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.mission-card {
    padding: 2rem;
    background: #fafafa;
    border-radius: 1rem;
}

.mission-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Process Section */
.process-wrapper {
    max-width: 900px;
    margin: 3rem auto 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.process-number {
    background: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.process-title {
    margin-bottom: 0.5rem;
}

/* Stories Grid */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.story-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.story-image-container {
    height: 200px;
    background: #eee;
    position: relative;
    overflow: hidden;
}

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

.story-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 3rem;
    font-weight: 800;
}

.story-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
}

.story-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.story-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary);
    line-height: 1.4;
}

.story-excerpt {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.story-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-wrapper {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-subtitle {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.contact-text {
    font-size: 1.125rem;
    line-height: 1.6;
}

.contact-collab-box {
    background: #fafafa;
    padding: 3rem;
    border-radius: 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* Navigation - Mobile */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2000;
    /* Ensure button is always on top */
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    position: relative;
    transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary);
    left: 0;
    transition: top 0.2s, transform 0.2s;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.mobile-nav-toggle.active .hamburger {
    background: transparent;
}

.mobile-nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}


/* ===== RESPONSIVE DESIGN ===== */

/* Extra Small Mobile (Portrait Phones) */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    section {
        padding: 2rem 0;
    }

    .btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.9375rem;
    }

    .mission-card,
    .contact-card,
    .contact-collab-box {
        padding: 1.25rem;
    }
}

/* Mobile (Tablets & Phones) */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Typography */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    section {
        padding: 2.5rem 0;
    }

    /* Navigation */
    .mobile-nav-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        margin: 0;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 0;
        padding: 0.75rem 1.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Contact Page */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card,
    .contact-collab-box {
        padding: 1.5rem;
    }

    /* Mission */
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mission-card {
        padding: 1.5rem;
    }

    /* Process */
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .process-number {
        margin-bottom: 1rem;
    }

    /* Stories */
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-card {
        max-width: 100%;
    }

    /* Forms */
    .form-control {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* Tablet (Medium Devices) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Desktop Restoration */
@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        box-shadow: none;
        align-items: center;
        gap: 0;
    }

    .mobile-nav-toggle {
        display: none !important;
    }
}