    * {
        font-family: 'Poppins', sans-serif;
    }

    /* Custom Color */
    .bg-lightred {
        background-color: #ff4d4d !important;
    }

    /* Navbar */
    .navbar {
        background-color: #ffffff;
        opacity: 80%;
    }

    .navbar .nav-link {
        color: rgb(255, 0, 0) !important;
        font-weight: 500;
        transition: 0.3s;
    }

    .navbar .nav-link:hover {
        color: #ff0000 !important;
    }

    .navbar-brand h5,
    .navbar-brand small {
        color: rgb(255, 0, 0);
        line-height: 1.2;

    }

    /* Hero Section */
    .hero {
        min-height: 90vh;
        background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(235, 50, 50, 0.75)),
            url('../images/sasmuan.jpg') center/cover no-repeat;
        color: white;
        display: flex;
        align-items: center;
        padding: 60px 0;
    }

    /* Parallelogram image with soft corners */
    .slanted-img {
        width: 100%;
        max-width: 550px;
        /* increased width for more presence */
        height: auto;
        border-radius: 18px;
        border: 6px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
        clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
        transform: skew(-10deg);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .slanted-img:hover {
        transform: skew(-10deg) scale(1.05);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }

    /* Make sure the container allows space */
    .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .hero-text {
        flex: 1;
        padding-left: 40px;
    }


    /* Text styling */
    .hero-text h1,
    .hero-text h2,
    .hero-text p {
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    }

    .hero-text h2 {
        color: #ff0000;
    }

    .hero-text p {
        color: #fff;
        font-size: 18px;
    }

    /* Responsive fix */
    @media (max-width: 768px) {
        .hero {
            text-align: center;
        }

        .container {
            flex-direction: column;
        }

        .slanted-img {
            max-width: 240px;
            margin-bottom: 20px;
            transform: skew(-6deg);
        }
    }


    /* E-Governance Section */
    .card {
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    /* Officials Section */
    .officials {
    position: relative;       /* needed for pseudo-element */
    overflow: hidden;         /* ensure background doesn't spill */
    background: none;         /* remove gradient */
}

/* Blurry logo background */
.officials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;   /* or cover if you want full coverage */
    opacity: 0.05;             /* subtle */
    filter: blur(1px);          /* blur effect */
    pointer-events: none;       /* clicks go through */
    z-index: 0;                 /* behind content */
}

/* Ensure the content stays above the blurred background */
.officials > * {
    position: relative;
    z-index: 1;
}



    .officials img {
        border: 3px solid white;
    }

    .officials p {
        font-weight: 500;
    }


    @media (max-width: 768px) {
        .hero h2 {
            font-size: 2rem;
        }
    }

    /* Certificates Section */
    .certificates {
        text-align: center;
    }

    .certificates h2 {
        font-weight: 800;
        margin-bottom: 20px;
        color: red;
        font-family: 'Poppins', sans-serif;
    }

    .service-card {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        padding: 1.5rem;
        text-align: center;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        height: 100%;
        width: 90%;
    }

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }

    .service-card h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0.75rem 0;
    }

    .service-card p {
        font-size: 0.9rem;
        color: #555;
        margin-bottom: 1rem;
    }

    .card-icon {
        font-size: 2rem;
        color: #333;
    }

    .request-btn {
        background: #ff0000;
        color: white;
        border-radius: 8px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
        transition: background 0.2s ease;
    }

    .request-btn:hover {
        background: #218838;
    }


    .about-section h2 {
        font-weight: 800;
        margin-bottom: 20px;
        color: #333;
        font-family: 'Montserrat', sans-serif;
    }

    /* Style for the paragraph under Services */
    .certificates .online {
        font-size: 16px;
        font-weight: 500;
        color: #666;
        margin-top: -10px;
        margin-bottom: 30px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .service-card i {
        font-size: 50px;
    }

    /* Projects Section */

    .footer {
        background: linear-gradient(135deg, #ff4d4d, #ff6666);
        color: #fff;
        position: relative;
        overflow: hidden;
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
    }

    .footer h5 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .footer p,
    .footer a,
    .footer li {
        color: #fff5f5;
        font-size: 0.95rem;
    }

    .footer a:hover {
        color: #ffe066;
        text-decoration: none;
    }

    .footer .social-links a {
        color: white;
        font-size: 1.25rem;
        transition: 0.3s ease;
    }

    .footer .social-links a:hover {
        color: #ffeb3b;
    }

    .footer-bottom {
        background-color: rgba(0, 0, 0, 0.1);
        color: #fff;
        font-size: 0.85rem;
    }

    .footer a i {
        vertical-align: middle;
        /* centers the icon properly */
        line-height: 1;
        /* removes the extra space under */
        display: inline-block;
        /* fixes inline rendering issues */
    }

    .footer a {
        text-decoration: none;
        /* remove underline just in case */
    }

    .navbar .btn-danger {
        background-color: #d62828;
        border: none;
        transition: 0.3s ease;
    }

    .navbar .btn-danger:hover {
        background-color: #b81f1f;
        transform: scale(1.05);
    }
    
    
    .fw-bold.mb-4 {
        color: red;
    }
    
    
.certificates .row p {
    color: red;
}

    
.project-card.past img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.project-card.past img:hover {
  transform: scale(1.03);
}

.project-card.past .card-date {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 10px;
}

.past-projects-wrapper {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  background: #f7f7f7;
  position: relative;
}

.scrolling-images {
  display: flex;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.project-image {
  flex: 0 0 auto;
  margin-right: 20px;
}

.project-image img {
  height: 180px;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-image img:hover {
  transform: scale(1.05);
}

/* Keyframes for seamless infinite scroll */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Make hamburger darker (Bootstrap default is light gray) */
.navbar-toggler-icon {
    filter: invert(20%) brightness(30%);
}

/* Sidebar styling */
.custom-offcanvas {
    width: 260px;
    background: #ffffff;
    border-right: 2px solid #e4e4e4;
}

/* Sidebar links styling */
.sidebar-link {
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
}

.sidebar-link:hover {
    background: #f3f3f3;
    color: #dc3545 !important; /* red hover */
    padding-left: 14px;
    transition: 0.2s ease;
}

/* Make the offcanvas sidebar transparent */
.custom-offcanvas {
    width: 260px;                 /* sidebar width */
    background: rgba(255, 255, 255, 0.85); /* semi-transparent white */
    backdrop-filter: blur(8px);   /* blur the background behind it */
    border-right: none;            /* optional: remove border */
}

/* Sidebar links styling */
.sidebar-link {
    padding: 12px 10px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    color: #333;                  /* default link color */
}

.sidebar-link:hover {
    background: rgba(255, 0, 0, 0.1); /* subtle red hover */
    color: #dc3545 !important;       /* red text */
    padding-left: 14px;
    transition: 0.2s ease;
}

/* Optional: adjust close button */
.custom-offcanvas .btn-close {
    filter: invert(30%) brightness(70%);
}

/* Unified official card style */
.official-card {
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* Card hover effect */
.official-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.35);
}

/* Image hover zoom */
.official-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border: 3px solid white;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.official-card:hover img {
    transform: scale(1.05);
}

/* Name styling – BLACK like Barangay Captain */
/* Name styling – BLACK for ALL officials */
.official-card .name {
    font-weight: 700;
    color: #000 !important;   /* force black */
    margin-top: 10px;
}

/* Title styling – clean gray */
.official-card .title {
    color: #555 !important;   /* darker gray for readability */
    margin-top: -5px;
}





    