.top-header {
    padding: 6px 0;
}

.logo {
    width: 84px;
    height: auto;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.top-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.custom-navbar {
    position: sticky;
    top: 77px;
    z-index: 999;
}

.site-tagline {
    font-size: 14px;
}

.contact-info h5 {
    font-size: 13px;
}

.contact-info {
    font-size: 13px;
    line-height: 1.8;
}

.contact-info p {
    margin: 0;
}

.custom-navbar {
    background: #343545;
}

.custom-navbar .nav-link {
    color: #fff !important;
    font-size: 18px;
    padding: 15px 18px !important;
}

.custom-navbar .nav-link:hover {
    color: #f8f9fa !important;
}

.dropdown-menu {
    border-radius: 0;
    border: none;
}

.dropdown-item:hover {
    background: #ec1f25;
    color: #fff;
}

.btn-primary {
    background-color: #2a4368 !important;
}

/* Responsive */

@media(max-width:991px) {

    .custom-navbar {
        position: sticky;
        top: 33%;
        z-index: 999;
    }

    .site-title {
        font-size: 19px;
    }

    .site-tagline {
        font-size: 14px;
    }

    .header-left {
        flex-direction: column;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .contact-info {
        text-align: center;
        margin-top: 15px;
    }
}

@media(max-width:576px) {

    .site-title {
        font-size: 22px;
    }

    .site-tagline {
        font-size: 13px;
    }

    .logo {
        max-width: 70px;
    }
}

/* footer css */
.footer-section {
    background: #3b3b49;
    color: #d7d7d7;
    margin-top: 80px;
}

.footer-top {
    padding: 80px 0;
}

.footer-logo-box {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-box img {
    width: 90px;
}

.footer-logo-box h5 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.7;
}

.footer-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    font-size: 16px;
    color: #d7d7d7;
    text-decoration: none;
    transition: .3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.copyright-text {
    font-size: 20px;
}

.footer-contact p {
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-contact i {
    margin-right: 8px;
}

.footer-social a {
    color: #fff;
    font-size: 26px;
    margin-right: 12px;
}

.copyright-section {
    background: #343442;
    padding: 35px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.counter-box {
    display: inline-block;
    background: #1f9c2e;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 4px;
    padding: 5px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.visitor-text {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.visitor-text a {
    color: #0d6efd;
    text-decoration: none;
}

.copyright-text {
    color: #ddd;
    margin-bottom: 0;
}

@media(max-width:991px) {

    .footer-logo-box {
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-title {
        margin-top: 20px;
    }
}

/* end footer css */

/* home page css */

.home-hero {
    background: #f5f5f5;
}

.hero-box {
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.yoga-card {
    overflow: hidden;
    background: #fff;
}

.yoga-card img {
    width: 270px;
    object-fit: cover;
}


.yoga-desc {
    background: #d34040;
    color: #fff;
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.yoga-footer {
    background: #c40000;
    color: #fff;
    padding: 15px;
    font-size: 16px;
}

.covid-card {
    border: 1px solid #d8d8d8;
    padding: 25px;
    height: 100%;
}

.covid-card h2 {
    color: #da2120;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.covid-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.covid-card ul {
    padding-left: 18px;
    margin: 15px 0;
}

.covid-card li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 6px;
}

.carousel-item img {
    height: 410px;
    object-fit: cover;
}

@media(max-width:991px) {

    .hero-box {
        padding: 20px;
    }

    .covid-card h2 {
        font-size: 26px;
    }

    .carousel-item img {
        height: 300px;
    }
}

@media(max-width:767px) {

    .carousel-item img {
        height: 220px;
    }

    .covid-card h2 {
        font-size: 24px;
    }

    .covid-card p,
    .covid-card li {
        font-size: 14px;
    }


}

.join-section {
    padding: 60px 0;
}

.join-banner {
    background: url('http://www.khyatieducation.org/assets/image/Join-us-img.jpg') center center;
    background-size: cover;
    min-height: 250px;
}

.join-overlay {
    background: rgba(0, 0, 0, .45);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.join-overlay h2 {
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.join-overlay p {
    color: #fff;
    font-size: 20px;
}

.join-btn {
    background: #fff;
    color: #333;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
}

.section-heading {
    color: #e31b1b;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #525252;
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
}

.courses-section {
    background: #f8f8f8;
}


.course-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.12);
}

.card-image {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #e31b1b;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card h4 {
    margin-top: 0;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
}

.course-card p {
    font-size: 15px;
    color: #5f5f5f;
    line-height: 1.8;
    margin: 15px 0 0;
    flex: 1;
}

.course-link {
    margin-top: 22px;
    display: inline-block;
    color: #e31b1b;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.course-link:hover {
    color: #a91414;
}

.journal-section {
    background: #f7f7f7;
}

.journal-card {
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 38px rgba(0, 0, 0, 0.12);
}

.journal-card-image {
    overflow: hidden;
    height: 180px;
    max-height: 180px;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journal-card-image img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.journal-card:hover .journal-card-image img {
    transform: scale(1.02);
}

.journal-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.journal-card-body h5 {
    font-size: 14px;
    margin: 0 0 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #222222;
}

.journal-card-body p {
    color: #5f5f5f;
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 10px;
}

.journal-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: #e31b1b;
    text-decoration: none;
    font-weight: 700;
}

.journal-link:hover {
    color: #a91414;
}

.journal-btn {
    background: #e11d1d;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    transition: background 0.25s ease;
}

.journal-btn:hover {
    background: #a91414;
}

@media(max-width:768px) {

    .join-overlay h2 {
        font-size: 28px;
    }

    .section-heading {
        font-size: 28px;
    }

    .carousel-item img {
        height: 250px;
    }

}

.courses-section .container,
.journal-section .container {
    border: 1px solid #dcdcdc;
    border-radius: 25px;
    padding: 35px;
}

/* about us css */
/* Breadcrumb */

.site-breadcrumb {
    padding: 30px 0 20px;
    background: #f5f5f5;
}

.site-breadcrumb a {
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

.site-breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.site-breadcrumb span {
    color: #999;
    font-size: 16px;
}

/* About Page */

.about-section {
    background: #f5f5f5;
    padding-bottom: 60px;
}

.about-card {
    background: #fff;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .08);
}

.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.about-subtitle {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #111;
}

.about-content p {
    font-size: 20px;
    line-height: 2;
    color: #555;
    margin-bottom: 40px;
    text-align: justify;
}

/* Responsive */

@media(max-width:768px) {

    .about-card {
        padding: 25px;
    }

    .about-title {
        font-size: 32px;
    }

    .about-subtitle {
        font-size: 22px;
    }

    .about-content p {
        font-size: 16px;
        line-height: 1.9;
    }
}

/* join membership */
.membership-card {
    background: #fff;
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 15px 40px rgba(46, 49, 146, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.membership-card .download-wrapper {
    background: var(--iesrf-light-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    border: 1px dashed #cbd5e0;
}

.membership-card .btn-join {
    background: linear-gradient(135deg, #0b061d, #0d1129);
    color: #fff;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(255, 126, 95, 0.3);
    transition: 0.3s;
}

.text-primary {
    color: rgb(14 61 131) !important;
}

.bg-primary {
    background-color: rgb(58 78 106) !important;
}

.list-group-item.active {
    background-color: #36465f;
}

/* end */
/* event page css  */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid rgba(46, 49, 146, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 49, 146, 0.12);
}

.gallery-card:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 49, 146, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.gallery-header h2 {
    font-weight: 800;
    color: var(--iesrf-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.gallery-header h2::after {
    content: "";
    width: 50px;
    height: 4px;
    background: var(--iesrf-red);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.gallery-header p {
    color: #777;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* end event page css */
/* members list css start */
.members-section {
    padding: 60px 0;
    background-color: #f9fbff;
}

.section-header {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.member-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
    height: 100%;
    border: 1px solid #e1e5ef;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(46, 49, 146, 0.1);
    border-color: var(--iesrf-blue);
}

.member-img-wrapper {
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid #f0f2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-name {
    color: var(--iesrf-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-divider {
    width: 50px;
    height: 2px;
    background: var(--iesrf-red);
    margin: 10px auto;
}

.member-inst {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 15px;
    min-height: 3rem;
}

.membership-id-box {
    background: #f1f3f9;
    padding: 8px;
    border-radius: 8px;
}

.id-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--iesrf-red);
    text-transform: uppercase;
}

.id-value {
    font-weight: 700;
    color: var(--iesrf-blue);
    font-size: 0.9rem;
}

.btn-join-nav {
    background-color: #242b49;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-join-nav:hover {
    background-color: #218838;
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* end */

/* home page second section */

/* Container Layout with Fresh Styling */
.kerf-modern-section {
    display: flex;
    gap: 24px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Card Upgrade */
.kerf-modern-section .km-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kerf-modern-section .km-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Card 1: Yoga Card Redesign --- */
.kerf-modern-section .yoga-special-card {
    flex: 1;
    max-width: 280px;
    position: relative;
}

.kerf-modern-section .yoga-media {
    background-color: #fff;
    padding: 15px;
    text-align: center;
}

.kerf-modern-section .yoga-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.kerf-modern-section .yoga-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #c62828;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.kerf-modern-section .yoga-desc-top {
    background-color: #fcfcfc;
    color: #444444;
    padding: 20px;
    font-size: 13.5px;
    line-height: 1.6;
    border-top: 1px solid #eee;
}

.kerf-modern-section .yoga-desc-bottom {
    background-color: #b71c1c;
    color: #ffffff;
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: auto;
    letter-spacing: 0.3px;
}

/* --- Card 2: Dynamic Content Redesign --- */
.kerf-modern-section .content-dynamic-card {
    flex: 1.2;
    max-width: 340px;
}

.kerf-modern-section .dynamic-media-header {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
}

.kerf-modern-section #dynamic-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kerf-modern-section .dynamic-content-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kerf-modern-section .category-tag {
    color: #c62828;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.kerf-modern-section #dynamic-card-title {
    color: #1a1a1a;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
    transition: opacity 0.4s ease;
}

.kerf-modern-section #dynamic-card-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    transition: opacity 0.4s ease;
}

.kerf-modern-section .km-primary-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: #d32f2f;
    color: #ffffff;
    text-decoration: none;
    font-size: 13.5px;
    padding: 11px 22px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: auto;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
    transition: background 0.2s, box-shadow 0.2s;
}

.kerf-modern-section .km-primary-btn:hover {
    background-color: #b71c1c;
    box-shadow: 0 6px 14px rgba(183, 28, 28, 0.3);
}

.kerf-modern-section .km-primary-btn .arrow {
    margin-left: 8px;
    transition: transform 0.2s;
}

.kerf-modern-section .km-primary-btn:hover .arrow {
    transform: translateX(4px);
}

/* --- Card 3: Modern Slider Showcase --- */
.kerf-modern-section .dynamic-slider-card {
    flex: 2;
    min-width: 420px;
    position: relative;
    border: none;
}

.kerf-modern-section #main-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kerf-modern-section .km-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.kerf-modern-section .km-nav-btn:hover {
    background: #d32f2f;
    color: #fff;
}

.kerf-modern-section .prev-nav {
    left: 15px;
}

.kerf-modern-section .next-nav {
    right: 15px;
}

.kerf-modern-section .prev-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.kerf-modern-section .next-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.kerf-modern-section .km-dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Responsive UI Adjustment */
@media (max-width: 992px) {
    .kerf-modern-section {
        flex-direction: column;
        align-items: center;
    }

    .kerf-modern-section .km-card {
        max-width: 100% !important;
        width: 100% !important;
    }

    .kerf-modern-section .dynamic-slider-card {
        min-width: unset;
        height: 350px;
    }
}