﻿/* Fonts */
body {
    font-family: 'DM Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Kanit', sans-serif;
}

.serif-font {
    font-family: 'Kanit', sans-serif;
}

* {
    font-family: inherit;
}


/* Navbar */
.main-navbar {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    padding: 0.75rem 0;
}

.main-navbar.scrolled {
    background: #ffffff;
    padding: 0.5rem 0;
}

.navbar-brand .brand-text {
    line-height: 1.1;
    color: #1a3c70;
}

.navbar-brand .brand-text .small {
    font-size: 0.95rem !important;
    letter-spacing: 1.2px;
}

.nav-link {
    color: #000 !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 8px;
    letter-spacing: 0.2px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #1a3c70 !important;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.lang-selector,
.search-icon {
    color: #333 !important;
}

.lang-selector:hover,
.search-icon:hover {
    color: #1a3c70 !important;
}

/* Hide default Bootstrap dropdown caret */
.dropdown-toggle::after {
    display: none !important;
}

/* Custom Chevron Styling */
.main-navbar .bi-chevron-down {
    font-size: 0.7rem;
    vertical-align: middle;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate when dropdown is open (Bootstrap .show class) */
.nav-item.dropdown .dropdown-toggle.show .bi-chevron-down,
.lang-selector.show .bi-chevron-down {
    transform: rotate(180deg);
}

/* Grouping refinement */
.navbar-content-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

@media (min-width: 992px) {
    .navbar-content-wrapper {
        justify-content: center;
        gap: 30px;
    }
}

/* Mobile Offcanvas Premium Styling */
@media (max-width: 991.98px) {
    .navbar-offcanvas {
        width: 300px !important;
        background: #ffffff;
        border-left: none;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .offcanvas-header {
        padding: 1.5rem 1.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .offcanvas-title .brand-text {
        font-size: 0.65rem !important;
        color: #1a3c70;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .offcanvas-body {
        padding: 1.5rem !important;
    }

    .offcanvas-body .navbar-nav {
        gap: 0;
    }

    .offcanvas-body .nav-link {
        margin: 0;
        padding: 15px 0 !important;
        font-size: 1.05rem;
        border-bottom: 1px solid #f8f9fa;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #333 !important;
    }

    .offcanvas-body .dropdown-menu {
        border: none;
        background: #fdfdfd !important;
        padding-left: 1.5rem;
        box-shadow: none;
        margin-top: 0;
        position: static !important;
        transform: none !important;
    }

    .offcanvas-body .dropdown-item {
        padding: 12px 0;
        font-size: 1rem;
        color: #666;
        border-bottom: 1px solid #fcfcfc;
    }

    .offcanvas-body .border-start {
        border-left: none !important;
        border-top: 1px solid #eee;
        margin-top: 2rem;
        padding-top: 2rem;
        padding-left: 0 !important;
        flex-direction: column;
        align-items: flex-start !important;
    }
}

.mobile-close-btn {
    background: #f8f9fa;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1100;
}

.mobile-close-btn:hover {
    background: #1a3c70;
    color: #fff;
}

.small-icon {
    font-size: 0.7rem;
    vertical-align: middle;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    /* Adjust height based on preference */
    overflow: hidden;
}

.carousel-item {
    height: 90vh;
}

.hero-img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    /* Darken image for better text readability */
}

.carousel-caption {
    top: 55%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 2;
}

.main-title {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.date-badge {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Slider Controls Refined */
.slider-arrow {
    width: 100px !important;
    height: 70px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 100px;
    /* Oval/Pill shape */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.slider-arrow:hover {
    background: #fff;
    color: #0c1c3c;
    border-color: #fff;
    transform: scale(1.05);
}

.slider-arrow i {
    font-size: 1.5rem;
}

/* Dash Indicators Refined */
.hero-indicators {
    bottom: 40px !important;
    gap: 15px;
}

.hero-indicators button {
    width: 30px !important;
    height: 3px !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    border-radius: 2px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    opacity: 1 !important;
}

.hero-indicators button.active {
    width: 50px !important;
    background-color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.hero-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.6) !important;
}

/* Animated "Ajoyib batafsil" Button */
.btn-animated-details {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    background: #fff;
    color: #0c1c3c;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.7s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-animated-details span {
    position: relative;
    z-index: 2;
}

.btn-animated-details i {
    position: relative;
    z-index: 2;
    font-size: 1.3rem;
    margin-left: 10px;
    transition: transform 0.4s ease;
}

.btn-animated-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #1a3c70;
    transition: all 0.4s ease;
    z-index: 1;
}

.btn-animated-details:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-animated-details:hover::before {
    left: 0;
}

.btn-animated-details:hover i {
    transform: translateX(5px);
}

/* Info & Stats Section */
.info-stats-section {
    background: #f8fbff;
    /* Very light blue, almost white */
    padding: 80px 0;
}

.info-stats-section h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    color: #0c1c3c;
    font-weight: 500;
}

.small-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.stats-divider {
    border-top: 1px solid #e5eef7;
    margin: 40px 0;
}

.stats-number {
    font-family: 'Kanit', sans-serif;
    color: #084A82 !important;
    font-size: 5rem !important;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    font-weight: 500;
}

.stats-col {
    position: relative;
    padding: 0 30px;
}

.stats-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e5eef7;
}

@media (max-width: 991.98px) {
    .info-stats-section {
        text-align: center;
    }

    .info-stats-section .img-fluid {
        margin-bottom: 2rem;
        max-width: 120px;
    }

    .info-stats-section h2 {
        margin-bottom: 1.5rem !important;
    }

    .stats-col:not(:last-child)::after {
        display: none;
    }

    .stats-col {
        margin-bottom: 30px;
    }
}


/* Achievements Section Styling */
/* Professional Accordion Handling */
#achievementsAccordion .accordion-item {
    border: none !important;
    border-bottom: 1px solid #eee !important;
    background: transparent;
    position: relative;
    z-index: 1;
}

#achievementsAccordion .accordion-header {
    position: relative;
    z-index: 5;
    /* Header stays above the body during collapse */
    background: #fff;
}

#achievementsAccordion .accordion-button {
    font-size: 1.25rem;
    padding: 1.25rem 0;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

#achievementsAccordion .accordion-button:focus {
    box-shadow: none !important;
    outline: none !important;
}

#achievementsAccordion .accordion-button:not(.collapsed) {
    color: #1a3c70;
}

#achievementsAccordion .accordion-collapse {
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* Body stays below the header */
}

/* Hide default arrow and use custom one */
#achievementsAccordion .accordion-button::after {
    display: none !important;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #666;
}

#achievementsAccordion .accordion-button:not(.collapsed) .accordion-icon {
    transform: rotate(180deg);
    color: #1a3c70;
}

