/* ============================================================
   ALBIATESE CALCIO - Design System
   ============================================================ */

/* CSS Variables */
:root {
    --primary: #D50000;
    --primary-dark: #9B0000;
    --primary-light: #FF5252;
    --accent: #FFD600;
    --accent-dark: #C7A500;
    --dark: #1A1A2E;
    --dark-lighter: #16213E;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background: var(--gray-100);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.preloader-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-top {
    background: var(--dark);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--gray-400);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.header-info {
    display: flex;
    gap: 20px;
}

.header-info a {
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-info a:hover {
    color: var(--primary-light);
}

.header-info i {
    font-size: 0.75rem;
}

.header-social {
    display: flex;
    gap: 12px;
}

.header-social a {
    color: var(--gray-400);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}

.header-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.main-nav {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    padding: 0;
    border-bottom: 3px solid var(--primary);
}

.site-header.scrolled .main-nav {
    box-shadow: var(--shadow-lg);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.nav-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
}

.nav-logo-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
}

.nav-logo-subtitle {
    color: var(--primary-light);
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 4px;
}

.nav-menu>li>a {
    display: block;
    padding: 22px 16px;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-menu>li>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
    color: var(--white);
}

.nav-menu>li>a:hover::after,
.nav-menu>li>a.active::after {
    width: 100%;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown>a i {
    font-size: 0.6rem;
    margin-left: 4px;
    transition: var(--transition);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--dark-lighter);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-top: 2px solid var(--primary);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover>a i {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 12px 20px;
    color: var(--gray-400);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown li a:hover {
    color: var(--white);
    background: rgba(213, 0, 0, 0.15);
    padding-left: 25px;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 160px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(213, 0, 0, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(213, 0, 0, 0.2);
    border: 1px solid rgba(213, 0, 0, 0.4);
    border-radius: 30px;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 span {
    color: var(--primary);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--gray-400);
    margin-bottom: 35px;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-logo-side {
    text-align: center;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-logo-side img {
    max-width: 350px;
    width: 100%;
    filter: drop-shadow(0 20px 60px rgba(213, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stat h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
}

.hero-stat p {
    color: var(--gray-500);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark);
    color: var(--white);
}

.section-gray {
    background: var(--gray-200);
}

.section-red {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(213, 0, 0, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-dark .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 15px;
}

.section-dark .section-title {
    color: var(--white);
}

.section-red .section-title {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--gray-400);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

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

.card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-img-overlay {
    opacity: 1;
}

.card-body {
    padding: 24px;
}

.card-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 12px 0 8px;
    line-height: 1.3;
}

.card-title a:hover {
    color: var(--primary);
}

.card-text {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 0.82rem;
}

.card-meta i {
    color: var(--primary);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================================
   NEWS CARDS
   ============================================================ */
.news-featured {
    grid-column: span 2;
}

.news-featured .card-img {
    aspect-ratio: 21/9;
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    z-index: 2;
    line-height: 1;
}

.news-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.news-date .month {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* ============================================================
   TEAM CARDS
   ============================================================ */
.team-card {
    text-align: center;
    position: relative;
}

.team-card .card-body {
    padding: 30px;
}

.team-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.25);
}

.team-card .card-title {
    font-size: 1.4rem;
}

.team-meta {
    color: var(--gray-600);
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
}

.team-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   MATCH WIDGET
   ============================================================ */
.match-widget {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.match-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(213, 0, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.match-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
}

.match-team {
    text-align: center;
    flex: 1;
}

.match-team img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 10px;
}

.match-team h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.match-vs {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.match-info {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-400);
}

.match-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 5px 0;
}

.match-score {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.form-label .required {
    color: var(--primary);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(213, 0, 0, 0.1);
}

.form-control::placeholder {
    color: var(--gray-500);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

select.form-control {
    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='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-error {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 6px;
}

.form-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.form-error-msg {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

/* ============================================================
   SPONSOR CAROUSEL
   ============================================================ */
.sponsors-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.sponsors-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.sponsor-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
    transition: var(--transition);
}

.sponsor-item:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

.sponsor-item img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.sponsor-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.sponsor-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.footer-sponsors {
    background: var(--gray-200);
    padding: 40px 0;
}

.footer-sponsors-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--gray-700);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-300);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gallery-tab.active,
.gallery-tab:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-tab i {
    font-size: 0.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 2rem;
    color: var(--white);
}

/* Gallery Category Section (Public) */
.gallery-category-section {
    margin-bottom: 50px;
}

.gallery-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.gallery-section-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(213, 0, 0, 0.25);
}

.gallery-section-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.gallery-section-text p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.gallery-section-text p strong {
    color: var(--primary);
}

/* Gallery Album (Public) */
.gallery-album {
    margin-bottom: 32px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.gallery-album:hover {
    box-shadow: var(--shadow);
}

.gallery-album:last-child {
    margin-bottom: 0;
}

.gallery-album-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.gallery-album-title h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-album-title h3 i {
    color: var(--primary);
    font-size: 0.95rem;
}

.gallery-album-info {
    background: var(--gray-200);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Admin Gallery Category Section */
.admin-body .gallery-category-section {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.gallery-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.gallery-category-header:hover {
    background: var(--gray-100);
}

.gallery-category-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gallery-category-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.gallery-category-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark);
}

.gallery-category-count {
    background: var(--gray-200);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

.gallery-category-toggle {
    color: var(--gray-500);
    transition: var(--transition);
    font-size: 0.9rem;
}

.gallery-category-header.collapsed .gallery-category-toggle {
    transform: rotate(-90deg);
}

.gallery-category-body {
    padding: 0 24px 24px;
    transition: var(--transition);
}

.gallery-category-body.collapsed {
    display: none;
}

/* Admin Album Group */
.gallery-album-group {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}

.gallery-album-group:last-child {
    margin-bottom: 0;
}

.gallery-album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-album-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-album-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--dark);
}

.gallery-album-meta {
    font-size: 0.78rem;
    color: var(--gray-500);
    background: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 8px;
}

/* Admin Filter Buttons */
.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-300);
    transition: var(--transition);
    text-decoration: none;
}

.gallery-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gallery-filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.gallery-filter-btn i {
    font-size: 0.75rem;
}

.gallery-filter-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.gallery-filter-btn.active .gallery-filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--primary);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ============================================================
   PAGE HERO (Internal Pages)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 10px;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

.page-hero .breadcrumb a {
    color: var(--primary-light);
}

.page-hero .breadcrumb a:hover {
    color: var(--white);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '⚽';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    top: -50px;
    right: -30px;
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-main {
    background: var(--dark);
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 55px;
    height: auto;
}

.footer-logo h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.footer-logo p {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.footer-desc {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-500);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact li {
    color: var(--gray-500);
    font-size: 0.9rem;
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 3px;
}

.footer-contact li a {
    color: var(--gray-500);
}

.footer-contact li a:hover {
    color: var(--primary-light);
}

.footer-affiliation {
    color: var(--gray-500);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.82rem;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--black-500);
    font-size: 0.82rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

.footer-legal span {
    color: var(--gray-700);
    font-size: 0.7rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gray-300);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 25px 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.timeline-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.timeline-content p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ============================================================
   PLAYER ROSTER
   ============================================================ */
.player-card {
    text-align: center;
}

.player-card .card-body {
    padding: 20px;
}

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.player-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
}

.player-role {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-top: 4px;
}

.player-number {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    color: var(--white);
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ============================================================
   CONTACT MAP
   ============================================================ */
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.contact-info-card a {
    color: var(--primary);
}

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

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body {
    background: var(--gray-100);
    min-height: 100vh;
}

.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
}

.admin-login-box {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.admin-login-box img {
    width: 80px;
    margin: 0 auto 20px;
}

.admin-login-box h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.admin-login-box p {
    color: var(--gray-600);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
}

.admin-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-header img {
    width: 40px;
}

.admin-sidebar-header h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
}

.admin-sidebar-header span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.admin-nav {
    padding: 15px 0;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.admin-nav a i {
    width: 20px;
    text-align: center;
}

.admin-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 10px 20px;
}

.admin-content {
    margin-left: 260px;
    padding: 30px;
    flex: 1;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.admin-topbar h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark);
}

.admin-topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Admin Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.admin-stat-icon {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(213, 0, 0, 0.1);
    color: var(--primary);
}

.admin-stat-card:nth-child(2) .admin-stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.admin-stat-card:nth-child(2) {
    border-left-color: var(--success);
}

.admin-stat-card:nth-child(3) .admin-stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.admin-stat-card:nth-child(3) {
    border-left-color: var(--warning);
}

.admin-stat-card:nth-child(4) .admin-stat-icon {
    background: rgba(22, 33, 62, 0.1);
    color: var(--dark-lighter);
}

.admin-stat-card:nth-child(4) {
    border-left-color: var(--dark-lighter);
}

.admin-stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
}

