/* Better text contrast */
body {
    color: #333;
    background: #f5f5f5;
}

p, li, span {
    color: #444;
}

h1, h2, h3, h4, h5, h6 {
    color: #002147;
}

a {
    color: #002147;
}

a:hover {
    color: #FFD700;
}

/* Card styles */
.news-card, .player-card, .staff-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-content h3, .player-info h3 {
    color: #002147;
}

.news-content p, .player-info p {
    color: #555;
    line-height: 1.6;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1E3A8A;
    --royal-blue: #002147;
    --dark-blue: #001B3A;
    --gold: #FFD700;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #F5F5F5;
    --dark-gray: #333333;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.club-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    animation: rotateLogo 10s linear infinite;
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.club-info h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.motto {
    color: var(--gold);
    font-size: 0.85rem;
    font-style: italic;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.main-nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--gold);
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.btn-login {
    background: var(--gold);
    color: var(--royal-blue) !important;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600 !important;
}

.btn-login:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}

/* Hero Slider */
.hero-slider {
    margin-top: 90px;
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    background: rgba(0,0,0,0.7);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-caption h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--gold);
    color: var(--royal-blue);
}

/* Quick Links */
.quick-links {
    padding: 60px 0;
    background: var(--gray);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quick-card {
    background: var(--white);
    padding: 40px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.quick-card i {
    font-size: 48px;
    color: var(--royal-blue);
    margin-bottom: 15px;
}

.quick-card h3 {
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.quick-card p {
    color: #666;
}

/* Section Styles */
section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--royal-blue);
    position: relative;
    padding-bottom: 10px;
}

.header-line {
    width: 100px;
    height: 3px;
    background: var(--gold);
    margin-top: 10px;
}

.view-all {
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--gold);
    transform: translateX(5px);
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--royal-blue);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

/* Players Section */
.top-players {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
}

.top-players .section-header h2 {
    color: var(--white);
}

.players-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.player-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.player-photo {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.player-card:hover .player-photo img {
    transform: scale(1.1);
}

.player-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
}

.goals {
    background: var(--gold);
    color: var(--royal-blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.player-info {
    padding: 20px;
}

.player-info h3 {
    color: var(--royal-blue);
    margin-bottom: 5px;
}

.jersey {
    display: inline-block;
    background: var(--gold);
    color: var(--royal-blue);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 10px 0;
    font-weight: bold;
}

.view-profile {
    display: inline-block;
    background: var(--royal-blue);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-profile:hover {
    background: var(--gold);
    color: var(--royal-blue);
}

/* Club Values */
.club-values {
    background: var(--gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.value-card {
    padding: 40px;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.value-card i {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
}

.value-card h3 {
    color: var(--royal-blue);
    margin-bottom: 15px;
}

/* ID Card Styles */
.id-card {
    width: 350px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin: 20px auto;
}

.id-card-front {
    padding: 20px;
    color: var(--white);
}

.id-header {
    text-align: center;
    margin-bottom: 20px;
}

.id-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.id-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
}

.id-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.id-info p {
    margin-bottom: 8px;
}

.id-signature {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.id-signature img {
    max-width: 150px;
    max-height: 50px;
}

.id-card-back {
    background: var(--white);
    padding: 20px;
    text-align: center;
}

.id-qr img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

/* Footer */
.main-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 90px);
        background: var(--royal-blue);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    .hero-slider {
        height: 50vh;
    }
    
    .slide-caption {
        bottom: 10%;
        left: 5%;
        padding: 15px;
        max-width: 90%;
    }
    
    .slide-caption h2 {
        font-size: 1.2rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .news-grid,
    .players-slider {
        grid-template-columns: 1fr;
    }
    
    .quick-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .news-grid,
    .players-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease;
}