/* Google Fonts Import (ensure this is at the very top of your style.css) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    /* Atletico Seals FC Colors (Inspired by Atletico Madrid) */
    --primary-red: #CB3524; /* A vibrant red */
    --dark-blue: #272E61;   /* A deep navy blue */
    --light-grey: #f4f4f4;
    --mid-grey: #e0e0e0;
    --dark-grey: #333;
    --white: #ffffff;
    --text-color: #333;
    --shadow-light: rgba(0,0,0,0.08); /* Lighter, more subtle shadow */
    --shadow-medium: rgba(0,0,0,0.15); /* Medium shadow for hover */
    --shadow-strong: rgba(0,0,0,0.25); /* Stronger shadow for prominent elements */
}

body {
    font-family: 'Roboto', sans-serif; /* Body text */
    margin: 0;
    padding: 0;
    background-color: var(--light-grey);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on small screens */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif; /* Headings */
    color: var(--dark-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.section-title {
    text-align: center;
    color: var(--primary-red);
    font-size: 2.8em;
    margin-bottom: 2.5rem;
    padding-bottom: 15px;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--dark-blue);
    border-radius: 2px;
}

.text-white {
    color: var(--white) !important;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.section-padded {
    padding: 60px 0;
}

/* Base Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px var(--shadow-medium);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo img {
    height: 60px;
    margin-right: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

/* Main Content Area */
main {
    padding-top: 0; /* Remove top padding as hero is full width */
    padding-bottom: 0; /* Remove bottom padding as sections are padded */
    background-color: var(--light-grey); /* Set main background, sections will override */
    box-shadow: none; /* Remove main shadow as sections will have their own */
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
}

/* Footer Styling */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 30px;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9em;
}

/* --- HERO SECTION (Homepage) --- */
.hero-section {
    position: relative;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden; /* Important for background image */
    margin-bottom: 40px; /* Space before next section */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    z-index: 1;
    filter: brightness(0.6); /* Darken image for readability */
    transform: scale(1.05); /* Slight zoom for dynamism */
    transition: transform 0.5s ease-out; /* Smooth transition */
}

.hero-section:hover .hero-background-image {
    transform: scale(1); /* Zoom out slightly on hover */
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Dark gradient overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5em; /* Large heading */
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 8px var(--shadow-strong);
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--white);
    text-shadow: 1px 1px 5px var(--shadow-strong);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px; /* More rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px var(--shadow-medium); /* Add shadow to buttons */
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    border: 2px solid var(--primary-red);
}

.btn-primary:hover {
    background-color: var(--dark-blue); /* Primary hover to dark blue */
    border-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

.btn-secondary {
    background-color: var(--dark-blue); /* New button color */
    color: var(--white);
    border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-red); /* Secondary hover to primary red */
    border-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
}

.btn-outline:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-light-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-light-outline:hover {
    background-color: var(--white);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

.btn-light {
    background-color: var(--white);
    color: var(--dark-blue);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: var(--light-grey);
    color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-strong);
}

/* Smaller buttons for match cards etc. */
.btn-primary-small, .btn-outline-small, .btn-secondary-small {
    padding: 8px 15px; /* Smaller padding */
    font-size: 0.9em; /* Smaller font size */
    border-radius: 5px; /* Slightly less rounded */
    font-weight: 600;
}

.btn-primary-small {
    background-color: var(--primary-red);
    color: var(--white);
    border: 1px solid var(--primary-red);
}
.btn-primary-small:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-outline-small {
    background-color: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
}
.btn-outline-small:hover {
    background-color: var(--dark-blue);
    color: var(--white);
}

.btn-secondary-small {
    background-color: var(--dark-blue);
    color: var(--white);
    border: 1px solid var(--dark-blue);
}
.btn-secondary-small:hover {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}


/* --- LATEST NEWS HOME SECTION --- */
.latest-news-home {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-top: 40px; /* Space from hero */
}

.news-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.news-card {
    background-color: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--mid-grey);
}

.news-card-content {
    padding: 20px;
    flex-grow: 1; /* Ensures content fills space */
    display: flex;
    flex-direction: column;
}

.news-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4em;
    line-height: 1.3;
}

.news-card h3 a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-card h3 a:hover {
    color: var(--primary-red);
}

.news-card-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
}

