@font-face {
    font-family: 'myfont';
    src: url('/bootstrap/font/Montserrat-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'myfontbold';
    src: url('/bootstrap/font/Montserrat-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'myfont', sans-serif;
    background: #f8f9fa;
}

.welcome-hero {
    position: relative;
    width: 100%;
    min-height: 650px;
    height: min(760px, 80vh);
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #155724;
    color: #fff;
    isolation: isolate;
}

/* Background carousel fills the entire hero */

.welcome-background-carousel {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.welcome-background-carousel,
.welcome-background-carousel .carousel-inner,
.welcome-background-carousel .carousel-item {
    width: 100%;
    height: 100%;
}

.welcome-background-carousel .carousel-item {
    overflow: hidden;
}

/* Replace these image paths with your own images later */

.welcome-background-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
}

/* Image placeholders */

.welcome-bg-1 {
    background-image: url("../images/home.jpg");
}

.welcome-bg-2 {
    background-image: url("../images/home1.jpg");
}

.welcome-bg-3 {
    background-image: url("../images/home2.png");
}

/* Only the background images transition */

.welcome-background-carousel .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

/* Fixed overlay remains in place */

.welcome-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(35, 35, 35, 0.82) 0%,
        rgba(42, 42, 42, 0.74) 50%,
        rgba(50, 50, 50, 0.62) 100%
    );
}

/* Fixed welcome content */

.welcome-hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 70px 35px;
    display: flex;
    align-items: center;
}

.welcome-hero-content {
    width: 100%;
    max-width: 760px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffdc70;
    font-family: 'myfontbold', sans-serif;
    font-size: 12px;
    letter-spacing: 1.2px;
    backdrop-filter: blur(5px);
}

.welcome-hero-content h1 {
    margin: 0 0 20px;
    color: #fff;
    font-family: 'myfontbold', sans-serif;
    font-size: clamp(40px, 5vw, 66px);
    font-weight: normal;
    line-height: 1.13;
    letter-spacing: -1px;
}

.welcome-hero-content h1 span {
    color: #ffdc70;
}

.welcome-subtitle {
    margin: 0 0 15px;
    color: #fff;
    font-family: 'myfontbold', sans-serif;
    font-size: 20px;
}

.welcome-description {
    max-width: 630px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.91);
    font-size: 14px;
    line-height: 1.9;
    text-align: justify;
}

.welcome-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.welcome-btn {
    min-height: 48px;
    padding: 14px 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 6px;
    font-family: 'myfontbold', sans-serif;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}

.welcome-btn:hover {
    transform: translateY(-3px);
}

.welcome-btn-primary {
    color: #173d25;
    background: #ffdc70;
    border: 1px solid #ffdc70;
}

.welcome-btn-primary:hover {
    color: #173d25;
    background: #f3c632;
    border-color: #f3c632;
}

.welcome-btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.welcome-btn-outline:hover {
    color: #155724;
    background: #fff;
}


.barangay-message-section {
    width: 100%;
    padding: 60px 20px;
    background: #f8f9fa;
}

.barangay-message-container {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 70px;
}


.barangay-message-image {
    flex: 1;
    min-width: 0;

}

.barangay-message-image img {
    display: block;
    width: 95%;
    height: 480px;
    border-radius: 16px;
    object-position: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.barangay-message-content {
    flex: 1;
    min-width: 0;
}

.barangay-message-content h2 {
    margin: 0 0 28px;
    font-family: 'myfontbold', sans-serif;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.08;
    font-weight: normal;
}

.barangay-message-content p {
    margin: 0 0 22px;
    color: #5f5f5f;
    font-family: 'myfont', sans-serif;
    font-size: 14px;
    line-height: 1.9;
    text-align: justify;
}

.barangay-message-content p strong {
    font-family: 'myfontbold', sans-serif;
}

.barangay-message-quote {
    margin-top: 35px;
    padding: 8px 0 8px 24px;
    border-left: 5px solid #ffc107;
}

.barangay-message-quote blockquote {
    margin: 0 0 8px;
    color: #222;
    font-family: 'myfont', sans-serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1.5;
}

.barangay-message-quote span {
    color: #666;
    font-family: 'myfont', sans-serif;
    font-size: 14px;
}

.projects-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.projects-section {
    width: 100%;
    padding: 60px 20px;
    background: #ffffff;
}

.projects-container {
    max-width: 1250px;
    margin: 0 auto;
}


.projects-header {
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.projects-header h2 {
    margin: 0 0 12px;
    font-family: 'myfontbold', sans-serif;
    font-size: 40px;
    position: relative;
    display: inline-block;
}

.projects-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
}

.projects-header p {
    max-width: 700px;
    margin: 25px 0 0;
    color: #666;
    font-family: 'myfont', sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(37, 145, 71, 0.2);
    cursor: pointer;
}

.project-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 20px;
}

