/* Root Variables for Theme Colors */
:root {
  --primary: #002b5c;
  --secondary: #0072ce;
  --bg: #f4f7fa; /* Standardized background color */
  --text-color: #1a1a1a;
  --white: #ffffff;
  --light-blue-contrast: #c0d9f0; /* New variable for better contrast text on primary background */
  --secondary-hover: #005aae; /* Slightly darker secondary for hover states */
}

/* Global Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navigation Bar */
.navigation {
  background: var(--primary);
  padding: 15px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.nav-container a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, border-bottom 0.3s ease, background-color 0.3s ease; /* Added transition */
  padding: 5px 0; /* Add padding for border-bottom */
}

.nav-container a:hover {
  color: var(--secondary);
}

.nav-container a.active { /* Updated active link style */
  color: var(--secondary);
  border-bottom: 2px solid var(--secondary);
  text-decoration: none;
}
/* Ensure hover still works well with active state */
.nav-container a.active:hover {
  color: var(--secondary); /* Keep it consistent */
}


/* Header Section */
header {
  /* Updated with a subtle linear gradient for more depth */
  background: linear-gradient(135deg, var(--primary) 0%, #001a38 100%);
  color: var(--white); /* This makes all direct text in header white by default */
  text-align: center;
  padding: 80px 20px;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--white); /* --- IMPORTANT: Explicitly set to white as requested --- */
}

header p {
  font-size: 1.1rem;
  color: var(--light-blue-contrast); /* Improved contrast for header sub-text */
  /* text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Optional: add subtle shadow for even more pop */
}

/* Section Wrapper */
.section {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.section h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

/* Grid Layout */
.grid, .about-grid, .contact-grid, .gallery, .pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Card Component */
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow to transition */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); /* Slightly more pronounced shadow on hover */
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: var(--secondary);
  margin-top: 0;
}

.card-content p {
  font-size: 0.95rem;
  color: #444;
}

/* Contact Icons */
.contact-icons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-size: 1.1rem;
  transition: color 0.3s ease; /* Added transition */
}

.contact-icons a:hover {
  color: var(--secondary);
}

/* Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-weight: bold;
}

form input,
form textarea,
form button {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 43, 92, 0.2); /* Subtle focus ring */
}

form button {
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Added transition */
  font-weight: bold;
  padding: 12px 15px; /* Slightly more padding for buttons */
  border-radius: 6px;
}

form button:hover {
  background: var(--secondary-hover); /* Using new hover variable */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Map Styling */
.map {
  margin-top: 40px;
}

iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 8px;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* Button Styles */
a.button {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Added transitions */
  font-weight: bold;
}

a.button:hover {
  background: var(--secondary-hover); /* Using new hover variable */
  transform: translateY(-2px); /* Subtle lift effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow on hover */
}

/* Timeline Component */
.timeline {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary);
}

.event {
  background: var(--white);
  border-left: 4px solid var(--secondary);
  padding: 20px 20px 20px 40px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.event:hover {
    transform: translateX(5px); /* Subtle shift right on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.event h3 {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 1.1rem;
}

.event p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
}

.event::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -12px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 4px solid var(--primary);
  border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }

  /* Card shadow retained for larger screens, removed for smaller for cleaner look */
  /* .card {
    box-shadow: none;
  } */
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Profile Section Styles */
.profile-section {
  text-align: center;
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem auto;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; /* Added transitions */
}

.profile-photo:hover {
  border-color: var(--secondary); /* Change border color on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly more pronounced shadow */
  transform: scale(1.02); /* Subtle zoom effect */
}


.profile-section h1 {
  margin-top: 1rem;
  color: var(--primary); /* Using var for consistency */
  /* NOTE: This rule for .profile-section h1 was overriding the header h1.
     If you want the name in the header to be white, this specific rule
     needs to be changed to 'color: var(--white);' or removed if 'header h1'
     is sufficient. For this exact request, let's keep it consistent with the overall header.
  */
}
