/* Base & Reset */
:root {
    --color-navy: #0b2046;
    --color-navy-dark: #051024;
    --color-gold: #c5a059;
    --color-gold-light: #e6cb8c;
    --color-white: #ffffff;
    --color-bg: #f8f9fa;
    --color-text: #333333;
    --color-text-light: #666666;
    
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    
    --shadow-glass: 0 8px 32px 0 rgba(11, 32, 70, 0.2);
    --border-glass: 1px solid rgba(255, 255, 255, 0.18);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

/* Typography */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-navy);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    position: relative;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-gold);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 2px solid var(--color-gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--color-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-navy);
    border: 2px solid var(--color-navy);
}

.btn-outline:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
    background-color: var(--color-navy);
    color: var(--color-white);
    border-radius: 4px;
}

.btn-small:hover {
    background-color: var(--color-gold);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(11, 32, 70, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
    transition: var(--transition);
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.fanclub-btn {
    background-color: var(--color-gold);
    padding: 8px 20px;
    border-radius: 20px;
    text-shadow: none;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.4);
}

.fanclub-btn::after {
    display: none;
}

.fanclub-btn:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #0b2046;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
    opacity: 0;
    animation: hero-slideshow 20s infinite;
}

.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: 5s; }
.hero-bg img:nth-child(3) { animation-delay: 10s; }
.hero-bg img:nth-child(4) { animation-delay: 15s; }

@keyframes hero-slideshow {
    0% { opacity: 0; transform: scale(1.05); }
    6.25% { opacity: 1; transform: scale(1.04); }
    25% { opacity: 1; transform: scale(1.01); }
    31.25% { opacity: 0; transform: scale(1.0); }
    100% { opacity: 0; transform: scale(1.0); }
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 32, 70, 0.7) 0%, rgba(11, 32, 70, 0.2) 50%, rgba(11, 32, 70, 0.9) 100%);
}

.hero-content {
    color: var(--color-white);
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1.1;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--border-glass);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    box-shadow: var(--shadow-glass);
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.vision-block.glass-card {
    max-width: 100%;
}

.next-match-header {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

.team-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: block;
}

.vs {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.time {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

.vs-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-gold);
}

.stadium {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

/* Sections General */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-white);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.news-img {
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 25px;
}

.news-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-right: 15px;
}

.news-category {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 4px;
    color: var(--color-white);
    font-weight: 600;
}

.news-category.match { background-color: var(--color-navy); }
.news-category.team { background-color: var(--color-gold); }
.news-category.club { background-color: #555; }

.news-title {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--color-navy);
    line-height: 1.4;
}

/* Matches Section */
.matches-list {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 3fr 1fr;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.match-row:hover {
    background-color: var(--color-white);
}

.match-row:last-child {
    border-bottom: none;
}

.match-row.upcoming {
    background-color: rgba(11, 32, 70, 0.03);
    border-left: 4px solid var(--color-navy);
}

.match-date {
    color: var(--color-text-light);
    font-weight: 600;
    white-space: nowrap;
}

.match-teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.score {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 5px 15px;
    background: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.score.win { color: #2ecc71; }
.score.draw { color: #f39c12; }

/* Team Section */
.team-section {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
    color: var(--color-white);
    position: relative;
}

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

.player-showcase {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
}

.player-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.player-img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

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

.player-info {
    flex: 1;
}

.player-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-gold);
    line-height: 1;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

.player-name {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.player-position {
    font-size: 1.2rem;
    color: var(--color-gold-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.player-desc {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.team-section .btn-outline {
    color: var(--color-white);
    border-color: var(--color-white);
}

.team-section .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

/* Banners */
.banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
    gap: 30px;
}

.banner-card {
    height: 250px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    z-index: 1;
}

.banner-card.fanclub::before {
    background-color: var(--color-navy);
}

.banner-card.goods::before {
    background-color: var(--color-gold);
}

.banner-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 2;
    transition: var(--transition);
}

.banner-card:hover::before {
    transform: scale(1.1);
}

.banner-card:hover::after {
    background: rgba(0,0,0,0.5);
}

.banner-content {
    position: relative;
    z-index: 3;
}

.banner-content h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.banner-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 500;
    border-bottom: 2px solid var(--color-white);
    padding-bottom: 2px;
}

/* Footer */
.footer {
    background-color: var(--color-navy-dark);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255,255,255,0.6);
}

.footer-links {
    display: flex;
    gap: 60px;
}

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

.footer-links a {
    color: rgba(255,255,255,0.8);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .player-showcase { flex-direction: column; text-align: center; }
    .match-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; height: 100vh;
        background: var(--color-navy);
        padding: 100px 40px;
        transition: var(--transition);
        z-index: 1000;
    }
    .nav.active { right: 0; }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    .banner-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; }
    .footer-links { flex-wrap: wrap; }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Form Styles */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11, 32, 70, 0.08);
    border-top: 5px solid var(--color-gold);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-navy);
    font-size: 1.05rem;
}

.form-label .required {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-control:focus {
    border-color: var(--color-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
    background-color: var(--color-white);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text);
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

.form-submit .btn {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.2rem;
    border-radius: 30px;
    border: none;
}

/* ====== Added Mobile Overrides ====== */
@media (max-width: 768px) {
    /* Layout & Spacing */
    .section { padding: 50px 0; }
    .page-header { padding-top: 100px !important; padding-bottom: 40px !important; }
    
    /* Typography */
    .container { padding: 0 25px; }
    .hero-title { font-size: 2.8rem; line-height: 1.1; margin-bottom: 5px; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2rem; margin-bottom: 30px; }
    .page-header h1 { font-size: 2.5rem !important; }
    
    /* Hero Next Match Card */
    .next-match { padding: 20px; margin: 0 15px; width: auto; max-width: none; }
    .match-info { flex-direction: column; text-align: center; gap: 15px; }
    .match-info img { width: 100px !important; height: 100px !important; }
    .vs { margin: 10px 0; }
    
    /* Inline Grids in news.html fix */
    div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Company Table */
    table tbody tr, table tbody th, table tbody td {
        display: block;
        width: 100% !important;
        text-align: left;
    }
    table tbody th {
        border-bottom: none !important;
        padding-bottom: 5px !important;
        background: #f8f9fa;
    }
    table tbody td {
        padding-top: 5px !important;
        padding-bottom: 20px !important;
    }

    /* Forms */
    .form-container { padding: 30px 20px; }
    
    /* Match result boxes */
    .match-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .match-teams {
        flex-direction: column;
        gap: 8px;
    }
    .match-date { font-size: 0.9rem; }
}
