
/*** Spinner Start ***/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn.btn-primary:hover {
    background: #08974A !important;
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    background: transparent;
    color: #08974A;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    border: none;
    transition: 0.5s;
}

.btn.btn-secondary:hover {
    color: #08974A !important;
}


/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: #08974A;
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid #08974A !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: #08974A;
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid #08974A !important;
}


/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: #08974A !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}
.profile-shell {
  background: #fff;
  border: 1px solid #959B9D;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(20,40,20,0.06);
}
.title-strip {
  background: #1a7a1a;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  padding: 14px;
  letter-spacing: 0.02em;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 260px;
}
.text-col {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #959B9D;
}
.profile-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a7a1a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.profile-name {
  font-size: 22px;
  font-weight: 700;
  color: #1f2922;
}
.profile-role {
  font-size: 14px;
  color: #959B9D;
  margin-top: 6px;
}
.divider {
  width: 50px;
  height: 3px;
  background: #FBDC00;
  border-radius: 3px;
  margin: 14px 0;
}
.photo-col {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fbf9;
}
.mayor-photo {
  width: 100%;
  max-width: 210px;
  border-radius: 10px;
  border: 1px solid #959B9D;
  display: block;
  object-fit: cover;
}
.visitors-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px;
  border-top: 1px solid #959B9D;
  background: #f9fbf9;
  flex-wrap: wrap;
  gap: 10px;
}
.visitors-label {
  font-size: 13px;
  font-weight: 700;
  color: #2a3540;
}
.visitors-stats { display: flex; gap: 24px; }
.vstat { text-align: center; }
.vstat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1a7a1a;
}
.vstat span { font-size: 12px; color: #959B9D; }

@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr; }
  .photo-col { border-top: 1px solid #959B9D; }
  .mayor-photo { max-width: 180px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: #08974A !important;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: #08974A !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}
.value-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.value-card:hover {
    background-color: #fff !important;
    border-color: var(--bs-primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.councilor-img img,
.councilor-placeholder {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--bs-primary);
}

.councilor-placeholder {
    background: #c4c4c4;
}

.councilor-card {
    transition: transform 0.3s ease;
}

.councilor-card:hover {
    transform: translateY(-6px);
}
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI,sans-serif;
}

body{
    background:#f5f7fa;
    color:#333;
}

/* Hero Section */

.hero{
    background:linear-gradient(rgba(0,80,40,.9),rgba(0,60,30,.9)),
    url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=1200');
    background-size:cover;
    background-position:center;
    color:white;
    padding:80px 10%;
}

.hero h1{
    font-size:48px;
    margin-bottom:15px;
}

.breadcrumb{
    font-size:15px;
    opacity:.9;
}

/* Main Content */

.container{
    max-width:1200px;
    margin:0 px;
    padding:0 20px;
}

.profile-card{
    background:white;
    border-radius:20px;
    padding:50px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.profile-header{
    display:flex;
    gap:50px;
    align-items:center;
    margin-bottom:50px;
}

.profile-text{
    flex:1;
}

.section-title{
    color:#006633;
    font-size:14px;
    font-weight:700;
    text-transform:uppercase;
    margin-bottom:20px;
    letter-spacing:1px;
}

.profile-text h2{
    font-size:42px;
    color:#1a1a1a;
    margin-bottom:20px;
}

.profile-text p{
    line-height:1.9;
    font-size:18px;
}

.profile-text span{
    color:#00843d;
    font-weight:700;
}

.profile-image img{
    width:280px;
    border-radius:20px;
    object-fit:cover;
    box-shadow:0 10px 20px rgba(0,0,0,.1);
}

/* Content Sections */

.content-section{
    margin-top:40px;
}

.content-section h3{
    color:#006633;
    font-size:28px;
    margin-bottom:20px;
    display:flex;
    align-items:center;
    gap:15px;
}

.content-section p{
    line-height:2;
    margin-bottom:20px;
    color:#555;
    font-size:17px;
}
/* ==========================================
   NEWS AND ANNOUNCEMENTS
========================================== */

.news-section {
    background: #f7f9f7;
    overflow: hidden;
}

.news-section .section-title h1 {
    color: #08974A;
    font-weight: 700;
}

/* Equal-height cards */
.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7ece8;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 50, 25, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 50, 25, 0.13);
}

/* Consistent image dimensions */
.news-image-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e8eee9;
}

.news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image {
    transform: scale(1.04);
}

/* Category badge */
.news-category {
    position: absolute;
    left: 15px;
    bottom: 15px;
    max-width: calc(100% - 30px);
    padding: 7px 13px;
    overflow: hidden;
    color: #ffffff;
    background: #08974A;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Card content */
.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 22px;
}