.project-card-title {
    font-size: 17px;
    font-family: 'myfontbold', sans-serif;
    color: #1b7f3b;
    margin-bottom: 12px;
}

.project-card-description {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'myfont', sans-serif;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.project-card-date {
    font-size: 12px;
    color: #999;
    font-family: 'myfont', sans-serif;
}

.project-card-link {
    color: #1b7f3b;
    font-size: 13px;
    font-family: 'myfontbold', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-card-link:hover {
    color: #145a2b;
}

.project-card-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.project-status-label {
    color: #666;
}

.project-status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.project-status-upcoming {
    color: #856404;
    background: #fff3cd;
}

.project-status-ongoing {
    color: #155724;
    background: #d4edda;
}

.project-status-completed {
    color: #155724;
    background: #c3e6cb;
}

.project-status-on-hold {
    color: #721c24;
    background: #f8d7da;
}

/* Project budget */
.project-card-budget {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
    color: #666;
    font-size: 13px;
}

.project-card-budget i {
    color: #1b7f3b;
    margin-right: 3px;
}

.project-card-budget strong {
    color: #1b7f3b;
    font-family: 'myfontbold', sans-serif;
}

.project-card-location {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.project-card-location i {
    color: #1b7f3b;
    margin-top: 3px;
}

/* Project Footer */
.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.project-card-date {
    color: #777;
    font-size: 12px;
}

.project-card-link {
    color: #1b7f3b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.project-card-link:hover {
    color: #145c2b;
    text-decoration: none;
}

.projects-view-all {
    display: flex;
    justify-content: center;
    margin-top: 35px;
}

.projects-view-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: #1b7f3b;
    color: #fff;
    border: 2px solid #1b7f3b;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}


.projects-view-all-btn:hover i {
    transform: translateX(4px);
}

.projects-view-all-btn:hover {
    background-color: #145c2b;
    border-color: #145c2b;
    color: #fff;
}

@media (max-width: 576px) {
    .project-card-footer {
        align-items: flex-start;
    }
}

.officials-section {
    width: 100%;
    padding: 60px 40px;
    background: #155724;
}

.officials-container {
    max-width: 1250px;
    margin: 0 auto;
}


.officials-header {
    margin-bottom: 25px;
    text-align: center;
}

.officials-header h2 {
    margin: 0;
    font-size: 35px;
    font-family: 'myfontbold', sans-serif;
    color: white;
}

.officials-header span {
    display: block;
    width: 70px;
    height: 4px;
    margin: 10px auto 0;
    background: #f4c430;
    border-radius: 5px;

}

.officials-header p {
    margin-top: 15px;
    color: white;
    font-size: 14px;
}


.officials-level {
    display: flex;
    justify-content: center;
    align-items: center;
}


.officials-top {
    margin-bottom: 30px;
}

.official-main {
    width: 300px;
    margin: 0 auto 55px;
}


.officials-admin {
    width: 600px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  
}

.official-card {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.official-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.official-image {
    width: 100%;
    height: 240px;
    padding: 20px 20px 0;
    overflow: hidden;
    background: #ffffff;
}

.official-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: center;
    border-radius: 10px;
}


.official-info {
    padding: 15px 10px 20px;
    text-align: center;
}

.official-info h3 {
    margin: 0;
    color: #176b3a;
    font-size: 17px;
    font-weight: 700;
}

.official-position {
    margin: 4px 0 6px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.official-committee {
    margin: 0;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.officials-subtitle {
    text-align: left;
    margin-bottom: 30px;
}

.officials-subtitle h3 {
    margin: 0 0 8px;
    font-family: 'myfontbold', sans-serif;
    color: #333;
    font-size: 25px;
}

.officials-subtitle p {
    margin: 0;
    color: #777;
    font-family: 'myfont', sans-serif;
    font-size: 13px;
}

.kagawad-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.kagawad-grid .official-card {
    position: relative;
}


.sk-title {
    margin-bottom: 30px;
}

.sk-level {
    margin-bottom: 20px;
}

.official-sk {
    width: 300px;
}

.news-events-section {
    padding: 60px 40px;
    background: #fff;
}

.news-events-container{
    max-width: 1250px;
    margin: 0 auto;
}

.news-events-section .section-header {
    width: 100%;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;


}

.news-events-section .section-header h2 {
    font-size: 35px;
    font-family: 'myfontbold', sans-serif;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.news-events-section .section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    left: auto;
    width: 100px;
    height: 4px;
    background: #ffc107;
    border-radius: 2px;
}

.news-events-section .section-header p {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    text-align: right;
    max-width: 100%;
}

.news-carousel-wrapper {
    overflow: hidden;
}

.news-grid {
    max-width: 1250px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 5px 20px rgba(37, 145, 71, 0.2);
}

.news-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-content {
    padding: 20px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1b7f3b;
    margin-bottom: 12px;
    font-family: 'myfontbold', sans-serif;
}

.news-card-description {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'myfontbold', sans-serif;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.news-card-date {
    font-size: 11px;
    color: #999;
}

.news-card-link {
    color: #1b7f3b;
    font-size: 12px;
    font-family: 'myfontbold', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card-link:hover {
    color: #145a2b;
}

.news-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0 0 0;
    width: 100%;
    text-align: center;
}

.nav-arrow-btn {
    background: #1b7f3b;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow-btn:hover {
    background: #145a2b;
    transform: scale(1.1);
}

.nav-arrow-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.view-all-btn {
    background: #1b7f3b;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn:hover {
    background: #145a2b;
    transform: scale(1.05);
}


.btn-proceed {
    background: #1b7f3b;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-proceed:hover {
    background: #145a2b;
    transform: scale(1.05);
}


@media (max-width: 1024px) {

    .projects-section {
        padding: 60px 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-header h2 {
        font-size: 40px;
    }
}


@media (max-width: 1100px) {

    .barangay-message-section {
        padding: 70px 30px;
    }

    .barangay-message-container {
        gap: 45px;
    }

    .barangay-message-image img {
        height: 480px;
    }

    .barangay-message-content h2 {
        font-size: 42px;
    }

    .barangay-message-content p {
        font-size: 16px;
        line-height: 1.8;
    }

     .officials-section {
        padding: 70px 35px;
    }

    .kagawad-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .officials-admin {
        grid-template-columns: repeat(2, 280px);
    }
}

@media (max-width: 768px) {

    .welcome-hero {
        min-height: 600px;
        height: auto;
    }

    .welcome-hero-container {
        padding: 75px 25px 105px;
    }

    .welcome-hero-content h1 {
        font-size: clamp(36px, 7vw, 50px);
        letter-spacing: 0;
    }

    .welcome-subtitle {
        font-size: 18px;
    }

    .welcome-description {
        font-size: 13px;
        line-height: 1.8;
    }

    .barangay-message-section {
        padding: 60px 25px;
    }

    .barangay-message-container {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .barangay-message-image {
        width: 100%;
    }

    .barangay-message-image img {
        width: 100%;
        height: 430px;
        border-radius: 14px;
    }

    .barangay-message-content {
        width: 100%;
    }

    .barangay-message-content h2 {
        font-size: 38px;
        line-height: 1.1;
        margin-bottom: 22px;
    }

    .barangay-message-content p {
        font-size: 15px;

        line-height: 1.8;
    }

    .barangay-message-quote {
        margin-top: 30px;
    }

    .barangay-message-quote blockquote {
        font-size: 17px;
    }

    .projects-section {
        padding: 55px 25px;
    }

    .projects-header {
        margin-bottom: 30px;
    }

    .projects-header h2 {
        font-size: 36px;
    }

    .projects-header p {
        font-size: 15px;
        line-height: 1.7;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card-image {
        height: 240px;
    }

    .officials-section {
        padding: 60px 25px;
    }

    .officials-header {
        margin-bottom: 40px;
    }

    .officials-header h2 {
        font-size: 36px;
    }

    .officials-header p {
        font-size: 15px;
    }

    .officials-admin {
        width: 100%;
        max-width: 600px;
    }

    .kagawad-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .official-image {
        height: 230px;
    }

    .official-main {
        width: 300px;
    }

    .official-sk {
        width: 280px;
    }

    .news-events-section .section-header h2 {
        font-size: 28px;
    }

    .news-events-section .section-header p {
        font-size: 13px;
    }

    
}

@media (max-width: 480px) {

     .welcome-hero {
        min-height: 590px;
    }

    .welcome-hero-container {
        padding: 55px 20px 100px;
    }

    .welcome-badge {
        margin-bottom: 20px;
        padding: 9px 12px;
        font-size: 10px;
    }

    .welcome-hero-content h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .welcome-subtitle {
        font-size: 16px;
    }

    .welcome-description {
        font-size: 12px;
    }

    .welcome-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .welcome-btn {
        width: 100%;
    }


    .barangay-message-section {
        padding: 45px 18px;
    }

    .barangay-message-container {
        gap: 30px;
    }

    .barangay-message-image img {
        height: 350px;
        border-radius: 12px;
    }

    .barangay-message-content h2 {
        font-size: 31px;
        line-height: 1.12;
    }

    .barangay-message-content p {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 18px;
    }

    .barangay-message-quote {
        padding-left: 18px;
        border-left-width: 4px;
    }

    .barangay-message-quote blockquote {
        font-size: 16px;
    }

    .barangay-message-quote span {
        font-size: 13px;
    }

    .projects-section {
        padding: 45px 18px;
    }

    .projects-header h2 {
        font-size: 31px;
    }

    .projects-header p {
        font-size: 14px;
    }

    .project-card-image {
        height: 220px;
    }

    .project-card-content {
        padding: 18px;
    }

    .project-card-content h3 {
        font-size: 18px;
    }

    .project-card-content p {
        font-size: 13px;
    }

     .officials-section {
        padding: 50px 18px;
    }

    .officials-header h2 {
        font-size: 31px;
    }

    .officials-header p {
        font-size: 14px;
    }

    .officials-admin {
        grid-template-columns: 1fr;

        max-width: 300px;

        margin-left: auto;
        margin-right: auto;
    }

    .kagawad-grid {
        grid-template-columns: 1fr;

        max-width: 300px;

        margin-left: auto;
        margin-right: auto;
    }

    .official-main {
        width: 100%;

        max-width: 300px;
    }

    .official-sk {
        width: 100%;

        max-width: 300px;
    }

    .official-image {
        height: 280px;
    }

    .officials-subtitle {
        text-align: center;
    }

    .officials-subtitle h3 {
        font-size: 23px;
    }
}


@media (max-width: 550px) {

    .officials-header h2 {
        font-size: 30px;
    }

    .official-main {
        width: 100%;
        max-width: 330px;
    }

    .officials-admin {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 330px;
        gap: 25px;
    }

    .officials-admin::before,
    .officials-admin::after,
    .kagawad-grid::before,
    .kagawad-grid .official-card::before {
        display: none;
    }

    .kagawad-grid {
        grid-template-columns: 1fr;
        max-width: 330px;
        margin: 0 auto;
    }

    .official-image {
        height: 260px;
    }

}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .carousel-overlay {
        padding: 0 25px;
    }

    .carousel-text h1 {
        font-size: 30px;
    }

    .carousel-text p {
        font-size: 15px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .btn-proceed {
        width: 100%;
    }

    .news-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-arrow-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

}


@media (max-width: 768px) {

    .footer-content {
        grid-template-columns: 1fr;
    }

    .carousel-text h1 {
        font-size: 28px;
    }

    .user-dropdown-menu {
        right: auto;
        left: 0;
    }
}

:root {
    --nature-forest: #245b3a;
    --nature-deep: #19452d;
    --nature-green: #477b50;
    --nature-sage: #dce9d9;
    --nature-light: #edf3e9;
    --nature-cream: #f7f6ed;
    --nature-ivory: #fbfaf5;
    --nature-olive: #a4ad77;
    --nature-gold: #d6b65c;
    --nature-text: #293c2d;
    --nature-muted: #68766a;
}


.barangay-message-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 85px 20px;

    background:
        linear-gradient(
            110deg,
            #f7f7ef 0%,
            #f1f5ec 55%,
            #e8f0e5 100%
        );
}

/* Subtle botanical-inspired texture */
.barangay-message-section::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: -100px;
    right: -80px;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    background: rgba(119, 153, 110, 0.10);
}

/* Small gold accent */
.barangay-message-section::after {
    content: "";
    position: absolute;
    z-index: -1;

    bottom: 0;
    left: 0;

    width: 120px;
    height: 5px;

    background: var(--nature-gold);
    border-radius: 0 5px 0 0;
}

.barangay-message-container {
    position: relative;
    z-index: 1;
}

.barangay-message-image {
    position: relative;
}

.barangay-message-image img {
    border: 6px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 12px 30px rgba(38, 77, 45, 0.13),
        0 3px 8px rgba(0, 0, 0, 0.05);
}

.barangay-message-content h2 {
    color: var(--nature-deep);
}

.barangay-message-content p {
    color: var(--nature-muted);
}

.barangay-message-quote {
    border-left-color: var(--nature-gold);
}

.barangay-message-quote blockquote {
    color: var(--nature-forest);
}


/* =====================================================
   2. PROJECTS SECTION
   Light sage green + clean white cards
===================================================== */

.projects-section {
    position: relative;
    isolation: isolate;

    padding: 85px 20px;

    background: #eaf1e7;
}

/* Soft natural section transition */
.projects-section::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.35) 0%,
            transparent 50%,
            rgba(164, 173, 119, 0.08) 100%
        );

    pointer-events: none;
}

/* Small olive accent */
.projects-section::after {
    content: "";
    position: absolute;
    z-index: -1;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--nature-forest),
        var(--nature-olive),
        transparent 85%
    );
}

.projects-container {
    position: relative;
    z-index: 1;
}

.projects-header h2 {
    color: var(--nature-deep);
}

.projects-header h2::after {
    background: var(--nature-gold);
}

.projects-header p {
    color: var(--nature-muted);
}

/* Existing project cards, refined */
.project-card {
    background: #fff;

    border: 1px solid rgba(71, 123, 80, 0.10);

    box-shadow:
        0 5px 18px rgba(37, 75, 44, 0.07);
}

.project-card:hover {
    box-shadow:
        0 12px 28px rgba(37, 75, 44, 0.14);
}

.project-card-title,
.project-card-link {
    color: var(--nature-forest);
}

.project-card-location i {
    color: var(--nature-green);
}

.projects-view-all-btn {
    background: var(--nature-forest);
    border-color: var(--nature-forest);
}

.projects-view-all-btn:hover {
    background: var(--nature-deep);
    border-color: var(--nature-deep);
}


/* =====================================================
   3. OFFICIALS SECTION
   Rich forest green + natural olive accents
===================================================== */

.officials-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 85px 40px;

    background:
        linear-gradient(
            120deg,
            #214d32 0%,
            #285f3c 50%,
            #19452d 100%
        );
}

/* Soft olive glow */
.officials-section::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: -180px;
    right: -100px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: rgba(180, 197, 143, 0.09);
}

