/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
}

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.pageContainer {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 10px; /* responsive padding */
}

/* Portrait mode — full width */
@media screen and (orientation: portrait) {
    .pageContainer {
        max-width: 100%;
        width: 100%;
        box-shadow: none;
    }
}

/* Landscape mode — limit width like desktop */
@media screen and (orientation: landscape) {
    .pageContainer {
        max-width: 65%;
        width: 100%;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }
}

/* ============================================================
   HEADER (Sticky Version)
   ============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Header top layout */
.header-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

/* Title section */
.title-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.site-title {
    font-size: 40px;
    margin: 5px 0 0 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.site-subtitle {
    font-size: 20px;
    font-weight: 700;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Logo container */
.logo-container {
    padding-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.header-logo {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 15px;
}

.header-nav {
    grid-column: 1 / -1;
}

/* Desktop navigation */
.header-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 30px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.header-nav a:hover {
    background-color: rgba(255, 255, 255, 0.35);
    color: #2d3748;
    transform: translateY(-2px);
}

.header-nav a.active {
    background-color: rgba(255, 255, 255, 0.45);
    color: #2d3748;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px; /* responsive padding */
}

/* ============================================================
   GRID CONTENT
   ============================================================ */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    align-items: center;
    margin: 0 auto;
    padding: 40px 0;
    background: white;
}

.grid-image img {
    width: 220px;
    border-radius: 12px;
    margin-right: 20px;
    padding-left: 10px;
}

.grid-text {
    text-align: center;
    padding-right: 20px;
    position: relative;
    top: -80px;
}

/* ============================================================
   HERO IMAGE
   ============================================================ */
.hero-image img {
    width: 40%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding-top: 10px;
    display: block;
    margin-left: auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.subtitle_bold {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-weight: bold;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.equity-section {
    background: #f7fafc;
    padding: 80px 0;
}

.equity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.equity-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.equity-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.benefits-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: #4a5568;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.benefit-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #4a5568;
}

.org-benefits {
    background: #667eea;
    color: white;
}

.org-benefits .section-title h2,
.org-benefits .section-title p {
    color: white;
}

.org-benefits .benefit-card {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: white;
}

.org-benefits .benefit-card h3,
.org-benefits .benefit-card p {
    color: white;
}

.contact-section {
    padding: 80px 0;
    background: #f7fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {

    /* Navigation */
    .header-nav ul {
        display: flex;
        justify-content: space-around; /* spread links evenly */
        flex-wrap: nowrap;
        gap: 0;
        padding: 0 10px;
        overflow-x: auto; /* horizontal scroll if needed */
        -webkit-overflow-scrolling: touch;
    }

    .header-nav a {
        font-size: 1rem;
        padding: 6px 8px;
        white-space: nowrap; /* prevent wrapping */
    }

    /* Header layout stacking */
    .header-top {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .logo-container {
        justify-content: center;
        padding-top: 0;
    }

    /* Grid content stacks */
    .grid-container {
        grid-template-columns: 1fr;
        padding: 20px 0;
    }

    .grid-text {
        top: 0;
        padding: 10px;
    }

    .grid-image img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Hero image full width */
    .hero-image img {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Benefits & Equity grid stacks */
    .equity-grid,
    .benefits-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .subtitle_bold {
        font-size: 1.4rem;
    }
}
