:root {
    --primary-color: #000000;
    --secondary-color: #f15a24; /* Panther Orange/Gold */
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-bg: #f4f4f4;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Header & Nav */
header {
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-container img {
    height: 50px;
}

.club-name {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('assets/hero.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--accent-color);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #d44a1b;
}

/* Main Content */
section {
    padding: 3rem 0;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--primary-color);
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-logo-container {
    text-align: center;
    padding: 2rem 0;
}

.footer-logo-container .logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-logo-container img {
    height: 180px; /* Uniform height for main logo */
    width: auto;   /* Maintain aspect ratio */
}

.footer-logo-container .rugbywa-logo {
    height: 120px; /* Increased proportionally (1.5 * 80px) */
    width: auto;
    display: block;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.03);
}

/* Registration Page Styles */
.registration-info {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 8px;
}

.registration-info h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--primary-color);
}

.registration-info ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.registration-hero {
    width: 100%;
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('assets/registration.jpg') no-repeat center center/cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--accent-color);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* FAQ Page Styles */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-item {
    background: white;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.faq-text {
    flex: 1;
}

.faq-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    text-align: left;
}

.faq-item p {
    color: var(--text-color);
    line-height: 1.7;
    text-align: left;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 1rem;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.4rem; /* Reduced by an additional 25% from 1.875rem */
    }

    .hero {
        height: 50vh;
    }

    .faq-item {
        flex-direction: column;
    }

    .faq-image {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
}
