:root {
    --main-color-new-theme: #a20000;
}

/* hsky classes styles starts*/
:root {
    --main-color-new-theme: #a20000;
    --card-radius: 12px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.themed-card {
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
    /* box-shadow: var(--card-shadow) !important; */
    position: relative;
    overflow: hidden;
    /* border: 1px solid var(--main-color-new-theme); */
}


.themed-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.207) !important; */
}

.themed-title {
    font-size: 1.5rem !important;
    margin: 0px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.themed-card p {
    font-size: 3rem;
    line-height: 2;
    margin-bottom: 0.6rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.themed-btn {
    background-color: var(--main-color-new-theme);
    color: white;
    border: none;
    padding: 0.5rem 1.3rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.detail-line {
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.detail-line i {
    flex-shrink: 0;
}

.detail-flex-wrap p i {
    margin-right: 5px !important;
}

.detail-flex-wrap p {
    line-height: 1.3;
}

.desc-toggle {
    display: none;
}

.desc-toggle p{
    line-height: 1.3 !important;
}

@media (max-width: 768px) {
    .detail-flex-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .detail-line {
        font-size: 0.8rem;
        width: 100%;
    }

    .themed-card p {
        font-size: 1.2rem !important;
        line-height: 1.4;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        flex-wrap: nowrap;
        /* Ensures icon and label stay in same line */
    }

    .detail-flex-wrap p i {
        font: 0.8rem !important;
        margin: 0px !important;
    }

    .themed-title {
        font-size: 1.2rem;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 600;
        line-height: 1.2;
    }

    .themed-card {
        padding: 12px 8px !important;
    }

    .eye-btn {
        height: 50px !important;
        width: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .toggle-btn i {
        font-size: 1rem;
        margin: 0px !important;
        color: var(--main-color-new-theme);
    }
}


/* .btn:hover {
    color: white;
    background-color: #F26938 !important;
    border-color: black;
    transition: 0.2sec;
} */

/* hsky classes styles ends */

.community-div {
    padding: 40px;
    background-image: linear-gradient(89deg, #000000c9 5%, rgb(0 0 0 / 32%) 95%);
    overflow: hidden;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.card-header {
    background-color: var(--headerFooter) !important;
    padding: 8px 0px 8px 0px;
    color: white !important;
    font-size: 25px !important;
}

.title {
    color: var(--main-color-new-theme) !important;
    font-weight: 600 !important;
    /*	line-height: 56px!important;*/
}

.title2 {
    color: white !important;
    font-weight: 600 !important;
    /* font-size: 40px; */
    /*	line-height: 56px!important;*/
}

.btn-outline-light {
    border-radius: 0px !important;
    background-color: var(--main-color-new-theme) !important;
    color: white;
    border: 0px !important;
    padding: 11px 29px !important;
}

.community a:hover {
    background-color: #C2542D !important;
    color: white !important;
}

.flash-news-img {}

.about-temple-img {
    border-radius: 50% !important;
}

.in-page-btn {
    color: white;
    border-color: transparent;
    background-color: #a62a2a !important;
    border-radius: 25px;
    box-shadow: 1px 1px 10px #7e455561;
    padding: 10px 16px;
}

.hs-responsive-embed-youtube {
    position: relative;
    padding-bottom: 25px;
    padding-top: 25px;
}


.ViewAllEventBtn:hover {
    border-radius: 0px !important;
    word-break: keep-all !important;
    background: #642318 !important;
    text-shadow: 1px 1px 10px black !important;
}

.change-bgcolor:hover {
    transition: all .3s !important;
    font-size: 15px;
    text-shadow: 1px 1px 10px #f4ff4e;
}

.card-home-header {
    background-color: #A63030 !important;
    padding: 11px;
    font-weight: 700 !important;
    text-shadow: 1px 0px 0px #ff2c00;
}

.donate-btn {
    background-color: #ff6a00;
    border: none;
    color: #fff;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.donate-btn:hover {
    background-color: #e65c00;
}

.temple-improvements-heading {
    display: flex !important;
    justify-content: center;
    align-content: space-between;
    flex-direction: column;
}

.temple-improvements-btn {
    margin-right: auto;
    text-transform: uppercase;
    fill: #131313;
    color: #131313;
    background-color: #EFA35C;
    border-radius: 10px !important;
    padding: 10px 31px 10px 31px;
    font-size: 100%;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

.temple-improvements-subheading {
    color: #FFFFFF;
    font-weight: 400;
}

.temple-improvements-p {
    color: #fbba76 !important;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 51px !important;
    font-size: 20px !important;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 25px;
    transform: translate(-50%, -50%);
    color: white !important;
}

.community-sec-desc {
    color: #d1d1d1;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}


/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
#hero {
    position: relative;
    padding-top: 5rem;
}

.hero-content {
    margin-top: -10%;
    max-width: 700px;
}

#hero h1 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
    font-size: 1.25rem;
    color: #f8f9fa;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#hero a.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#hero a.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

/* Section Headings */
section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--main-color-new-theme);
}

/* Cards */
.card,
.timing-card,
.registration-details,
.registration-info {
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover,
.timing-card:hover,
.registration-details:hover,
.registration-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    font-size: 1.2rem;
    padding: 10px 30px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    /* background-color: var(--main-color-new-theme); */
    /* color: white; */
    color: var(--main-color-new-theme);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Classes Section (Updated for Responsiveness) */
#classes-section {
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#classes-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--main-color-new-theme);
}

#classes-section .class-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    /* Create a responsive grid layout */
    gap: 20px;
}

#classes-section .class-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 20px;
    margin-bottom: 20px;
}

#classes-section .class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#classes-section .class-card .card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-color-new-theme);
    margin-bottom: 10px;
}

#classes-section .class-card .card-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
}

#classes-section .class-card .class-btn {
    background-color: #42B32F;
    color: white;
    padding: 10px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
}

#classes-section .class-card .class-btn:hover {
    background-color: #36a32c;
    transform: translateY(-3px);
}

