/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    background: rgb(115, 67, 50);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

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

.site-title {
    font-family: 'Iceberg', cursive;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

/* Navigation */
nav {
    background: rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: relative;
    overflow: visible;
    z-index: 99998;
}

nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    z-index: 99999;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(115, 67, 50);
    min-width: 150px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 999999;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
}

/* Enable dropdowns on tap/focus for mobile */
.dropdown:focus-within .dropdown-menu {
    display: block;
}

/* Add invisible bridge to prevent menu from disappearing */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Hero Section */
.hero {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 3px solid rgb(204, 67, 49);
}

.hero-content h2 {
    color: rgb(115, 67, 50);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.season-tag {
    color: rgb(204, 67, 49);
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
    background: white;
    margin: 2rem 0;
}

.content-section.highlight {
    background: #f9f9f9;
}

.content-section h2 {
    color: rgb(115, 67, 50);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.content-section h3 {
    color: rgb(204, 67, 49);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid rgb(204, 67, 49);
}

/* Media Links */
.media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.media-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgb(204, 67, 49);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.media-link:hover {
    background: rgb(115, 67, 50);
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Tile Button (card-like link) */
.tile-button {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 2px solid rgb(204, 67, 49);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.tile-button p {
    margin: 0.25rem 0;
}

.tile-button p:first-child {
    font-weight: 700;
    color: rgb(115, 67, 50);
}

.tile-button .cta {
    display: inline-block;
    margin-top: 0.75rem;
    background: rgb(204, 67, 49);
    color: #fff;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgb(204, 67, 49);
}

.tile-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background: #fff8f7;
    border-color: rgb(204, 67, 49);
}

.tile-button:hover .cta {
    background: rgb(115, 67, 50);
    border-color: rgb(115, 67, 50);
}

.tile-button:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* Video Embed */
.video {
    margin: 1.25rem 0 1.5rem;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

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

.resource-card a {
    color: rgb(204, 67, 49);
    text-decoration: none;
    font-weight: bold;
}

.resource-card a:hover {
    text-decoration: underline;
}

/* Team Section */
.team-info {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.presentations {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.presentation-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #cccccc;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.presentation-link:hover {
    background: #f2f2f2;
    border-color: #999999;
    color: #000000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.10);
}

.presentation-link:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* Footer */
footer {
    background: rgb(115, 67, 50);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .media-links {
        flex-direction: column;
        align-items: center;
    }
    
    .media-link {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
}
