/*
Template Name: Shri Guru Temple
File: Layout CSS
Author: TemplatesOnWeb
Author URI: https://www.templateonweb.com/
Licence: <a href="https://www.templateonweb.com/license">Website Template Licence</a>
*/

/* Gallery Section */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 10px;
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/*********************center_h****************/
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.carousel-caption {
    background-color: var(--primary-color) !important;
    bottom: 70px;
    left: 0;
    color: #fff;
    width: 40%;
    text-align: left;
    left: 40%;
    padding: 20px;
    z-index: 4;
    animation: fadeIn 5s;
    border-radius: 10px;
    box-shadow: var(--premium-shadow);
}


.carousel-caption1 {
    left: 55%;
}

.carousel-caption2 {
    left: 55%;
}

.carousel-caption3 {
    left: 55%;
}

.center_home .carousel-indicators {
    bottom: 10px;
    z-index: 4;
}

.carousel-caption p {
    border-left: 2px solid #efefef;
    padding-left: 15px;
}

.carousel-item .center_hm1 {
    z-index: 3;
    left: 10%;
    bottom: 0;
    opacity: 0;
    transform: translateX(0px);

}

.carousel-item.active .center_hm1 {
    opacity: 1;
    transform: translateX(70px);
    transition: all 1500ms ease;
    transition-delay: 1000ms;

}




.center_ht {
    z-index: 3;
}

.center_home .carousel-control-prev {
    z-index: 4;
}

.center_home .carousel-control-next {
    z-index: 4;
}

/*********************center_h_end****************/

/*********************about_h****************/
.about_h1l span {
    width: 120px;
    height: 120px;
    line-height: 120px;
}

.about_h2r p {
    border-left: 3px solid var(--primary-color);
}

.about_h2l h1 {
    line-height: 0.2em;
    width: 250px;
    height: 250px;
    padding-top: 100px;
    font-size: 50px;
}

.about_h3i1r .form-control {
    background: #0003;
    color: #fff;
}

.about_h3i1r ::placeholder {
    color: #fff;
    opacity: 1;
    /* Firefox */
}

.about_h3i1r .btn {
    background: #0221474d;
}

.about_h3i1r {
    min-height: 190px;
}

.about_h3i1l {
    min-height: 190px;
}

.about_h3m {
    left: -5%;
    bottom: 0;
}

.about_h3m2i span {
    width: 60px;
    height: 60px;
    line-height: 60px;
}

.about_h3m2 {
    padding-left: 56%;
    top: 38%;
}

/*********************about_h_end****************/

/*********************watch****************/
.watch_1r {
    padding: 65px 30px 65px 30px;
    background-color: #fff;
    box-shadow: 0px 10px 50px 0px rgb(53 82 99 / 9%);
    min-height: 373px;
}

.watch_1l2 span a {
    width: 80px;
    height: 80px;
    line-height: 80px;
}

.watch_1l2 {
    padding-top: 25%;
}

.watch_2l2 span a {
    width: 50px;
    height: 50px;
    line-height: 50px;
}

.watch_2l2 {
    padding-top: 18%;
}

/*********************watch_end****************/

/*********************minist****************/
.donate_1r .nav-tabs .nav-link.active {
    background: none;
    color: var(--primary-color);
    border: none;
    border-bottom: 3px solid var(--primary-color);
}

.donate_1r .nav-tabs .nav-link {
    background: none;
    color: #767e88;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 20px 40px;
    font-size: 15px;
    font-weight: bold;
}

.donate_1r .nav-tabs .nav-link:hover {
    color: var(--primary-color);
}

.minist_1i2 span a {
    width: 50px;
    height: 50px;
    line-height: 50px;
}

.minist_1i3 {
    bottom: 0;
}

/*********************minist_end****************/


/*********************testim****************/
#testim {
    margin-top: 180px;
}

.testim_m2 {
    top: -40% !important;
}

.testim_1rm2il {
    padding-top: 26%;
}

.testim_1ri {
    padding-top: 24%;
}

/*********************testim_end****************/


/*********************blog****************/
#blog {
    background-image: url(../img/34.jpg);
    background-position: center center;
    background-size: cover;
}

/*********************blog_end****************/

/* Consolidated into unified block below */



