/* Mobile hero height and section spacing fixes */
@media (max-width: 576px) {
    .hero-section {
        height: 50vh !important;
        min-height: 180px !important;
    }
    .hero-content-container {
        padding-left: 18px !important;
    }
    .container, .container-fluid, section {
        padding-top: 0 !important;
        padding-bottom: 1.2rem !important;
        margin-bottom: 0.7rem !important;
    }
    .py-5 {
        padding-top: 1.2rem !important;
        padding-bottom: 1.2rem !important;
    }
    .mb-4, .mb-5 {
        margin-bottom: 0.7rem !important;
    }
    .team-section{
        margin-bottom: 0!important;
        padding-bottom: 0!important;
    }
}
#events {
    background-image: url('assets/hero/hero-image-4.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* === Large Square Team Images === */
.team-img-square {
    width: 100%;
    min-height: 200px;
    max-height: 200px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(185, 177, 101, 0.2);
    border: 4px solid #fff;
    margin-bottom: 1.2rem;
    background: #f8f9fa;
    aspect-ratio: 1 / 1;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.team-card:hover .team-img-square {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(185, 177, 101, 0.3);
}

/* === Large Rectangular Team Images === */
.team-img-rect {
    width: 100%;
    max-width: 340px;
    height: 260px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(185, 177, 101, 0.13);
    border: 3px solid #fff;
    margin-bottom: 1.2rem;
    background: #f8f9fa;
}

.team-bio {
    color: #555;
    font-size: 1.01rem;
    text-align: left;
    margin-bottom: 0;
    white-space: pre-line;
}

/* === Modern Team Section Styles === */
.team-section {
    padding: 2rem 1.5rem 2rem 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-title {
    font-size: 2rem;
    font-weight: 700;
    color: #b9b165;
    margin-bottom: 2.2rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.team-list {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.team-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(185, 177, 101, 0.15);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 220px;
    max-width: 320px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid rgba(185, 177, 101, 0.1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #b9b165, #d4c77e);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    box-shadow: 0 20px 60px rgba(185, 177, 101, 0.25);
    transform: translateY(-12px) scale(1.05);
}

.team-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(185, 177, 101, 0.13);
    border: 3px solid #fff;
    margin-bottom: 1.2rem;
}

.team-name {
    font-size: 1.18rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.2rem;
    text-align: center;
}

.team-role {
    color: #b9b165;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;
}

.team-bio {
    color: #555;
    font-size: 0.98rem;
    text-align: center;
    margin-bottom: 0;
}

.bio-btn-custom {
    background: none;
    border: none;
    color: #b9b165;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.bio-btn-custom:hover {
    color: #a09555;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .team-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .team-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .team-img-square {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .nav-container{
        padding-bottom: 0!important;
        margin-bottom: 0.2rem!important;
    }
}

/* === Extracted from inline styles in index.html === */
.nav-lang-btn-img {
    width: 28px;
    height: 20px;
    border-radius: 2px;
    vertical-align: middle;
}

.club-leader-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(185, 177, 101, 0.12);
}

.club-leader-role {
    font-size: 1.08rem;
}

.rally-panel-logo {
    position: absolute;
    top: 12px;
    right: 12px;
    max-width: 110px;
    max-height: 110px;
    width: auto;
    height: auto;
    z-index: 3;
}

.rally-panel-bg-img-east {
    background-image: url('assets/img/VMCR East/IMG-2a1401261c796cd9856d09246f1660f9-V.webp');
}

.rally-panel-bg-img-central {
    background-image: url('assets/img/VMCR Central/IMG-29cab063a126049ab4ba34e2dc7a69d4-V.webp');
}

.rally-panel-bg-img-west {
    background-image: url('assets/img/VMCR West/551816840_1305324144473308_3849665915348729031_n.webp');
}

.shop-card-img {
    object-fit: cover;
    height: 180px;
}

.shop-catalog-link {
    color: #1f1f1c;
    font-weight: 600;
}

.event-card-warning {
    min-width: 260px;
    max-width: 280px;
    border-top: 5px solid #ffc107 !important;
}

.event-card-info {
    min-width: 260px;
    max-width: 280px;
    border-top: 5px solid #0dcaf0 !important;
}

.event-card-success {
    min-width: 260px;
    max-width: 280px;
    border-top: 5px solid #198754 !important;
}

.event-card-secondary {
    min-width: 260px;
    max-width: 280px;
    border-top: 5px solid #6c757d !important;
}

.event-card-icon {
    font-size: 1.3rem;
}

.timeline-tire-bg {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: .8;
    pointer-events: none;
    max-width: 100%;
}

.timeline-title {
    color: #b9b165;
    z-index: 100;
}

.timeline-card-year {
    color: #b9b165;
    font-size: 1.1rem;
}

.timeline-card-text {
    font-size: 1.08rem;
    line-height: 1.7;
}

.shop-catalog-hover {
    transition: transform 0.25s cubic-bezier(.77, 0, .175, 1);
    cursor: pointer;
}

.shop-catalog-hover:hover {
    transform: scale(1.15);
}

#shop-catalog.btn {
    border-radius: 4px !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(185, 177, 101, 0.10);
    transition: box-shadow 0.3s, background 0.3s;
    color: #fff !important;
    font-size: 1rem;
}

#shop-catalog.btn:hover {
    box-shadow: 0 6px 24px rgba(185, 177, 101, 0.18);
    background: #222 !important;
}

