/* style.css - Core Stylesheet */

/* --- Basic Setup & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; /* Modern, clean font stack */
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container for centering content on large screens */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D32F2F; /* A sporty red color for accent */
}

/* If using an image logo instead of text, adjust height here */
.logo-area img {
    height: 50px; 
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-weight: 600;
    padding: 5px 10px;
}

nav ul li a:hover, nav ul li a.active {
    color: #D32F2F;
}

/* --- Main Content Area --- */
main {
    flex: 1; /* Makes main area fill available space pushes footer down */
}

/* --- Home Page: Blog Grid --- */
.hero-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2.5rem;
}

.blog-grid {
    display: grid;
    /* This creates a responsive grid that automatically fits columns */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
    margin-bottom: 50px;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensures cards are same height */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.blog-card-image {
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1; /* Fills remaining space */
    display: flex;
    align-items: center;
}

.blog-card h3 {
    font-size: 1.2rem;
    color: #222;
}

/* --- About Page Styles --- */
.about-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.about-image, .about-text {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text h1 {
    margin-bottom: 20px;
    color: #D32F2F;
}

/* --- Single Blog Post Styles --- */
.blog-post-container {
    max-width: 800px; /* Narrower container for better reading experience */
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.blog-header-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}

.blog-post-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.blog-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* --- Mobile Tweaks (Media Queries) --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    /* Stack about section on mobile */
    .about-wrapper {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
}