/********** Template CSS **********/

/*** 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;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 15px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 30px;
    padding: 0;
    outline: none;
    color: var(--bs-dark);
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary)
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    margin-top: -100px;
    padding-top: 150px;
    background: url(../img/hero-bg.jpg) top center no-repeat;
    background-size: cover;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.header-carousel {
    position: relative;
    padding: 45px 90px 45px 0;
}

.header-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 38px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-white);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-white);
}


/* =================================================
     GRAMPANCHAYAT HOMEPAGE FEATURES (UNIQUE SECTION) for icons under the slider
     ID : #gram-features
     Animation : Fade + Slide + Icon Pulse
===================================================*/

#gram-features .gram-box {
    opacity: 0;
    transform: translateY(25px);
    animation: gramFadeUp .9s ease-out forwards;
}

/* stagger effect — pro look */
#gram-features .gram-box:nth-child(1) { animation-delay: 0.2s; }
#gram-features .gram-box:nth-child(2) { animation-delay: 0.4s; }
#gram-features .gram-box:nth-child(3) { animation-delay: 0.6s; }
#gram-features .gram-box:nth-child(4) { animation-delay: 0.8s; }

/* hover effect */
#gram-features .gram-inner {
    padding: 5px;
    transition: transform .3s ease, background .3s ease;
}

#gram-features .gram-inner:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
}

/* ICON animation */
#gram-features .gram-icon {
    transition: transform .4s ease;
}

#gram-features .gram-inner:hover .gram-icon {
    transform: scale(1.25);
}

/* TEXT highlight */
#gram-features .gram-text {
    font-weight: 600;
    transition: color .3s ease;
}

#gram-features .gram-inner:hover .gram-text {
    color: #d9232d;
}

/* KEYFRAME — clean fade + slide */
@keyframes gramFadeUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}


/*** About ***/
.about-img {
    position: relative;
    overflow: hidden;
}

.about-img::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url(../img/bg-about-img.png) top left no-repeat;
    background-size: contain;
}


/*** Project ***/
.project-item img {
    transition: .5s;
}
  
.project-item:hover img {
    transform: scale(1.2);
}
  
.project-overlay {
    position: absolute;
    padding: 25px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    background: linear-gradient(rgba(255, 255, 255, .1) 50%, var(--bs-dark));
    z-index: 1;
}


/*** Service ***/
.service-item {
    position: relative;
    padding: 30px 25px;
    transition: .5s;
}

.service-item.bg-primary:hover {
    background: var(--bs-light) !important;
}

.service-item.bg-primary p {
    color: var(--bs-light);
    transition: .5s;
}

.service-item.bg-primary:hover p {
    color: var(--bs-secondary);
}

.service-item.bg-light:hover {
    background: var(--bs-primary) !important;
}

.service-item.bg-light p {
    color: var(--bs-secondary);
    transition: .5s;
}

.service-item.bg-light:hover p {
    color: var(--bs-light);
}


.service-item .service-img h3 {
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 12px 7px 0;
}

.service-item.bg-primary .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: .5s;
}

.service-item.bg-primary:hover .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
}

.service-item.bg-light .service-img h3 {
    background: var(--bs-light);
    color: var(--bs-dark);
    transition: .5s;
}

.service-item.bg-light:hover .service-img h3 {
    background: var(--bs-primary);
    color: var(--bs-white);
}


/* TEAM CARD BASE */
.team-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transition: all .3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* IMAGE CONTAINER */
.team-img {
    width: 100%;
    height: 260px; /* Fixed height for uniformity */
    overflow: hidden;
    background: #efefef;
}

.team-card.small-team .team-img {
    height: 220px; /* Smaller for other members */
}

/* IMAGE SETTINGS (FACE ALWAYS VISIBLE) */
.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Fills card */
    object-position: top;   /* Shows faces clearly */
    transition: transform .4s ease;
}

.team-card:hover .team-img img {
    transform: scale(1.08);
}

/* INFO */
.team-info {
    padding: 18px 15px;
}

.team-info h5, 
.team-info h6 {
    color: #146666;
    font-weight: 700;
}

.team-info .post {
    font-size: 0.9rem;
    color: #d9232d;
    font-weight: 600;
    margin-bottom: 8px;
}

.team-info p {
    margin: 0;
    color: #444;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Remove social icons completely */
.social-icons { display: none !important; }



/*** Testimonial ***/
.testimonial-img {
    position: relative;
    padding: 45px 0 45px 90px;
}

.testimonial-img::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: calc(50% + 45px);
    height: 100%;
    background: var(--bs-primary);
    z-index: -1;
}

