/* =========================================
   ABOUT US SECTION - IMPROVED UI
========================================= */
#about-us {
    --about-ink: #0c1b2a;
    --about-ink-soft: rgba(12, 27, 42, 0.72);
    --about-accent: #ed1d26;
    --about-accent-strong: #133880;
    --about-card: rgba(255, 255, 255, 0.92);

    width: 100%;
    padding-top: calc(var(--nav-height) + 16px);
    padding-bottom: 2.5rem;
    box-sizing: border-box;
    background:
        radial-gradient(820px 420px at 12% 10%, rgba(237, 29, 38, 0.14), transparent 65%),
        radial-gradient(680px 360px at 88% 20%, rgba(19, 56, 128, 0.16), transparent 60%),
        linear-gradient(180deg, #fdfefe 0%, #eef3f7 55%, #f7fafc 100%);
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--about-ink);
    margin: 0;
    position: relative;
    overflow: hidden;
}

#about-us::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    width: 620px;
    height: 620px;
    left: -260px;
    bottom: -260px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.16), rgba(33, 150, 243, 0));
}

.about-us-section {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

#about-us::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    width: 520px;
    height: 520px;
    right: -180px;
    top: -220px;
    background: radial-gradient(circle, rgba(19, 56, 128, 0.18), rgba(19, 56, 128, 0));
}

.about-us-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 2rem;
    position: relative;
    z-index: 1;
}

.about-us-header {
    text-align: center;
    margin-bottom: 1.8rem;
    animation: about-fade-up 0.8s ease both;
}

.about-us-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(237, 29, 38, 0.12);
    color: #133880;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin: 0 0 0.85rem 0;
}

.about-us-header h2 {
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    font-weight: 800;
    line-height: 1.1;
    color: #133880;
}

.about-us-lede {
    max-width: 720px;
    margin: 0 auto;
    color: #2d3748;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-us-media {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 24px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(237, 29, 38, 0.12), rgba(19, 56, 128, 0.12));
    box-shadow: 0 22px 40px rgba(10, 32, 52, 0.18);
    animation: about-fade-up 0.9s ease both;
}

/* =========================================
   VIDEO
========================================= */
#history-video {
    width: 100%;
    border-radius: 18px;
    display: block;
    box-shadow: 0 12px 26px rgba(10, 32, 52, 0.18);
    transition: transform 0.35s ease;
}

#history-video:hover {
    transform: scale(1.015);
}

/* =========================================
   CARD WRAPPERS
========================================= */
.about-us-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: center;
    padding-bottom: 15px;
}

.events-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.events-cards {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: auto;
    padding-bottom: 12px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.events-cards::-webkit-scrollbar {
    display: none;
}

.events-cards.dragging {
    cursor: grabbing;
    user-select: none;
}

/* =========================================
   CARD BASE STYLE - CONSISTENT SIZE
========================================= */
.about-us-cards .card,
.event-card {
    background: var(--about-card);
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    padding: 32px 28px 36px;
    text-align: left;
    border: 1px solid rgba(12, 27, 42, 0.12);
    border-radius: 20px;
    box-shadow: 0 18px 34px rgba(10, 32, 52, 0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    background-image:
        radial-gradient(120px 120px at 85% 10%, rgba(237, 29, 38, 0.14), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 246, 250, 0.92));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    animation: about-fade-up 0.9s ease both;
}

.about-us-cards .card:hover,
.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 44px rgba(10, 32, 52, 0.18);
    border-color: rgba(237, 29, 38, 0.45);
}

.event-card:hover {
    cursor: grab;
}

/* =========================================
   CARD TEXT
========================================= */
.about-us-cards .card h3,
.event-card h4 {
    margin-bottom: 18px;
    font-size: 26px;
    font-weight: 700;
    color: #133880;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.about-us-cards .card:hover h3,
.event-card:hover h4 {
    color: #ed1d26;
}

.about-us-cards .card p,
.event-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--about-ink-soft);
    line-height: 1.7;
    white-space: pre-line;
    transition: color 0.3s ease;
}

.about-us-cards .card:hover p,
.event-card:hover p {
    color: var(--about-ink);
}

/* =========================================
   EVENTS DESCRIPTION
========================================= */
.our-events-description {
    text-align: center;
    max-width: 900px;
    margin: 36px auto 0;
    animation: about-fade-up 0.95s ease both;
}

.our-events-description h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #133880;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}

.our-events-description p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--about-ink-soft);
    line-height: 1.65;
    text-transform: none;
}

/* =========================================
   EVENT CARD IMAGE
========================================= */
.event-card {
    display: block;
    color: inherit;
    text-decoration: none;
    position: relative;
    min-height: 300px;
    padding: 16px;
}

.event-card img {
    width: 100%;
    height: 220px;
    min-height: 0;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: transform 0.3s ease;
}

.event-card:hover img {
    transform: scale(1.04);
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 24, 48, 0.05) 0%, rgba(13, 24, 48, 0.7) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.event-card .event-text {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 26px;
    z-index: 2;
    background: rgba(19, 56, 128, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 12px 22px rgba(13, 24, 48, 0.25);
}

.event-card .event-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #fff;
}

.event-card:hover .event-text {
    background: rgba(237, 29, 38, 0.9);
}

/* =========================================
   CAROUSEL NAVIGATION BUTTONS
========================================= */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(19, 56, 128, 0.78);
    color: #fff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 10;
    border-radius: 6px;
    font-size: 1.3rem;
    transition: background 0.3s ease;
    box-shadow: 0 2px 8px rgba(10, 32, 52, 0.5);
}

