/* --- FONTS --- */
@font-face {
    font-family: "intro-rust";
    src: url("fonts/IntroRust.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'open-sauce';       
    src: url('fonts/OpenSauceOne-Medium.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'open-sauce-light';       
    src: url('fonts/OpenSauceOne-Light.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* --- COLOR PALETTE --- */
:root {
    --cream: #FDF9EE;
    --light-blue: #B2C3D7;
    --dark-blue: #1751AA;
    --darker-blue: #042C53;
}

/* --- GLOBAL STYLES --- */
body { 
    font-family: "intro-rust", "open-sauce", sans-serif;
    background-color: var(--cream); 
    color: var(--dark-blue); 
    margin: 0;
    padding: 0;
    text-align: center;
}

/* --- HEADER --- */
header {
    background-color: #ffffff;
    padding: 5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo img {
    background-color: transparent !important;
    height: 80px;
    width: 80px;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: 0.3s;
}

.header-glow {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header-glow:hover {
    color: var(--light-blue)
}

.nav-links {
    font-family: 'open-sauce';
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: bold;
    transition: 0.3s;
}

/* --- FOOTER --- */
footer {
    font-family: 'open-sauce';
    background-color: var(--dark-blue);
    color: var(--cream);
    padding: 50px 20px;
    margin-top: 50px;
    text-align: left;
}

.footer-content {
    display: flex;
    align-items: center; 
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    width: 160px;
    height: 160px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
}

.footer-links-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-text-link {
    color: var(--cream);
    font-size: 1.2em;
    text-decoration: none;
    font-weight: bold;
}

.glow-link {
    color: var(--cream);
    font-size: 1.2em;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.glow-link:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.5);
}

.copyright {
    color: #ffffff;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    font-size: 0.7em;
    opacity: 0.6;
}

/* --- PAGE SPECIFIC CONTENT --- */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9rem;
    padding: 4rem 17%;

    min-height: 60vh;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.hero-tagline {
    font-family: 'open-sauce';
    color: var(--dark-blue);
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}
.hero-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 1rem;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.hero-section h1 { color: var(--dark-blue); font-size: 4em; }

.content-wrapper { font-family: 'open-sauce'; max-width: 900px; margin: 60px auto; text-align: left; padding: 0 20px; }
.mission-box { background: var(--cream); border-left: 8px solid var(--dark-blue); padding: 30px; border-radius: 0 15px 15px 0; }

.watermark {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 400px; opacity: 0.05; z-index: -1; pointer-events: none;
}

/* ABOUT OUR CLUB SECTION ON HOME PAGE */
.about-section {
    background-color: var(--light-blue);
    padding: 4rem 5%;
    text-align: center;
}

.about-title {
    font-size: 2rem;
    color: var(--darker-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.4rem;
}

.about-subtitle {
    font-family: 'open-sauce';
    color: var(--darker-blue);
    margin: 0 0 2.5rem;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: #ffffff;
    border-radius: 4px;
    padding: 1.5rem 1.25rem;
    text-align: left;
}

.about-card h3 {
    font-size: 1rem;
    color: var(--darker-blue);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 0.5rem;
}

.about-card p {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.announcement-strip {
    background-color: var(--dark-blue);
    color: #ffffff;
    text-align: center;
    padding: 0.6rem 5%;
    font-size: 0.95rem;
    margin: 0;
}

.announcement-strip p {
    margin: 0;
}

.social-section {
    background-color: var(--cream);
    padding: 4rem 5%;
    text-align: center;
}

.nav-button {
    display: inline-block;
    background-color: var(--darker-blue);
    color: #ffffff;
    text-decoration: none;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    margin-top: 1.5rem;
    animation: bounce 1.2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.nav-button:hover {
    background-color: #185FA5;
}

html {
    scroll-behavior: smooth;
}

#about {
    scroll-margin-top: 100px;
}

/* --- ABOUT PAGE SPECIFIC --- */
.about-page {
    max-width: 1000px; /* Made the page wider as requested */
}

.main-title {
    font-size: 3.5em; /* Larger title */
    margin-bottom: 20px;
}

.intro-section {
    font-family: 'open-sauce-light';
    font-size: 1.2em; /* Larger mission text */
    line-height: 1.8;
    margin-bottom: 60px;
}

.definition {
    font-size: 1.4em;
    color: var(--dark-blue);
}

.section-heading {
    text-align: left; /* Left aligned as requested */
    font-size: 2.5em;
    border-bottom: 3px solid var(--dark-blue);
    padding-bottom: 10px;
    margin-bottom: 40px;
}

/* --- STACKED TEAM LAYOUT --- */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 50px; /* Space between members */
}

.member-row {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    text-align: left;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.05);
}

.member-row img {
    width: 250px; /* Large photo size */
    height: 300px; /* Rectangular like WICS */
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 10px;
    border: 3px solid var(--dark-blue);
}

.member-info h3 {
    margin: 0;
    font-size: 1.8em;
    color: var(--dark-blue);
}

.role {
    font-weight: bold;
    color: var(--dark-blue);
    margin: 5px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio {
    line-height: 1.6;
    font-size: 1.05em;
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
    .member-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .member-row img {
        width: 100%;
        height: auto;
    }
}

/* --- BLOG / EVENTS STYLES --- */
.blog-post {
    background-color: #ffffff;
    padding: 30px;
    margin: 40px 0;
    border-radius: 15px;
    border-bottom: 8px solid var(--dark-blue);
    box-shadow: 2px 4px 15px rgba(0,0,0,0.05);
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.date {
    color: var(--dark-blue);
    font-weight: bold;
    font-size: 0.85em;
}

.tag {
    background: var(--cream);
    color: var(--dark-blue);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.75em;
    margin-left: 15px;
    font-weight: bold;
    text-transform: uppercase;
}

.blog-post h2 {
    text-align: left; /* Keeps the post titles aligned with the text */
    margin: 10px 0;
}

.blog-post ul {
    margin-top: 10px;
    padding-left: 20px;
}

.blog-post code {
    background: var(--cream);
    padding: 2px 5px;
    border-radius: 4px;
    color: var(--dark-blue);
}

/* --- EVENTS GRID / CARD STYLES --- */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
}

.event-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    position: relative;
    border-bottom: 8px solid var(--dark-blue);
    box-shadow: 2px 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
}

.event-meta {
    font-size: 1.1rem;  /* increase size */
    font-family: 'open-sauce';
    color: var(--dark-blue);
    opacity: 0.85;
}

/* Combine lift and dim on hover for cards */
.event-card:hover { transform: translateY(-6px); }

.event-card .post-header { margin-bottom: 8px; display:flex; align-items:center; gap:10px; }
.event-card .summary { color: var(--dark-blue); }

/* Hover-only transparency: make card semi-transparent on hover
   and keep clicks working (no overlay capturing pointer events) */
.event-card:hover { opacity: 0.6; }

@media (max-width: 480px) {
    .events-grid { gap: 18px; }
}

/* --- CONTACT US PAGE STYLES --- */
.glow-link-contact {
    color: #000000;
    font-size: 1.2em;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.social-links li {
    display: inline-flex;
}

.social-link {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--cream);
    border: 2px solid var(--dark-blue);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link img {
    max-width: 32px;
    max-height: 32px;
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
    .social-links {
        justify-content: center;
        gap: 14px;
    }
    .social-link {
        width: 48px;
        height: 48px;
    }
    .social-link img {
        max-width: 24px;
        max-height: 24px;
    }
}

.clickable-image {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.clickable-image:hover {
    opacity: 0.6;
    transform: scale(1.02);
}  

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.image-viewer.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.event-hero {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px;
}

.event-hero img {
    max-width: 900px;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    object-fit: cover;
}

.event-body {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--dark-blue);
}

.event-section-title {
    font-size: 1rem;
    font-family: 'open-sauce';
    color: var(--dark-blue);
    margin: 25px 0 10px;
}

/* --- EVENT IMAGES CAROUSEL --- */
.modern-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 20px 0;
}

.carousel-window {
    position: relative;
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    overflow: hidden;
    border-radius: 12px;
    background: var(--cream); /* Black background for any letterboxing */
}

.carousel-slide {
    display: none; /* Hide all by default */
    width: 100%;
    height: 100%; 
}

.carousel-slide.active {
    display: block; /* Show only the active one */
    animation: fadeIn 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Keeps the whole photo visible without cropping */
}

/* Carousel Arrows */
.carousel-btn {
    top: 50%;
    transform: translateY(-50%);
    
    background: none;          /* remove circle */
    border: none;              /* remove border */
    color: var(--dark-blue);   /* just text color */
    
    font-size: 2.5rem;         /* make arrows visible */
    font-weight: bold;
    cursor: pointer;
    
    padding: 0;
    z-index: 10;
    transition: opacity 0.2s ease;

    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.carousel-btn:hover { opacity: 0.6;}
.prev { left: 0px; }
.next { right: 0px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
