/*
Theme Name: Club KV Field Hockey
Author: Custom Theme Designer
Description: A custom, lightweight theme for Club KV Girls Field Hockey.
Version: 1.0.0
Text Domain: club-kv
*/

/* --- CSS Variables & Color Palette --- */
:root {
  --primary-red: #e60000;
  --primary-green: #0d801e;
  --primary-black: #111111;
  --neutral-light: #f8f9fa;
  --neutral-white: #ffffff;
  --text-dark: #222222;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-green);
}

/* --- Header & Navigation --- */
.site-header {
  background-color: var(--neutral-white);
  border-bottom: 4px solid var(--primary-black);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

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

.brand-logo {
  max-height: 65px;
  width: auto;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-black);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-navigation a {
  font-weight: 700;
  color: var(--primary-black);
  font-size: 1rem;
  text-transform: uppercase;
}

.main-navigation a:hover {
  color: var(--primary-red);
}

/* --- Hero Section (Introduction Area) --- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-black) 100%);
  color: var(--neutral-white);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 5px solid var(--primary-red);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero-text {
  font-size: 1.2rem;
  line-height: 1.7;
  opacity: 0.95;
}

/* --- Main Layout Container --- */
.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.section-title {
  font-size: 2rem;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-green);
  display: inline-block;
}

/* --- News Grid & Post Cards --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--neutral-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--primary-red);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.post-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.post-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.post-title a {
  color: var(--primary-black);
}

.post-title a:hover {
  color: var(--primary-red);
}

.post-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.read-more-btn {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--primary-green);
  color: var(--neutral-white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.read-more-btn:hover {
  background-color: var(--primary-black);
  color: var(--neutral-white);
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-black);
  color: var(--neutral-white);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 4px solid var(--primary-green);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}