.news-card p {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.news-card .read-more {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Pushes "Read More" to bottom */
    display: inline-block;
}

.news-card .read-more:hover {
    text-decoration: underline;
}

/* --- UPCOMING MATCHES HOME SECTION --- */
.bg-dark-blue-gradient {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #3a478b 100%); /* Dark blue gradient */
    color: var(--white);
    margin-top: 40px; /* Space from previous section */
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2); /* Inner shadow for depth */
}

.match-list-home {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.match-item-home {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    border-radius: 8px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-left: 5px solid var(--primary-red);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.match-item-home:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.match-date-home {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-medium);
}

.match-date-home .day {
    font-size: 2em;
    line-height: 1;
}

.match-date-home .month {
    font-size: 1.1em;
    text-transform: uppercase;
}

.match-date-home .time {
    font-size: 0.9em;
    margin-top: 5px;
    opacity: 0.9;
}

.match-details-home {
    flex-grow: 1;
    margin-left: 30px;
    text-align: left;
}

.match-details-home .teams {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.match-details-home .teams .vs {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8em;
    margin: 0 10px;
}

.match-details-home .venue {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.match-action {
    margin-left: 20px;
}

/* --- PLACEHOLDER SECTION --- */
.placeholder-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-top: 40px;
    margin-bottom: 40px;
}

/* --- Team Page Hero Section --- */
.team-page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://placehold.co/1920x400/272E61/FFFFFF?text=Atletico+Seals+Team') no-repeat center center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}

.team-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.team-hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 3px 3px 10px var(--shadow-strong);
}

.team-hero-content p {
    font-size: 1.4em;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 5px var(--shadow-strong);
}

/* --- Team Roster Section --- */
.team-roster {
    background-color: var(--white); /* Keeping it white for contrast with staff section */
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-top: 40px;
}

.position-section {
    margin-bottom: 50px;
}

.position-title {
    text-align: center;
    font-size: 2.4em; /* Slightly larger title */
    color: var(--dark-blue);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px; /* More padding for underline */
    font-weight: 800; /* Bolder font */
    letter-spacing: 1px; /* Subtle letter spacing */
}

.position-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px; /* Slightly wider underline */
    height: 4px; /* Thicker underline */
    background-color: var(--primary-red);
    border-radius: 2px;
}

/* Player Grid */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.player-card {
    background: linear-gradient(145deg, var(--white) 0%, var(--light-grey) 100%); /* Subtle white to light-grey gradient */
    border: 1px solid var(--mid-grey);
    border-radius: 15px; /* More rounded */
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 18px var(--shadow-light); /* Softer initial shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex; /* Flexbox for internal alignment */
    flex-direction: column;
    align-items: center;
}

.player-card:hover {
    transform: translateY(-10px) scale(1.02); /* More pronounced lift and slight scale */
    box-shadow: 0 15px 35px var(--shadow-medium); /* Darker, more diffused shadow on hover */
    border-color: var(--primary-red); /* Highlight border on hover */
    background: linear-gradient(145deg, var(--white) 0%, var(--mid-grey) 100%); /* Slightly darker gradient on hover */
}

.player-image {
    width: 170px; /* Even larger image */
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-red); /* Thicker red border */
    margin-bottom: 25px; /* More space below image */
    box-shadow: 0 0 0 7px rgba(255,255,255,0.8), 0 0 15px rgba(0,0,0,0.1); /* White halo + subtle outer glow */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover .player-image {
    border-color: var(--dark-blue); /* Blue border on hover */
    box-shadow: 0 0 0 7px rgba(255,255,255,1), 0 0 20px rgba(0,0,0,0.2); /* Brighter halo and stronger glow */
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%; /* Ensure info takes full width */
}

.player-card h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
    font-size: 1.8em; /* Larger name */
    font-weight: 700;
}

.jersey-number {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 6px 15px; /* Increased padding */
    border-radius: 7px; /* Slightly more rounded */
    font-weight: 700;
    font-size: 1.1em; /* Slightly larger */
    letter-spacing: 1.5px; /* More letter spacing */
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 3px 8px var(--shadow-medium); /* More prominent shadow */
}

.player-detail {
    font-size: 1.05em; /* Slightly larger text */
    color: var(--text-color);
    margin-bottom: 8px; /* More space */
    font-weight: 500;
}

.player-detail strong {
    color: var(--dark-blue);
}

.player-bio {
    font-size: 0.95em; /* Slightly larger bio text */
    color: #555;
    margin-top: 15px;
    line-height: 1.7; /* Increased line height for readability */
    text-align: justify; /* Justify text for a professional look */
    padding: 0 5px; /* Small padding for inner text */
}

