/* ================================================= */
/*          GLOBAL & SHARED STYLES                   */
/* ================================================= */

/* Basic Reset & Defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header & Navigation Styles (Used on all pages) */
header.main-header {
    background: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    border-bottom: #0779e4 4px solid;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

header.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.main-header #branding h1 {
    margin: 0;
    font-size: 28px;
}

header.main-header #branding h1 a {
    color: #fff;
    text-decoration: none;
    text-transform: none;
}

nav.main-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

nav.main-nav li {
    margin: 0 12px;
}

nav.main-nav a {
    color: #ecf0f1;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 15px;
    padding: 5px 0;
    position: relative;
}

nav.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0779e4;
    transition: width 0.3s ease;
}

nav.main-nav a:hover::after,
nav.main-nav .current a::after {
    width: 100%;
}

nav.main-nav a:hover,
nav.main-nav .current a {
    color: #fff;
}

/* Footer Style (Used on all pages) */
footer.main-footer {
    background: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px; /* Provides space above footer */
}


/* ================================================= */
/*          REUSABLE COMPONENTS                      */
/* ================================================= */

/* General Purpose Card Grid (Used for Sponsors, Achievements, etc.) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* General Purpose Card Item */
.card {
    background-color: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card h3 {
    color: #0779e4;
    margin-bottom: 15px;
}

.responsive-img { /* General purpose responsive image */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}


/* ================================================= */
/*          INDEX.HTML SPECIFIC STYLES               */
/* ================================================= */

/* Hero Section Styles */
.hero-section {
    position: relative;
    background-image: url('images/team-photo-small.avif');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
	padding-top: 500px; /* Adjust this value to move text down */
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

/* Buttons (Used in Hero section) */
.button {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    margin: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.button-primary {
    background-color: #0779e4;
    color: #fff;
    border: 1px solid #0779e4;
}

.button-primary:hover {
    background-color: #0560b3;
    transform: translateY(-2px);
}

.button-secondary {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.button-secondary:hover {
    background-color: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* Three Pane Section Styles on Homepage */
.quick-links-section {
    background-color: #1c1c1c;
    padding: 60px 0;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-pane {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 500px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    overflow: hidden;
    border-radius: 8px;
    filter: grayscale(100%);
    transition: all 0.4s ease-in-out;
}

.link-pane:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.link-pane h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin: 0;
    padding: 30px;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}


/* ================================================= */
/*          MEDIA.HTML SPECIFIC STYLES               */
/* ================================================= */

/* Video Layout Styles */
.video-placeholder {
    background-color: #000;
    color: #fff;
    aspect-ratio: 16 / 9;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #444;
}
.video-placeholder img.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.video-placeholder:hover img.thumbnail {
    transform: scale(1.05);
}
.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.spotlight-video-container {
    margin-bottom: 40px;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}
.spotlight-video-container .video-placeholder {
    border: 3px solid #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.video-wall-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.video-wall-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}
.video-wall-item .video-placeholder {
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Photo Gallery Styles */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.photo-gallery img {
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    padding: 3px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* ================================================= */
/*          RESPONSIVE ADJUSTMENTS                   */
/* ================================================= */

@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    .link-grid {
        grid-template-columns: 1fr; /* Stack panes on top of each other */
    }
    .video-wall-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    header.main-header .container {
        flex-direction: column;
        align-items: center;
    }
    header.main-header #branding h1 {
        margin-bottom: 10px;
    }
    nav.main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    nav.main-nav li {
        margin: 5px 10px;
    }
    .spotlight-video-container {
        max-width: 100%;
    }
    .card-grid {
        grid-template-columns: 1fr; /* Stacks cards in a single column on mobile */
    }
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    header.main-header #branding h1 {
        font-size: 22px;
        text-align: center;
    }
    .video-wall-container {
        grid-template-columns: 1fr;
    }
}