/* General Styles */
body {
    font-family: 'Roboto', sans-serif; /* Use a visually appealing font */
    margin: 0;
    padding: 0;
    background-color: #e6f2ff; /* Light blue background */
    color: #333; /* Dark gray text */
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Header Styles */
header {
    background: #1e3a8a; /* Dark blue header */
    color: #fff; /* White text */
    padding-top: 30px;
    min-height: 70px;
    border-bottom: 3px solid #e8491d; /* Orange border */
}

header a {
    color: #2ecc71; /* Vibrant green text */
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header li {
    float: left;
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: #e8491d; /* Orange highlight */
    font-weight: bold;
}

header a:hover {
    color: #e8491d; /* Orange hover */
    transition: color 0.3s ease; /* Smooth transition */
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px; /* Adjust logo size */
    margin-right: 10px;
}

/* Navigation Styles */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Make the menu horizontal */
    align-items: center; /* Vertically center the items */
}

nav li {
    margin-right: 20px; /* Add spacing between menu items */
}

nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Smooth transition */
}

nav a:hover {
    background-color: #e8491d; /* Orange hover */
    color: #fff; /* White text on hover */
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 5px;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

/* Hero Section Styles */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

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

.search-bar {
    display: flex;
}

.search-bar input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    width: 300px;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #e8491d; /* Orange button */
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition */
}

.search-bar button:hover {
    background-color: #35424a; /* Dark blue hover */
}

/* Featured Video Styles */
.featured-video {
    margin-top: 20px;
    text-align: center;
}

/* Latest News Styles */
.latest-news {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 700px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2rem 1rem;
}

.latest-news h2 {
    text-align: center;
}

.news-carousel {
    display: flex;
    overflow-x: auto;
    width: 100%;
    max-width: 600px;
}

.news-item {
    min-width: 300px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

/* CTA Styles */
.cta {
    margin-top: 20px;
    text-align: center;
}

.cta button {
    padding: 10px 15px;
    background-color: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease; /* Smooth transition */
}

.cta button:hover {
    background-color: #35424a; /* Dark blue hover */
}

/* News Styles */
.news {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
}

.news-item img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 10px;
}

.news-item h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.news-item .date {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 10px;
}

.news-item a {
    color: #e8491d; /* Orange link */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition */
}

.news-item a:hover {
    color: #35424a; /* Dark blue hover */
}

/* Players Styles */
.players {
    display: flex;
    flex-direction: column;
}

.search-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-filter input,
.search-filter select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.player-card {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
}

.player-card img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    margin-bottom: 10px;
}

.player-card h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
}

.player-card a {
    color: #e8491d; /* Orange link */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition */
}

.player-card a:hover {
    color: #35424a; /* Dark blue hover */
}

/* Blog Styles */
.blog-post {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.blog-post h3 {
    font-size: 1.5em;
    margin-bottom: 5px;
}

.blog-post .date {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

.blog-post a {
    color: #e8491d; /* Orange link */
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition */
}

.blog-post a:hover {
    color: #35424a; /* Dark blue hover */
}

/* Footer Styles */
.footer {
    background: #1e3a8a; /* Dark blue footer */
    color: #fff; /* White text */
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Youtube Section Styles */
.youtube-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    max-width: 700px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 2rem 1rem;
}

.youtube-section h2 {
    text-align: center;
}

#youtube-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.youtube-link-input {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* Blog writing area full width */
#blog-content {
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    min-height: 60vh;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    box-sizing: border-box;
    font-size: 1.1rem;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    background: #fff;
}

/* Optional: Make the blog post form container also full width */
#blog-form, .blog-form {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-1 * (100vw - 100%) / 2);
    box-sizing: border-box;
}

/* --- Responsive Header and Navigation --- */
@media (max-width: 768px) {
    header {
        padding-top: 10px;
        min-height: 50px;
    }
    .logo {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }
    nav ul {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #1e3a8a;
        position: static;
    }
    nav li {
        margin: 0;
        padding: 0;
        width: 100%;
        text-align: left;
    }
    nav a {
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid #233a6a;
        font-size: 1.1em;
    }
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown-content a {
        padding: 10px 20px;
    }
}

