/* =========================
   OCOCHA MALAWI WEBSITE CSS
   ========================= */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; background: #f4f7f9; color: #333; }

nav { position: fixed; top: 0; left: 0; width: 100%; background: rgba(0, 90, 0, 0.95); display: flex; justify-content: space-between; align-items: center; padding: 8px 45px; z-index: 1000; }
.logo-img { height: 65px; width: auto; max-width: 260px; object-fit: contain; display: block; }
nav ul { display: flex; list-style: none; gap: 28px; }
nav ul li a { color: white; text-decoration: none; font-weight: bold; font-size: 17px; }
nav ul li a:hover { color: orange; }

.hero { min-height: 100vh; background: linear-gradient(rgba(0, 50, 0, 0.82), rgba(0, 50, 0, 0.82)), url("images/hero-new-new.jpg"); background-size: cover; background-position: center; background-repeat: no-repeat; display: flex; justify-content: center; align-items: center; text-align: center; color: white; padding: 120px 40px 60px; }
.hero h1 { font-size: 52px; max-width: 950px; margin: 0 auto 20px; line-height: 1.2; }
.hero p { font-size: 24px; margin-bottom: 30px; }
.btn { display: inline-block; background: orange; color: white; padding: 15px 35px; text-decoration: none; border-radius: 6px; font-size: 18px; margin: 5px; }
.btn:hover { background: darkorange; }