#achievementsAccordion .accordion-body {
    padding: 0 0 1.5rem 0;
    border: none;
}

.accordion-button:hover {
    color: #1a3c70;
}

.partner-logo {
    height: 35px;
    /* Slightly larger but contained */
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.achievement-img-wrapper {
    overflow: hidden;
    border-radius: 20px;
    /* More rounded */
    max-height: 400px;
    /* Constraint height */
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.achievement-img-wrapper:hover .achievement-img {
    transform: scale(1.05);
    /* Gentle zoom */
}

/* Play button ripple refined */
.play-btn-wrapper {
    cursor: pointer;
    z-index: 10;
}

.play-btn-inner {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-btn-wrapper:hover .play-btn-inner {
    transform: scale(1.1);
}

.play-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* News Section */
/* .news-section {
    background-color: #f8f9fa;
} */

.news-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.news-img-wrapper {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover .news-overlay {
    opacity: 1;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.news-card:hover .card-title {
    color: #1a3c70;
    /* Change title color on hover */
}

.btn-link {
    color: #333;
    transition: color 0.3s;
}

.news-card:hover .btn-link {
    color: #1a3c70;
}

/* Footer Refined */
.refined-footer {
    background-color: #27272A;
    /* Default for all pages */
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
}

.refined-footer.transparent-footer {
    background-color: transparent;
}

.refined-footer h5,
.refined-footer h6,
.refined-footer .footer-title,
.refined-footer p,
.refined-footer a,
.refined-footer li {
    color: #ffffff !important;
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-column {
    padding: 0 15px !important;
    border-right: none !important;
}

.footer-branding .footer-logo {
    width: 100px;
    margin-bottom: 15px;
}

.footer-branding p {
    font-size: 0.85rem;
    color: #ffffff !important;
    opacity: 0.8;
    line-height: 1.5;
}

.footer-social-links .social-btn {
    width: 38px;
    height: 38px;
    background: #084A82 !important;
    /* Deep blue from image */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-social-links .social-btn:hover {
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Newsletter Styles */
.footer-input {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-size: 0.9rem;
}

.footer-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.btn-subscribe {
    background: #084A82 !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-subscribe:hover {
    background: #0a589a !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Subscription Pill */
.footer-subscribe-pill {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.footer-subscribe-pill input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 20px;
    flex-grow: 1;
    font-size: 0.9rem;
    outline: none;
}

.footer-subscribe-pill input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-subscribe-pill .sub-btn {
    background: #fff;
    color: #1a3c70;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-subscribe-pill .sub-btn:hover {
    background: #1a3c70;
    color: #fff;
    transform: scale(1.1);
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: #ffffff !important;
    font-weight: 600;
    transform: translateX(5px);
}

/* Bottom Footer */
.footer-bottom {
    padding-top: 25px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.footer-bottom .contact-info span {
    margin-right: 30px;
}

.footer-payment-logos img {
    height: 28px;
    margin: 0 8px;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(0.2);
    cursor: pointer;
}

.footer-payment-logos img:hover {
    opacity: 1;
    transform: scale(1.2) translateY(-3px);
    filter: grayscale(0) brightness(1.1) drop-shadow(0 5px 15px rgba(255, 255, 255, 0.2));
}

.footer-back-to-top {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s;
    margin-left: 20px;
}

.footer-back-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

@media (max-width: 992px) {
    .footer-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px 0;
    }

    .footer-column:last-child {
        border-bottom: none;
    }
}

footer {
    background: transparent;
}

/* Colors */
.text-primary {
    color: #1a3c70 !important;
    /* Overriding bootstrap primary for text */
}

/* Events Section Refined */
.event-card {
    height: 200px;
    cursor: pointer;
    background-color: #000;
}

.event-card .card-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    filter: brightness(0.5);
}

.event-card:hover .card-img {
    transform: scale(1.05);
    filter: brightness(0.4);
}

.event-card .card-img-overlay {
    padding: 30px 60px !important;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: linear-gradient(90deg, rgba(12, 28, 60, 0.4) 0%, rgba(12, 28, 60, 0) 60%);
}

.event-card-content {
    text-align: left;
}

.event-category-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: block;
}

.event-main-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.1;
}



@media (max-width: 768px) {
    .event-card {
        height: 160px;
    }

    .event-card .card-img-overlay {
        padding: 20px 30px !important;
    }

    .event-main-title {
        font-size: 1.8rem;
    }


}



/* Documents Section */
.transition-base {
    transition: all 0.5s ease-in-out;
}

.docs-slider-row {
    margin-right: -1rem;
    margin-left: -1rem;
}

.docs-slider-container {
    padding: 20px 20px 40px 20px;
    /* Add padding to prevent hover clipping */
}

.doc-card {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #1a3c70 !important;
}

/* Leadership & Committee Sections */
.leadership-section {
    padding: 80px 0;
    background: #fff;
}

.leadership-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.8rem;
    color: #1a3c70;
    text-align: center;
    margin-bottom: 60px;
}

.leader-card {
    width: 402px;
    height: 692px;
    margin: 0 auto 40px;
    transition: transform 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.leader-img-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    flex-grow: 1;
    margin-bottom: 25px;
}

.leader-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.leader-card:hover .leader-img {
    transform: scale(1.05);
}

.leader-info {
    position: relative;
}

.leader-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.leader-name {
    font-family: 'Kanit', sans-serif;
    font-size: 1.6rem;
    color: #1a3c70;
    line-height: 1.2;
    flex: 1;
    margin-right: 15px;
}

.leader-socials {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
    color: #fff;
}

.social-tg {
    background-color: #0088cc;
}

.social-wa {
    background-color: #075e54;
}

.leader-role {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
}

.role-bullet {
    width: 8px;
    height: 8px;
    background-color: #1a3c70;
    border-radius: 50%;
    display: inline-block;
    margin-top: 7px;
    margin-right: 12px;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .leadership-title {
        font-size: 2rem;
    }

    .leader-name {
        font-size: 1.4rem;
    }

    .leader-card {
        width: 100%;
        height: auto;
    }

    .leader-img-box {
        aspect-ratio: 4/5;
        flex-grow: 0;
    }
}

/* Achievements Direct Layout */
.achievements-direct-content {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
}

.mission-item-simple {
    padding: 15px;
    height: 100%;
    transition: transform 0.3s ease;
}

.mission-item-simple:hover {
    transform: translateY(-5px);
}

.h-item {
    background: #fff;
    padding: 35px;
    /* Increased padding for more breathing room */
    border-radius: 20px;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.h-item:hover {
    border-color: #1a3c70 !important;
    background: #f8f9fa;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.h-year {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* Marquee Sections */
.partners-marquee-section,
.participation-marquee-section {
    position: relative;
    overflow: hidden;
}

.partnersSwiperLarge .swiper-slide img,
.eventsSwiperLarge .swiper-slide img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partnersSwiperLarge .swiper-slide img:hover,
.eventsSwiperLarge .swiper-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Marquee smooth transition */
.partnersSwiperLarge .swiper-wrapper,
.eventsSwiperLarge .swiper-wrapper {
    transition-timing-function: linear !important;
}

.doc-nav-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.doc-nav-btn:hover {
    background-color: #1a3c70 !important;
    border-color: #1a3c70 !important;
    color: #fff !important;
    transform: scale(1.05);
    /* Slight scale up instead of rotation */
    box-shadow: 0 5px 15px rgba(26, 60, 112, 0.3);
}

.doc-icon {
    color: #333;
    transition: color 0.3s;
}

.doc-card:hover .doc-icon {
    color: #1a3c70;
}

/* Video Section */
.video-card {
    height: 250px;
    cursor: pointer;
}

.video-thumb {
    transition: transform 0.6s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
    opacity: 0.9;
    transition: opacity 0.3s;
}

.video-card:hover .video-thumb {
    transform: scale(1.1);
    /* Moving image animation */
}

.play-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.video-card:hover .play-btn {
    transform: scale(1.1);
}


/* Laws & Decrees Section Refined */
.laws-section {
    padding-top: 5rem;
}

.law-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    /* Default light background */
    cursor: pointer;
}

/* Background Image Handling */
.law-card .law-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Hidden by default */
    transition: opacity 0.4s ease;
    z-index: 0;
    filter: brightness(0.4);
    /* Darken for text readability */
}

.law-card:hover .law-bg-image {
    opacity: 1;
    /* Show on hover */
}

.law-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.law-date {
    width: 140px;
    background-color: #fff;
    flex-shrink: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.law-card:hover .law-date {
    background-color: rgba(255, 255, 255, 0.9) !important;
    /* Ensure legibility against dark BG */
    color: #000 !important;
}

.law-card:hover .law-date .text-muted {
    color: #6c757d !important;
    /* Keep muted text as is */
}

.law-content {
    background-color: transparent;
    border-radius: 0 4px 4px 0;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.law-content h5,
.law-content p {
    transition: color 0.3s;
}

.law-card:hover .law-content h5 {
    color: #fff;
}

.law-card:hover .law-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 3rd Card specific overrides handled in HTML via classes or nth-child if needed, 
   but specific background fit coverage */
.law-card.bg-image {
    position: relative;
}

.law-card.bg-image .law-date {
    background: rgba(255, 255, 255, 0.9);
}

.collage-row img {
    height: 280px;
    /* Reduced height as requested */
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
    filter: grayscale(40%) brightness(0.9);
}

.collage-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.collage-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

.collage-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 112, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.collage-item:hover::after {
    opacity: 1;
}

/* Floating Card for Laws Section */
.floating-card-section {
    margin-top: -30px;
    /* Reduced overlap for better spacing */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
    z-index: 10;
}

/* "View All" Button circle wrapper */
.btn-primary.rounded-circle {
    box-shadow: 0 10px 20px rgba(26, 60, 112, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary.rounded-circle:hover {
    transform: scale(1.1) rotate(45deg);
    /* playful rotation */
}

.collage-banner {
    margin-bottom: 0 !important;
}

.footer-group-shared-bg {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    /* pure white background */
}

/* Stadium Background Overlay Position */
.footer-group-shared-bg .footer-bg-image {
    top: 420px !important;
    height: calc(100% - 420px) !important;
}

/* Always Active Law Card Style (for the 3rd card in screenshot) */
.law-card.always-active .law-bg-image {
    opacity: 1;
}

.law-card.always-active .law-date {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #000 !important;
}

.law-card.always-active .law-content h5 {
    color: #fff;
}

.law-card.always-active .law-content p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.main-footer,
.main-footer p,
.main-footer ul li,
.main-footer ul li a,
.main-footer .text-white-50 {
    color: #ffffff !important;
}

/* View All Pill Button Styling & Animation */
.view-all-pill-btn {
    width: 70px;
    height: 100px;
    background-color: #084A82 !important;
    border: none !important;
}

.view-all-pill-btn:hover {
    transform: translateY(-5px);
}

.view-all-pill-btn i {
    transition: transform 0.4s ease;
}

.view-all-pill-btn:hover i {
    transform: translateY(3px);
}

.main-footer {
    font-size: 0.9rem;
}

.footer-overlay {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.footer-bg-image img {
    filter: brightness(0.8);
}

.footer-branding {
    transform: translateY(-15px);
}

.footer-sub-input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.social-links .btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s;
}

.social-links .btn:hover {
    background: #1a3c70;
    border-color: #1a3c70;
    transform: translateY(-3px);
}

.main-footer h5 {
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

#achievementsAccordion .accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: #fff;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

#achievementsAccordion .accordion-item:hover {
    border-color: #1a3c70 !important;
    box-shadow: 0 10px 25px rgba(26, 60, 112, 0.08);
}

#achievementsAccordion .accordion-button {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#achievementsAccordion .accordion-button:not(.collapsed) {
    color: #fff;
    background: #1a3c70;
    box-shadow: none;
}

#achievementsAccordion .accordion-button::after {
    transition: transform 0.3s ease, filter 0.3s ease;
}

#achievementsAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

#achievementsAccordion .accordion-button:focus {
    box-shadow: none;
}

#achievementsAccordion .accordion-body {
    padding: 2rem;
    border: none !important;
    background-color: transparent !important;
    overflow: visible !important;
    /* Allow pagination to catch clicks */
}

#achievementsAccordion .accordion-collapse {
    overflow: visible !important;
    /* Bootstrap often hides overflow here */
}

#achievementsAccordion .accordion-item {
    border: none !important;
    background-color: transparent !important;
    overflow: visible !important;
}

#achievementsAccordion .accordion-button {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

#achievementsAccordion .accordion-button:not(.collapsed) {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Custom Vertical Pagination for History */
/* Reserve space on the right for pagination so text never overlaps */
.historySwiper {
    position: relative;
    padding-right: 50px !important;
    box-sizing: border-box;
    overflow: hidden !important;
    /* Clip slides that slide out of view */
    /* z-index: 1; removed unnecessary z-index */
}

.historySwiper .swiper-pagination {
    position: absolute;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 40px !important;
    /* Fixed width for the pagination column */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 10;
    background-color: #ffffff;
    /* Mask underlying text */
    border-radius: 4px 0 0 4px;
    /* Soft edge */
}

/* Bullet styling */
.historySwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1px solid #1a3c70;
    opacity: 1;
    margin: 0 !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.historySwiper .swiper-pagination-bullet-active {
    background: #1a3c70;
    transform: scale(1.2);
}

/* Ensure Slides treat the padding correctly */
.historySwiper .swiper-slide {
    height: auto;
    /* Text flows naturally within the available width (container width - 50px padding) */
}

.partner-mini-img {
    max-height: 72px;
    width: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.partner-mini-img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.historySwiper .swiper-slide {
    display: block;
    text-align: left;
}

/* Info Sections */
.info-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.info-section-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0;
}

.partners-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.participant-logo-item {
    text-align: center;
    max-width: 120px;
}

.participant-logo-item img {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.participant-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.event-stars {
    color: #ffd700;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.mission-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.mission-item {
    flex: 1;
    padding-left: 2rem;
    border-left: 1px solid #eee;
}

.mission-item:first-child {
    border-left: none;
    padding-left: 0;
}

.mission-icon {
    font-size: 2rem;
    color: #1a3c70;
    margin-bottom: 1rem;
}

.history-timeline {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.timeline-item {
    flex: 1;
}

.timeline-year {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem;
    color: #1a3c70;
    margin-bottom: 0.5rem;
}

.timeline-text {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.main-footer ul li {
    margin-bottom: 0.5rem;
}

.main-footer ul li a {
    transition: color 0.2s;
}

.main-footer ul li a:hover {
    color: #fff !important;
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2rem;
    }

    .carousel-item {
        height: 70vh;
    }

    .hero-section {
        height: 70vh;
    }

    .slider-controls {
        display: none !important;
    }
}

/* Contact Section Refined */
.contact-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.contact-card .text-primary {
    transition: all 0.4s ease;
    display: inline-block;
}

.contact-card:hover .text-primary {
    transform: scale(1.2) rotate(5deg);
    color: #1a3c70;
}

.contact-card h5 {
    transition: color 0.3s;
}

.contact-card:hover h5 {
    color: #1a3c70;
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background-color: #084A82;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1) rotate(0deg) !important;
    background: #1a3c70;
    border-color: #1a3c70;
}

.back-to-top:hover i {
    transform: rotate(0deg) !important;
}

@media (max-width: 991px) {

    .mission-row,
    .history-timeline {
        flex-direction: column;
        gap: 2rem;
    }

    .mission-item {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 2rem;
    }

    .mission-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .partners-logo-grid {
        gap: 1.5rem;
        justify-content: center;
    }
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Payment Logos Hover Effects */
.payment-logo-img {
    transition: all 0.4s ease;
    filter: grayscale(1) opacity(0.7);
    cursor: pointer;
}

.payment-logo-img:hover {
    filter: grayscale(0) opacity(1) !important;
    transform: scale(1.05);
}

.payment-logo-light {
    filter: grayscale(1) brightness(2) contrast(1.2);
}

.payment-logo-light:hover {
    filter: grayscale(0) brightness(1) contrast(1) !important;
}

/* --- Membership Page Styles --- */
.gym-hero {
    height: 480px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../rasm/banner/news_banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 80px;
}

.gym-hero .breadcrumb-item+.breadcrumb-item::before {
    color: #fff !important;
}

.membership-section {
    padding: 80px 0;
    background: #fff;
}

.membership-card {
    border-radius: 20px;
    padding: 40px;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../rasm/qonunlar/law_hover.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: -1;
    filter: brightness(0.3);
    transform: scale(1.1);
}

.membership-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.student-card:hover::before {
    background-image: url('../rasm/azolik/student_h.jpg') !important;
}

.teacher-card:hover::before {
    background-image: url('../rasm/azolik/teacher_h.jpg') !important;
}

.membership-card:hover {
    color: #fff !important;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.membership-card:hover .text-primary,
.membership-card:hover .text-secondary,
.membership-card:hover .text-muted,
.membership-card:hover h3 {
    color: #fff !important;
}

.membership-card:hover .price-box {
    background: rgba(255, 255, 255, 0.15);
}

.membership-card:hover .price-val {
    color: #fff !important;
}

.student-card {
    background: #f8f9fa;
    border: 1px solid #eee;
}

.teacher-card {
    background: #1a3c70;
    color: #fff;
    box-shadow: 0 20px 40px rgba(26, 60, 112, 0.2);
}

.price-box {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.teacher-card .price-box {
    background: rgba(255, 255, 255, 0.1);
}

.price-val {
    font-size: 3rem;
    font-weight: 700;
    color: #1a3c70;
    font-family: 'Kanit', sans-serif;
}

.teacher-card .price-val {
    color: #fff;
}

.price-sub {
    font-size: 1rem;
    color: #666;
}

.teacher-card .price-sub {
    color: #aaa;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.features-list li i {
    position: absolute;
    left: 0;
    color: #1a3c70;
    top: 2px;
}

.teacher-card .features-list li i {
    color: #fff;
}

.btn-membership {
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.btn-student {
    background: #2d2d2d;
    color: #fff;
    border: none;
}

.btn-teacher {
    background: #fff;
    color: #1a3c70;
    border: none;
}

.btn-membership:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
}

.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.hover-float:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2) !important;
}


.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a3c70;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.section-tag::before,
.section-tag::after {
    content: '';
    width: 40px;
    height: 1px;
    background: #1a3c70;
    opacity: 0.3;
}


/* Video Gallery Section */
.video-gallery-section {
    background-color: #fff;
    color: #333;
    padding: 80px 0;
}

.gallery-media-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.gallery-media-tag i {
    font-size: 1.4rem;
    color: #444;
    /* Charcoal color for icons */
    transform: rotate(-45deg);
    display: inline-block;
}

.gallery-media-tag::before,
.gallery-media-tag::after {
    content: '';
    width: 150px;
    height: 1px;
    background: #084A82;
}

.gallery-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.5rem;
    color: #0c1c3c;
    margin-bottom: 60px;
    text-align: center;
}

.video-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    height: 340px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.6s ease, opacity 0.4s ease;
}

.video-card:hover img {
    transform: scale(1.1);
    opacity: 0.65;
}

.video-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-card-info {
    max-width: 80%;
    color: #fff;
}

.video-card-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.video-card-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
}

.btn-play-small {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c1c3c;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.video-card:hover .btn-play-small {
    transform: scale(1.15);
}

/* Photo Gallery Specialized Styles */
.photo-card {
    position: relative;
    overflow: hidden;
}

.photo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 112, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.photo-card:hover::before {
    opacity: 1;
}

.photo-zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.photo-card:hover .photo-zoom-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.photo-zoom-overlay i {
    font-size: 2rem;
    color: #1a3c70;
}

/* Lightbox Premium Styles */
#photoModal .modal-dialog {
    max-width: 90vw;
}

#photoModal .modal-content {
    background: transparent !important;
}

.modal-image-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
}

#photoModal #modalPhotoImage {
    max-height: 85vh;
    object-fit: contain;
    border: 5px solid #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.lightbox-nav-btn:hover {
    background: #fff;
    color: #1a3c70;
    transform: translateY(-50%) scale(1.1);
}

