/* --- ALATLANTIS VAST PARALLAX THEME --- */

:root {
    --gold-globe: #d4af37;  /* Golden Globe Gold */
    --olive-green: #808000; /* Greenish Olive */
    --light-bg: #fdfdfb;
    --gold: #d4af37;   /* Golden Globe Color */
    --olive: #556b2f;  /* Olive Green Color */
    --light: #fdfdfb;
}

/* Centering fix for all screen sizes (Desktop + Mobile) */
h1, h2, .np-page-title, .section-title {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 100%;
}

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

body {
    font-family: 'Times New Roman', serif;
    background-color: var(--light-bg);
    color: #333;
}

/* --- THE DYNAMIC BACKGROUND --- */
.hero-header {
    height: 100vh;
    background-image: url('alatlantis_background.jpg');
    background-size: cover; 
    background-position: center 0px; /* Starts at the very top (the dome) */
    background-attachment: scroll;   /* Essential for the JS to work */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

/* THE SLIM TRANSPARENT BOX */
.hero-text-block {
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 30px; /* Adjust this number: higher = rounder */
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 850px; 
    z-index: 5;
}

/* TEXT COLORING & SHADOWS */
.hero-text-block h1 {
    font-size: 2rem; 
    color: #ffffff; 
    text-shadow: 10px 10px 40px rgba(0,0,0,0.9); /* High contrast for visibility */
    margin: 0;
    text-transform: uppercase;
}

.olive-span { color: var(--olive); }
.peace-span { color: var(--gold); }

.hero-text-block p {
    font-size: 1rem;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0,0,0,1);
    margin: 10px 0 15px 0;
}

/* --- THE MAIN CONTENT AREA (FIXED) --- */
.main-container, .state-container, .accords-container, .np-container {
    max-width: 1100px;
    margin: 30px auto 40px auto !important; /* -80px pulls it higher; 40px adds bottom space */
    padding: 0px 40px 40px 40px !important; 
    background: #fff;
    position: relative;
    z-index: 10;
    border-radius: 15px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* Force titles to the top of the box and center them */
.main-container h1, 
.main-container h2, 
.section-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
    text-align: center !important;
}

/* --- 1. NAVIGATION (INTERACTIVE WITH LOGO) --- */
nav {
    display: flex;
    justify-content: space-between; /* Pushes logo to left, links to right/center */
    align-items: center;
    padding: 1px 40px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Container for the logo */
.logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 55px; /* Adjust height to fit your logo preference */
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05); /* Subtle pop effect on hover */
}

/* Container to keep links centered in the remaining space */
.nav-links {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    margin-right: 150px; /* Counter-balance for logo width to keep links perfectly centered */
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--olive); 
    transition: color 0.3s ease; 
}
.nav-links a {
    white-space: nowrap; /* Prevents titles from breaking into two lines */
    font-size: 0.8rem;    /* Slightly smaller font to fit all links comfortably */
}
nav a:hover {
    color: var(--gold); 
}