.shop-catalog-arrow {
    transition: transform 0.25s cubic-bezier(.77, 0, .175, 1);
    font-size: 1.25em;
    vertical-align: middle;
    color: #1f1f1c !important;
}

#shop-catalog:hover .shop-catalog-arrow {
    transform: scale(1.35);
}

/* Shop catalog button: remove pill, make rectangular */
#shop-catalog.btn {
    border-radius: 4px !important;
    font-weight: 600;
    padding-left: 2.2rem !important;
    padding-right: 2.2rem !important;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 12px rgba(185, 177, 101, 0.10);
    transition: box-shadow 0.3s, background 0.3s;
}

#shop-catalog.btn:hover {
    box-shadow: 0 6px 24px rgba(185, 177, 101, 0.18);
    background: #222 !important;
}

/* Arrow icon in shop catalog button */
.shop-catalog-arrow {
    transition: transform 0.25s cubic-bezier(.77, 0, .175, 1);
    font-size: 1.35em;
    vertical-align: middle;
}

#shop-catalog:hover .shop-catalog-arrow {
    transform: scale(1.35);
}

/* Beautiful timeline cards with pin icon */
.timeline-card-beautiful {
    border-radius: 4px !important;
    box-shadow: 0 10px 40px rgba(185, 177, 101, 0.2);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(185, 177, 101, 0.1);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.timeline-card-beautiful:hover {
    box-shadow: 0 20px 60px rgba(185, 177, 101, 0.3);
    transform: translateY(-8px) scale(1.05);
    opacity: 1;
}

.timeline-pin {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.5rem;
    opacity: .85;
    z-index: 10;
    pointer-events: none;
}

/* Mobile nav vertical layout for hamburger menu */
@media (max-width: 991.98px) {
    .nav-hero {
        background: #fff !important;
    }
    
    .nav-hero .nav-home-link {
        color: #1f1f1c !important;
    }
    
    .nav-hero .nav-home-link.active,
    .nav-hero .navbar-nav .nav-link.active {
        color: #b9b165 !important;
        font-weight: bold !important;
    }
    
    .nav-hero .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 31, 28, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-nav.nav-menu-list {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
        gap: 0.5rem;
    }

    .navbar-nav.nav-menu-list .nav-item {
        width: 100%;
    }

    .navbar-nav.nav-menu-list .nav-link {
        width: 100%;
        text-align: left;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: 0 !important;
    }
}

/* Timeline tire track SVG animation */
.timeline-track-svg {
    transition: filter 0.3s;
}

.timeline-card-effect:hover~.timeline-track-svg .timeline-track-path,
.timeline-card-effect:focus~.timeline-track-svg .timeline-track-path {
    stroke: #111 !important;
    filter: drop-shadow(0 2px 8px #222);
    animation: tireTrackWiggle 0.5s linear;
}

@keyframes tireTrackWiggle {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Timeline card hover effect */
.timeline-card-effect {
    transition: box-shadow 0.4s, transform 0.4s, opacity 0.4s;
    position: relative;
    z-index: 2;
    opacity: .95;
}

.timeline-card-effect:hover {
    box-shadow: 0 16px 48px rgba(185, 177, 101, 0.32);
    transform: scale(1.08) translateY(-12px) rotate(2deg);
    opacity: 1;
}

/* Rally Interactive Panels */
.rally-panel {
    height: 380px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    background: transparent;
    overflow: hidden;
    border-radius: 0 !important;
    display: block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.rally-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    z-index: 1;
    transition: filter 0.5s cubic-bezier(.77, 0, .175, 1);
    border-radius: 0 !important;
}

.rally-panel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(.77, 0, .175, 1);
    border-radius: 0 !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 0 !important;
}

/* Events Calendar Grid */
.events-calendar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.event-card {
    border-radius: 4px !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    border-top: 5px solid #e9ecef;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.event-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(135deg, #fffef5 0%, #fffce8 100%);
    box-shadow: 0 15px 50px rgba(185, 177, 101, 0.2);
}

/* Planner card colored top borders */
.event-card.border-warning {
    border-top-color: #ffc107 !important;
}

.event-card.border-info {
    border-top-color: #0dcaf0 !important;
}

.event-card.border-success {
    border-top-color: #198754 !important;
}

.event-card.border-secondary {
    border-top-color: #6c757d !important;
}

.event-card .bi {
    transition: color 0.3s, transform 0.3s;
}

.event-card:hover .bi {
    color: #b9b165 !important;
    transform: scale(1.15) rotate(-8deg);
}

.event-card .badge {
    font-size: 0.95rem;
    border-radius: 0;
    font-weight: 500;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.event-card .fw-bold {
    letter-spacing: 0.5px;
}

.event-card .d-flex {
    align-items: center;
}

/* .event-card .text-dark {
    color: #222 !important;
}
.event-card .text-secondary {
    color: #555 !important;
}
.event-card .bg-light {
    background: #f8f9fa !important;
}
.event-card .bg-white {
    background: #fff !important;
}
.event-card .bg-warning {
    background: #ffe066 !important;
}
.event-card .bg-info {
    background: #aee6f8 !important;
}
.event-card .bg-success {
    background: #d4f8e8 !important;
}
.event-card .bg-secondary {
    background: #e2e3e5 !important;
} */
/* Animate.css fadeInUp for event cards */
.animate__animated.animate__fadeInUp {
    animation-name: fadeInUp;
    animation-duration: 0.7s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rally-panel h3 {
    font-size: 1.35rem;
    text-shadow: 0 2px 16px #1f1f1c, 0 0 8px #000;
}

.rally-panel-desc {
    font-size: 1rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.77, 0, .175, 1), opacity 0.3s;
}

.rally-panel-link {
    font-size: 1.08rem;
    text-decoration: none;
    transition: color 0.2s;
    padding-bottom: 0.5rem;
    color: white;
}

.rally-panel-link:hover {
    color: #d4b300;
    text-decoration: underline;
}

.rally-panel-btn {
    display: inline;
    background: none;
    border: none;
    color: #1f1f1c;
    font-size: 1.08rem;
    padding: 0;
    box-shadow: none;
    vertical-align: middle;
}

.rally-panel:hover {
    box-shadow: 0 20px 60px rgba(185, 177, 101, 0.3);
    transform: translateY(-12px) scale(1.02);
}

.rally-panel:hover .rally-panel-desc {
    max-height: 200px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(.77, 0, .175, 1), opacity 0.3s;
}

.rally-panel:hover .rally-panel-bg {
    filter: brightness(0.45);
}

.rally-panel-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.rally-panel:hover .rally-panel-bg::after {
    opacity: 1;
}

.rally-panel:hover .rally-panel-content {
    transform: translateY(-18px);
}

/* Smaller rally cards and images */
.rally-card-small {
    padding: 0.75rem !important;
    min-width: 0;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.rally-card-img-small {
    max-width: 120px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* About section title color */
.about-title {
    color: #1f1f1c;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #b9b165, transparent);
    border-radius: 2px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

/* Club leaders section title color */
.club-title {
    color: #1f1f1c;
}

/* About image max height and object fit */
.about-img {
    object-fit: cover;
    max-height: 340px;
}

/* Rally slider image height fix for all cards */
/* .rally-slider-img {
    max-height: 200px;
    object-fit: cover;
} */
/* Navbar styles */
.nav-hero {
    background: transparent;
    z-index: 100;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    right: 0 !important;
    transition: background 0.3s;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.nav-hero.scrolled {
    background: #fff !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.nav-hero.scrolled .nav-home-link {
    color: #1f1f1c !important;
}

.nav-hero.scrolled .nav-home-link.active,
.nav-hero.scrolled .navbar-nav .nav-link.active {
    color: #b9b165 !important;
    font-weight: bold !important;
}

.nav-hero.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(31, 31, 28, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-logo {
    width: 65px;
    height: 65px;
}

.nav-menu-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu-bg {
    background: rgba(185, 177, 101, 0.15);
    border: 2px solid #838384;
    border-radius: 9999px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-menu-list {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.nav-home-link {
    background: none !important;
    color: #fff;
}

.nav-home-link.active,
.navbar-nav .nav-link.active {
    background: none !important;
    color: #fff !important;
    font-weight: bold !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.nav-lang-wrap {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.nav-lang-btn {
    opacity: 0.7;
}

/* Hero section styles */
.hero-section {
    min-height: 80vh;
    position: relative;
}

.hero-bg {
    z-index: 1;
    min-height: 80vh;
    background-position: left center;
}

.hero-content {
    z-index: 2;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content-container {
    max-width: 900px;
    padding-left: 0;
}

.hero-content-flex {
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-heading {
    font-size: 2.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    pointer-events: auto;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: left;
    font-weight: 800;
    position: relative;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.hero-overlay {
    z-index: 1;
    pointer-events: none;
}

/* Smooth transition for hero slider */
.hero-bg,
.hero-bg-slide {
    transition: left 1s cubic-bezier(0.77, 0, 0.175, 1), background-image 1s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Catalog Hero Section Styles */
.catalog-hero {
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(90deg, rgba(185,177,101,0.18), rgba(0,0,0,0.45)), url('assets/hero/hero-image-1.webp') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
}
.catalog-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}
.catalog-title {
    font-size: 2.5rem;
    text-shadow: 0 2px 16px #1f1f1c;
    position: relative;
    z-index: 2;
}
.catalog-coming {
    font-size: 2rem;
    text-shadow: 0 2px 16px #1f1f1c;
    position: relative;
    z-index: 2;
}
.catalog-desc {
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

/* Remove inline styles and add classes for all previously inline-styled elements */
.nav-lang-btn {
    padding: 0 2px;
    background: none;
    border: none;
}

.rally-panel-header {
    position: relative;
    width: 100%;
}

.rally-panel-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rally-panel-content-row {
    position: relative;
    z-index: 2;
}

.rally-panel-box {
    border-left: 6px solid #b9b165;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
}

.rally-panel-box:hover {
    transform: translateX(8px);
    box-shadow: 0 15px 50px rgba(185, 177, 101, 0.15) !important;
}

.rally-title {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #1f1f1c, #b9b165);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rally-desc {
    font-size: 1.13rem;
    line-height: 1.8;
}

.shop-catalog-hover {
    gap: 8px;
}

.event-card-date {
    font-size: 1.08rem;
}

.event-card-badge {
    background: none;
}

.timeline-card {
    min-width: 230px;
    max-width: 250px;
    border-left: 5px solid #b9b165;
    position: relative;
}

.timeline-title {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.timeline-pin {
    color: #b9b165;
}

.modal-dialog-custom {
    max-width: 600px;
    width: 95%;
}

.modal-content-custom {
    border-radius: 4px;
}

.modal-header-custom {
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.modal-title-custom {
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-role-custom {
    font-size: 1.08rem;
    font-weight: 600;
    color: #b9b165;
    letter-spacing: 0.5px;
}

.modal-img-custom {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(185,177,101,0.13);
    border: 3px solid #fff;
    margin-top: 0.7rem;
}

.btn-close-custom {
    position: absolute;
    top: 12px;
    right: 12px;
}

.modal-body-custom {
    padding-top: 0;
}

/* Timeline section active highlight */
.timeline-title.active {
    color: #b9b165 !important;
    font-weight: bold !important;
    text-shadow: 0 2px 16px #b9b16544;
    transition: color 0.2s, text-shadow 0.2s;
}

.footer-phone:hover {
    color: #b9b165 !important;
    text-decoration:underline;
}
.footer-social:hover i {
    color: #b9b165 !important;
    transition: color 0.2s;
}

/* === Modern Bio Modal Styles === */
.bio-modal-modern {
    border-radius: 4px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: all 0.3s;
}

.bio-modal-close:hover {
    background: #b9b165;
    transform: rotate(90deg);
}

.bio-modal-header {
    background: linear-gradient(135deg, #b9b165 0%, #a09555 100%);
    padding: 3rem 2.5rem 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.bio-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="20" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="70" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.bio-modal-image-wrapper {
    flex-shrink: 0;
    position: relative;
}

.bio-modal-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bio-modal-title-section {
    color: #fff;
    position: relative;
    z-index: 1;
}

.bio-modal-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bio-modal-role {
    font-size: 1.15rem;
    font-weight: 500;
    opacity: 0.95;
    display: flex;
    align-items: center;
}

.bio-modal-role i {
    font-size: 1rem;
}

.bio-modal-content {
    padding: 2.5rem;
    background: #fff;
}

.bio-section {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.bio-section:last-child {
    margin-bottom: 0;
}

.bio-icon-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b9b165;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(185, 177, 101, 0.15);
}

.bio-text {
    flex: 1;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

@media (max-width: 767.98px) {
    .bio-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .bio-modal-image {
        width: 120px;
        height: 120px;
    }
    
    .bio-modal-name {
        font-size: 1.6rem;
    }
    
    .bio-modal-role {
        justify-content: center;
        font-size: 1.05rem;
    }
    
    .bio-modal-content {
        padding: 1.5rem;
    }
    
    .bio-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .bio-icon-wrapper {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .bio-text {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
  .timeline-horizontal {
    flex-direction: column !important;
    gap: 1.2rem !important;
    align-items: stretch !important;
  }
  .timeline-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}