#prev-photo {
    left: 40px;
}

#next-photo {
    right: 40px;
}

.lightbox-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem;
    cursor: pointer;
    border: none !important;
    z-index: 120;
    transition: all 0.3s ease;
    padding: 0;
    opacity: 0.8 !important;
    line-height: 1;
}

.lightbox-close-btn:hover {
    color: #f82c2c !important;
    transform: scale(1.1);
    opacity: 1 !important;
}

.lightbox-close-btn i {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

.lightbox-close-btn::before,
.lightbox-close-btn::after {
    display: none !important;
    /* Hide bootstrap's default X background if any */
}

@media (max-width: 1200px) {
    #prev-photo {
        left: 20px;
    }

    #next-photo {
        right: 20px;
    }

    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.photo-caption-bar {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    z-index: 10;
}

/* Pagination Styles - Dark Style */
.pagination-custom .page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: #0c2045;
    border: none;
    color: #fff;
    margin: 0 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-custom .page-item.active .page-link {
    background: #0d6efd !important;
    /* Bootstrap primary blue or your theme's highlight */
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.pagination-custom .page-item:not(.active) .page-link {
    background: #1a3c70;
    opacity: 0.8;
}

.pagination-custom .page-link:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);

}

.law-card:hover .law-content h5 {
    color: #ffffff !important;
}

