:root {
    --bg-white: #121212;
    --off-white: #1a1a1a;
    --accent-red: #ff3e3e;
    --detail-black: #ffffff;
    --text-grey: #4a4a4a;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}


[data-theme="light"] {
    --bg-white: #ffffff;
    --off-white: #f8f9fa;
    --detail-black: #121212;
    --text-grey: #4a4a4a;
    --footer-bg: #ffffff;
    --footer-text: #1a1a1a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    background-color: var(--off-white);
    color: var(--detail-black);
    line-height: 1.6;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: relative;
    z-index: 2000;
    background-color: var(--bg-white);
}

.logo {
    white-space: nowrap;
    margin-right: 5%;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

[data-theme="dark"] .logo {
    color: #ffffff;
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
    white-space: nowrap
}

.nav-links a {
    text-decoration: none;
    color: var(--detail-black);
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.nav-links a.active {
    color: var(--accent-red);
    padding-bottom: 3px;
    border-bottom: 3px solid var(--accent-red);
}

.btn-cta {
    background: var(--accent-red);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.hero {
    position: relative;
    height: 50vh;
    min-height: 50vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    overflow: hidden; 
}

.back-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Centers the video */
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom,
            #1a1a1a 0%,
            transparent 15%,
            transparent 85%,
            #1a1a1a 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom,
            #ffffff 0%,
            transparent 15%,
            transparent 85%,
            #ffffff 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="light"] .hero::after {
    opacity: 1;
}

.article-card {
    background: var(--bg-white);
    border-top: 4px solid var(--accent-red);
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

.category-tag {
    color: var(--accent-red);
    text-transform: uppercase;
    font-size: 0.rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}

.article-header h1 {
    color: --detail-black;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: --detail-black;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px;
    border-bottom-style: solid;
    border-color: var(--accent-red);

}

.meta-sep {
    margin: 0 10px;
    color: var(--accent-red);
}

.content-body p:first-of-type::first-letter {
    color: --off-white;
    background-color: var(--accent-red);
    float: left;
    font-size: 5rem;
    line-height: 1;
    padding: 12px 18px;
    margin-right: 15px;
    border-radius: 4px;
    font-weight: 900;
    margin-top: 5px;
}

.content-body p {
    color: --detail-black;
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-body a {
    text-decoration: none;
    color: var(--accent-red);
    font-weight: 600;
    transition: 0.3s;
}

.content-body a:hover,
.nav-links a.active {
    color: var(--detail-black);
}

.content-body ul {
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    list-style: none;
}

.content-body li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.75em;
}

.content-body li {
    margin-left: 20px;
    padding-left: 10px;
    margin-bottom: 3px;
    color: var(--detail-black);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    min-height: 250px;
}

.logo-img {
    transition: opacity 0.3s ease;
    /* For smooth transitions */
}

@keyframes logoFade {
    from {
        opacity: 0;
        filter: blur(2px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

#video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 5; /* Sit above the video, below the text */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Start visible */
    transition: opacity 0.6s ease;
}

#video-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}


.logo-fade-active {
    animation: logoFade 0.3s ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--accent-red);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {

    background: var(--accent-red);
    color: white !important;
    border: none;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.btn-outline {
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.container {
    padding: .5rem 5%;
}

.section-title {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.section-title span {
    color: var(--accent-red);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--accent-red);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.card-tag {
    color: var(--accent-red);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    margin-bottom: 1rem;
}

.news-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--detail-black);
    text-decoration: none;
    font-weight: bold;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    position: relative;
    z-index: 10001;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--detail-black) !important;
    transition: 0.3s;
    position: relative;
    z-index: 1002;
}
@media (max-height: 950px) {
    .hero {
        position: relative;
        min-height: 65vh;
        width: 100%;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
        overflow: hidden; 
    }
}
@media (max-width: 950px) {
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1005;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        border-bottom: 4px solid var(--accent-red);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.main-header {
    position: relative; /* Or 'fixed' / 'sticky' if that's what you're using */
    z-index: 1000;      /* Ensure this is higher than your loader's z-index */
}


#theme-toggle {
    background-color: var(--detail-black);
    color: var(--bg-white);
    border: 2px solid var(--detail-black);

    padding: 0.8rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.4);
}

#theme-toggle:hover {
    box-shadow: 0 0 25px rgba(255, 62, 62, 0.7);
    transform: scale(1.05);
}

main {
    flex: 1;
}

.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 1rem 0 3rem;
    margin-top: 2rem;
    border-top: 2px solid var(--accent-red);
    flex-shrink: 0;
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-branding .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-branding p {
    color: var(--footer-text);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: var(--accent-red);
}

.sep {
    color: var(--accent-red);
    font-weight: bold;
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: .5rem;
    width: 100%;
    border-top: 2px solid var(--accent-red);
}

.footer-bottom p {
    margin-top: 1rem;
    color: var(--text-grey);
    font-size: 0.85rem;
    width: auto;
    max-width: 100%;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal Content Card */
.modal-card {
    background: #1a1a1a;
    width: 90%;
    max-width: 600px;
    border-top: 4px solid var(--accent-red);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalCloseComplete {
    from {
        background-color: rgba(0, 0, 0, .5);
        opacity: 1;
        transform: scale(1);
    }

    to {
        background-color: rgba(0, 0, 0, 0);
        opacity: 0;
        transform: scale(0.8);
    }
}


.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-x {
    background: none;
    border: none;
    color: var(--detail-black);
    font-size: 2rem;
    cursor: pointer;
}

.event-item {
    display: flex;
    align-items: center;
    background: #252525;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: 0.3s;
}

.event-item:hover {
    border-left-color: var(--accent-red);
    background: #2a2a2a;
}

.event-date {
    background: var(--accent-red);
    padding: 10px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.9rem;
    text-align: center;
    min-width: 60px;
    margin-right: 1.5rem;
}

.event-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.event-info p {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.btn-join-small {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.modal-card {
    background: var(--bg-white);
    width: 90%;
    max-width: 600px;
    border-top: 4px solid var(--accent-red);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
}

#events-modal.closing {
    animation: modalCloseComplete 0.3s forwards;
}

.modal.opening {
    animation: modalPop 0.3s forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--accent-red);
    border-bottom: 3px solid var(--accent-red);
}

.close-x {
    background: none;
    border: none;
    color: var(--detail-black);
    font-size: 2rem;
    cursor: pointer;
}

/* Vertical Event Items */
.event-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: 0.3s;
}

.event-item:hover {
    border-left-color: var(--accent-red);
    background: var(--off-white);
}

.event-date {
    background: var(--accent-red);
    padding: 10px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.9rem;
    text-align: center;
    min-width: 60px;
    margin-right: 1.5rem;
}

.event-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.event-info p {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.modal-btn-join-small {
    margin-left: auto;
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}