/* ============================================
   CLIMBING SPORTS WEBSITE - STYLESHEET
   ============================================ */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2d5aa0;
    --accent-color: #ff6b35;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 2200;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0;
    gap: 1rem;
}

.logo-image {
    height: 65px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.logo:hover {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo:hover .logo-text {
    color: var(--secondary-color);
    transition: color 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.35rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

nav a:hover {
    background-color: rgba(45, 90, 160, 0.1);
    color: var(--secondary-color);
}

nav a.active {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(45, 90, 160, 0.3);
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1500;
}

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

body.menu-open {
    overflow: hidden;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-white);
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ============================================
   MAIN CONTENT CONTAINER
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

/* ============================================
   FEATURED CARDS (Home Page)
   ============================================ */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ============================================
   RANKINGS PAGE - IFSC STYLE
   ============================================ */

.top-banner {
    background-color: #1a3a5f;
    color: var(--bg-white);
    height: 3rem;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.scrolling-text {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: scroll 15s linear infinite;
    padding-left: 100%;
}

.scrolling-text span {
    display: inline-block;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.rankings-banner {
    background-image: url('../images/bg-climbing.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rankings-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.rankings-title {
    font-size: 2.875rem;
    font-weight: 700;
    color: #1a3a5f;
    text-align: center;
    margin: 0 0 0.5rem 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.pdf-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    color: #1a3a5f;
    font-weight: 600;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background-color: rgba(26, 58, 95, 0.08);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pdf-icon {
    width: 18px;
    height: 18px;
    max-width: 20px;
    max-height: 20px;
    object-fit: contain;
    display: inline-block;
}

.pdf-download:hover,
.pdf-download:focus-visible {
    background-color: rgba(26, 58, 95, 0.14);
    color: #0c2446;
    outline: none;
}

.rankings-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a3a5f;
    text-align: center;
    margin: 0;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

.rankings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
    background-color: var(--bg-white);
}

/* Rankings page specific filters */
.rankings-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a3a5f;
    padding: 1rem 2rem;
    margin-bottom: 0;
    flex-wrap: nowrap;
    gap: 1rem;
}

.rankings-filters .category-tabs {
    display: flex;
    gap: 0;
}

/* Achievements page filters - separate styling */
.achievements-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a3a5f;
    padding: 1rem 2rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--bg-white);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    background-color: var(--bg-white);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.filter-select:hover {
    background-color: #f8f9fa;
    border-color: #1a3a5f;
    box-shadow: 0 4px 8px rgba(26, 58, 95, 0.1);
    transform: translateY(-1px);
}

.filter-select:focus {
    outline: none;
    border-color: #1a3a5f;
    box-shadow: 0 0 0 3px rgba(26, 58, 95, 0.1), 0 4px 8px rgba(26, 58, 95, 0.15);
    background-color: var(--bg-white);
}

.filter-select:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-tabs {
    display: flex;
    gap: 0;
    width: 100%;
}

.category-tab {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.category-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.category-tab.active {
    color: var(--bg-white);
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--bg-white);
}

.gender-toggle {
    display: flex;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.gender-btn {
    background: none;
    border: none;
    color: var(--bg-white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}

.gender-btn.active {
    background-color: var(--bg-white);
    color: #1a3a5f;
    font-weight: 600;
}

.rankings-table-wrapper {
    overflow-x: auto;
    background: var(--bg-white);
}

.rankings-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    min-width: 600px;
}

.rankings-table thead {
    background-color: #1a3a5f;
    color: var(--bg-white);
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rankings-table th {
    padding: calc(0.75rem + 2px);
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    vertical-align: middle;
    height: auto;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.rankings-table th:last-child {
    border-right: none;
}

.rankings-table th:first-child {
    width: 100px;
    text-align: center;
    padding-right: 1.5rem;
}

.rankings-table th:nth-child(2) {
    text-align: center;
    padding-left: 0;
    padding-right: 0.5rem;
}

.rankings-table th:nth-child(3) {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.75rem;
}

.rankings-table th:last-child {
    text-align: center;
}

.rankings-table tbody tr {
    transition: background-color 0.2s;
}

.rankings-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.rankings-table tbody tr:nth-child(odd) {
    background-color: var(--bg-white);
}

.rankings-table tbody tr:hover {
    background-color: #f0f0f0;
}

.rankings-table td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
    font-size: 0.9rem;
    text-align: center;
}

.rankings-table td:first-child {
    padding-right: 1.5rem;
    text-align: center !important;
}

.rankings-table td:first-child * {
    text-align: center !important;
    margin: 0;
}

.rankings-table td:nth-child(2) {
    padding-left: 0;
    padding-right: 0.5rem;
    text-align: center;
}

.rankings-table td:nth-child(3) {
    padding-left: 0.5rem;
    padding-right: 0.75rem;
    text-align: center;
}

.medal-cell {
    font-weight: 600;
    text-transform: capitalize;
}

.rankings-table .rank {
    text-align: center !important;
    font-weight: 700;
    font-size: 1.1rem;
    color: #666;
}

.rankings-table .rank.rank-1,
.rankings-table .rank.rank-3 {
    color: #d4af37;
}

.rankings-table .rank.rank-2 {
    color: #999;
}

.rankings-table .athlete-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.rankings-table .country-code {
    font-weight: 500;
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.rankings-table .points {
    text-align: center;
    font-weight: 600;
    color: #666;
    font-size: 0.95rem;
}

.rankings-table td:nth-child(2) {
    text-align: center;
}

.rankings-table td:nth-child(3) {
    text-align: center;
}

.rankings-table .points.rank-1,
.rankings-table .points.rank-3 {
    color: #d4af37;
}

.rankings-table .points.rank-2 {
    color: #999;
}

/* Achievements table - borders and left alignment */
.achievements-table th,
.achievements-table td {
    border: 1px solid #ddd;
    text-align: left !important;
}

.achievements-table th {
    border-color: rgba(255, 255, 255, 0.3);
}

.achievements-table td {
    border-color: #ddd;
}

.achievements-table th:first-child,
.achievements-table td:first-child,
.achievements-table td:first-child *,
.achievements-table .rank,
.achievements-table .points {
    text-align: left !important;
}

.achievements-table th:nth-child(2),
.achievements-table td:nth-child(2) {
    padding-left: 0.75rem;
}

/* ============================================
   DOWNLOADS PAGE
   ============================================ */

.downloads-main-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    background-color: var(--bg-white);
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.download-item:hover,
.download-item:focus-visible {
    background-color: rgba(26, 58, 95, 0.08);
    border-color: rgba(26, 58, 95, 0.2);
    color: #1a3a5f;
    outline: none;
}

.download-name {
    font-size: 1rem;
}

/* ============================================
   CALENDAR PAGE - WORLDCLIMBING STYLE
   ============================================ */

.calendar-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    background-color: var(--bg-white);
}

.calendar-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-item label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item select {
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 150px;
}

.filter-item select:focus {
    outline: none;
    border-color: #1a3a5f;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

.calendar-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    display: flex;
    flex-direction: column;
}

.sidebar-year-selector {
    margin-bottom: 1.5rem;
}

.sidebar-year-selector label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.sidebar-year-selector select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.3s;
}

.sidebar-year-selector select:focus {
    outline: none;
    border-color: #1a3a5f;
}

.month-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 400px;
}

.month-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.month-nav li {
    margin-bottom: 0.25rem;
    display: block;
}

.month-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
}

.month-link:hover {
    background-color: #f0f0f0;
    color: #1a3a5f;
    border-left-color: #1a3a5f;
}

.month-link.active {
    background-color: #1a3a5f;
    color: var(--bg-white);
    font-weight: 600;
    border-left-color: #d4af37;
}

.month-link.has-events {
    font-weight: 600;
}

.month-link.disabled {
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none !important;
    font-weight: normal !important;
}

.month-link.disabled:hover {
    background-color: transparent !important;
    border-left-color: transparent !important;
    color: #999 !important;
}

.calendar-content {
    min-height: 500px;
}

.calendar-month-section {
    margin-bottom: 3rem;
}

.month-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a3a5f;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    text-transform: uppercase;
}

/* ============================================
   EVENT CARDS
   ============================================ */

.event-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s, transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1a3a5f 0%, #2d5aa0 50%, #1a3a5f 100%);
    opacity: 0.3;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #ffffff 100%);
}

.event-header {
    margin-bottom: 1.25rem;
}

.event-date-discipline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a3a5f;
    line-height: 1.4;
}

