/*==============================================================================
   1. RESET & BASE STYLES
==============================================================================*/
/* Reset all default browser styles and set basic typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    overflow-x: hidden;
}

/*==============================================================================
   2. NAVIGATION BAR & MOBILE MENU
==============================================================================*/
/* ---- Navigation Bar ---- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    background: linear-gradient(to right, #d50000, #1a237e); /* Bold red to deep blue gradient */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    height: 80px;
    transition: all 0.3s ease-in-out;
}

.navbar:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 70px; /* Increased size for more prominence */
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.6));
    margin-right: 15px;
    position: relative;
    z-index: 2; /* Make logo stand out above other elements */
}

/* ---- Navigation Menu & Links ---- */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-link {
    display: block;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 10px 5px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #f8f8f8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.join {
    padding: 10px 20px;
}

.nav-link.active {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

/* ---- Join Button ---- */
.join-button {
    background-color: #d50000;
    border-radius: 5px;
    transform: scale(1);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.join-button:hover {
    transform: scale(1.05);
    background-color: #b71c1c;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* ---- Mobile Menu Toggle Button ---- */
.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease-in-out;
    display: block;
}

/* ---- Mobile Menu Overlay & Responsive Navigation ---- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.5); Semi-transparent black */
    background: linear-gradient(rgba(23, 35, 126, 0.7), rgba(213, 0, 0, 0.7));
    z-index: 998; /* Just below the menu but above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

@media screen and (max-width: 960px) {
    .nav-container {
        padding: 0 20px;
    }

    .nav-menu {
        position: fixed;
        right: -100%; /* Slide in from right */
        top: 80px;
        flex-direction: column;
        background: #ffffff;
        width: 70%;
        max-width: 300px;
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        height: auto;
        padding: 20px 0;
        border-radius: 0 0 0 10px; /* Rounded bottom-left corner */
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0; /* Menu becomes visible */
        z-index: 999; /* Ensure menu is above the overlay */
    }

    .nav-item {
        margin: 10px 0;
    }

    .nav-link {
        color: #333;
        font-size: 15px;
        padding: 8px 5px;
    }

    .nav-link::after {
        background-color: #d50000;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .join-button {
        width: 80%;
        margin: 15px auto;
        background-color: #d50000;
    }

    .join-button .nav-link {
        color: white;
    }
}

/*==============================================================================
   3. SLOGAN BANNER
==============================================================================*/
/* Scrolling slogan banner below navbar */
.slogan-banner {
    position: fixed;
    top: -50px; /* Start off-screen */
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #d50000;
    color: white;
    z-index: 900; /* Below the navbar but above other content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: top 0.4s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
}

.slogan-banner.active {
    top: 60px; /* Appears below the navbar when scrolled */
}

.slogan-container {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative; /* For absolute positioning of slogan text */
}

.slogan-text {
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    position: absolute;
    left: 0; /* Starting from the left edge */
    will-change: transform; /* Performance optimization */
    animation: scrollAllSlogans 30s linear infinite;
}

.slogan-separator {
    display: inline-block;
    margin: 0 20px;
    font-size: 1.2em;
    color: #ffffff;
}

@keyframes scrollAllSlogans {
    0% {
        transform: translateX(0%); /* Start fully visible */
    }
    100% {
        transform: translateX(-50%); /* Scroll to show repeated content */
    }
}

/*==============================================================================
   4. HERO SECTION (VIDEO BACKGROUND & MOBILE FALLBACK)
==============================================================================*/
.hero {
    position: relative;
    height: 45vh;
    min-height: 300px;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.6); Shadow overlay */
    background: linear-gradient(rgba(23, 35, 126, 0.7), rgba(213, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
    width: 90%; /* Ensure content stays within margins */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

/* Image background fallback for mobile */
.img-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('library/background-mobile.jpg'); /* Ensure this image exists */
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* ---- Responsive Hero Section ---- */
@media screen and (max-width: 768px) {
    #hero-video {
        display: none; /* Hide video on small screens */
    }

    .video-container {
        background-color: #000; /* Fallback background if image fails to load */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 360px) {
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
}

/*==============================================================================
   5. GENERAL SECTION STYLING & CONTAINERS
==============================================================================*/
section {
    padding: 60px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #1a237e;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.stars-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d50000;
}

.stars-divider i {
    margin: 0 10px;
    font-size: 1.2rem;
}

.stars-divider::before,
.stars-divider::after {
    content: '';
    height: 2px;
    width: 60px;
    background-color: #d50000;
    margin: 0 10px;
}

/*==============================================================================
   6. MISSION SECTION & INAUGURAL ADDRESS BUTTON
==============================================================================*/
/* Mission Section styles */
.mission-section {
    padding: 80px 0;
    background-color: white;
}

.mission-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a237e;
    font-weight: bold;
}

.mission-section .divider {
    margin-bottom: 30px;
    text-align: center;
}

/* Mission content with side figures */
.mission-content {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Text content */
.mission-text {
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
    /*text-align: center;*/
    padding: 0 20px;
}

.mission-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
    color: #444;
}

.mission-section p + p {
    margin-top: 25px;
}

.mission-section p:first-of-type {
    font-weight: 500;
}

.mission-section p:last-of-type {
    margin-bottom: 10px;
}

/* Conservative Figure Stickers */
.conservative-figure {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    animation: wiggle 2s ease-in-out;
    padding-left: 15px;
    padding-right: 15px;
}

.conservative-figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px lightgoldenrodyellow);
}

