:root {
    --primary-red: #C62828;
    --dark-grey: #212121;
    --ragnarok-gold: #eaad1f;
}

.viking-font {
    font-family: 'Viking-Normal', sans-serif;
    letter-spacing: 1px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Viking-Normal', sans-serif;
    color: var(--ragnarok-gold);
    font-weight: 700;
}

/* Navbar Customization */
.navbar-brand img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.navbar-brand span {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--ragnarok-gold);
    /* Brand text is gold */
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Viking-Normal', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--ragnarok-gold);
}

/* Active Page State (Gold) */
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--ragnarok-gold) !important;
    font-weight: 900;
    text-shadow: 0px 0px 10px rgba(234, 173, 31, 0.3);
}

.navbar .dropdown-menu .dropdown-item {
    font-family: 'Viking-Normal', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

/* 2. Hover Effect - Bright White text (like nav-links) */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: var(--ragnarok-gold);
    /*background-color: rgba(255, 255, 255, 0.1);*/
    /* Subtle background highlight */
}

/* 3. Active State - Matches your theme */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item:active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--ragnarok-gold);
    font-weight: bold;
}

/* Main Hero Section */
.main-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.main-hero h1 {
    color: var(--ragnarok-gold);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8);
    letter-spacing: 5px;
}

/* Buttons with Norse Font (Kept Red for Contrast) */
.btn-norse {
    font-family: 'Viking-Normal', sans-serif;
    background-color: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 25px;
    letter-spacing: 1px;
}

.btn-norse:hover {
    background-color: #b71c1c;
    color: white;
}

/* Carousel Customization */
.carousel-item img {
    height: 500px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 2px;
    padding: 20px;
    border-left: 4px solid var(--primary-red);
}

.carousel-caption h5 {
    color: var(--ragnarok-gold);
    font-family: 'Viking-Normal', sans-serif;
    font-size: 1.5rem;
}

.carousel-item img {
    height: 500px;
    /* Fixed height */
    object-fit: cover;
    /* Crops image to fill space without distortion */
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    font-size: 0.9rem;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

footer h5 {
    color: var(--ragnarok-gold);
    letter-spacing: 1px;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-red);
}

/* School Logo in Footer */
.footer-logo {
    max-height: 80px;
    width: auto;
    margin: 0;
}

/* Social Icons Styling */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--ragnarok-gold);
    border-radius: 50%;
    margin-left: 15px;
    font-size: 1.5rem;
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
    /* Moves up slightly */
    text-shadow: 0px 0px 10px rgba(255, 215, 0, 0.7);
    /* Adds a glow */
}

/* --- Member Card Styling --- */
.member-card {
    background-color: #222;
    /* Dark card background */
    border: 1px solid #444;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

/* Hover Effect: Lifts up and glows gold */
.member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(234, 173, 31, 0.2);
    /* Gold glow */
    border-color: #eaad1f;
}

/* Image Wrapper */
.member-img-wrapper {
    height: 250px;
    /* Fixed height for uniformity */
    overflow: hidden;
    border-bottom: 3px solid #eaad1f;
    /* Gold separator line */
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures photos don't stretch */
    transition: transform 0.5s ease;
}

/* Zoom effect on photo hover */
.member-card:hover .member-img-wrapper img {
    transform: scale(1.1);
}

/* Text Area */
.member-info {
    padding: 20px;
    color: white;
}

.member-info h4 {
    margin-bottom: 5px;
    font-size: 1.5rem;
    /* Adjust based on your font file */
}

.member-info .role {
    color: var(--ragnarok-gold);
    /* Gold Role Title */
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.member-info .grade {
    color: #ccc;
    font-size: 0.85rem;
    font-style: italic;
}

/* --- Mentor Specific Adjustments --- */
/* Mentors often don't want photos, or just text cards */
.mentor-card {
    border-left: 5px solid #eaad1f;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    max-height: 150px;

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Animation for hover effect */
    transition: all 0.3s ease;
}

.mentor-card:hover {
    transform: translateY(-5px);
    /* Lift up slightly */
    border-color: #eaad1f;
    /* Turn border gold */
    box-shadow: 0 4px 15px rgba(234, 173, 31, 0.3);
    /* Gold glow */
}

/* Ensure the title and role have spacing */
.mentor-card h4 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.mentor-card .role {
    color: #adb5bd;
    /* Light grey for the role text */
    margin-bottom: 0;
    font-style: italic;
}

.sponsor-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sponsor-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Keeps logos from stretching weirdly */
}