.read-more-bio, .read-more-staff-bio {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px; /* More space above */
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.read-more-bio:hover, .read-more-staff-bio:hover {
    text-decoration: underline;
    color: var(--dark-blue); /* Change color on hover */
    transform: translateX(3px); /* Small slide effect */
}

/* --- Staff Section (Existing - ensure consistency with new player styles) --- */
.staff-section {
    /* Uses .bg-dark-blue-gradient defined earlier */
    margin-top: 50px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.staff-card {
    background-color: rgba(255, 255, 255, 0.12); /* Slightly more transparent white */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.staff-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--white);
    margin-bottom: 20px;
    box-shadow: 0 0 0 5px rgba(255,255,255,0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover .staff-image {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.5);
}

.staff-info h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 1.6em;
}

.staff-role {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.85); /* Slightly less transparent */
    font-weight: 500;
    margin-bottom: 15px;
}

.staff-bio {
    font-size: 0.95em; /* Match player bio size */
    color: rgba(255, 255, 255, 0.75); /* Slightly less transparent */
    line-height: 1.7; /* Increased line height */
    text-align: center;
}

/* --- Player/Staff Bio Modal (No major changes here, ensure consistency) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px var(--shadow-strong);
    position: relative;
    animation: fadeInScale 0.3s ease-out;
    color: var(--text-color);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h3 {
    color: var(--dark-blue);
    margin-top: 0;
    font-size: 2em;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 1.1em;
    line-height: 1.8;
    white-space: pre-wrap; /* Preserves newlines from nl2br */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-red);
    text-decoration: none;
}

