/********** Template CSS **********/
:root {
    --primary: #D71920;
    --primary-dark: #b31218;
    --secondary: #629326;
    --secondary-dark: #4e771d;
    --accent: #F59E0B;
    --light: #F8F9FA;
    --dark: #1C2035;
}

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

.fw-medium {
    font-weight: 500;
}


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


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.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: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 18px;
    padding: 16px 4px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    outline: none;
    position: relative;
    transition: color 0.25s ease;
}

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

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar .navbar-nav .nav-link.active::after,
.navbar .navbar-nav .nav-link:hover::after {
    transform: scaleX(1);
}

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

/* Compact Dropdown Menu */
.navbar .nav-item .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    padding: 8px;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.navbar .dropdown-item {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    color: var(--dark);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.navbar .dropdown-item i {
    width: 20px;
    font-size: 13px;
    color: var(--primary);
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.navbar .dropdown-item:hover {
    background-color: rgba(215, 25, 32, 0.08);
    color: var(--primary);
    transform: translateX(3px);
}

.navbar .dropdown-item:hover i {
    transform: scale(1.15);
}

.navbar .dropdown-item.active {
    background-color: var(--primary);
    color: #ffffff;
}

.navbar .dropdown-item.active i {
    color: #ffffff;
}

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

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        top: 130%;
        opacity: 0;
        visibility: hidden;
        transition: all .25s ease;
    }

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



/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

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

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


/*** About ***/
.about {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/about.jpg) left center no-repeat;
    background-size: cover;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}


/*** Service Card Styles ***/
.service-item {
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.09) !important;
    border-color: rgba(215, 25, 32, 0.35) !important;
}

.service-item .service-text {
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.service-item .service-text h5 {
    transition: color 0.3s ease;
}

.service-item:hover .service-text h5,
.service-item .service-text h5 a:hover {
    color: var(--primary) !important;
}

.service-item .service-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    z-index: 1;
}

.service-item:hover .service-btn {
    background: #fff5f5;
}

.service-item .service-btn .btn-read-more {
    transition: all 0.25s ease;
}

.service-item:hover .service-btn .btn-read-more,
.service-item .service-btn .btn-read-more:hover {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.35);
}


/*** Project ***/
.project-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}


/*** Team ***/
.team-item {
    position: relative;
    text-align: center;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item .team-social {
    position: absolute;
    padding: 0;
    top: 15px;
    left: 0;
    overflow: hidden;
}

.team-item .team-social li {
    list-style-type: none;
    margin-bottom: 10px;
    margin-left: -50px;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social li {
    margin-left: 15px;
    opacity: 1;
}

.team-item .team-social li .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 40px;
    transition: .5s;
}

.team-item .team-social li .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

.team-item .team-social li:nth-child(1) {
    transition-delay: .1s;
}

.team-item .team-social li:nth-child(2) {
    transition-delay: .2s;
}

.team-item .team-social li:nth-child(3) {
    transition-delay: .3s;
}

.team-item .team-social li:nth-child(4) {
    transition-delay: .4s;
}

.team-item .team-social li:nth-child(5) {
    transition-delay: .5s;
}


/*** Footer ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

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

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

.copyright {
    color: #B0B9AE;
}

.copyright {
    background: #111111;
}

.copyright a:hover {
    color: var(--primary) !important;
}

/*** Vishwa Panthastha Brand Additions ***/
.site-logo {
    max-height: 98px; /* 150% of original 65px */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

@media (max-width: 991.98px) {
    .site-logo {
        max-height: 72px;
    }
}

.site-logo:hover {
    transform: scale(1.02);
}


.brand-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    color: var(--secondary);
    font-weight: 600;
}

.text-brand-green {
    color: var(--secondary) !important;
}

.bg-brand-green {
    background-color: var(--secondary) !important;
    color: #fff;
}

.btn-brand-green {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

.btn-brand-green:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: #fff;
}

.text-brand-gold {
    color: var(--accent) !important;
}

.bg-brand-gold {
    background-color: var(--accent) !important;
    color: #fff;
}

.badge-brand-red {
    background-color: var(--primary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-brand-green {
    background-color: var(--secondary);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.category-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(215, 25, 32, 0.1);
    color: var(--primary);
    border: 1px solid rgba(215, 25, 32, 0.2);
}

.ajax-toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100000;
}

/* Advertisement Image Zoom & Lightbox */
.ad-photo-box {
    position: relative;
    cursor: zoom-in !important;
    overflow: hidden;
    user-select: none;
}
.ad-photo-box .ad-zoomable-img {
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.35s ease;
}
.ad-photo-box:hover .ad-zoomable-img {
    transform: scale(1.06);
    filter: brightness(1.04);
}
.ad-photo-box .ad-zoom-badge {
    transition: all 0.25s ease;
    pointer-events: none;
}
.ad-photo-box:hover .ad-zoom-badge {
    background: #D71920 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(215, 25, 32, 0.45);
    transform: translateY(-2px);
}
.ad-marquee-thumb {
    cursor: zoom-in !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ad-marquee-thumb:hover {
    transform: scale(1.28);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    border-color: #F59E0B !important;
}

#adPhotoZoomModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
#adZoomContainer {
    background: radial-gradient(circle at center, #1e293b 0%, #0a0f1d 100%);
}