/* Gallery styles */
#gallery {
    background: #181818;
    border-radius: 1rem;
    margin-bottom: 2rem;
}
.gallery-img {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.4);
}
/* Grimraven MC Norway navbar text style */
.grimraven-text {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffc107 !important;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px #000, 0 0 10px #ffc10755;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Oswald:wght@400;700&display=swap');

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

.top-bar {
    background-color: #7a5c00;
    padding: 0.5rem 0;
    color: #fff;
    font-size: 0.9rem;
}

.top-bar .slogan {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
}

.top-bar .social-links a {
    color: #fff;
    margin-left: 15px;
    transition: color 0.3s;
}

.top-bar .social-links a:hover {
    color: #fff;
}


.navbar {
    background: #000;
    padding: 1rem 0;
    transition: background 0.3s ease-in-out;
    border-bottom: 1px solid #ffc107;
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 50px;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    margin-left: 15px;
    color: #e0e0e0;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: #ffc107;
}

.hero {
    position: relative;
    height: 80vh;
    /* background: url('../img/A high-resolution GT.png') center center/cover no-repeat; */ /* Removed background image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure video doesn't spill out */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video cover the entire element */
    z-index: -1; /* Place it behind the overlay and content */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

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

.hero .display-3 {
    font-family: 'Oswald', sans-serif;
    text-shadow: 2px 2px 10px #000;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffc107;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.bg-dark-section {
    background-color: #1c1c1c;
}

.feature-item i {
    transition: transform 0.3s;
}

.feature-item:hover i {
    transform: scale(1.2);
}



.card {
    background-color: #232323;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-title {
    font-family: 'Oswald', sans-serif;
    color: #ffc107;
    font-size: 1.5rem;
}

.card-img-top {
    border-bottom: 2px solid #ffc107;
    max-height: 250px;
    object-fit: cover;
    object-position: center 20%;
}

/* Styling for crew images (non-President) */
#crew .card:not(:first-child) .card-img-container {
    position: relative;
    max-height: 250px; /* Match card-img-top max-height */
    overflow: hidden; /* Ensure pseudo-element respects bounds */
    border-bottom: 2px solid #ffc107; /* Maintain border */
}

#crew .card:not(:first-child) .card-img-container img {
    display: block; /* Remove extra space below image */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: opacity 0.3s ease; /* Smooth transition for hover effect */
}

#crew .card:not(:first-child) .card-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darken image */
    background-image: url('../img/A clean, high‑contra (1).webp'); /* Logo */
    background-size: 70%; /* Adjust size of the logo */
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1; /* Place over the image */
    opacity: 1; /* Initially visible */
    transition: opacity 0.3s ease; /* Smooth transition */
}

/* Optional: Hover effect to reveal image slightly */
#crew .card:not(:first-child) .card-img-container:hover::before {
    background-color: rgba(0, 0, 0, 0.4); /* Less dark on hover */
    opacity: 0.8;
}

.btn-custom {
    background-color: #ffc107;
    color: #121212;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.btn-custom:hover {
    background-color: #fff;
    color: #121212;
    transform: translateY(-3px);
}

.footer {
    background: #111;
    color: #aaa;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #ffc107;
}

/* Modal styles */
.modal-content {
    background-color: #232323;
    color: #e0e0e0;
    border: 1px solid #ffc107;
}