.carousel-btn:hover {
    background: rgba(237, 29, 38, 0.9);
    box-shadow: 0 6px 20px rgba(237, 29, 38, 0.45);
}

.prev-btn {
    left: 14px;
}

.next-btn {
    right: 14px;
}

/* =========================================
   SHOW MORE / LESS BUTTON
========================================= */
.show-more-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #ed1d26, #c3161c);
    color: #fff;
    box-shadow: 0 8px 20px rgba(237, 29, 38, 0.3);
    transition: all 0.35s ease;
    user-select: none;
}

.show-more-btn:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(237, 29, 38, 0.4);
    background: linear-gradient(135deg, #ff3740, #b31218);
}

.about-us-cards .card:nth-child(1) { animation-delay: 0.05s; }
.about-us-cards .card:nth-child(2) { animation-delay: 0.12s; }
.about-us-cards .card:nth-child(3) { animation-delay: 0.2s; }
.event-card:nth-child(1) { animation-delay: 0.05s; }
.event-card:nth-child(2) { animation-delay: 0.1s; }
.event-card:nth-child(3) { animation-delay: 0.15s; }
.event-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes about-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-us-header,
    .about-us-media,
    .about-us-cards .card,
    .event-card,
    .our-events-description {
        animation: none;
    }
    #history-video {
        transition: none;
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {
    .about-us-cards .card,
    .event-card {
        flex: 0 0 300px;
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    #about-us {
        padding: 2rem 1rem;
    }

    .about-us-content {
        padding: 1.5rem 1.2rem;
    }

    #history-video {
        margin-bottom: 30px;
        border-radius: 14px;
    }

    .about-us-cards {
        gap: 22px;
        padding-bottom: 12px;
    }

    .about-us-cards .card,
    .event-card {
        flex: 0 0 95%;
        min-width: unset;
        max-width: unset;
        padding: 28px 24px;
        text-align: left;
    }

    .about-us-cards .card h3,
    .event-card h4 {
        font-size: 22px;
    }

    .our-events-description h2 {
        font-size: 2.05rem;
    }

    .event-card img {
        height: 200px;
        border-radius: 16px;
        min-height: 0;
    }

    .carousel-btn {
        font-size: 1.1rem;
        padding: 8px 12px;
    }

    .event-card {
        min-height: 280px;
        padding: 12px;
    }

    .event-card::before {
        inset: 12px;
        border-radius: 16px;
    }

    .event-card .event-text {
        left: 20px;
        right: 20px;
        bottom: 20px;
        border-radius: 12px;
    }
}

/* =========================================
   EVENTS CAROUSEL (CUSTOM SLIDER)
========================================= */
.events-wrapper {
    position: relative;
}

.events-carousel {
    position: relative;
    margin: 24px auto 0;
    width: min(calc(100% - 2rem), 900px);
    height: 420px;
    background: #f5f5f5;
    box-shadow: 0 30px 50px #dbdbdb;
    border-radius: 20px;
    overflow: hidden;
}

.events-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.events-slide .event-item {
    width: 220px;
    height: 280px;
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    border-radius: 20px;
    box-shadow: 0 30px 50px rgba(80, 80, 80, 0.6);
    background-position: 50% 50%;
    background-size: cover;
    display: inline-block;
    transition: all 0.5s ease;
}

.events-slide .event-item:nth-child(1),
.events-slide .event-item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.events-slide .event-item:nth-child(2)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 15, 25, 0.72), rgba(10, 15, 25, 0.15) 55%, rgba(10, 15, 25, 0));
    pointer-events: none;
}

.events-slide .event-item:nth-child(3) {
    left: 50%;
}

.events-slide .event-item:nth-child(4) {
    left: calc(50% + 240px);
}

.events-slide .event-item:nth-child(5) {
    left: calc(50% + 480px);
}

.events-slide .event-item:nth-child(n + 6) {
    left: calc(50% + 720px);
    opacity: 0;
}

.event-content {
    position: absolute;
    left: 32px;
    bottom: 96px;
    max-width: 360px;
    color: #ffffff;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2;
}

.events-slide .event-item:nth-child(2) .event-content {
    display: block;
}

.event-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.event-link {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.event-link:hover {
    background: #1e40af;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.35);
}

.events-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 2;
}

.events-btn {
    width: 40px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #1d4ed8;
    color: #ffffff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.events-btn:hover {
    background: #1e40af;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.35);
    transform: scale(1.08);
}

.events-btn:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .events-carousel {
        width: min(calc(100% - 1.5rem), 600px);
        height: 360px;
    }

    .events-slide .event-item {
        width: 100%;
        height: 100%;
        transform: translate3d(0, -50%, 0);
        will-change: opacity;
        backface-visibility: hidden;
        transition: opacity 0.35s ease;
    }

    .events-slide .event-item:nth-child(1) {
        opacity: 0;
        pointer-events: none;
    }

    .events-slide .event-item:nth-child(1),
    .events-slide .event-item:nth-child(2) {
        transform: translate3d(0, 0, 0);
    }

    .events-slide .event-item:nth-child(3),
    .events-slide .event-item:nth-child(4),
    .events-slide .event-item:nth-child(5),
    .events-slide .event-item:nth-child(n + 6) {
        opacity: 0;
        pointer-events: none;
    }

    .event-content {
        left: 20px;
        right: 20px;
        bottom: 88px;
        max-width: none;
    }

    .event-title {
        font-size: 1.7rem;
    }
}