/* Subtle lower background accent */
.officials-section::after {
    content: "";
    position: absolute;
    z-index: -1;

    bottom: -200px;
    left: -100px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    border: 55px solid rgba(255, 255, 255, 0.035);
}

.officials-container {
    position: relative;
    z-index: 1;
}

.officials-header h2 {
    color: #fff;
}

.officials-header span {
    background: var(--nature-gold);
}

.officials-header p {
    color: rgba(255, 255, 255, 0.83);
}

/* Official profile cards */
.official-card {
    background: #fff;

    border: 1px solid rgba(255, 255, 255, 0.7);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.15);
}

.official-card:hover {
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.23);
}

.official-image {
    background: #f0f4eb;
}

.official-info h3 {
    color: var(--nature-forest);
}


/* =====================================================
   4. NEWS & EVENTS SECTION
   Ivory + soft botanical green
===================================================== */

.news-events-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 85px 40px;

    background: var(--nature-ivory);
}

/* Natural green upper background accent */
.news-events-section::before {
    content: "";
    position: absolute;
    z-index: -1;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(169, 191, 153, 0.20),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #f0f4eb 0%,
            #fbfaf5 42%,
            #f5f6ed 100%
        );
}

/* Thin gold section accent */
.news-events-section::after {
    content: "";
    position: absolute;
    z-index: -1;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--nature-gold),
        var(--nature-olive),
        transparent 85%
    );
}