.event-date-discipline .event-discipline {
    margin-left: 0;
}

.event-discipline {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #e8e8e8;
    color: #666;
}

.event-discipline.discipline-speed {
    background-color: #e3f2fd;
    color: #1976d2;
}

.event-discipline.discipline-boulder {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.event-discipline.discipline-lead {
    background-color: #e8f5e9;
    color: #388e3c;
}

.event-discipline.discipline-all-disciplines {
    background-color: #fff3e0;
    color: #f57c00;
}

.event-body {
    margin-bottom: 1rem;
}

.event-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.event-location {
    font-size: 0.95rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.location-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.event-footer {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.event-link {
    color: #1a3a5f;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.event-link:hover {
    color: #2d5aa0;
    text-decoration: underline;
}

/* ============================================
   MULTIMEDIA PAGE
   ============================================ */

.multimedia-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    background-color: var(--bg-white);
}

.multimedia-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.multimedia-tab {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    top: 2px;
}

.multimedia-tab:hover {
    color: #1a3a5f;
    background-color: #f8f9fa;
}

.multimedia-tab.active {
    color: #1a3a5f;
    border-bottom-color: #1a3a5f;
    background-color: transparent;
}

.multimedia-section {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.multimedia-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.multimedia-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.multimedia-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.multimedia-item img,
.multimedia-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.multimedia-item-content {
    padding: 1rem;
}

.multimedia-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.multimedia-item-date {
    font-size: 0.85rem;
    color: #666;
}

/* Hide content area when empty */
.multimedia-item:not(:has(.multimedia-item-content > *)) .multimedia-item-content {
    display: none;
}

.multimedia-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
    font-style: italic;
    font-size: 1.1rem;
}

.multimedia-item {
    position: relative;
}

.multimedia-video-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
}

.multimedia-video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Ensure video loads first frame */
.multimedia-video-thumbnail video[preload] {
    pointer-events: none;
}

.multimedia-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.3s;
}