#classes-section .class-btn:active {
    background-color: #2b8733;
}

.card {
    transition: none !important;
    /* Disables transition effects */
}

/* Ensure the cards stay fixed in place */
.card:hover {
    transform: none !important;
    /* Removes any movement */
    box-shadow: none !important;
    /* Prevents shadow effects that can cause the card to move */
}

.card {
    display: block;
    margin-bottom: 20px;
    padding: 0.5rem !important;
    line-height: 1.42857143;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    transition: box-shadow .25s;
}

.card:hover {
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.img-card {
    width: 100%;
    height: 200px;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    display: block;
    overflow: hidden;
}

.img-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all .25s ease;
}

.card-content {
    padding: 15px;
    text-align: left;
}

.card-title {
    margin-top: 0px;
    /* text-align: center !important; */
    font-weight: 700;
    font-size: 1.65em;
}

.card-title a {
    color: #000;
    text-decoration: none !important;
}

.card-read-more {
    border-top: 1px solid #D4D4D4;
}

.card-read-more a {
    text-decoration: none !important;
    padding: 10px;
    font-weight: 600;
    text-transform: uppercase
}


@media only screen and (max-width: 768px) {
    .col-md-6 {
        text-align: justify;
    }

    .text-start {
        text-align: justify !important;
    }
}

/* Responsive Design for Classes Section */
@media (max-width: 768px) {
    #classes-section h2 {
        font-size: 1.75rem;
    }

    #classes-section .class-card {
        padding: 15px;
    }

    #classes-section .class-card .card-title {
        font-size: 1.25rem;
    }

    #classes-section .class-card .card-description {
        font-size: 0.9rem;
    }

    #classes-section .class-card .class-btn {
        font-size: 1rem;
        padding: 8px 15px;
    }
}

/* Additional Responsive Design */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .hero-content {
        margin-top: -5%;
    }
}

@media (max-width: 576px) {
    #hero h1 {
        font-size: 1.75rem;
    }

    #hero p {
        font-size: 0.9rem;
    }

    #hero a.btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Google Map */
#google-map {
    padding: 58px;
    margin: 25px;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    position: relative;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.get-directions-btn {
    background-color: #007bff;
    color: white;
    padding: 10px 18px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
}

.get-directions-btn:hover {
    background-color: #0056b3;
}

/* Sponsor Button */
.sponsor-btn {
    position: absolute;
    top: 40%;
    right: 100px;
    transform: translateY(-50%);
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s, transform 0.3s;
}

.sponsor-btn:hover {
    background-color: #0056b3;
    transform: translateY(-50%) scale(1.05);
}

@media (max-width: 768px) {
    .sponsor-btn {
        right: 10px;
        padding: 6px 10px;
    }
}

@media (max-width: 991px) and (min-width : 770px) {
    #about-us .card.objective-card img {
        height: -webkit-fill-available !important;
    }

    #about-us .card.objective-card {
        display: block !important;
    }

    .objectives-only {
        height: 585px !important;
        min-height: 585px !important;

    }

    .col-md-12 .card {
        height: 381px !important;
        /* max-height: 381px !important; */
    }

    .about-only {
        max-height: 347px !important;
    }
}

/* .card-img-top {
        height: 200px !important;
    } */

/* 1600px - 994px */
@media (max-width: 1600px) and (min-width: 994px) {
    .card-img-top {
        width: unset;
    }
}

/* 1400px - 1024px */
@media (max-width: 1400px) and (min-width: 770px) {
    .tab-content .table {
        margin-top: -59px !important;
    }
}

/* 1397px - 1200px */
@media (max-width: 1397px) and (min-width: 1200px) {
    .row.mb-5 {
        display: flex;
        align-items: stretch;
    }

    .row.mb-5 .col-md-6 {
        display: flex;
    }

    .row.mb-5 .card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .row.mb-5 .card-body {
        flex-grow: 1;
    }
}

/* 1394px - 1200px */
@media (max-width: 1394px) and (min-width: 1200px) {
    .card .card-img-top {
        /* width: 361px !important;
            margin-left: 82px; */
    }
}

