/* style.css */

/* --- General and Reset --- */
:root {
    --primary-color: #004d40; /* Dark Teal/Green - Primary brand color */
    --secondary-color: #ff6f00; /* Bright Orange - Accent for links/buttons */
    --background-light: #f4f4f4;
    --background-dark: #222;
    --text-light: #fff;
    --text-dark: #333;
    --border-color: #ddd;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-dark);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff8f00;
    text-decoration: none;
}

/* --- Header Styling (New Design) --- */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
    background: var(--secondary-color);
}

/* --- Hero Section (Homepage Only) --- */
.hero {
    background: url('https://via.placeholder.com/1200x500/003300/ffffff?text=Cricwin+Official+News+Background') no-repeat center center/cover;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay for readability */
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Content Section Styling --- */
.content-section {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Contact Page Styling --- */
.contact-grid {
    display: flex;
    gap: 40px;
}

.contact-info, .contact-form-container {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-body);
}

.consent-box {
    margin: 15px 0;
    padding: 15px;
    background: var(--background-light);
    border: 1px dashed var(--secondary-color);
    border-radius: 5px;
}

.consent-box input[type="checkbox"] {
    margin-right: 10px;
}

/* For Policy Pages */
.policy-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

.consent-message {
    padding: 20px;
    border: 2px solid var(--primary-color);
    background: #e0f2f1; /* Light color for the box */
    border-radius: 5px;
    margin: 20px 0;
}


/* --- Footer Styling --- */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 40px 0;
    margin-top: 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    min-width: 200px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--border-color);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 20px;
}

/* --- Advanced CSS: Media Queries for Responsiveness --- */

/* Tablet and smaller screens */
@media (max-width: 992px) {
    .contact-grid {
        flex-direction: column;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px 10px 10px;
    }
    
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        flex-direction: column;
    }
    
    .content-section {
        padding: 30px 0;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
}