/* Achievements Figma Staggered Design */
.achievement-staggered-wrapper {
    position: relative;
    width: 100%;
    max-width: 829px;
    /* 829 (width) / 585 (height) */
    aspect-ratio: 829 / 585;
    margin: 0 auto;
}

.achievement-staggered-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.achievement-staggered-item {
    position: absolute;
    width: 48.37%;
    /* 401 / 829 */
    height: 92.99%;
    /* 544 / 585 */
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.staggered-left {
    top: 0;
    left: 0;
    z-index: 1;
}

.staggered-right {
    top: 7.01%;
    /* 41 / 585 */
    left: 51.63%;
    /* 428 / 829 */
    z-index: 2;
}

.achievement-staggered-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-staggered-item:hover {
    transform: translateY(-5px);
}

/* 130px Staggered Play Button */
.staggered-play-wrapper {
    position: absolute;
    width: 15.68%;
    /* 130/829 */
    aspect-ratio: 1/1;
    left: 40.53%;
    /* 336 / 829 */
    top: 39.65%;
    /* 232 / 585 approximate */
    z-index: 10;
    cursor: pointer;
}

.staggered-play-wrapper .play-btn-inner {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

.staggered-play-wrapper .circular-text-container {
    width: 160%;
    height: 160%;
    animation: rotateText 20s linear infinite;
}

.staggered-play-wrapper .play-ripple {
    width: 100%;
    height: 100%;
}

/* Rotating Text Animation */
.circular-text-container {
    width: 180px;
    height: 180px;
    pointer-events: none;
    animation: rotateText 20s linear infinite;
}

.rotating-text-svg {
    width: 100%;
    height: 100%;
}

.rotating-text-svg text {
    font-size: 9.5px;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-weight: 700;
}

@keyframes rotateText {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Refined Play Button Wrapper */
.play-btn-wrapper:hover .circular-text-container {
    animation-play-state: paused;
}

.play-btn-wrapper:hover .play-btn-inner i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Optional: Gradient Overlays for depth */
.overlay-gradient-left,
.overlay-gradient-right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.overlay-gradient-left {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}

.overlay-gradient-right {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
}

/* View All Button Styling */
.btn-view-all {
    background-color: #212529;
    /* Dark default */
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-all i {
    transform: rotate(-45deg);
    /* Diagonal up-right default */
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-view-all:hover {
    background-color: #084A82;
    /* Blue hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 74, 130, 0.3);
}

.btn-view-all:hover i {
    transform: rotate(0deg);
    /* Right arrow on hover */
    transform: translateX(5px);
}

/* Event Card Oval Arrow Button (Final Stable) */


.btn-circle-arrow:hover {
    background: #ffffff;
    color: #1a3c70;
    width: 90px;
    /* Explicitly keep size */
    height: 55px;
    /* Explicitly keep size */
    box-shadow: none;
    border-color: transparent;
}

.btn-circle-arrow i {
    font-size: 1.5rem;
    transform: rotate(-45deg);
    /* Default: Top-Right */
    transition: transform 0.3s ease;
}

.btn-circle-arrow:hover i {
    transform: rotate(0deg) translateX(5px);
    /* Hover: Point Right + Slide */
}

/* Document Navigation Buttons (Oval Dark/Blue) */
.doc-nav-btn {
    width: 60px;
    height: 40px;
    border-radius: 50px !important;
    /* Oval shape */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none !important;
    /* Remove outline-dark border */
    background-color: #212529;
    /* Default Dark (Bootstrap dark) */
    color: white !important;
}

.doc-nav-btn:hover {
    background-color: #084A82 !important;
    /* Hover Blue */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(8, 74, 130, 0.3);
}

.doc-nav-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* User Request: Rotate icons 45deg (Diagonal) by default, revert to Horizontal on Hover */
#doc-prev i {
    transform: rotate(45deg);
    /* Left Arrow -> Points Top-Left */
}

#doc-next i {
    transform: rotate(-45deg);
    /* Right Arrow -> Points Top-Right */
}

.doc-nav-btn:hover i {
    transform: rotate(0deg) !important;
    /* Revert to horizontal */
}

/* Soft Blue Background for Contact Section */
.bg-soft-blue {
    background-color: #F1F5F9 !important;
}

/* Contact Grid Item Styling */
.contact-grid-item {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-grid-item:hover {
    transform: translateY(-5px);
    z-index: 2;
    /* Optional: Subtle lift on hover, can remove if 'flat' is strictly required */
}

/* Increase size of short arrow icons (User Request) */
.bi-arrow-right-short,
.bi-arrow-left-short {
    font-size: 1.35em !important;
    vertical-align: -0.15em;
    /* Adjust alignment to center due to size increase */
}


/* Redesign Achievements Accordion (Minimalist List) */
#achievementsAccordion .accordion-item {
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

#achievementsAccordion .accordion-item:last-child {
    border-bottom: none !important;
}

#achievementsAccordion .accordion-button {
    background: transparent !important;
    box-shadow: none !important;
    padding: 1.5rem 0;
    font-size: 1.35rem;
    /* Match header size */
    color: #1a1a1a;
    font-weight: 500;
}

#achievementsAccordion .accordion-button:not(.collapsed) {
    color: #1a3c70;
    /* Active color */
}

/* Custom Arrow Icon */
#achievementsAccordion .accordion-button::after {
    background-image: none !important;
    /* Remove default SVG */
    font-family: 'bootstrap-icons';
    content: "\F128";
    /* bi-arrow-down */
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: #333;
}