.admin-stat-info p {
    color: var(--gray-600);
    font-size: 0.82rem;
}

/* Admin Table */
.admin-table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
}

.admin-table-header h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: var(--gray-100);
    padding: 12px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
}

.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
}

.admin-table tr:hover td {
    background: var(--gray-100);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions a {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-edit {
    background: rgba(213, 0, 0, 0.1);
    color: var(--primary);
}

.btn-edit:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-delete {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: var(--white);
}

.btn-view {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.btn-view:hover {
    background: var(--success);
    color: var(--white);
}

.badge-read {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unread {
    background: rgba(213, 0, 0, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Admin Modal */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-modal.active {
    display: flex;
    opacity: 1;
}

.admin-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 0;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-modal.active .admin-modal-content {
    transform: translateY(0) scale(1);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.admin-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-modal-header h2 i {
    color: var(--primary);
}

.admin-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    background: var(--gray-200);
}

.admin-modal-close:hover {
    color: var(--white);
    background: var(--danger);
    transform: rotate(90deg);
}

.admin-modal-body {
    padding: 28px;
}

/* Reply Form */
.reply-recipient-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f8f9fc, #eef0f6);
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
    border: 1px solid var(--gray-200);
}

.reply-recipient-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.reply-recipient-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.reply-recipient-details p {
    font-size: 0.82rem;
    color: var(--gray-600);
}

.reply-form-group {
    margin-bottom: 18px;
}

.reply-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.reply-form-group input,
.reply-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    outline: none;
}

.reply-form-group input:focus,
.reply-form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(213, 0, 0, 0.1);
}

.reply-form-group textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.7;
}

.reply-form-group input::placeholder,
.reply-form-group textarea::placeholder {
    color: var(--gray-400);
}

.reply-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    margin-top: 6px;
}

.btn-reply-cancel {
    padding: 12px 24px;
    background: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-reply-cancel:hover {
    background: var(--gray-300);
}

.btn-reply-send {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reply-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 0, 0, 0.35);
}

.btn-reply-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-reply-send .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-reply-send.loading .spinner {
    display: inline-block;
}

.btn-reply-send.loading .btn-text {
    display: none;
}

/* Reply status overlay */
.reply-status {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.reply-status.active {
    display: block;
}

.reply-status-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.8rem;
}

.reply-status-icon.success {
    background: rgba(40, 167, 69, 0.12);
    color: var(--success);
}

.reply-status-icon.error {
    background: rgba(220, 53, 69, 0.12);
    color: var(--danger);
}

.reply-status h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.reply-status p {
    color: var(--gray-600);
    font-size: 0.92rem;
}

/* Reply history badge */
.badge-replied {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-not-replied {
    background: rgba(255, 193, 7, 0.12);
    color: #c7a500;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Reply history in detail view */
.reply-history {
    margin-top: 25px;
    border-top: 1px solid var(--gray-200);
    padding-top: 20px;
}

.reply-history h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-history h4 i {
    color: var(--primary);
}

.reply-history-item {
    padding: 14px 18px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
}

.reply-history-item .reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.78rem;
    color: var(--gray-500);
}

.reply-history-item .reply-meta strong {
    color: var(--gray-700);
}

.reply-history-item .reply-text {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Mobile responsive for reply modal */
@media (max-width: 768px) {
    .admin-modal-content {
        margin: 16px;
        max-height: 95vh;
    }

    .admin-modal-body {
        padding: 20px;
    }

    .reply-form-actions {
        flex-direction: column;
    }

    .reply-form-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   RESULTS PAGE - Tuttocampo Widgets
   ============================================================ */

/* Category Selector */
.category-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 45px;
    flex-wrap: wrap;
    padding: 8px;
    background: var(--gray-100);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 130px;
}

.category-btn i {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    transition: var(--transition);
}

.category-btn-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-700);
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.category-btn-sub {
    font-size: 0.72rem;
    color: var(--gray-500);
    font-weight: 500;
    transition: var(--transition);
}

.category-btn:hover {
    background: var(--white);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-btn:hover i {
    color: var(--primary);
}

.category-btn.active {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 18px rgba(213, 0, 0, 0.15);
}

.category-btn.active i {
    color: var(--primary);
}

.category-btn.active .category-btn-label {
    color: var(--primary);
}

.category-btn.active .category-btn-sub {
    color: var(--primary-dark);
}

.category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* Match Cards Row (Ultima + Prossima) */
.results-match-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.results-match-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.results-match-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.results-match-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-100);
}

.results-match-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(213, 0, 0, 0.25);
}