.left-figure {
    margin-right: 0;
    margin-left: 10px;
}

.right-figure {
    margin-left: 0;
    margin-right: 10px
}

.conservative-figure:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(16px 16px 30px lightgoldenrodyellow);
    cursor: pointer;
    animation: wiggle 0.5s ease-in-out;
}

/* Wiggle animation for extra fun on hover */
@keyframes wiggle {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    25% { transform: scale(1.15) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
}

/* Inaugural Address Button */
.button-container {
    margin-top: 30px;
    text-align: center;
}

.inaugural-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: white;
    color: #d50000;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #d50000;
    border-radius: 5px;
    font-size: 16px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.inaugural-button:hover {
    background-color: #d50000;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .mission-content {
        flex-direction: column;
    }

    .conservative-figure {
        display: none;
    }

    .left-figure, .right-figure {
        display: none;
    }
}

/*==============================================================================
   7. WHY JOIN SECTION
==============================================================================*/
.why-join {
    background-color: #f8f9fa;
    position: relative;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background-color: #1a237e;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 2rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1a237e;
}

.benefit-item p {
    color: #555;
    line-height: 1.5;
}

.join-action {
    text-align: center;
    margin-top: 20px;
}

.join-now-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d50000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.join-now-btn:hover {
    background-color: #b71c1c;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.join-now-btn i {
    margin-left: 5px;
}

/*==============================================================================
   8. ABOUT US SECTION
==============================================================================*/
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-tagline {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d50000;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 5px solid #1a237e;
    padding-left: 15px;
}

.affiliation-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.affiliation-link {
    display: inline-block;
    color: #1a237e;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: rgba(26, 35, 126, 0.1);
}

.affiliation-link:hover {
    transform: translateX(5px);
    color: #d50000;
    background-color: rgba(213, 0, 0, 0.1);
}

.meeting-info {
    flex: 1;
    min-width: 300px;
}

.meeting-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #d50000;
}

.meeting-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.meeting-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, transparent 50%, rgba(213, 0, 0, 0.1) 50%);
    z-index: 1;
}

/* (Optional commented out icon for meeting cards)
.meeting-icon {
    font-size: 2.5rem;
    color: #d50000;
    margin-bottom: 15px;
}
*/

.meeting-card h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.meeting-details {
    margin-top: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.meeting-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meeting-details i {
    color: #d50000;
    width: 20px;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }

    .meeting-card {
        margin-top: 20px;
    }
}

/*==============================================================================
   9. NEWSLETTER SECTION
==============================================================================*/
.newsletter {
    background: linear-gradient(to right, #1a237e, #283593);
    color: white;
    padding: 50px 0;
}

.newsletter-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.newsletter-text {
    flex: 1;
    min-width: 300px;
}

.newsletter-text h2 {
    color: white;
    text-align: left;
    margin-bottom: 15px;
}

.newsletter-text p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.newsletter-form {
    flex: 1;
    min-width: 300px;
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: #d50000;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #b71c1c;
}

.newsletter-form button i {
    margin-left: 5px;
}

/*==============================================================================
   10. FOOTER SECTION
==============================================================================*/
.footer {
    background-color: #0a1142;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.footer-column {
    margin-bottom: 30px;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background-color: #d50000;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

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

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    background-color: #d50000;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    color: #aaa;
}

.powered-by {
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        text-align: center;
        margin-bottom: 40px;
    }

    .footer-links {
        justify-content: space-between;
    }

    .footer-column {
        flex-basis: 45%;
    }
}