#achievementsAccordion .accordion-body {
    padding: 1.5rem 0;
    padding-top: 0;
}

/* Ensure images in accordion handle cleanly */
.partner-mini-img {
    filter: grayscale(0%);
    /* Ensure colorful images as requested/shown */
}




/* REFACTOR: Accordion Icons (DOM-based) */

/* Hide default Bootstrap/CSS pseudo-element arrows */
#achievementsAccordion .accordion-button::after {
    display: none !important;
    content: none !important;
    background: none !important;
}

/* Style the REAL icon element */
.accordion-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: #333;
    /* Default color */
}

/* Rotate icon when button is NOT collapsed (i.e., active) */
/* Event Card Oval Arrow Button (Final Stable) */
.btn-circle-arrow {
    width: 90px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    /* Only transition specific properties to avoid position jitter */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-circle-arrow:hover {
    background: #ffffff;
    color: #1a3c70;
    width: 90px;
    /* Explicitly keep size */
    height: 55px;
    /* Explicitly keep size */
    box-shadow: none;
    border-color: transparent;
}

.btn-circle-arrow i {
    font-size: 1.5rem;
    transform: rotate(-45deg);
    /* Default: Top-Right */
    transition: transform 0.3s ease;
}

.btn-circle-arrow:hover i {
    transform: rotate(0deg);
    /* Hover: Point Right (Centered) */
}

/* Document Navigation Buttons (Oval Dark/Blue) */
.doc-nav-btn {
    width: 60px;
    height: 40px;
    border-radius: 50px !important;
    /* Oval shape */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none !important;
    /* Remove outline-dark border */
    background-color: #212529;
    /* Default Dark (Bootstrap dark) */
    color: white !important;
}

.doc-nav-btn:hover {
    background-color: #084A82 !important;
    /* Hover Blue */
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(8, 74, 130, 0.3);
}

.doc-nav-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* User Request: Rotate icons 45deg (Diagonal) by default, revert to Horizontal on Hover */
#doc-prev i {
    transform: rotate(45deg);
    /* Left Arrow -> Points Top-Left */
}