.award-year {
    color: #0d6efd;
    /* Bootstrap Primary Blue */
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.award-item {
    border-left: 3px solid #333;
    /* Timeline look */
    padding-left: 15px;
    margin-bottom: 15px;
}

/* Custom Form Inputs for Dark Theme */
.custom-input {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
}

.custom-input:focus {
    background-color: #444;
    color: #fff;
    border-color: var(--ragnarok-gold);
    box-shadow: 0 0 0 0.25rem rgba(234, 173, 31, 0.25);
}

/* Fix placeholder color in dark inputs */
.custom-input::placeholder {
    color: #bbb;
}

.team-title {
    color: var(--ragnarok-gold);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

.team-subtitle {
    color: var(--ragnarok-gold);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

.team-bio {
    font-size: 1.1rem;
    color: #555;
    /* or #ccc if on dark background */
    line-height: 1.6;
}

/* Popup (Modal) Styling */
.popup-overlay {
    display: none;
    /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    animation: fadeIn 0.3s ease-out;
}

.popup-content h3 {
    color: #28a745;
    margin-top: 0;
}

.close-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #5a6268;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-custom thead {
    background-color: #212529;
    color: white;
    font-family: 'Viking-Normal', sans-serif;
}

/* 4. COMPONENT STYLING */
.info-box {
    background-color: #f8f9fa;
    border-left: 5px solid #212529;
    padding: 25px;
    border-radius: 5px;
}

/* Video Section Styling */
.video-wrapper {
    border: 4px solid #212529;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

/* Reef Level Indicators */
.reef-level {
    background-color: #212121;
    border-left: 5px solid #444;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.reef-level:hover {
    background-color: #2a2a2a;
    border-left-color: var(--ragnarok-gold);
    transform: translateX(5px);
}

.reef-level h4 {
    color: var(--ragnarok-gold);
    margin-bottom: 0;
    font-size: 1.2rem;
}

.reef-level span {
    color: #ccc;
    font-size: 0.9rem;
}

.game-piece-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    height: 100%;
}

.game-piece-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-red);
}

/* YouTube Button Hover overrides */
.btn-youtube:hover {
    background-color: #FF0000;
    color: white;
    border-color: #FF0000;
}

.btn-youtube:hover i {
    color: white !important;
}

/* Custom border for game images */
.game-image {
    border: 2px solid var(--ragnarok-gold);
}

.coming-soon-wrapper {
    background-color: #f8f9fa;
    /* Matches body background */
    padding: 80px 0;
    min-height: 60vh;
    /* Ensures it takes up vertical space */
    display: flex;
    align-items: center;
}

.coming-soon-card {
    background: linear-gradient(145deg, #1a1a1a, #2c2c2c);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Add a Gold Top Border */
.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--ragnarok-gold);
}

.coming-soon-card h2 {
    color: var(--ragnarok-gold);
    letter-spacing: 2px;
    font-size: 2.5rem;
}

.icon-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hammer-anim {
    font-size: 4rem;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Apply the animation defined below */
    animation: hammerSwing 2s ease-in-out infinite;
    transform-origin: bottom right;
}

.divider-gold {
    border-top: 2px solid var(--ragnarok-gold);
    opacity: 0.5;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.reveal-date {
    font-size: 1.5rem;
    color: white;
}

.date-highlight {
    color: var(--primary-red);
    /* Uses your primary red */
    font-weight: bold;
    margin-left: 10px;
}

/* Hammer Animation Keyframes */
@keyframes hammerSwing {
    0% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-25deg);
    }

    /* Lift hammer back */
    30% {
        transform: rotate(0deg);
    }

    /* Strike */
    40% {
        transform: rotate(-10deg);
    }

    /* Small bounce */
    50% {
        transform: rotate(0deg);
    }

    /* Rest */
    100% {
        transform: rotate(0deg);
    }
}