/* --- Responsive Hero Section --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
        gap: 1rem;
    }
    .next-match {
        text-align: left;
        padding: 0 0.5rem;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 0.5rem;
        margin-top: 1rem;
    }
    .search-bar input {
        width: 100%;
        border-radius: 5px 5px 0 0;
        margin-bottom: 0.5rem;
    }
    .search-bar button {
        width: 100%;
        border-radius: 0 0 5px 5px;
    }
}

/* --- Hamburger Menu for Mobile --- */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 2em;
        position: absolute;
        top: 10px;
        right: 20px;
        z-index: 1001;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100vw;
        background: #1e3a8a;
        position: absolute;
        left: 0;
        top: 60px;
        z-index: 1000;
    }
    nav ul.active {
        display: flex;
    }
    nav li {
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
    }
    nav a {
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: 1px solid #233a6a;
        font-size: 1.1em;
    }
    .dropdown-content {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown-content a {
        padding: 10px 20px;
    }
    .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    .search-bar {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
    .search-bar input {
        width: 100%;
        border-radius: 5px 5px 0 0;
        margin-bottom: 0.5rem;
    }
    .search-bar button {
        width: 100%;
        border-radius: 0 0 5px 5px;
    }
    .next-match {
        text-align: left;
        padding: 0 0.5rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .news-carousel.vertical-news {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
    }
    .news-item {
        min-width: 0;
        width: 100%;
        margin-bottom: 1rem;
    }
    #youtube-frame {
        width: 100% !important;
        min-width: 0;
        height: 220px !important;
    }
}

/* --- Utility: Hide hamburger on desktop --- */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none;
    }
}

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }
    .hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-bar input {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 0.5rem;
    }
    header, .footer {
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    nav li {
        margin: 10px 0;
    }
    .hero {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }
    .news-carousel, .latest-news, .youtube-section {
        max-width: 100%;
        padding: 1rem 0.5rem;
    }
    .blog-form, #blog-form {
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    #blog-content {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        margin-left: 0;
        min-height: 40vh;
    }
    .player-grid {
        grid-template-columns: 1fr;
    }
    .news-item, .blog-post, .player-card {
        min-width: 0;
        width: 100%;
    }
    #youtube-frame {
        width: 100% !important;
        min-width: 0;
        height: 220px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.2rem;
    }
    .logo img {
        width: 36px;
    }
    header h1 {
        font-size: 1.2em;
    }
    .search-bar input {
        width: 100%;
        font-size: 1em;
    }
    .blog-form input[type="text"] {
        width: 100%;
        font-size: 1em;
    }
    #blog-content {
        font-size: 1em;
        min-height: 30vh;
    }
    .news-item, .blog-post, .player-card {
        padding: 10px;
    }
    .youtube-section {
        padding: 1rem 0.2rem;
    }
}

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

/* Dynamic Matchday Hub - Tactical Board Theme */
:root {
    --primary-green: #145a32;
    --dark-bg: #181a1b;
    --card-bg: #232526;
    --white: #f7f7f7;
    --accent-red: #e74c3c;
    --accent-yellow: #ffe600;
    --muted: #6c757d;
    --border: #2c2f31;
    --shadow: 0 2px 12px rgba(20,90,50,0.12);
    --font-heading: 'Oswald', 'Bebas Neue', Arial, sans-serif;
    --font-body: 'Roboto', 'Open Sans', Arial, sans-serif;
}

body {
    background: var(--dark-bg);
    color: var(--white);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
}

header {
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 48px;
    height: 48px;
}

header nav ul {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

header nav a:hover, header nav .current a {
    background: var(--accent-red);
    color: var(--white);
}

.live-score {
    background: var(--accent-yellow);
    color: #222;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 1.1em;
    box-shadow: 0 2px 8px rgba(255,230,0,0.12);
    margin-left: 2rem;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    background: linear-gradient(90deg, var(--primary-green) 60%, var(--accent-red) 100%);
    color: var(--white);
    border-radius: 16px;
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
}

.hero .search-bar input {
    padding: 12px;
    border-radius: 6px 0 0 6px;
    border: none;
    width: 220px;
    background: #222;
    color: var(--white);
}

.hero .search-bar button {
    padding: 12px 18px;
    border-radius: 0 6px 6px 0;
    border: none;
    background: var(--accent-red);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hero .search-bar button:hover {
    background: var(--accent-yellow);
    color: #222;
}

.card, .news-item, .player-card, .team-card, .blog-post {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover, .news-item:hover, .player-card:hover, .team-card:hover, .blog-post:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px var(--accent-red);
}

.cta button, .btn, .blog-post button, .player-card button, .team-card button {
    background: var(--accent-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    margin: 0 10px 10px 0;
    font-size: 1.1em;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(231,76,60,0.12);
}

.cta button:hover, .btn:hover {
    background: var(--accent-yellow);
    color: #222;
    box-shadow: 0 4px 16px var(--accent-yellow);
}

input, textarea, select {
    background: #232526;
    color: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 1rem;
    transition: border 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-yellow);
    outline: none;
}

.footer {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1.1em;
    margin-top: 2rem;
    border-radius: 0 0 18px 18px;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .container {
        padding: 1rem;
    }
    .hero {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }
}
@media (max-width: 600px) {
    .container {
        padding: 0.5rem;
    }
    .hero {
        padding: 1rem 0.5rem;
    }
}