.results-match-card-icon--next {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.25);
}

.results-match-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.results-match-card-header p {
    color: var(--gray-500);
    font-size: 0.82rem;
}

/* Tabs */
.results-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.results-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-tab i {
    font-size: 0.9rem;
}

.results-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.results-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(213, 0, 0, 0.3);
}

/* Tab Panels */
.results-tab-panel {
    display: none;
    animation: resultsFadeIn 0.4s ease;
}

.results-tab-panel.active {
    display: block;
}

@keyframes resultsFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--gray-100);
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--gray-200);
    border-bottom: none;
}

.results-panel-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(213, 0, 0, 0.25);
}

.results-panel-icon--green {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    box-shadow: 0 6px 20px rgba(67, 160, 71, 0.25);
}

.results-panel-icon--accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.3);
    color: var(--dark);
}

.results-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.results-panel-header p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* Widget Containers */
.results-widget-wrap {
    background: var(--white);
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.results-widget-wrap--large {
    border: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.results-widget-wrap iframe {
    width: 100%;
    max-width: 500px;
    border: none;
    border-radius: var(--radius-sm);
    display: block;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

/* Source Credit */
.results-credit {
    text-align: center;
    margin-top: 40px;
    padding: 16px 24px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
}

.results-credit p {
    color: var(--gray-600);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.results-credit a {
    color: var(--primary);
    font-weight: 600;
}

.results-credit a:hover {
    text-decoration: underline;
}

/* ============================================================
   LEGAL PAGES (Privacy, Cookie, Terms)
   ============================================================ */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(213, 0, 0, 0.06);
    border: 1px solid rgba(213, 0, 0, 0.15);
    border-radius: 30px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--dark);
    margin: 40px 0 16px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-content h2:first-of-type {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.legal-content h2 i {
    font-size: 1.1rem;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--dark);
    margin: 24px 0 10px;
}

.legal-content p {
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.legal-content ul li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--gray-700);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-content a {
    color: var(--primary);
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content code {
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--primary-dark);
    font-family: 'Courier New', monospace;
}

/* Cookie Table */
.cookie-table-wrapper {
    overflow-x: auto;
    margin: 16px 0 24px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.cookie-table th {
    background: var(--dark);
    color: var(--white);
    padding: 14px 18px;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:hover td {
    background: var(--gray-100);
}

/* ============================================================
   SAFEGUARDING PAGE
   ============================================================ */
.safeguarding-intro {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.safeguarding-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 2.2rem;
    color: var(--white);
    box-shadow: 0 10px 35px rgba(213, 0, 0, 0.3);
}

.safeguarding-intro p {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Officer Card */
.safeguarding-officer-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.safeguarding-officer-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.officer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.35);
}

.safeguarding-officer-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 6px;
}

.officer-role {
    color: var(--primary-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.officer-mandate {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* Safeguarding Cards */
.safeguarding-card {
    text-align: center;
    border: none;
}

.safeguarding-card .card-body {
    padding: 40px 30px;
}

.safeguarding-card:hover {
    border-color: var(--primary);
}

.safeguarding-card-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(213, 0, 0, 0.1), rgba(213, 0, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.safeguarding-card:hover .safeguarding-card-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(213, 0, 0, 0.3);
}

/* Criteria */
.safeguarding-criteria {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.criteria-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.criteria-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.criteria-item i {
    font-size: 1.5rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.criteria-item h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.criteria-item p {
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Safeguarding Contact */
.safeguarding-contact {
    max-width: 500px;
    margin: 0 auto;
}

.safeguarding-contact-card {
    text-align: center;
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}

.safeguarding-contact-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(213, 0, 0, 0.12);
    transform: translateY(-4px);
}

.safeguarding-contact-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.safeguarding-contact-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.safeguarding-contact-card a {
    display: inline-block;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    word-break: break-all;
}

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

.safeguarding-contact-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-style: italic;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3rem;
    }

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

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-section-text h2 {
        font-size: 1.5rem;
    }

    .gallery-album {
        padding: 18px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        padding-left: 60px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-year {
        left: 30px;
        transform: translateX(-50%);
    }

    .results-match-row {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu>li>a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        border-top: none;
        display: none;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-logo-side {
        order: -1;
    }

    .hero-logo-side img {
        max-width: 200px;
        margin: 0 auto;
    }

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

    .hero-text {
        margin: 0 auto 30px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

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

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-column: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info-cards {
        grid-template-columns: 1fr;
    }

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

    .match-teams {
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-section-header {
        flex-direction: column;
        text-align: center;
    }

    .gallery-section-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .gallery-section-text h2 {
        font-size: 1.3rem;
    }

    .gallery-album-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .gallery-category-header {
        padding: 14px 16px;
    }

    .gallery-category-body {
        padding: 0 16px 16px;
    }

    .gallery-album-group {
        padding: 12px;
    }

    .gallery-album-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-admin-filters {
        justify-content: center;
    }

    /* Legal & Safeguarding responsive */
    .legal-content {
        padding: 30px 24px;
    }

    .legal-content h2 {
        font-size: 1.25rem;
        flex-wrap: wrap;
    }

    .safeguarding-intro {
        padding: 30px 20px;
    }

    .safeguarding-officer-card {
        padding: 30px 20px;
    }

    .criteria-item {
        padding: 18px 20px;
    }

    .safeguarding-contact-card {
        padding: 35px 25px;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .footer-legal {
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    /* Category selector responsive */
    .category-selector {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 6px;
    }

    .category-btn {
        min-width: unset;
        padding: 10px 8px;
    }

    .category-btn-label {
        font-size: 0.78rem;
    }

    .category-btn-sub {
        font-size: 0.68rem;
    }

    /* Center the last row (2 items out of 3 cols) */
    .category-btn:nth-child(4) {
        grid-column: 1 / 2;
        margin-left: auto;
        margin-right: 0;
        width: 100%;
        justify-self: end;
    }

    .category-btn:nth-child(5) {
        grid-column: 2 / 3;
        margin-left: 0;
        margin-right: auto;
        width: 100%;
        justify-self: start;
    }

    /* Results responsive */
    .results-match-row {
        grid-template-columns: 1fr;
    }

    .results-tab {
        padding: 12px 20px;
        font-size: 0.82rem;
    }

    .results-panel-header {
        padding: 18px 20px;
        flex-direction: column;
        text-align: center;
    }

    .results-widget-wrap {
        padding: 8px;
        overflow: visible;
    }

    .results-widget-wrap--large {
        padding: 8px;
    }

    .results-widget-wrap iframe {
        width: 100%;
        max-width: 100%;
        min-height: 400px;
        touch-action: auto;
        pointer-events: auto;
    }

    .results-match-card-header {
        padding: 16px 18px;
    }

    .results-credit p {
        flex-direction: column;
        gap: 4px;
    }

    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.active {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-stats {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.82rem;
    }

    .card-body {
        padding: 18px;
    }

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

    .gallery-tabs {
        gap: 6px;
    }

    .gallery-tab {
        padding: 8px 14px;
        font-size: 0.75rem;
    }

    .gallery-album {
        padding: 14px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat h3 {
        font-size: 2rem;
    }

    .category-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 4px;
    }

    .category-btn {
        min-width: unset;
        padding: 8px 6px;
    }

    .category-btn i {
        font-size: 1rem;
    }

    .category-btn-label {
        font-size: 0.72rem;
    }

    .category-btn-sub {
        font-size: 0.62rem;
    }

    .results-tabs {
        gap: 6px;
    }

    .results-tab {
        padding: 10px 16px;
        font-size: 0.78rem;
        gap: 6px;
    }

    .results-tab span {
        display: none;
    }

    .results-tab i {
        font-size: 1.1rem;
    }

    .results-match-card-header h3 {
        font-size: 1rem;
    }

    .legal-content {
        padding: 24px 18px;
    }

    .legal-content h2 {
        font-size: 1.15rem;
    }

    .safeguarding-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 99998;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cookie-banner.show .cookie-banner-backdrop {
    opacity: 1;
}

.cookie-banner-inner {
    background: rgba(26, 26, 46, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 3px solid var(--primary);
    padding: 28px 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(213, 0, 0, 0.35);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.cookie-banner-text p {
    font-size: 0.88rem;
    color: var(--gray-400);
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: var(--white);
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.cookie-btn-accept {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.cookie-btn-accept:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(213, 0, 0, 0.4);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--gray-300);
    border-color: rgba(255, 255, 255, 0.2);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Footer cookie link */
.footer-cookie-link {
    cursor: pointer;
    transition: var(--transition);
}

.footer-cookie-link:hover {
    color: var(--primary-light) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-inner {
        padding: 24px 0;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .cookie-banner-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .cookie-banner-text h3 {
        font-size: 1.05rem;
    }

    .cookie-banner-text p {
        font-size: 0.82rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

/* ============================================================
   FOOTER WEBMASTER BADGE
   ============================================================ */
.footer-webmaster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(213, 0, 0, 0.15), rgba(255, 82, 82, 0.1));
    border: 1px solid rgba(213, 0, 0, 0.4);
    border-radius: 30px;
    color: var(--white) !important;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(213, 0, 0, 0.15);
}

.footer-webmaster i {
    color: var(--primary-light);
    font-size: 0.9rem;
}

.footer-webmaster strong {
    color: var(--primary-light);
    font-weight: 700;
}

.footer-webmaster:hover {
    background: linear-gradient(135deg, rgba(213, 0, 0, 0.3), rgba(255, 82, 82, 0.2));
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(213, 0, 0, 0.35);
    transform: translateY(-2px);
}

.footer-webmaster:hover strong {
    color: var(--white);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-notification {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 340px;
    max-width: 480px;
    padding: 18px 20px 22px;
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.hide {
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.35s cubic-bezier(0.6, -0.28, 0.74, 0.05);
}

.toast-success {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    border-left: 5px solid #66bb6a;
}

.toast-error {
    background: linear-gradient(135deg, #b71c1c, #c62828);
    border-left: 5px solid #ef5350;
}

.toast-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.toast-success .toast-icon {
    background: rgba(102, 187, 106, 0.25);
    color: #a5d6a7;
}

.toast-error .toast-icon {
    background: rgba(239, 83, 80, 0.25);
    color: #ef9a9a;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}

.toast-message {
    font-size: 0.84rem;
    opacity: 0.9;
    line-height: 1.4;
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: -2px;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
}

.toast-progress-bar {
    height: 100%;
    border-radius: 0 2px 0 0;
    animation: toastProgress linear forwards;
}

.toast-success .toast-progress-bar {
    background: linear-gradient(90deg, #66bb6a, #a5d6a7);
    animation-duration: 3s;
}

.toast-error .toast-progress-bar {
    background: linear-gradient(90deg, #ef5350, #ef9a9a);
    animation-duration: 4s;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast Mobile */
@media (max-width: 576px) {
    .toast-notification {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
    }
}

/* ============================================================
   NEWS MODAL
   ============================================================ */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    padding: 20px;
}

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

.news-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.news-modal-overlay.active .news-modal {
    transform: translateY(0) scale(1);
}

.news-modal-header {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    padding: 30px 30px 25px;
    flex-shrink: 0;
}

.news-modal-header .news-modal-category {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(213, 0, 0, 0.3);
    border: 1px solid rgba(213, 0, 0, 0.5);
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.news-modal-header .news-modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.25;
    margin: 0;
}

.news-modal-header .news-modal-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.news-modal-header .news-modal-meta i {
    margin-right: 5px;
    color: var(--primary-light);
}

.news-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    z-index: 2;
}

.news-modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.news-modal-image {
    width: 70%;
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: var(--radius);
}

.news-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.news-modal-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--gray-700);
}

.news-modal-body::-webkit-scrollbar {
    width: 6px;
}

.news-modal-body::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.news-modal-body::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.news-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--gray-600);
}

/* News Modal Responsive */
@media (max-width: 768px) {
    .news-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .news-modal {
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .news-modal-overlay.active .news-modal {
        transform: translateY(0) scale(1);
    }

    .news-modal-header {
        padding: 24px 20px 20px;
    }

    .news-modal-header .news-modal-title {
        font-size: 1.4rem;
    }

    .news-modal-body {
        padding: 20px;
    }
}