/* --- Club Page Specific Styles (No major changes here) --- */
.about-section,
.club-vision {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.about-section p,
.club-vision p,
.club-vision ul {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-section .highlight {
    color: var(--primary-red);
    font-weight: 600;
}

.club-vision h3 {
    color: var(--primary-red);
    font-size: 1.8em;
    border-bottom: 2px solid var(--dark-blue);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.club-vision ul {
    list-style: none;
    padding-left: 0;
}

.club-vision ul li {
    background-color: var(--light-grey);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-red);
    border-radius: 4px;
}

.club-vision ul li strong {
    color: var(--dark-blue);
}


/* Responsive Adjustments (Consolidated and refined) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    .section-title {
        font-size: 2.2em;
    }
    .team-hero-content h1 {
        font-size: 3em;
    }
    .team-hero-content p {
        font-size: 1.2em;
    }
    .player-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .player-card, .staff-card {
        padding: 20px;
    }
    .player-image {
        width: 150px; /* Adjusted for consistency */
        height: 150px; /* Adjusted for consistency */
    }
    .staff-image { /* Keep original size for staff as they are smaller */
        width: 140px;
        height: 140px;
    }
    .player-card h3, .staff-card h3 {
        font-size: 1.5em;
    }
    .jersey-number {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Header */
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header .logo {
        margin-bottom: 15px;
    }
    header .logo img {
        margin-right: 0;
    }
    nav ul {
        flex-direction: column;
    }
    nav ul li a {
        padding: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    nav ul li:last-child a {
        border-bottom: none;
    }

    /* Hero (Homepage) */
    .hero-section {
        height: 450px; /* Slightly shorter on smaller mobiles */
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        width: 90%; /* Wider on smaller mobile screens */
        margin: 0 auto;
    }

    /* News Grid (Homepage & News Page) */
    .news-grid-home, .news-list-grid { /* Added news-list-grid here */
        grid-template-columns: 1fr;
    }
    .news-item, .news-card-item { /* Added news-card-item here */
        flex-direction: column;
    }
    .news-item .news-image, .news-card-item .news-card-image { /* Added news-card-item .news-card-image here */
        width: 100%;
        height: 180px; /* Adjusted height for mobile news cards */
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .news-item .news-content, .news-card-item .news-card-content { /* Added news-card-item .news-card-content here */
        width: 100%;
    }

    /* Match Item (Homepage & Matches Page) */
    .match-item-home, .match-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .match-date-home, .match-date {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
        flex-basis: auto;
    }
    .match-time {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
    .match-details-home, .match-teams-score {
        margin-left: 0;
        text-align: center;
        width: 100%;
        margin-bottom: 15px;
    }
    .match-details-home .teams {
        font-size: 1.2em;
    }
    .match-details-home .venue {
        font-size: 0.9em;
    }
    .match-action, .match-report-link, .highlights-link {
        width: 90%; /* Adjust button width */
        text-align: center;
        margin-left: 0;
        margin-top: 10px;
        padding: 10px 15px; /* Adjust padding */
    }

    /* Team Page */
    .team-page-hero {
        height: 250px; /* Shorter hero for mobile */
    }
    .team-hero-content h1 {
        font-size: 2em;
    }
    .team-hero-content p {
        font-size: 0.9em;
    }
    .position-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .player-grid, .staff-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .player-card, .staff-card {
        padding: 20px;
    }
    .player-image {
        width: 140px;
        height: 140px;
        border-width: 4px;
        margin-bottom: 20px;
    }
    .staff-image {
        width: 120px;
        height: 120px;
        border-width: 3px;
        margin-bottom: 15px;
    }
    .player-card h3, .staff-card h3 {
        font-size: 1.3em;
    }
    .jersey-number {
        font-size: 0.9em;
        padding: 5px 12px;
        margin-bottom: 15px;
    }
    .player-detail, .player-bio, .staff-role, .staff-bio {
        font-size: 0.85em;
    }
    .player-bio, .staff-bio {
        text-align: center; /* Center align bios on mobile */
    }

    /* Club Page */
    .about-section, .club-vision {
        padding: 20px;
    }
    .about-section p, .club-vision p, .club-vision ul {
        font-size: 0.95em;
    }
    .club-vision h3 {
        font-size: 1.4em;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .modal-content h3 {
        font-size: 1.6em;
    }
    .modal-content p {
        font-size: 1em;
    }
    .close-button {
        font-size: 30px;
        top: 5px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.95em;
    }
    .btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}

@media (max-width: 360px) { /* Extra small devices */
    .hero-content h1 {
        font-size: 1.8em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .hero-content p {
        font-size: 0.85em;
    }
    .btn {
        padding: 10px 15px;
        font-size: 0.9em;
    }
    .player-image {
        width: 120px;
        height: 120px;
    }
    .staff-image {
        width: 100px;
        height: 100px;
    }
    .modal-content {
        padding: 15px;
    }
    .modal-content h3 {
        font-size: 1.4em;
    }
}


/* --- MATCHES PAGE SPECIFIC STYLES --- */
.matches-page-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('https://placehold.co/1920x400/CB3524/FFFFFF?text=Matchday+Experience') no-repeat center center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3);
}

.matches-hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.matches-hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 3px 3px 10px var(--shadow-strong);
}

.matches-hero-content p {
    font-size: 1.4em;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 5px var(--shadow-strong);
}

.matches-content {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    margin-top: 40px;
}

.upcoming-matches-section, .past-matches-section {
    margin-bottom: 50px;
}

.upcoming-matches-section .section-title,
.past-matches-section .section-title {
    margin-bottom: 30px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.match-card {
    background: linear-gradient(145deg, var(--white) 95%, var(--light-grey) 100%);
    border: 1px solid var(--mid-grey);
    border-left: 6px solid var(--primary-red); /* Stronger left border */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-medium);
    border-color: var(--dark-blue); /* Different hover border color */
}

.match-card.past-match-card {
    border-left-color: var(--dark-blue); /* Past matches have dark blue border */
}

.match-card.past-match-card:hover {
    border-color: var(--primary-red); /* Hover makes it red */
}


.match-card-date {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-medium);
    min-width: 150px; /* Ensure consistent width */
}

.match-card-date .day-num {
    font-size: 2.8em;
    font-weight: 800;
    line-height: 1;
    display: block;
}

.match-card-date .month-year {
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-top: 5px;
}

.match-card-details {
    flex-grow: 1;
    width: 100%; /* Take full width */
    margin-bottom: 20px;
}

.match-card-time {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.match-card-teams {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.match-card-teams .vs {
    font-size: 0.8em;
    color: #666;
    margin: 0 10px;
}

.match-card-teams .score-display {
    color: var(--primary-red);
    margin: 0 10px;
    font-size: 1.1em;
    font-weight: 800;
}

.match-card-venue {
    font-size: 1em;
    color: #555;
}

.match-card-venue i {
    margin-right: 5px;
    color: var(--dark-blue);
}

.match-card-action {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
    gap: 10px; /* Space between buttons */
    margin-top: 10px; /* Space from details */
    width: 100%; /* Ensure actions take full width */
}

.match-card-action .btn { /* Override base btn style for small buttons */
    padding: 10px 18px;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.match-card-action .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-medium);
}

.no-action {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
}