@media screen and (max-width: 480px) {
    .footer-column {
        flex-basis: 100%;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

/*==============================================================================
   11. 404 ERROR PAGE STYLES
==============================================================================*/
.error-page {
    padding-top: 150px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9f9f9 0%, #efefef 100%);
}

.error-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 30px;
}

.error-content {
    flex: 1;
    padding: 30px;
    text-align: center;
}

.error-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Style for the funny error image */
.error-funny-image {
    max-width: 100%;
    padding: 10px;
    height: auto;
    max-height: 350px;
    transition: all 0.4s ease;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.15));
    animation: wiggle1 1s ease-in-out;
}

/* Hover effect for the funny image */
.error-funny-image:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(8px 8px 15px rgba(0, 0, 0, 0.25));
    cursor: pointer;
    animation: wiggle1 0.5s ease-in-out;
}

/* Wiggle animation for extra fun on hover */
@keyframes wiggle1 {
    0%, 100% { transform: scale(1.1) rotate(5deg); }
    25% { transform: scale(1.15) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
}

/* Hide the original icon since we're replacing it */
.error-icon {
    display: none;
}

.error-title {
    font-size: 120px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #d50000, #1a237e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.error-subtitle {
    font-size: 32px;
    margin: 10px 0 20px;
    color: #333;
}

.error-message {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.error-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #d50000;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-color: #b71c1c;
}

.error-button.secondary {
    background-color: #1a237e;
}

.error-button.secondary:hover {
    background-color: #0d1259;
}

@media screen and (max-width: 768px) {
    .error-container {
        flex-direction: column-reverse;
        padding: 20px 30px 30px 30px;
    }

    .error-content {
        flex: 1;
        padding: 0 30px 30px 30px;
        text-align: center;
    }

    .error-title {
        font-size: 80px;
    }

    .error-subtitle {
        font-size: 24px;
    }

    .error-message {
        font-size: 16px;
    }

    .error-funny-image {
        max-height: 250px;
        padding: 0;
    }

    .error-actions {
        flex-direction: column;
        gap: 10px;
    }

    .error-button {
        width: 100%;
    }
}
/*==============================================================================
   12. EVENTS PAGE STYLES
==============================================================================*/
/* ---- Events Hero Section ---- */
.events-hero {
    background-image: url('library/events-hero-bg.jpg'); /* Ensure image is in your library folder */
    background-size: cover;
    background-position: center;
    height: 45vh;
    min-height: 300px;
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(23, 35, 126, 0.7), rgba(213, 0, 0, 0.7));
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.page-hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.page-hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* ---- Regular Events Section (Tuesday Topics) ---- */
.regular-events-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.tuesday-topics-container {
    display: flex;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    border-left: 5px solid #d50000;
}

.tuesday-topics-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tuesday-topics-icon {
    background: linear-gradient(to bottom right, #d50000, #b71c1c);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 25px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.3);
}

.tuesday-topics-icon i {
    font-size: 32px;
}

.tuesday-topics-content {
    flex: 1;
}

.tuesday-topics-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a237e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tuesday-topics-description {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #333;
}

.tuesday-topics-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 16px;
}

.tuesday-topics-details span {
    display: flex;
    align-items: center;
}

.tuesday-topics-details i {
    margin-right: 8px;
    color: #d50000;
}

@media screen and (max-width: 768px) {
    .tuesday-topics-container {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .tuesday-topics-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .tuesday-topics-details {
        justify-content: center;
    }
}

/* ---- Calendar Section ---- */
.calendar-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}

.calendar-container {
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.google-calendar {
    width: 100%;
    height: 600px;
    border: none;
}

/* ---- Featured Events Section ---- */
.featured-events {
    padding: 80px 0;
    background-color: white;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    display: flex;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    background: linear-gradient(to bottom, #d50000, #b71c1c);
    color: white;
    padding: 15px 10px;
    text-align: center;
}

.month {
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
}

.day {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

.event-details {
    padding: 20px;
    flex-grow: 1;
}

.event-details h3 {
    margin: 0 0 10px;
    color: #1a237e;
    font-size: 1.2em;
}

.event-time,
.event-location {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.event-time i,
.event-location i {
    margin-right: 5px;
    color: #d50000;
}

.event-description {
    margin-top: 15px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #444;
}

/* ---- Mobile Adjustments for Events Page ---- */
@media (max-width: 768px) {
    .events-hero {
        height: 40vh;
    }

    .page-hero-content h1 {
        font-size: 2em;
    }

    .calendar-container {
        padding-bottom: 0;
    }

    .google-calendar {
        height: 400px;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        flex-direction: row;
        width: 100%;
        padding: 10px;
    }

    .month {
        margin-right: 5px;
    }
}
