/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #FFCC08;
    --accent-color: #FFCC08;
    --text-dark: #ffffff;
    --text-light: #ffffff;
    --bg-light: #1a1a1a;
    --bg-dark: #000000;
    --bg-card: #1a1a1a;
    --shadow: 0 2px 10px rgba(255, 204, 8, 0.1);
    --shadow-lg: 0 4px 20px rgba(255, 204, 8, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

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

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo:hover {
    color: var(--secondary-color);
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('https://media.rustyploughfc.com/hero-background.jpg') center/cover no-repeat;
    color: var(--text-light);
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Two Column Sections */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Specific image size controls */
.team-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

.sponsor-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.history-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.two-column-reverse {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.two-column-reverse .column-text {
    order: 2;
}

.two-column-reverse .column-image {
    order: 1;
}

.quote-large {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.quote-small {
    font-size: 1.2rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .two-column,
    .two-column-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column-reverse .column-text,
    .two-column-reverse .column-image {
        order: unset;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.page-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.content-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 204, 8, 0.1);
}

.content-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.content-card ul,
.content-card ol {
    margin: 1rem 0 1.25rem 1.5rem;
    padding-left: 1.25rem;
    list-style-position: outside;
}

.content-card ul { list-style-type: disc; }
.content-card ol { list-style-type: decimal; }

.content-card li { margin: 0.25rem 0; }

.content-card p + ul,
.content-card p + ol,
.content-card ul + p,
.content-card ol + p {
    margin-top: 0.75rem;
}

/* Blog post headings with extra spacing */
.content-card h1,
.content-card h2,
.content-card h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-card h1:first-child,
.content-card h2:first-child,
.content-card h3:first-child {
    margin-top: 0;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

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

/* Quote Section */
.quote-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: var(--text-light);
    padding: 4rem 2rem;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

.quote {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

/* Sponsor Section */
.sponsor-section {
    background-color: var(--bg-card);
}

.sponsor-logo {
    margin-top: 2rem;
}

.sponsor-logo img {
    max-width: 300px;
    height: auto;
}

/* Schedule Section */
.schedule-section {
    background-color: var(--bg-card);
    padding: 3rem 0;
    text-align: center;
    border: 1px solid rgba(255, 204, 8, 0.1);
    border-radius: 10px;
}

.schedule-section h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.schedule-section a {
    color: var(--accent-color);
    font-weight: 600;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.match-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.match-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border: 1px solid rgba(255, 204, 8, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.match-view-more {
    margin-top: auto;
    padding-top: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-align: center;
}

.match-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.match-card h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.match-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.match-location {
    color: #999;
    margin-bottom: 1.5rem;
}

.match-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 204, 8, 0.2);
    margin-top: 1rem;
}

.match-score .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.match-score .team-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
    text-align: center;
}

.match-score .score {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--secondary-color);
    text-align: center;
    min-width: 60px;
}

.match-score .vs {
    display: none;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 204, 8, 0.1);
}

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

.blog-card h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Carousel/Slideshow Styles */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 204, 8, 0.1);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 700px;
    object-fit: cover;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text-light);
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--secondary-color);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: var(--secondary-color);
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 204, 8, 0.1);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.9;
    pointer-events: none;
}

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--secondary-color);
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10000;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--secondary-color);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    text-align: center;
    color: var(--text-light);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 2px solid var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .quote {
        font-size: 1.8rem;
    }

    .content-card {
        padding: 2rem;
    }

    .matches-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .match-score {
        font-size: 1rem;
    }

    .match-score .score {
        font-size: 1.5rem;
    }
}

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .content-card h2 {
        font-size: 1.5rem;
    }
}