.modal-header {
    border-bottom: 1px solid #333;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    color: #ffc107;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Form styles */
.form-control {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

.form-control:focus {
    background-color: #444;
    color: #e0e0e0;
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.form-label {
    color: #e0e0e0;
}

.section-divider {
    padding-top: 3rem; /* Adjust as needed */
    border-top: 1px solid #ffc107;
}

/* Preloader styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212; /* Matching body background */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-slogan {
    font-family: 'Oswald', sans-serif; /* Use Oswald for slogan */
    font-size: 3rem; /* Adjust as needed */
    line-height: 1.2;
    display: block; /* Ensure it takes full width for text-align */
}

/* Style for the background video in the Crew section */
.crew-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Place it behind the content */
}







/* Custom Warning Text Style */
.warning-text {
    font-size: 1.2rem; /* Make the text larger */
    font-weight: bold; /* Make it bold */
    color: #ffc107; /* Use the warning color */
    display: flex; /* Use flexbox to align icon and text */
    align-items: center; /* Vertically align items */
    justify-content: center; /* Center the content */
    padding: 0.5rem; /* Add some padding */
    background-color: #333; /* Slightly darker background for contrast */
    border-radius: 5px; /* Rounded corners */
    margin-top: 1rem; /* Add some space above */
    margin-bottom: 1rem; /* Add some space below */
}

.warning-text .fa-exclamation-triangle {
    font-size: 1.5rem; /* Make the icon slightly larger than text */
    margin-right: 0.5rem; /* Space between icon and text */
}

.main-content {
    padding-top: 4rem; /* Ensure content is not hidden behind the sticky navbar */
}

/* Darkening and Overlay for non-President avatars */
.post-author-profile .avatar-wrapper {
    position: relative;
    display: inline-block; /* To contain the absolute positioned pseudo-element */
    width: 80px; /* Assuming avatar width */
    height: 80px; /* Assuming avatar height */
    overflow: hidden; /* Ensure rounded corners clip content */
    border-radius: 50%; /* Apply rounded circle here */
    margin-bottom: 0.5rem; /* Equivalent to mb-2 */
}

.post-author-profile .avatar-wrapper img {
    width: 100%; /* Make image fill its wrapper */
    height: 100%;
    object-fit: cover; /* Ensure image covers the area without distortion */
    filter: brightness(0.5); /* Darken the image */
    transition: filter 0.3s ease; /* Smooth transition for hover */
}

.post-author-profile .avatar-wrapper::after {
    content: '';
    background-image: url('../img/A clean, high‑contra (1).webp'); /* The overlay logo */
    background-size: cover; /* Cover the area, adjust as needed */
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; /* Size of the overlay logo */
    height: 50px; /* Size of the overlay logo */
    opacity: 0.7; /* Make the logo semi-transparent */
    z-index: 10; /* Ensure it's above the image */
    transition: opacity 0.3s ease;
}

/* Optional: remove overlay on hover */
.post-author-profile .avatar-wrapper:hover img {
    filter: brightness(1); /* Remove darkening on hover */
}

.post-author-profile .avatar-wrapper:hover::after {
    opacity: 0; /* Hide logo on hover */
}

/* Styling for News Cards */
#news-list .list-group-item {
    background-color: #1a1a1a; /* Slightly darker than default bg-dark-section */
    border: 1px solid #333;
    border-left: 5px solid #ffc107; /* Accent border */
    border-radius: 8px;
    margin-bottom: 1.5rem; /* More space between cards */
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

#news-list .list-group-item:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    background-color: #1f1f1f; /* Slightly lighter on hover */
}

#news-list .list-group-item h5.text-warning {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #ffc107 !important; /* Ensure warning color */
}

#news-list .list-group-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

#news-list .list-group-item small {
    display: block; /* Ensure small elements are on their own line */
    font-size: 0.85rem;
    color: #999;
}

#news-list .list-group-item small:first-of-type { /* For date */
    color: #ccc;
    font-weight: bold;
}

#news-list .list-group-item .d-flex.w-100.justify-content-between {
    align-items: center; /* Vertically align title and date */
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) { /* Large desktops to tablets */
    .grimraven-text {
        font-size: 1.5rem;
    }
    .navbar-brand {
        font-size: 1.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .hero .display-3 {
        font-size: 2.5rem;
    }
    .preloader-slogan {
        font-size: 2.2rem;
    }
    .warning-text {
        font-size: 1rem;
    }
    .warning-text .fa-exclamation-triangle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) { /* Tablets to mobile */
    .grimraven-text {
        font-size: 1.2rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero .display-3 {
        font-size: 2rem;
    }
    .preloader-slogan {
        font-size: 1.8rem;
    }
    .top-bar .slogan {
        font-size: 0.8rem;
    }
    .top-bar .social-links {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) { /* Small mobile devices */
    .grimraven-text {
        font-size: 1rem;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .hero .display-3 {
        font-size: 1.8rem;
    }
    .preloader-slogan {
        font-size: 1.5rem;
    }
    .top-bar {
        text-align: center;
    }
    .top-bar .container {
        flex-direction: column;
    }
    .warning-text {
        font-size: 0.9rem;
    }
    .warning-text .fa-exclamation-triangle {
        font-size: 1.1rem;
    }
}