nav a.active {
    border-bottom: 2px solid var(--gold);
}
.gold-button {
    font-size: 1.1rem; /* This line controls the text size */
    background: var(--gold-globe);
    color: #fff;
    background: var(--gold-globe);
    color: var(--olive);
    padding: 14px 38px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    border: 2px solid var(--gold-globe);
    border-radius: 12px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gold-button:hover {
    /* THE SHINING GOLD GRADIENT */
    background: linear-gradient(135deg, #ffffff 0%, #fccd4d 45%, #f8b500 55%, #ffffff 100%);
    
    color: var(--olive); /* Olive Green text on top of the shine */
    transform: scale(1.1);
    border-color: var(--olive);
    
    /* INTENSE GLOW */
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.8);
    cursor: pointer;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    padding: 40px;
    border: 1px solid #eee;
    text-align: center;
}

.stat-card h3 { color: var(--gold-globe); font-size: 2.5rem; }

footer {
    background: #1a2511;
    color: #fff;
    text-align: center;
    padding: 60px;
}
/* --- Humanitarian-crisis Page Specific Styles --- */



.section-title {
    color: #556b2f;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-subtitle {
    color: #777;
    font-size: 1rem;
    margin-bottom: 40px;
}

.intro-text {
    max-width: 850px;
    margin: 0 auto 50px auto;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* Image Gallery Grid */
.crisis-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.crisis-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
}

.crisis-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.crisis-caption {
    padding: 20px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.crisis-caption strong {
    display: block;
    color: #556b2f;
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Religious Quotes Section */
.quote-container {
    background: #fdfdfd;
    padding: 60px 20px;
    border-top: 1px solid #eee;
    margin-top: 60px;
}

.quote-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: #444;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

blockquote span {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    color: #888;
    margin-top: 10px;
    text-transform: uppercase;
}/* --- Humanitarian-crisis Page Updates --- */

/* 1. Center the Main Titles */
.section-title,
.section-subtitle {
    text-align: center;
}

/* 2. Interactive Crisis Cards (Hover Effect) */
.crisis-card {
    /* (These base styles ensure smooth animation) */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer; /* Changes mouse to pointer to indicate interactivity */
}

/* The Interactive Effect on Hover */
.crisis-card:hover {
    /* Lifts the card slightly */
    transform: translateY(-8px);
    
    /* Deepens the shadow for a 3D effect */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
/* GOVERNMENT DOCUMENT STYLE */
.gov-body {
    background-color: #f4f4f4;
    color: #333;
    font-family: "Times New Roman", Times, serif; /* Formal document font */
}

.gov-nav {
    background-color: #1a1a1a; /* Keep nav dark for consistency */
}

.state-header {
    background-color: #003366; /* Official State Dept Blue */
    color: white;
    padding: 30px 0;
    font-family: Arial, sans-serif;
}

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

.state-container h1 {
    font-size: 2.5rem;
    font-weight: normal;
    margin: 0;
}

.document-container {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.document-title {
    text-align: center;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 40px;
    color: #222;
}

.document-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.document-text {
    flex: 2;
    font-size: 1.1rem;
    line-height: 1.8;
}

.document-text p {
    margin-bottom: 20px;
}

.document-image {
    flex: 1;
    text-align: center;
}

.logo-placeholder {
    background: #111;
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
}

.document-downloads {
    margin-top: 50px;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
}

.download-link {
    color: #b30000; /* Official red link color */
    text-decoration: underline;
}
/* Solomon Accords Page Specific Styles */
.accords-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 25px; /* Matched to NP */
    display: flex;
    gap: 30px; /* Matched to NP */
    align-items: flex-start; /* Required for sticky */
}

.accords-text {
    flex: 1;
    font-family: 'Times New Roman', Times, serif; 
    font-size: 1.15rem; /* Matched to NP */
    line-height: 1.3;   /* Matched to NP */
    text-align: justify;
    color: #333;        /* Matched to NP */
}

.accords-text h1 {
    text-align: center;
    font-size: 3rem;              /* Matched to NP */
    color: var(--olive-green);    /* Matched to NP */
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: 0px;          /* Matched to NP */
}

.accords-text p {
    margin-bottom: 20px;
}

.accords-image {
    flex: 0 0 400px;
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between image and button */
}

.accords-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;                         /* Matched to NP */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);   /* Matched to NP */
    border: 2px solid var(--gold-globe);        /* Matched to NP */
}

.accords-download {
    text-align: center;
    width: 100%;
}

.accords-download .gold-button {
    width: 100%; /* Makes the button as wide as the image */
    box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .accords-container {
        flex-direction: column;
    }
    .accords-image {
        flex: auto;
        width: 100%;
        position: static;
        order: -1; /* Puts image above text on mobile */
        margin-bottom: 30px;
    }
}
/* --- NEW PALESTINE PAGE (UPDATED) --- */
.np-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 25px;
}

.np-page-title {
    text-align: center;
    font-size: 3rem;
    color: var(--olive-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.np-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.np-text {
    flex: 1;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.np-text h2 {
    color: var(--gold-globe);
    font-size: 2rem;
    margin-bottom: 20px;
}

.np-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.np-media {
    flex: 1;
}

.np-media img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid var(--gold-globe);
}

/* Responsive Design for Mobile */
@media (max-width: 900px) {
    .np-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    .np-reverse {
        flex-direction: column; /* Keeps image under text on mobile */
    }
    .np-media {
        width: 100%;
        order: 2; /* Ensures images always appear below the text on mobile */
    }
    .np-text {
        order: 1;
    }
}
/* Style for the zoomable image cursor */
.zoomable {
    cursor: zoom-in;
    transition: 0.3s;
}

.zoomable:hover {
    opacity: 0.8;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.modal-content {
      margin: auto;
    display: block;
    width: 95%;           /* bigger on mobile */
    max-width: 1000px;
    animation: fadeUp 0.70s ease-out;
}

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

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
/* --- Simplified Contact Page Styles --- */
.contact-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 25px;
    text-align: center;
}

.contact-intro {
    font-family: 'Times New Roman', serif;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #444;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.info-block {
    padding-bottom: 25px;
    width: 100%;
    max-width: 450px;
    border-bottom: 1px solid #ddd;
}

.info-block strong {
    color: var(--olive-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.info-block a {
    color: var(--gold-globe);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    transition: 0.3s ease;
}

.info-block a:hover {
    color: var(--olive-green);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .info-block a {
        font-size: 1.4rem;
    }
}
/* --- Homepage Initiative Image Grid --- */
.initiative-section {
    text-align: center;
    padding: 0px 0px;
}

.section-title {
    color: var(--olive-green);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #444;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.initiative-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.initiative-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    border: 2px solid var(--gold-globe);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* The Hover Animation */
.initiative-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.initiative-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.initiative-card:hover img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: var(--light-bg);
    padding: 15px;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-top: 2px solid var(--gold-globe);
}
/* --- GLOBAL MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 850px) {
    /* 1. Fix the Navigation Overflow (Removes the blank white space) */
    nav {
        flex-direction: column;
        padding: 15px;
    }
    .nav-links {
        margin-right: 0;
        flex-wrap: wrap;
        margin-top: 15px;
    }
    .nav-links a {
        white-space: normal; /* Allows text to wrap */
        margin: 5px 10px;
        line-height: 2;
    }

    /* 2. Fix the Hero Box and Background Centering */
    .hero-text-block {
        margin: 0 15px;
        padding: 20px;
    }
    .hero-text-block h1 {
        font-size: 1.5rem; /* Slightly smaller for mobile */
    }

    /* 3. Ensure Main Containers don't overflow */
    .main-container {
        padding: 30px 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* 4. Stack the Initiative Cards */
    .initiative-grid {
        flex-direction: column;
        align-items: center;
    }
    .initiative-card {
        min-width: 100%; /* Makes cards full width on mobile */
    }
}
.accords-container .accords-text h1 {
    font-size: 1.6rem;
}
/* --- COMPREHENSIVE MOBILE FIXES --- */

/* 1. Prevent any right-side cutoff (Fixes Solomon Accords) */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

@media (max-width: 850px) {
    /* 2. Shrink Logo and Navigation Space */
    nav { 
        padding: 5px 15px; 
    }
    .nav-logo { 
        height: 50px; /* Makes logo much smaller */
        max-width: 100%;
    }
    .nav-links { 
        margin-top: 5px; 
    }
    .nav-links a { 
        margin: 5px; 
        font-size: 0.9rem; 
        line-height: 1.2;
    }

    /* 3. Center and Shrink All Page Titles */
    h1, h2, .np-page-title, .section-title {
        font-size: 1.8rem; /* Smaller text */
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        padding-left: 10px;
        padding-right: 10px;
        word-wrap: break-word;
    }
    /* New Palestine - make h2 subheadings smaller than h1 on mobile */
.np-container .np-text h2 {
    font-size: 1.1rem;
    padding-left: 0;
    padding-right: 0;
    letter-spacing: normal;
}
    /* Solomon Accords page - smaller h1 title */
.accords-container .accords-text h1 {
    font-size: 1.4rem;
      margin-top: -60px; /* moves title up — adjust as needed */
}

    /* 4. Fix Text Cutoff and Reduce Spacing Globally */
    .main-container, .contact-container, section, article {
        width: 100% !important;
        padding: 20px 15px !important;
        box-sizing: border-box;
    }

    /* 5. Tighter general text spacing */
    p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}
/* Removes the hidden default margin above titles */
.main-container h1, 
.main-container h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