#doc-next i {
    transform: rotate(-45deg);
    /* Right Arrow -> Points Top-Right */
}

.doc-nav-btn:hover i {
    transform: rotate(0deg) !important;
    /* Revert to horizontal */
}

/* Soft Blue Background for Contact Section */
.bg-soft-blue {
    background-color: #F1F5F9 !important;
}

/* Contact Grid Item Styling */
.contact-grid-item {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-grid-item:hover {
    transform: translateY(-5px);
    z-index: 2;
    /* Optional: Subtle lift on hover, can remove if 'flat' is strictly required */
}

/* Increase size of short arrow icons (User Request) */
.bi-arrow-right-short,
.bi-arrow-left-short {
    font-size: 1.35em !important;
    vertical-align: -0.15em;
    /* Adjust alignment to center due to size increase */
}


/* Accordion styles moved to earlier section for better organization */


/* Premium View All Button (Final Requested Design) */
.btn-view-premium {
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
}

/* Primary colors shifted to previous hover states */
.btn-view-dark {
    background: #343a40 !important;
}

.btn-view-blue {
    background: #084A82 !important;
}

/* Shine Effect Layer */
.btn-view-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-view-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    filter: brightness(1.15);
}

.btn-view-premium:hover::before {
    left: 100%;
}

.btn-view-premium i {
    transition: transform 0.3s ease;
}

.btn-no-icon-anim:hover i,
.btn-no-icon-anim:active i,
.btn-no-icon-anim:focus i {
    transform: none !important;
}

/* Enhanced stabilization: Perfect center and zero movement */
.btn-icon-center-stable {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 45px !important;
    /* Fixed width for circle buttons */
    height: 45px !important;
}

