html {
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
html {
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color); 
    color: var(--text-color);
    overflow-x: hidden;
}
:root {
    --primary-color: #17354d;
    --secondary-color: #334155;
    --background-color: #cbc9c9;
    --card-background: #f8fafc;
    --text-color: #4b5563;
    --heading-color: #1f2937;
    --accent-color: #007bff;
    --link-hover-color: #e5e7eb;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
p {
    margin-bottom: 1rem;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--link-hover-color);
}
.homepage {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #2d2d2d;
}
.standard-page-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--background-color);
}
.main-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    z-index: 10;
}
.standard-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 1rem;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); 
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}
.logo {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.nav-links {
    display: none;
}
.mobile-menu-toggle-wrapper {
    display: block;
}
.mobile-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    outline: none;
    padding: 0;
    height: 30px;
    width: 30px;
}
.nav-link {
    color: white;
    position: relative;
    padding-bottom: 0.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.cover-page-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 0;
}
.cover-heading {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    max-width: 90%;
    word-wrap: break-word;
    text-wrap: balance;
}
.cover-subheading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 40rem;
    text-align: center;
    line-height: 1.5;
}
.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
}
.cta-button:hover {
    background-color: var(--link-hover-color);
}
.hero-section {
    position: relative;
    text-align: center;
    padding: 8rem 2rem 4rem;
    color: white;
    width: 100%;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1920x500/2563eb/FFFFFF?text=Page+Header');
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.hero-about::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery/DSC03794.jpg');
}
.hero-musb::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery/DSC03828.jpg');
}
.hero-course::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery/DSC03792.jpg');
}
.hero-merch::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery/DSC03927.jpg');
}
.hero-news::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery/DSC03784.jpg');
}
.hero-sponsors::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/gallery/DSC03874.jpg');
}
.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
    max-width: 90%;
    word-wrap: break-word;
    text-wrap: balance;
    display: inline-block;
}
.page-content-wrapper {
    background-color: var(--card-background);
    padding: 4rem 2rem;
    max-width: 960px;
    margin: -3rem auto 4rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
    z-index: 1;
    position: relative;
    width: calc(100% - 2rem);
}
.page-section {
    margin-bottom: 3rem;
}
.page-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.page-section p {
    margin-bottom: 1rem;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.4s ease-out, opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.is-open {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}
.mobile-menu-overlay .menu-content {
    width: 90%;
    max-width: 400px;
    background-color: #333;
    padding: 2rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}
.mobile-menu-overlay .menu-content a {
    color: white;
    font-size: 1.8rem;
    padding: 0.75rem 1.5rem;
    width: auto;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}
.mobile-menu-overlay .menu-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 3.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease;
}
.close-button:hover {
    transform: rotate(90deg);
}
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}
.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.2s ease;
}
.social-links a:hover {
    color: var(--link-hover-color);
}
.footer p {
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.7);
}
.merchandise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.merchandise-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}
.merchandise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.merchandise-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}
.merchandise-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.merchandise-details h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.merchandise-details p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.merchandise-sizes-preview {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 500;
}
.merchandise-sizes-preview span {
    display: inline-block;
    background-color: #e2e8f0;
    padding: 0.3em 0.7em;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.merchandise-sizes-preview.out-of-stock {
    color: #ef4444;
    font-weight: 700;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}
.modal-overlay.is-open .modal-content {
    transform: translateY(0);
    opacity: 1;
}
.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}
.modal-close-button:hover {
    color: #333;
}
.modal-product-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.modal-product-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}
.modal-body-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.modal-image-gallery {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.modal-gallery-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.modal-gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: center;
}
.modal-gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}
.modal-gallery-thumbnail.active {
    border-color: var(--primary-color);
}
.modal-product-details {
    flex: 1.5;
}
.modal-product-blurb {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.modal-size-section {
    margin-bottom: 1.5rem;
}
.modal-size-section h4 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}
.modal-size-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.modal-size-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
}
.modal-size-tags.out-of-stock-message {
    color: #ef4444;
    font-weight: 700;
    font-size: 0.95rem;
}
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .hero-section h1 { font-size: 4rem; }
    .homepage .cover-heading { font-size: 5rem; }
    .mobile-menu-toggle-wrapper {
        display: none;
    }

    .logo .logo-full {
        display: block;
    }
    .logo .logo-mobile {
        display: none;
    }

    .mobile-menu-toggle-wrapper {
        display: none; 
    }
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    .page-content-wrapper {
        padding: 4rem;
        width: 100%;
    }
    .modal-content {
        flex-direction: row;
    }
}
@media (max-width: 480px) {
    .logo .logo-full {
        display: none;
    }
    .logo .logo-mobile {
        display: block; 
    }
        .mobile-menu-toggle-wrapper {
        display: block;
    }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-section h1 { font-size: 1rem; }
    .homepage .cover-heading { font-size: 2rem; }
    .cover-subheading { font-size: .9rem; }
    .page-content-wrapper {
        padding: 2rem 1rem;
    }
}