/* Section Navigation Icons */
.nav-icon-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--secondary-color);
}

.nav-icon-item:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.nav-icon-item:hover i {
    color: #fff !important;
}

.nav-icon-item.active {
    background: var(--primary-color);
    box-shadow: 0 4px 10px rgba(255, 49, 49, 0.4);
}

/* Service Card Animations */
.service-card {
    border-radius: 12px;
    /* Smooth corners */
    background: #fff;
    padding-bottom: 15px;
    box-shadow: var(--soft-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease-out;
    opacity: 0;
    /* Hidden initially for scroll animation */
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-card img {
    border-radius: 8px 8px 0 0;
    /* Match card radius */
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Consultation Scrolling (Horizontal Carousel) */
.shop_1.row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.shop_1.row::-webkit-scrollbar {
    display: none;
}

.shop_1 .col-md-3 {
    flex: 0 0 auto;
    width: 280px;
    margin-right: 10px;
}

/* Custom Animations form Reference */
@keyframes pulse-gold {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@keyframes slide-right {
    0% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(10px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0.5;
    }
}

@keyframes premium-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 49, 49, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 49, 49, 0.6);
    }
}

/* Premium Header Styles */
.premium-header-section {
    padding-bottom: 15px;
    position: relative;
    text-align: center;
}

.premium-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e52d27, #e52d27);
    /* Adjusted to theme colors */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(255, 49, 49, 0.4);
    animation: premium-pulse 3s infinite ease-in-out;
}

.premium-icon-box i {
    color: #fff;
    font-size: 36px;
}

/* ==================================
   INDEX PAGE RESPONSIVE (UNIFIED)
   ================================== */
@media (max-width: 991px) {

    /* 1. Hero Carousel */
    .center_hm1,
    .center_ht {
        display: none !important;
    }

    .carousel-caption {
        position: static !important;
        width: 100% !important;
        padding: 20px !important;
        background: #e52d27 !important;
        text-align: center !important;
    }

    .carousel-caption h2,
    .carousel-caption .font_50 {
        font-size: 24px !important;
    }

    .carousel-caption p {
        font-size: 14px !important;
        text-align: center !important;
    }

    /* 2. Unified Grid: Strictly 2-column for all 4-column desktop sections */
    .about_h3i1l,
    .about_h3i1r,
    .donate_2 .col-md-3,
    .shop_1im,
    .col-sm-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .service-card {
        margin-bottom: 20px !important;
    }

    #shop {
        padding-top: 10px !important;
    }

    .donate_1 {
        margin-bottom: 10px !important;
    }

    #shop {
        padding-top: 10px !important;
    }

    .donate_1 {
        margin-bottom: 10px !important;
    }

    /* 3. Proportional Font Scaling */
    .premium-title {
        font-size: 28px !important;
        margin-bottom: 12px !important;
    }

    .premium-subtitle {
        font-size: 11px !important;
        letter-spacing: 2px !important;
    }

    .font_60 {
        font-size: 32px !important;
    }

    .font_50 {
        font-size: 26px !important;
    }

    /* 4. Layout Preservation */
    .about_h2l,
    .about_h2r,
    .about_h3i1l,
    .about_h3i1r,
    .watch_1r,
    .testim_1l,
    .testim_m {
        text-align: inherit !important;
        float: none !important;
    }

    /* 5. Consultation Section (Horizontal Scroll) */
    .shop_1.row {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }

    .shop_1 .col-md-3 {
        flex: 0 0 140px !important;
        width: 140px !important;
        max-width: 140px !important;
        margin-right: 8px !important;
    }

    /* 6. UI Elements scaled down */
    .nav-icon-item {
        width: 44px;
        height: 44px;
    }

    .nav-icon-item i {
        font-size: 18px !important;
    }

    .premium-icon-box {
        width: 60px;
        height: 60px;
    }

    .premium-icon-box i {
        font-size: 26px !important;
    }

    .footer_1l {
        text-align: center;
    }

    .footer_1l h4 {
        margin-top: 20px;
    }
}

/* TELUGU TEXT STYLES */
.telugu-text {
    font-family: 'Noto Sans Telugu', 'Mandali', sans-serif !important;
    line-height: 1.9;
    letter-spacing: 0.3px;
}