.news-events-container {
    position: relative;
    z-index: 1;
}

.news-events-section .section-header h2 {
    color: var(--nature-deep);
}

.news-events-section .section-header h2::after {
    background: var(--nature-gold);
}

.news-events-section .section-header p {
    color: var(--nature-muted);
}

/* News cards */
.news-card {
    background: #fff;

    border: 1px solid rgba(71, 123, 80, 0.09);

    box-shadow:
        0 5px 18px rgba(37, 75, 44, 0.07);
}

.news-card:hover {
    box-shadow:
        0 12px 28px rgba(37, 75, 44, 0.14);
}

.news-card-title,
.news-card-link {
    color: var(--nature-forest);
}

.view-all-btn {
    background: var(--nature-forest);
}

.view-all-btn:hover {
    background: var(--nature-deep);
}


/* =====================================================
   5. RESPONSIVE BACKGROUND ADJUSTMENTS
   Existing responsive layouts are preserved
===================================================== */

@media (max-width: 768px) {

    .barangay-message-section,
    .projects-section,
    .officials-section,
    .news-events-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .barangay-message-section::before {
        width: 230px;
        height: 230px;
        right: -120px;
    }

    .officials-section::before,
    .officials-section::after {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {

    .barangay-message-section,
    .projects-section,
    .officials-section,
    .news-events-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .barangay-message-section::before {
        width: 180px;
        height: 180px;
    }

    .officials-section::before,
    .officials-section::after {
        width: 200px;
        height: 200px;
    }
}