/* Custom Modern Palette Rules Configuration */
:root {
    --primary-color: #1a3a3a;
    /* Dynamic Base Premium Teal Deep tint */
    --secondary-color: #dca842;
    /* Elegant Muted Gold Highlight tint */
    --bg-light: #f3f7f6;
    /* Minty Crisp Background Air */
    --text-dark: #111111;
    /* Pure Dark Slate */
    --text-muted: #556666;
    /* Secondary Information Text color */
    --white: #ffffff;
    --transition-standard: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Structural Global Overrides */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

/* Layout Container Wrapper utilities */
.section-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-standard);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--text-dark);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
    justify-content: center;
}

/* Placeholder Image Graphics Styles (No text/headings inside images) */
.bg-placeholder-1 {
    background: #cbdad5 url('../images/ser-1.png') no-repeat center center;
    background-size: cover;
}

.bg-placeholder-2 {
    background: #decba4 url('../images/ser-2.png') no-repeat center center;
    background-size: cover;
}

.bg-placeholder-3 {
    background: #b0c4de url('../images/ser-3.png') no-repeat center center;
    background-size: cover;
}

/* ================= HEADER STYLE RULES ================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(243, 247, 246, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-standard);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-standard);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-standard);
}

/* ================= HERO SECTION DESIGN ================= */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

/* Elegant Grid Multi-stagger column block avoids direct layout copying */
.hero-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    height: 480px;
}

.gallery-col {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.gallery-card {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    transition: var(--transition-standard);
}

.gallery-card:hover {
    transform: scale(1.03);
}

.col-top .gallery-card {
    height: 85%;
    align-self: flex-start;
}

.col-center .gallery-card {
    height: 100%;
}

.col-bottom .gallery-card {
    height: 85%;
    align-self: flex-end;
}

/* ================= ARTICLES GRID RULES ================= */
.articles-section {
    background-color: var(--white);
}

.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.article-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
}

.article-img {
    height: 320px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 20px;
}

.article-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.article-heading {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 12px;
    font-weight: 500;
}

.article-excerpt {
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
}

.article-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

/* ================= DONATE CALLOUT RULES ================= */
.donate-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 100px 24px;
    text-align: center;
}

.donate-container {
    max-width: 600px;
    margin: 0 auto;
}

.donate-box h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.donate-box p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ================= DYNAMIC CONTACT SECTION ================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-text {
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item span {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item a {
    font-size: 1.2rem;
    font-weight: 500;
}

.info-item a:hover {
    color: var(--primary-color);
}

.modern-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-standard);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

/* ================= ABOUT PAGE SPECIFIC UNIQUE LAYOUT ================= */
.about-hero-section {
    padding-top: 16px;
}

.custom-about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(26, 58, 58, 0.08);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 16px;
}

.about-main-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 400;
}

.about-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.about-body-text {
    color: var(--text-muted);
    line-height: 1.7;
}

.about-visual-block {
    height: 500px;
}

.about-image-card {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ================= FOOTER STRUCTURE RULES ================= */
.main-footer {
    background-color: var(--text-dark);
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand-side h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.footer-address {
    font-size: 0.95rem;
    opacity: 0.6;
}

.footer-links-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.social-links-wrapper {
    display: flex;
    gap: 24px;
}

.social-link {
    font-size: 0.95rem;
    opacity: 0.7;
}

.social-link:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.4;
}

/* ================= RESPONSIVE VIEW BREAKPOINTS ================= */

/* Tablet & Portrait Viewport Fixes */
@media (max-width: 992px) {

    .hero-container,
    .articles-grid,
    .contact-grid,
    .custom-about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-gallery {
        height: 380px;
    }

    .about-visual-block {
        height: 350px;
    }

    .footer-container {
        flex-direction: column;
        align-items: start;
    }

    .footer-links-side {
        align-items: start;
    }
}

/* Tablet & Smartphone Mobile Viewport Fixes */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 77px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 77px);
        background-color: var(--bg-light);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        align-items: flex-start;
        transition: var(--transition-standard);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .header-actions .btn {
        display: none;
        /* Hide primary action inside header container on tiny devices to avoid squeeze */
    }

    .hero-section {
        padding-top: 110px;
    }

    .modern-form {
        padding: 24px;
    }
}

/* ================= GET ARTICLES MODAL STYLING ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-standard);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-form {
    display: block;
}

.modal-form.hidden {
    display: none;
}

.checkbox-group-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-muted);
    user-select: none;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.modal-success-message {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.modal-success-message.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(26, 58, 58, 0.1);
    color: var(--primary-color);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 8px;
}

.modal-success-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.modal-success-message p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
}