.testimonial-text h5 {
    position: relative;
    padding-left: 45px;
}

.testimonial-text h5::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-dots {
    position: absolute;
    height: 17px;
    bottom: 0;
    right: 0;
    left: auto;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    width: 15px;
    height: 15px;
    background: var(--bs-white);
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--bs-primary);
}

@media (max-width: 768px) {
    .testimonial-carousel .owl-dots {
        left: 0;
        right: auto;
    }

    .testimonial-carousel .owl-dot {
        margin-right: 10px;
        margin-left: 0;
    }
}


/*** Newsletter ***/
.newsletter {
    background: url(../img/hero-bg.jpg) bottom right no-repeat;
    background-size: cover;
}

@media (min-width: 992px) {
    .newsletter .container {
        max-width: 100% !important;
    }

    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .newsletter .newsletter-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255,255,255,.5);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-white);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: rgba(255,255,255,.5);
}

.footer .copyright a:hover {
    color: var(--bs-white);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/*About new*/
/* ========================== */
/* Unique Animation Styling   */
/* ========================== */

#dev-initiatives .initiative-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
    animation-delay: var(--delay);
}

#dev-initiatives .initiative-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: 0.4s;
}

#dev-initiatives .initiative-box:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Icon bounce */
.icon-animate i {
    display: inline-block;
    animation: pop 1.5s infinite ease-in-out;
}

/* On scroll fade-up */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Icon bounce animation */
@keyframes pop {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-6px); }
}


/*Service new*/
.servicesection-title {
            color: #146666;
            font-weight: 700;
            position: relative;
        }
.service-card {
            background: #fff;
            border-radius: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: all 0.3s;
            height: 100%;
        }
        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 6px 18px rgba(0,0,0,0.15);
        }
        .service-icon {
            font-size: 2.5rem;
            color: #146666;
        }
        .project-item img {
            border-radius: 10px;
            transition: transform 0.4s;
        }
        .project-item img:hover {
            transform: scale(1.05);
        }


/*Contact new*/

    iframe {
      border: 0;
      width: 100%;
      height: 400px;
      border-radius: 8px;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    }
    .contact-info i {
      color: #146666;
    }
.btn-teal {
  background-color: #146666;
  border-color: #146666;
  color: #fff;
}

.btn-teal:hover {
  background-color: #0f4f4f;
  border-color: #0f4f4f;
  color: #fff;
}

/*Feature Section*/
/* Section Background */
.feature-section {
    background: linear-gradient(180deg, #f1f7ff 0%, #ffffff 100%);
}

/* Title Highlight */
.highlight {
    background: #d9232d15;
    color: #146666;
    font-weight: 700;
}

/* Feature Card */
.feature-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid #f8f8f8;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.15);
    border-color: #146666;
}

/* Icon Box */
.icon-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background: #d9232d15;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.icon-box i {
    font-size: 40px;
    color: #146666;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: #146666;
}

.feature-card:hover .icon-box i {
    color: #ffffff;
}

/* Text Styles */
.feature-card h4 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #146666;
}

.feature-card p {
    font-size: 0.95rem;
    color: #444;
}

/*Team Section from Homepage*/
/* ------------------------------
   HOME PAGE TEAM SECTION
   Unique Classes: home-team-*
------------------------------- */
/* ------------------------------
   HOME PAGE TEAM SECTION
   Unique Classes: home-team-*
------------------------------- */

#home-team-section .home-team-card {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#home-team-section .home-team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.30);
}

.home-team-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
}

/* Image becomes slightly darker on hover — makes text POP */
.home-team-card:hover .home-team-img {
    transform: scale(1.1);
    filter: brightness(60%);
}

/* DARKER, SHARPER GRADIENT FOR FULL VISIBILITY */
.home-team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.90),
        rgba(0, 0, 0, 0.20),
        rgba(0, 0, 0, 0)
    );

    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Overlay fades in + slides up */
.home-team-card:hover .home-team-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Text highlight (glow effect) */
.home-team-overlay small,
.home-team-overlay h4 {
    text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.9);
    color: #ffffff !important;
}

/* CALL BUTTON */
.home-call-btn {
    margin-top: 12px;
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    color: #d9232d;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Slight pop on hover */
.home-call-btn:hover {
    background: #d9232d;
    color: #ffffff;
    transform: scale(1.05);
}