.about, .identity, .values, .programmes, .impact { padding: 90px 8%; }
.about, .identity { background: white; text-align: center; }
.values, .programmes { background: #f5f5f5; }
.about h2, .identity h2, .values h2, .programmes h2, .impact h2 { text-align: center; color: darkgreen; font-size: 42px; margin-bottom: 35px; }
.about p { max-width: 950px; margin: auto; font-size: 20px; line-height: 1.8; color: #555; }
.identity-grid, .values-grid, .programme-grid, .impact-grid { display: grid; gap: 30px; }
.identity-grid, .values-grid { grid-template-columns: repeat(3, 1fr); }
.programme-grid { grid-template-columns: repeat(2, 1fr); }
.identity-card, .value-card, .card, .impact-card { background: white; padding: 35px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); transition: 0.3s; }
.identity-card:hover, .value-card:hover, .card:hover, .impact-card:hover { transform: translateY(-8px); }
.identity-card h3, .value-card h3, .card h3 { color: darkgreen; margin-bottom: 15px; }
.identity-card p, .value-card p, .card p { font-size: 18px; line-height: 1.7; color: #555; }

.impact { background: #0d5f1c; color: white; text-align: center; }
.impact h2 { color: white; }
.impact-intro { max-width: 900px; margin: 0 auto 55px; font-size: 20px; line-height: 1.8; }
.impact-grid { grid-template-columns: repeat(3, 1fr); }
.impact-card { color: #333; }
.impact-card h3 { font-size: 46px; color: #0b6b2b; margin-bottom: 15px; }
.impact-card p { font-size: 18px; line-height: 1.7; }

.featured-projects { padding: 90px 8%; background: white; }
.featured-projects h2 { text-align: center; color: darkgreen; font-size: 42px; margin-bottom: 20px; }
.projects-intro { max-width: 850px; margin: 0 auto 50px; text-align: center; font-size: 19px; line-height: 1.7; color: #555; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.project-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; height: 100%; }
.project-card:hover { transform: translateY(-8px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); }
.project-card img { width: 100%; height: 230px; object-fit: cover; display: block; }
.project-card-content { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.project-category { display: inline-block; margin-bottom: 14px; color: #0b6b2b; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.8px; }
.project-card h3 { color: #174d24; font-size: 24px; margin-bottom: 15px; line-height: 1.3; }
.project-card p { color: #555; font-size: 17px; line-height: 1.7; margin-bottom: 22px; }
.project-link { color: #0b6b2b; text-decoration: none; font-weight: bold; margin-top: auto; }
.project-link:hover { color: darkorange; }

.project-page-hero { min-height: 78vh; padding: 150px 8% 80px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; background-size: cover; background-position: center; background-repeat: no-repeat; }
.education-hero { background-image: linear-gradient(rgba(0, 55, 0, 0.76), rgba(0, 55, 0, 0.76)), url("images/project-education.jpg"); }
.project-page-hero-content { max-width: 950px; }
.project-page-category, .section-label { display: inline-block; color: #d97706; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.project-page-hero h1 { font-size: 56px; line-height: 1.15; margin-bottom: 22px; }
.project-page-hero p { max-width: 800px; margin: 0 auto 30px; font-size: 21px; line-height: 1.7; }
.project-overview { padding: 90px 8%; background: white; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 55px; align-items: center; }
.project-overview h2, .project-objectives h2, .project-approach h2, .project-impact h2, .project-cta h2 { color: #145523; font-size: 40px; line-height: 1.25; margin-bottom: 25px; }
.project-overview p { color: #555; font-size: 18px; line-height: 1.8; margin-bottom: 18px; }
.project-overview-image img { width: 100%; height: 430px; object-fit: cover; border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14); }
.project-objectives { padding: 90px 8%; background: #f4f7f5; text-align: center; }
.objectives-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.objective-card { background: white; padding: 32px 25px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09); }
.objective-card h3 { color: #145523; margin-bottom: 15px; font-size: 21px; }
.objective-card p { color: #555; line-height: 1.7; }
.project-approach { padding: 90px 8%; background: white; }
.approach-content { max-width: 950px; margin: auto; }
.approach-content ul { list-style: none; margin-top: 30px; }
.approach-content li { position: relative; padding: 18px 20px 18px 52px; margin-bottom: 15px; background: #f4f7f5; border-left: 5px solid #0b6b2b; border-radius: 8px; color: #444; font-size: 18px; line-height: 1.7; }
.approach-content li::before { content: "✓"; position: absolute; left: 20px; top: 17px; color: #0b6b2b; font-weight: bold; }
.project-impact { padding: 90px 8%; background: #0d5f1c; color: white; text-align: center; }
.project-impact h2 { color: white; }
.light-label { color: #ffbf47; }
.project-impact-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.project-impact-card { background: white; color: #333; padding: 35px 25px; border-radius: 12px; }
.project-impact-card strong { display: block; color: #0b6b2b; font-size: 38px; margin-bottom: 15px; }
.project-impact-card span { display: block; font-size: 17px; line-height: 1.6; }
.project-cta { padding: 90px 8%; background: #f4f7f5; text-align: center; }
.project-cta p { max-width: 800px; margin: 0 auto 30px; color: #555; font-size: 19px; line-height: 1.8; }
.secondary-btn { background: #0b6b2b; }
.secondary-btn:hover { background: #074f20; }
.simple-footer { padding: 35px 8%; background: #073d19; color: white; text-align: center; }
.simple-footer p { margin: 7px 0; line-height: 1.6; }

@media (max-width: 1000px) {
    .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-overview { grid-template-columns: 1fr; }
    .objectives-grid, .project-impact-grid { grid-template-columns: repeat(2, 1fr); }
    .project-page-hero h1 { font-size: 44px; }
}

@media (max-width: 900px) {
    nav { flex-direction: column; padding: 10px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 10px; }
    .hero h1 { font-size: 38px; }
    .hero p { font-size: 20px; }
    .identity-grid, .values-grid, .programme-grid, .impact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .projects-grid, .objectives-grid, .project-impact-grid { grid-template-columns: 1fr; }
    .project-page-hero { min-height: 70vh; padding-top: 190px; }
    .project-page-hero h1 { font-size: 35px; }
    .project-page-hero p { font-size: 18px; }
    .project-overview, .project-objectives, .project-approach, .project-impact, .project-cta { padding: 70px 6%; }
    .project-overview-image img { height: 300px; }}

/* GALLERY SECTION */

.gallery-section {
    padding: 90px 8%;
    background: #f4f7f5;
}

.gallery-section h2 {
    text-align: center;
    color: darkgreen;
    font-size: 42px;
    margin-bottom: 20px;
}

.gallery-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
    font-size: 19px;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== OCOCHA GALLERY ===== */

.gallery-section {
    padding: 90px 8%;
    background: #f4f7f5;
    text-align: center;
}

.gallery-section h2 {
    color: darkgreen;
    font-size: 42px;
    margin-bottom: 20px;
}

.gallery-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 19px;
    line-height: 1.7;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   FINAL GALLERY LAYOUT
   ========================= */

.gallery-section {
    padding: 90px 8%;
    background: #f4f7f5;
    text-align: center;
}

.gallery-section h2 {
    color: darkgreen;
    font-size: 42px;
    margin-bottom: 20px;
}

.gallery-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 19px;
    line-height: 1.7;
}

.gallery-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 25px !important;
}

.gallery-item {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   LATEST NEWS SECTION
   ========================= */

.news-section {
    padding: 90px 8%;
    background: white;
}

.news-section h2 {
    text-align: center;
    color: darkgreen;
    font-size: 42px;
    margin-bottom: 20px;
}

.news-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
    font-size: 19px;
    line-height: 1.7;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.news-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.news-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    color: darkorange;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.news-card h3 {
    color: #174d24;
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.news-card p {
    color: #555;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.news-link {
    margin-top: auto;
    color: #0b6b2b;
    font-weight: bold;
    text-decoration: none;
}

.news-link:hover {
    color: darkorange;
}

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   OUR TEAM SECTION
   ========================= */

.team-section {
    padding: 90px 8%;
    background: #f4f7f5;
    text-align: center;
}

.team-section h2 {
    color: darkgreen;
    font-size: 42px;
    margin-bottom: 20px;
}

.team-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    color: #555;
    font-size: 19px;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.team-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.team-content {
    padding: 28px;
}

.team-content h3 {
    color: #174d24;
    font-size: 24px;
    margin-bottom: 8px;
}

.team-content span {
    display: block;
    color: darkorange;
    font-weight: bold;
    margin-bottom: 15px;
}

.team-content p {
    color: #555;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FINAL TEAM LAYOUT FIX
   ========================= */

.team-section {
    padding: 90px 8% !important;
    background: #f4f7f5;
    text-align: center;
}

.team-grid {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 30px !important;
    align-items: stretch;
}

.team-card {
    width: 100% !important;
    max-width: 100% !important;
    background: white;
    border-radius: 14px;
    overflow: hidden !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-card img {
    width: 100% !important;
    height: 280px !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center top;
    display: block !important;
}

.team-content {
    padding: 25px !important;
    text-align: center;
}

.team-content h3 {
    color: #174d24;
    font-size: 23px;
    margin-bottom: 8px;
}

.team-content span {
    display: block;
    color: darkorange;
    font-weight: bold;
    margin-bottom: 15px;
}

.team-content p {
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================
   CONTACT SECTION
   ========================= */

.contact-section {
    padding: 90px 8%;
    background: white;
}

.contact-header {
    text-align: center;
    margin-bottom: 55px;
}

.contact-header h2 {
    color: darkgreen;
    font-size: 42px;
    margin-bottom: 20px;
}

.contact-header p {
    max-width: 850px;
    margin: auto;
    color: #555;
    font-size: 19px;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
}

.contact-info,
.contact-form {
    padding: 40px;
    border-radius: 14px;
    background: #f4f7f5;
}

.contact-info h3,
.contact-form h3 {
    color: #174d24;
    font-size: 28px;
    margin-bottom: 25px;
}

.contact-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-detail {
    margin-bottom: 22px;
}

.contact-detail strong {
    display: block;
    color: #0b6b2b;
    margin-bottom: 6px;
}

.contact-detail span {
    color: #555;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.contact-btn {
    background: #0b6b2b;
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.contact-btn:hover {
    background: darkorange;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MAIN FOOTER
   ========================= */

.main-footer {
    background: #073d19;
    color: white;
    padding: 70px 8% 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
}

.footer-column h3 {
    color: #ffbf47;
    font-size: 21px;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column li {
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #e6e6e6;
    text-decoration: none;
}

.footer-column a:hover {
    color: orange;
}

.footer-logo {
    width: 190px;
    height: auto;
    margin-bottom: 20px;
    background: white;
    padding: 8px;
    border-radius: 6px;
}

.footer-about p {
    margin-bottom: 15px;
}
.footer-tagline {
    color: #ffbf47 !important;
    font-weight: bold;
    font-size: 14px !important;
    white-space: nowrap;
}
.footer-tagline {
    color: #ffbf47 !important;
    font-weight: bold;
}

.footer-contact-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 20px;
    background: orange;
    color: white !important;
    border-radius: 5px;
    font-weight: bold;
}

.footer-contact-btn:hover {
    background: darkorange;
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    color: #ddd;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================
   MOBILE HAMBURGER MENU
   ========================= */

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 34px;
    cursor: pointer;
}

@media (max-width: 768px) {

    nav {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 18px;
    }

    .logo-img {
        height: 55px;
        margin: 0;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background: #07551d;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 12px 0;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 13px 20px;
        font-size: 16px;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: orange;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 36px !important;
        line-height: 1.25 !important;
    }

    .hero p {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }
}

/* MOBILE SECTION SPACING FIX */

@media (max-width: 768px) {

    .values {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .programmes {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .values-grid,
    .programme-grid {
        gap: 20px !important;
    }

    .value-card,
    .card {
        min-height: auto !important;
    }

    .programmes h2 {
        margin-bottom: 35px !important;
    }
}

@media (max-width: 768px) {

    .impact {
        padding-bottom: 55px !important;
    }

    .featured-projects {
        padding-top: 55px !important;
    }

    .featured-projects h2 {
        margin-bottom: 20px !important;
    }

    .projects-intro {
        margin-bottom: 35px !important;
    }
}

@media (max-width: 768px) {

    .featured-projects {
        padding-bottom: 50px !important;
    }

    .gallery-section {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
    }

    .gallery-section h2 {
        margin-bottom: 20px !important;
    }

    .gallery-intro {
        margin-bottom: 35px !important;
    }
}

/* MOBILE NEWS TO TEAM SPACING FIX */

@media (max-width: 768px) {

    .news-section {
        padding-bottom: 50px !important;
    }

    .team-section {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
    }

    .team-section h2 {
        margin-bottom: 20px !important;
    }

    .team-intro {
        margin-bottom: 35px !important;
    }

    .news-grid {
        gap: 25px !important;
    }
}

/* =========================
   FINAL MOBILE SECTION GAP FIX
   ========================= */

@media (max-width: 768px) {

    /* Team to Contact */
    .team-section {
        padding-bottom: 40px !important;
    }

    .contact-section {
        padding-top: 45px !important;
        padding-bottom: 40px !important;
    }

    .contact-header {
        margin-bottom: 35px !important;
    }

    /* Contact cards */
    .contact-grid {
        gap: 25px !important;
    }

    .contact-info,
    .contact-form {
        margin: 0 !important;
    }

    /* Contact to Footer */
    .main-footer {
        margin-top: 0 !important;
        padding-top: 50px !important;
    }
}

/* =========================
   NEWS ARTICLE PAGES
   ========================= */

.news-page-hero {
    min-height: 72vh;
    padding: 150px 8% 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.news-page-hero-content {
    max-width: 900px;
}

.news-page-category {
    display: inline-block;
    margin-bottom: 16px;
    color: #ffbf47;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-page-hero h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.news-page-hero p {
    max-width: 760px;
    margin: 0 auto 18px;
    font-size: 21px;
    line-height: 1.7;
}

.news-page-date {
    font-weight: bold;
    color: #f5f5f5;
}

.news-article {
    padding: 90px 8%;
    background: white;
}

.news-article-content {
    max-width: 900px;
    margin: auto;
}

.news-article-content p {
    color: #555;
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 22px;
}

.news-lead {
    font-size: 21px !important;
    color: #333 !important;
    font-weight: bold;
}

.news-article-content h2 {
    color: #145523;
    font-size: 32px;
    margin: 38px 0 18px;
}

.news-article-content blockquote {
    margin: 35px 0;
    padding: 25px 30px;
    background: #f4f7f5;
    border-left: 5px solid #0b6b2b;
    color: #174d24;
    font-size: 20px;
    line-height: 1.7;
    font-style: italic;
}

.news-article-actions {
    margin-top: 40px;
    text-align: center;
}

@media (max-width: 650px) {
    .news-page-hero {
        min-height: 65vh;
        padding: 170px 6% 70px;
    }

    .news-page-hero h1 {
        font-size: 35px;
    }

    .news-page-hero p {
        font-size: 18px;
    }

    .news-article {
        padding: 65px 6%;
    }
}

/* =========================
   POLICY PAGES
   ========================= */

.policy-hero {
    min-height: 55vh;
    padding: 150px 8% 80px;
    background: linear-gradient(135deg, #06451c, #0b6b2b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.policy-hero div {
    max-width: 850px;
}

.policy-hero span {
    color: #ffbf47;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.policy-hero h1 {
    font-size: 54px;
    margin: 15px 0 20px;
}

.policy-hero p {
    font-size: 20px;
    line-height: 1.7;
}

.policy-content {
    max-width: 950px;
    margin: auto;
    padding: 90px 8%;
    background: white;
}

.policy-updated {
    color: #777 !important;
    font-style: italic;
}

.policy-content h2 {
    color: #145523;
    font-size: 29px;
    margin: 38px 0 15px;
}

.policy-content p {
    color: #555;
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.policy-actions {
    margin-top: 50px;
    text-align: center;
}

@media (max-width: 650px) {

    .policy-hero {
        min-height: 50vh;
        padding: 160px 6% 60px;
    }

    .policy-hero h1 {
        font-size: 38px;
    }

    .policy-content {
        padding: 65px 7%;
    }

    .policy-content h2 {
        font-size: 25px;
    }
}

/* =========================
   FOOTER SOCIAL MEDIA
   ========================= */

.footer-social-title {
    margin-top: 20px;
    margin-bottom: 12px;
    color: #ffbf47;
    font-size: 18px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-social a {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.linkedin-btn {
    background: #0A66C2;
    color: white !important;
}

.linkedin-btn:hover {
    background: #004182;
}

/* CONTACT MAP */

.contact-map {
    margin-top: 50px;
    text-align: center;
}

.contact-map h3 {
    color: #174d24;
    font-size: 28px;
    margin-bottom: 12px;
}

.contact-map p {
    max-width: 750px;
    margin: 0 auto 25px;
    color: #555;
    font-size: 17px;
    line-height: 1.7;
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .contact-map {
        margin-top: 35px;
    }

    .contact-map iframe {
        height: 340px;
    }
}

/* =========================
   INTERNAL PAGE MOBILE NAVIGATION
   ========================= */
@media (max-width: 768px) {
    body:has(.project-page-hero) nav,
    body:has(.news-page-hero) nav,
    body:has(.policy-hero) nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .project-page-hero,
    .news-page-hero,
    .policy-hero {
        scroll-margin-top: 80px;
    }
}


/* FINAL ACCESSIBILITY AND PERFORMANCE REFINEMENTS */
:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