.btn-icon-center-stable i {
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: none !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-icon-center-stable:hover i,
.btn-icon-center-stable:active i,
.btn-icon-center-stable:focus i {
    transform: none !important;
}

/* For buttons with text (like Batafsil) */
.btn-text-icon-stable {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.btn-text-icon-stable i {
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
}

.btn-text-icon-stable:hover i {
    transform: none !important;
}

/* View All Laws Button - Pill Style (Restored) */
/* View All Laws Button - Pill Style (Restored) */
.view-all-pill-btn {
    width: 70px;
    height: 100px;
    background-color: #084A82 !important;
    border: none !important;
    transition: transform 0.5s ease;
}

.view-all-pill-btn:hover {

    background: #0a589a !important;
    transform: translateY(-10px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.view-all-pill-btn i {
    transition: transform 0.3s ease;
    font-size: 1.5rem !important;
    /* Ensure icon size */
}



/* Custom Animation Override for Laws Button ONLY */
.laws-custom-btn {
    /* Widen it slightly to match new circle style request if needed, but user asked for "old look".
       So we keep it mostly same as view-all-pill-btn, just change animation */
    transition: transform 1s ease-in-out, box-shadow 1s ease-in-out !important;
}

.laws-custom-btn:hover {
    /* Override standard hover */
    transform: translateY(5px) scale(1.05) !important;
    box-shadow: 0 8px 25px rgba(13, 67, 168, 0.4) !important;
}

.laws-custom-btn:hover i {
    animation: arrowDownBounce 2s infinite !important;
    transform: none !important;
    /* Disable side move */
}


@keyframes arrowDownBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(5px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* =========================================
   Scoped Timeline Styles (Assotsiatsiya Page)
   Prefix: .at- (About Timeline)
   ========================================= */

.at-wrapper {
    position: relative;
    background: linear-gradient(rgba(10, 20, 50, 0.85), rgba(10, 20, 50, 0.85)), url('../rasm/foni/bg_timeline.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    overflow: hidden;
}

.at-section {
    position: relative;
    width: 100%;
    overflow-x: auto;
    /* Enable scroll internally but hide it */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    font-family: 'DM Sans', sans-serif;
    color: #fff;
}

.at-section::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.at-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    /* Much higher z-index */
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    /* Ensure it catches clicks */
}

.at-wrapper:hover .at-nav-btn {
    opacity: 1;
    visibility: visible;
}

.at-nav-btn:hover {
    background: #1a3c70;
    border-color: #1a3c70;
    transform: translateY(-50%) scale(1.1);
}

.at-nav-prev {
    left: 20px;
}

.at-nav-next {
    right: 20px;
}

.at-container {
    position: relative;
    width: max-content;
    /* Allow container to grow with items */
    min-width: 100%;
    padding: 0 5%;
    height: 700px;
    display: flex;
    align-items: center;
}

.at-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.at-item {
    position: relative;
    width: calc(90vw / 6);
    /* Fit 6 items in 90% of screen width (considering 5% padding each side) */
    flex-shrink: 0;
    /* Prevent shrinking */
    height: 100%;
    z-index: 2;
    transition: all 0.3s ease;
}

.at-media {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.at-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 3;
}

.at-number {
    font-family: 'Kanit', sans-serif;
    font-size: 5rem;
    line-height: 1;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.at-title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.4rem;
    margin: 5px 0;
    font-weight: 400;
}

.at-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    line-height: 1.4;
}

.at-connector {
    position: absolute;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

/* Odd Items: Image Top, Info Bottom */
.at-item.at-pos-bottom .at-media {
    bottom: 50%;
    padding-bottom: 80px;
}

.at-item.at-pos-bottom .at-info {
    top: 50%;
    padding-top: 15px;
    text-align: center;
}

.at-item.at-pos-bottom .at-connector {
    bottom: 50%;
    height: 80px;
}

/* Even Items: Info Top, Image Bottom */
.at-item.at-pos-top .at-media {
    top: 50%;
    padding-top: 80px;
}

.at-item.at-pos-top .at-info {
    bottom: 50%;
    padding-bottom: 15px;
    text-align: center;
    flex-direction: column-reverse;
}

.at-item.at-pos-top .at-connector {
    top: 50%;
    height: 80px;
}

.at-img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.at-img:hover {
    transform: scale(1.1);
    z-index: 10;
}

/* Mobile Timeline Slider (at-mobile prefix) */
@media (max-width: 991.98px) {
    .at-section {
        display: none;
    }

    .at-mobile-wrapper {
        background: linear-gradient(rgba(10, 20, 50, 0.9), rgba(10, 20, 50, 0.9)), url('../rasm/foni/bg_timeline.png');
        background-size: cover;
        background-position: center;
        padding: 60px 0;
        overflow: hidden;
        color: #fff;
    }

    .at-swiper-mobile {
        width: 100%;
        padding: 20px 0 60px !important;
        position: relative;
        z-index: 10;
    }

    .at-mobile-card {
        text-align: center;
        padding: 20px;
        opacity: 0.4;
        transition: all 0.5s ease;
        transform: scale(0.85);
    }

    .swiper-slide-active .at-mobile-card {
        opacity: 1;
        transform: scale(1);
    }

    .at-mobile-number {
        font-family: 'Kanit', sans-serif;
        font-size: 8rem;
        line-height: 1;
        margin-bottom: -1.5rem;
        opacity: 0.2;
        background: linear-gradient(#fff, transparent);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .at-mobile-img {
        width: 100%;
        max-width: 320px;
        height: auto;
        margin-bottom: 2rem;
        filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    }

    .at-mobile-title {
        font-family: 'Kanit', sans-serif;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .at-mobile-desc {
        font-size: 1.1rem;
        opacity: 0.9;
        max-width: 280px;
        margin: 0 auto;
        line-height: 1.6;
    }
}





/* Premium News Card Styles (Redesign) */
.y-card {
    position: relative;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #f0f0f0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
    display: block;
    text-decoration: none !important;
}

.y-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    z-index: 1;
}

.y-card:hover .y-card-bg {
    transform: scale(1.1);
}

.y-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.y-content-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.y-card:hover .y-content-box {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.y-date {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.y-title {
    font-size: 1.15rem;
    color: #0c1c3c;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.y-card:hover .y-title {
    color: #1a3c70;
}

.y-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.y-btn-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.y-card:hover .y-btn-link {
    color: #1a3c70;
}

.y-arrow-circle {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #888;
    transition: all 0.3s;
}

.y-card:hover .y-arrow-circle {
    background: #1a3c70;
    border-color: #1a3c70;
    color: #fff;
    transform: translateX(5px);
}

/* Personnel / Leadership Redesign - Matching Template Image */
.personnel-section {
    padding: 60px 0;
    min-height: 80vh;
    background-color: #fcfcfc;
}

.personnel-sidebar {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.personnel-sidebar .sidebar-header {
    background: #004494;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.personnel-sidebar .nav {
    padding: 0 !important;
}

.personnel-sidebar .nav-link {
    color: #000;
    padding: 15px 23px;
    border-bottom: 1px solid #dee2e6;
    border-left: 5px solid transparent;
    margin-left: -1px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.2s;
    text-align: left;
    display: block;
    width: calc(100% + 1px);
    background: #fff;
}

.personnel-sidebar .nav-link:last-child {
    border-bottom: none;
}

.personnel-sidebar .nav-link:hover,
.personnel-sidebar .nav-link.active {
    background-color: #f8f9fa;
    color: #004494;
    font-weight: 800;
    border-left-color: #004494;
    z-index: 1;
}

.personnel-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.personnel-card::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 230px;
    height: 230px;
    background-image: url('../rasm/logo/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.personnel-img-wrapper {
    flex: 0 0 280px;
    margin-right: 35px;
    z-index: 1;
}

.personnel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.personnel-body {
    flex: 1;
    z-index: 1;
    padding-right: 250px;
}

.personnel-role {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.personnel-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #004494;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.personnel-contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
}

.personnel-contact-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.personnel-contact-item:hover {
    color: #004494;
}

.personnel-contact-item i {
    font-size: 1.2rem;
    color: #004494;
    margin-right: 12px;
    width: 22px;
    text-align: center;
}

@media (max-width: 991px) {
    .personnel-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .personnel-img-wrapper {
        flex: 0 0 auto;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .personnel-img {
        height: 250px;
    }

    .personnel-body {
        padding-right: 0;
    }

    .personnel-contacts {
        grid-template-columns: 1fr;
    }

    .personnel-card::after {
        width: 150px;
        height: 150px;
        opacity: 0.04;
    }
}

/* Development Stages Redesign (asosiy.php) */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.step-card-v2 {
    background: #fff;
    padding: 25px;
    display: flex;
    align-items: center;
    min-height: 180px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-icon-box {
    flex: 0 0 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
}

.step-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.step-divider {
    width: 2px;
    height: 100px;
    background-color: #004494;
    margin-right: 25px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-badge {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.step-title-v2 {
    font-size: 1.4rem;
    font-family: 'Kanit', sans-serif;
    color: #004494;
    margin-bottom: 10px;
    line-height: 1.2;
}

.step-desc-v2 {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 0;
    font-weight: 500;
}

@media (max-width: 991px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card-v2 {
        padding: 20px;
        min-height: auto;
    }

    .step-divider {
        height: 80px;
        margin-right: 15px;
    }

    .step-icon-box {
        flex: 0 0 55px;
        height: 55px;
        margin-right: 15px;
    }

    .step-title-v2 {
        font-size: 1.4rem;
    }
}

/* Normativ Hujjatlar Page - Final Design */
.normativ-section {
    background-color: #fff;
    padding: 80px 0;
}

.normativ-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.normativ-card:hover {
    transform: translateY(-5px);
    border-color: #084A82;
    /* Light blue border on hover */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.normativ-icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.normativ-icon-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.9);
    transition: all 0.3s ease;
}

.normativ-card:hover .normativ-icon-box img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* Colors for icons based on the image */
.normativ-card .bi-file-earmark-text,
.normativ-card .bi-award,
.normativ-card .bi-wallet2 {
    font-size: 2.5rem;
    color: #1e293b;
    /* Default dark color */
    transition: color 0.3s ease;
}

/* Specific icon colors if needed */
.normativ-card:hover .bi {
    color: #084A82;
    /* Changes to blue-ish on hover */
}

.normativ-card h3 {
    font-family: 'Kanit', sans-serif;
    /* font-weight: 700; */
    font-size: 24px;
    line-height: 29px;
    color: #0f172a;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.normativ-card:hover h3 {
    color: #084A82;
}

.normativ-card p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #64748b;
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .normativ-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .normativ-icon-box {
        width: 50px;
        height: 50px;
    }

    .normativ-card h3 {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 6px;
    }

    .normativ-card p {
        font-size: 13px;
        line-height: 18px;
    }
}

/* Partners Page Styles */
.partners-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.partners-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.25rem;
    color: #0c1c3c;
    margin-bottom: 50px;
    font-weight: 500;
}

.partner-card-wrapper {
    margin-bottom: 40px;
    text-align: center;
}

.partner-card-box {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 15px;
    padding: 25px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 15px;
    text-decoration: none;
}

.partner-card-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: #d1d9e6;
}

.partner-card-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.partner-card-box:hover img {
    transform: scale(1.05);
}

.partner-name-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    padding: 0 10px;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

/* Competitions Section */
.competitions-section {
    padding: 60px 0;
    background-color: #fff;
}

.comp-card-wrapper {
    text-align: center;
    margin-bottom: 30px;
    height: 100%;
}

.comp-card-box {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none !important;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.comp-card-box:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.comp-img-container {
    height: 220px;
    background-color: #f1f5f9;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comp-card-body {
    padding: 1.25rem;
}

#modalPlanTitle {
    background-color: #084A82;
}

.comp-name-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comp-meta {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.comp-card-box:hover .comp-name-text {
    color: #084A82;
}

/* Modal Content Styling */
#compDetailModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#modalCompImage {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.comp-detail-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

@media (max-width: 767.98px) {
    .partners-title {
        font-size: 1.75rem;
    }

    .partner-card-box {
        height: 130px;
        padding: 15px;
    }
}

/* Calendar Page */
.calendar-hero {
    height: 480px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../rasm/banner/musobaqa_banner.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: flex-start;
    /* Title at the top */
    justify-content: center;
    color: #fff;
    text-align: center;
    padding-top: 120px;
    /* Adjust top padding for title */
}

.calendar-hero .breadcrumb-item+.breadcrumb-item::before,
.gym-hero .breadcrumb-item+.breadcrumb-item::before,
.page-banner .breadcrumb-item+.breadcrumb-item::before {
    color: #fff !important;
}

.calendar-filters-section {
    padding: 0;
    margin-top: -10px;
    /* Pull it up closer to the slider */
    position: relative;
    z-index: 11;
}

.filter-card {
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.calendar-timeline-section {
    padding: 60px 0;
}

.calendar-item {
    display: flex;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: transform 0.3s;
    border-left: 5px solid #1a3c70;
}

.calendar-item:hover {
    transform: translateY(-5px);
}

.cal-date-box {
    background: #f0f4f8;
    padding: 30px;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1a3c70;
}

.cal-day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.cal-month {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 5px;
}

.cal-year {
    font-size: 0.9rem;
    opacity: 0.7;
}

.cal-content {
    padding: 25px 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.cal-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a3c70;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
}

.cal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
}

.cal-meta i {
    color: #1a3c70;
    margin-right: 5px;
}

.cal-logo-box {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.cal-logo-box img {
    max-height: 80px;
    max-width: 100px;
    object-fit: contain;
}

.cal-btn-box {
    padding: 0 35px 25px;
    align-self: flex-end;
}

.cal-btn {
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Featured Events Slider */
.featured-events-slider {
    margin-top: -220px;
    /* Higher overlap to center cards more in the banner area */
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.featured-event-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #1a3c70;
}

/* Event Filter Cards Animation */
.event-filter-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 4px solid #1a3c70;
    position: relative;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-filter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 60, 112, 0.05) 0%, rgba(26, 60, 112, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.event-filter-card .card-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    width: 100%;
}

.event-filter-card:hover {
    box-shadow: 0 15px 35px rgba(26, 60, 112, 0.2);
}

.event-filter-card:hover::before {
    opacity: 1;
}

.event-filter-card:hover .card-content {
    transform: scale(1.05);
}

.event-filter-card h5,
.event-filter-card h6 {
    color: #1a3c70;
    transition: color 0.3s ease;
    font-size: 1.15rem;
    line-height: 1.4;
}

.event-filter-card:hover h5,
.event-filter-card:hover h6 {
    color: #0d2a58;
}

.event-filter-card.active {
    background: #1a3c70;
    box-shadow: 0 12px 30px rgba(26, 60, 112, 0.3);
}

.event-filter-card.active h5,
.event-filter-card.active h6 {
    color: #ffffff;
}

@media (max-width: 768px) {
    .calendar-item {
        flex-direction: column;
    }

    .cal-date-box {
        width: 100%;
        padding: 20px;
        flex-direction: row;
        gap: 15px;
    }

    .cal-content {
        padding: 20px;
    }

    .cal-logo-box {
        width: 100%;
        padding: 10px;
    }
}

/* Redesigned News Card V2 */
.news-card-v2 {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-card-img-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-v2:hover .news-card-img-wrapper img {
    transform: scale(1.05);
}

.news-card-body-v2 {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date-v2 {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 12px;
}

.news-card-title-v2 {
    font-size: 1.1rem;
    /* font-weight: 700; */
    color: #333;
    line-height: 1.5;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-card-v2:hover .news-card-title-v2 {
    color: #084A82;
}

.news-card-footer-v2 {
    margin-top: auto;
}

.news-card-link-v2 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.news-card-v2:hover .news-card-link-v2 {
    color: #0c1c3c;
}

.news-card-link-v2 i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.news-card-v2:hover .news-card-link-v2 i {
    transform: translateX(3px);
}