@media (max-width: 1497px) and (min-width: 1024px) {
    .col-md-12 .card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: 100%;
    }

    .col-md-12 .card .col-md-4 {
        display: flex;
        flex: 0 0 40%;
        /* Set a fixed proportion for the image column */
        max-width: 40%;
    }

    .col-md-12 .card img.card-img-left {
        object-fit: cover;
        /* Ensures the image scales properly */
        height: 100%;
        /* Matches parent column height */
        width: 100%;
        /* Fills the column */
        border-radius: 0;
        /* margin-left: -8px; */
    }

    .col-md-12 .card .col-md-8 {
        flex: 1;
        /* Takes the remaining space */
        display: flex;
        flex-direction: column;
    }

    .col-md-12 .card .col-md-8 .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centers content vertically */
    }
}

@media (max-width: 1358px) and (min-width: 1202px) {
    .col-md-12 .card {
        height: 100%;
        /* Ensures the card takes the full height of the parent */
    }

    .col-md-12 .card .col-md-4 {
        display: flex;
        flex: 0 0 40%;
        /* Image column takes 40% width */
        max-width: 40%;
    }

    .col-md-12 .card img.card-img-left {
        object-fit: cover;
        /* Ensures image fills the space without distortion */
        height: 100%;
        /* Matches column height */
        width: 100%;
        border-radius: 0;
        /* margin-left: -8px; */
    }

    .col-md-12 .card .col-md-8 {
        flex: 1;
        /* Takes the remaining space */
        display: flex;
        flex-direction: column;
    }

    .col-md-12 .card .col-md-8 .card-body {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Centers content vertically */
    }
}

/* For general large screens, apply specific styling to cards */
@media (min-width: 768px) {
    .col-md-12 .card {
        flex: 0 0 auto;
        width: 100%;
        height: 307px;
    }
}


/* General Objective Card Styling */
#about-us .card.objective-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

#about-us .card.objective-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive Styles for Objective Section */
@media (max-width: 768px) {
    #about-us .card.objective-card {
        flex-direction: column;
        /* Stack image and content vertically */
        text-align: center;
    }

    #about-us .card.objective-card .col-md-4,
    #about-us .card.objective-card .col-md-8 {
        width: 100%;
    }

    #about-us .card.objective-card .card-body {
        padding: 1rem;
        /* Add padding for readability */
    }

    #about-us .card.objective-card ul {
        text-align: left;
        padding-left: 1rem;
    }

    #about-us .card.objective-card li {
        font-size: 16px !important;
    }
}


/* General Responsive Adjustments */
@media (max-width: 768px) {
    .custom-tab {
        font-size: 14px !important;
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
        margin-right: 5px !important;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .nav-tabs .nav-item {
        margin-bottom: 5px;
    }

    .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;
        /* min-width: 600px; */
    }

    .card .sponsor-btn {
        position: static;
        margin-top: 10px;
    }

    .card {
        padding: 10px;
    }

    .card h5.card-title {
        font-size: 16px;
    }

    .card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .custom-tab {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    .table th,
    .table td {
        font-size: 12px;
        padding: 6px;
        padding-top: 27px !important;

    }

    .card {
        font-size: 12px;
        padding: 8px;
    }
}

/* For mobile view only */
@media (max-width: 767px) {
    .table-wrapper {
        overflow-x: auto;
        /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on mobile */
    }

    table {
        width: 100%;
        /* min-width: 600px;  */
    }
}


@media only screen and (max-width: 1399px) and (min-width: 997px) {
    .mission-vission img.card-img-top {
        height: 250px !important;
        width: 100%;
        /* Image full width rahe */
        object-fit: cover;
        /* Image stretch hone ki jagah crop ho */
        margin-top: 22px;
    }
}

@media only screen and (max-width: 1400px) and (min-width: 1200px) {
    .objectives-only {
        height: 488px !important;
        overflow: hidden;

    }
}

@media only screen and (max-width: 1200px) and (min-width: 770px) {
    .objectives-only {
        height: 494px !important;
        overflow: hidden;
        /* Ensures no content overflows */

    }
}


@media screen and (max-width: 1600px) and (min-width: 1001px) {
    .aboutthis {
        /* margin-left: -100px; */
    }
}


@media (max-width: 767px) and (min-width: 250px) {

    .about-temple-img {
        display: block !important;
        margin: 0 auto;
    }

    .temple-services .row>div:nth-child(1) {
        order: 1;
        width: 100%;
        text-align: center;
    }

    .temple-services .row>div:nth-child(4) {
        order: 2;
        width: 100%;
    }

    .temple-services .row>div:nth-child(2) {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .temple-services .row>div:nth-child(5) {
        order: 4;
        width: 100%;
    }

    .temple-services .row>div:nth-child(3) {
        order: 5;
        width: 100%;
        text-align: center;
    }

    .temple-services .row>div:nth-child(6) {
        order: 6;
        width: 100%;
    }
}

.about-para {
    font-family: sans-serif !important;
    line-height: unset !important;
    font-size: 22px !important;
    font-weight: 500 !important;
}