/* Keep titles aligned */
.news-title {
    display: -webkit-box;
    min-height: 58px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #08974A;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Keep summaries at a consistent height */
.news-summary {
    display: -webkit-box;
    min-height: 78px;
    margin-bottom: 22px;
    overflow: hidden;
    color: #657168;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Align actions at the bottom */
.news-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    
    border-top: 1px solid #edf0ed;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    color: #ffffff;
    background-color: #08974A;
    border: 1px solid #08974A;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover effect */
.news-read-more:hover {
    color: #08974A;
    background-color: #FBDC00;
    border-color: #FBDC00;
}

.news-read-more i {
    margin-left: 8px;
}

.news-document {
    padding: 10px 14px;
    color: #08974A;
    background: #ffffff;
    border: 1px solid #08974A;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.news-document:hover {
    color: #ffffff;
    background: #08974A;
    text-decoration: none;
}

/* Empty state */
.news-empty-state {
    color: #657168;
    background: #ffffff;
    border: 1px dashed #cbd8ce;
    border-radius: 12px;
}
/* News Heading and View All Button */
.news-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.news-heading-text {
    text-align: left;
}

/* Solid background button */
.news-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 13px 24px;
    background-color: #08974A;
    color: #ffffff;
    border: 2px solid #08974A;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.news-view-all:hover {
    background-color: #FBDC00;
    border-color: #FBDC00;
    color: #08974A;
}

.news-view-all i {
    transition: transform 0.3s ease;
}

.news-view-all:hover i {
    transform: translateX(4px);
}

/* Responsive layout */
@media (max-width: 576px) {
    .news-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .news-heading-text {
        text-align: left;
    }

    .news-view-all {
        padding: 11px 20px;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .news-image-wrapper {
        height: 220px;
    }

    .news-card-body {
        padding: 18px;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .news-section {
        padding-top: 45px !important;
        padding-bottom: 45px !important;
    }

    .news-image-wrapper {
        height: 220px;
    }

    .news-title {
        font-size: 18px;
    }

    .news-card-body {
        padding: 18px;
    }
}

/* Responsive */

@media(max-width:900px){

    .profile-header{
        flex-direction:column-reverse;
        text-align:center;
    }

    .profile-text h2{
        font-size:32px;
    }

    .hero h1{
        font-size:36px;
    }

    .profile-image img{
        width:220px;
    }

}
@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: #08974A;
    color: var(--bs-secondary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid #08974A !important;
        color: #08974A;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 991.98px) {
    .sticky-top .navbar-light {
        background: var(--bs-light) !important;
    }

    /*** Top and Bottom borders go out ***/
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        top: 30px;
        bottom: 30px;
        left: 0px;
        width: 100%;
        height: 2px;
        background: #08974A;
        opacity: 0;
        transition: all 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:before {
        bottom: auto;
    }

    .navbar-light .navbar-nav .nav-link:after {
        top: auto;
    }

    .navbar-light .navbar-nav .nav-link:hover:before,
    .navbar-light .navbar-nav .nav-link.active:before {
        top: 20px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 20px;
        opacity: 1;
    }
}

#searchModal .modal-content {
    background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(0, 58, 102, 0.8)), url(../img/breadcrumb.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-size: cover;
    padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/


/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    margin-left: -60px;
    border-radius: 50%;
    background-size: 60% 60%;
    transition: 0.5s;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-left: 0;
    margin-right: -60px;
}

.carousel-header .carousel .carousel-indicators {
    padding-bottom: 0;
    transition: 0.5s;
}


.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border: 8px solid #08974A;
    border-radius: 50%;
    margin-right: 30px;
    transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li.active {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-secondary);
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh 
}

.carousel-header .carousel-inner .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0.6));
    background-size: cover;
}


@media (max-width: 768px) {
    .carousel-header {
        height: 700px !important;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-top: 500px;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon {
        margin-left: 0px;
    }

    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-right: 0px;
    }

    .carousel-header .carousel .carousel-indicators {
        padding: 0;
    }
}
/*** Carousel Hero Header End ***/


/*** service Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
}

.service .service-item .service-inner .service-title {
    position: relative;
    margin-top: -30px;
    text-align: center;
    transition: 0.5s;
}

.service .service-item .service-inner .service-title .service-content {
    position: absolute;
    bottom: -100%; 
    left: 0;
    margin-left: 30px;
    margin-right: 30px;
    text-align: center;
    border-radius: 10px;
    background: #08974A;
    opacity: 0;
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-content {
    bottom: 0;
    opacity: 1;
}

.service .service-item .service-inner .service-title .service-content a h4 {
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.service .service-item .service-inner .service-title .service-title-name {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 0;
}

.service .service-item .service-inner .service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
    height: 100%;
    opacity: 1;
}

.service .service-item .service-inner .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
    transform: scale(1.3);
}
/*** Service End ***/


/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content {
    position: relative;
    border-radius: 10px;
    background: var(--bs-light);
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 45px;
    bottom: -20px;
    left: 30px;
    transform: rotate(45deg);
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: #08974A;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-secondary);
}
/*** testimonial end ***/


/*** Contact Start ***/
.contact .office .office-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    background: var(--bs-light);
    transition: 0.5s;
}

.contact .office .office-item:hover {
    box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact .office .office-item .office-img img {
    transition: 0.5s;
}

.contact .office .office-item:hover .office-img img {
    transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
    transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
    color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
    color: #08974A !important;
}
/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: #08974A;
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-secondary) !important;
}
/*** copyright end ***/