:root {
  --primary-color: #800000; /* Maroon */
  --secondary-color: #d4af37; /* Gold */
  --text-color: #333;
  --bg-color: #f9f9f9;
  --card-bg: #ffffff;
  --font-heading: "Playfair Display", serif; /* Classic, prestigious feel */
  --font-body: "Lato", sans-serif;
  --spacing-unit: 1rem;
  --border-radius: 8px;
  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@700&display=swap");

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://res.cloudinary.com/dennlzdcb/image/upload/v1770755429/idiri1-4_o0iufm.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 6rem 1rem;
  margin-bottom: 3rem;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-soft);
}

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

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #f0f0f0;
}

.btn-cta {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* Leaders Grid */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.leader-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border-top: 4px solid transparent;
}

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

/* Featured leader (Thero) — more prominent */
.leader-card--featured {
  border-top-color: var(--secondary-color);
  background: linear-gradient(135deg, #fff 60%, rgba(212, 175, 55, 0.08));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.leader-card--featured .leader-photo {
  width: 160px;
  height: 160px;
  border-width: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.leader-card--featured .leader-name {
  font-size: 1.25rem;
}

.leader-card--featured .leader-role {
  font-size: 1rem;
  color: #444;
}

.leader-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--secondary-color);
}

.leader-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none; /* For wrapped anchor */
  color: inherit;
}

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

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image {
  transform: scale(1.05);
}

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

.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #999;
  text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .leaders-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem 2rem;
  }

  .leader-card--featured {
    grid-column: 1 / -1;
  }
}

/* ============================================
   About Section — Sidebar Navigation
   Shared across all About pages
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;600;700&display=swap");

.about-sidenav {
  background: #ffffff;
  border-radius: 10px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid rgba(128, 0, 0, 0.1);
}

.about-sidenav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-sidenav ul li a {
  display: block;
  padding: 17px 20px;
  font-family: "Noto Sans Sinhala", "PT Sans", sans-serif;
  font-size: 1.5rem;
  color: #4a4a4a;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s ease, color 0.2s ease,
    border-left-color 0.2s ease, padding-left 0.2s ease;
  line-height: 1.6;
}

.about-sidenav ul li:last-child a {
  border-bottom: none;
}

.about-sidenav ul li a:hover {
  background: rgba(128, 0, 0, 0.05);
  color: #800000;
  border-left-color: rgba(212, 175, 55, 0.55);
  padding-left: 22px;
  text-decoration: none;
}

.about-sidenav ul li.active a,
.about-sidenav ul li.active a:hover,
.about-sidenav ul li.active a:focus {
  background: rgba(128, 0, 0, 0.07);
  color: #800000;
  font-weight: 700;
  border-left-color: #d4af37;
  padding-left: 22px;
  text-decoration: none;
}
