.timeline {
    display: flex;
    flex-direction: column;

    gap: 30px;

    padding: 60px 40px;
}

.timeline-item {
    background: #111;

    border-left: 3px solid var(--purple);

    padding: 20px;

    border-radius: 5px;
}

/* =========================================
   HERO
========================================= */

.sub-hero {
    position: relative;

    height: 45vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background: url("/assets/images/background.jpg") center/cover no-repeat;

    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #d0d0d0;
}

/* =========================================
   INTRO TEXT
========================================= */

body > p {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
    color: #aaa;
}

/* =========================================
   REGIMENTS GRID
========================================= */

.regiments {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;

    padding: 40px;
}

/* =========================================
   CARD
========================================= */

.reg-card {
    background: linear-gradient(145deg, #111, #1a1a1a);

    border: 1px solid #2a2a2a;
    border-radius: 14px;

    padding: 25px;

    min-height: 220px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.reg-card:hover {
    transform: translateY(-6px);

    border-color: #8b0000;

    box-shadow:
        0 0 20px rgba(139, 0, 0, 0.25),
        0 0 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   CARD CONTENT
========================================= */

.reg-card h3 {
    margin-bottom: 15px;

    font-size: 1.4rem;

    color: #d4af37;
}

.reg-card p {
    color: #cfcfcf;

    line-height: 1.7;
}

/* =========================================
   RULES SECTION
========================================= */

.section.dark .list {
    margin-top: 25px;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.section.dark .list li {
    list-style: none;

    background: rgba(255,255,255,0.03);

    border: 1px solid #252525;

    border-radius: 8px;

    padding: 15px;
}

/* =========================================
   MODAL
========================================= */

.modal {
    position: fixed;
    inset: 0;

    display: none;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(0,0,0,0.8);

    backdrop-filter: blur(8px);

    z-index: 99999;
}

/* =========================================
   MODAL CONTENT
========================================= */

.modal-content {
    position: relative;

    width: min(1100px, 95vw);
    max-height: 90vh;

    overflow-y: auto;

    background: #111;

    border: 1px solid #2a2a2a;
    border-radius: 16px;

    padding: 30px;

    box-shadow:
        0 0 30px rgba(0,0,0,0.5);
}

/* =========================================
   CLOSE BUTTON
========================================= */

.close {
    position: absolute;

    top: 15px;
    right: 20px;

    font-size: 1.3rem;

    cursor: pointer;

    transition: 0.2s;
}

.close:hover {
    color: #8b0000;
}

/* =========================================
   MODAL BODY
========================================= */

.modal-body {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    align-items: start;
}

/* =========================================
   MODAL TEXT
========================================= */

.modal-text h2 {
    margin-bottom: 20px;
}

.modal-text h4 {
    margin-top: 25px;
    margin-bottom: 10px;

    color: #d4af37;
}

.modal-text p {
    line-height: 1.7;

    color: #d0d0d0;

    white-space: pre-line;
}

/* =========================================
   SLIDER
========================================= */

.modal-slider {
    width: 100%;
}

.modal-slider img {
    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: 12px;

    border: 1px solid #2a2a2a;
}

/* =========================================
   SLIDER CONTROLS
========================================= */

.slider-controls {
    margin-top: 15px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-controls button {
    background: #1e1e1e;

    border: 1px solid #333;

    color: white;

    padding: 8px 14px;

    border-radius: 8px;

    cursor: pointer;

    transition: 0.2s;
}

.slider-controls button:hover {
    border-color: #8b0000;

    background: #2a2a2a;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-slider img {
        height: 320px;
    }

    .regiments {
        padding: 20px;
    }
}

@media (max-width: 600px) {

    .reg-card {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .modal-content {
        padding: 20px;
    }
}