.multimedia-item:hover .multimedia-play-icon {
    background: rgba(0, 0, 0, 0.7);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: all 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    background: #000;
}

.no-events,
.no-events-month {
    padding: 2rem;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 1.5rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: opacity 0.3s;
}

.social-link:hover {
    opacity: 0.8;
}

.social-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
}

.social-text {
    font-weight: 400;
}

.footer-bottom {
    color: var(--bg-white);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .logo-image {
        height: 60px;
        max-width: 140px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .header-container {
        padding: 0 1rem;
        justify-content: space-between;
        position: relative;
    }

    .menu-toggle {
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 1001;
    }

    nav {
        order: 3;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        flex-direction: column;
        background: #0f2744;
        width: 50vw;
        max-width: 320px;
        padding: 2.75rem 1.25rem 2.25rem 1.25rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 12px 0 28px rgba(0, 0, 0, 0.28);
        z-index: 2300;
        align-items: stretch;
        gap: 1rem;
        border-radius: 0 12px 12px 0;
        overflow-y: auto;
        box-sizing: border-box;
    }

    nav ul.active {
        transform: translateX(0);
    }

    nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0;
        margin: 0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 1rem 1rem;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        border-radius: 10px;
        background-color: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: none;
        color: #e7edf6;
        transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
        line-height: 1.2;
        display: block;
        pointer-events: auto;
        cursor: pointer;
    }

    nav a:hover {
        background-color: rgba(255, 255, 255, 0.14);
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.22);
        transform: translateX(2px);
    }

    nav a:focus-visible {
        outline: 3px solid rgba(255, 255, 255, 0.4);
        outline-offset: 3px;
        background-color: rgba(255, 255, 255, 0.18);
    }

    nav a.active {
        background-color: #1f4b85;
        color: var(--bg-white);
        border-color: #1f4b85;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
        font-weight: 600;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .rankings-banner {
        height: 160px;
    }

    .rankings-title {
        font-size: 2rem;
        margin-bottom: 0.1rem;
    }

    .pdf-download {
        padding: 0.35rem 0.7rem;
        font-size: 0.9rem;
    }

    .rankings-container {
        padding: 0.75rem 0.75rem 0;
    }

    .rankings-date {
        font-size: 0.8rem;
    }

    .rankings-container {
        padding: 1rem 1rem 0;
    }

    .rankings-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .category-tabs {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .category-tab {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }

    .gender-toggle {
        width: 100%;
        justify-content: center;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .rankings-table {
        min-width: 100%;
        max-width: 100%;
    }

    .rankings-table-wrapper {
        padding: 0;
        overflow-x: auto;
    }

    .rankings-filters .category-tabs {
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .rankings-table th:first-child {
        width: 80px;
    }

    .calendar-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .calendar-sidebar {
        position: relative;
        top: 0;
        order: 1;
        max-height: none;
        width: 100%;
    }

    .calendar-content {
        order: 2;
    }

    .sidebar-year-selector {
        margin-bottom: 1rem;
        width: 100%;
    }

    .month-nav {
        display: none;
    }

    .month-nav ul {
        display: none;
    }

    .month-link {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .month-link.active {
        border-left: none;
        border-bottom-color: #d4af37;
    }

    .calendar-content {
        order: 1;
    }

    .event-card {
        padding: 1.25rem;
    }

    .event-name {
        font-size: 1.1rem;
    }

    .event-date-discipline {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Multimedia responsive */
    .multimedia-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .multimedia-tab {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .multimedia-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-content img,
    .lightbox-content video {
        max-height: 85vh;
    }

    .event-card {
        grid-template-columns: 1fr;
    }

    .event-image {
        height: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-separator {
        display: none;
    }

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

    thead {
        position: relative;
        top: 0;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 55px;
        max-width: 120px;
    }

    .logo-text {
        font-size: 0.8rem;
    }

    .logo {
        gap: 0.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .rankings-banner {
        height: 75px;
    }

    .rankings-title {
        font-size: 1.625rem;
    }

    .rankings-date {
        font-size: 0.75rem;
    }

    .rankings-container {
        padding: 0.5rem 0.5rem 0;
    }

    /* Event cards responsive for small screens */
    .event-card {
        padding: 1rem;
    }

    .event-name {
        font-size: 1rem;
    }

    .event-date {
        font-size: 0.85rem;
    }

    .month-title {
        font-size: 1.25rem;
    }

    .category-tab {
        font-size: 0.75rem;
        padding: 0.6rem 0.4rem;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }

    .rankings-table {
        min-width: 100%;
        max-width: 100%;
    }

    .rankings-table-wrapper {
        padding: 0;
        overflow-x: auto;
    }

    .rankings-filters .category-tabs {
        min-width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .rankings-table th:first-child {
        width: 70px;
    }

    .rankings-table .rank {
        font-size: 0.95rem;
    }

    .rankings-table .athlete-name {
        font-size: 0.85rem;
    }

    .rankings-table .points {
        font-size: 0.85rem;
    }

    .hero {
        height: 400px;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.75rem 0.5rem;
    }

    .athlete-image {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
