
/* style.css */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

/* --- CSS Variables --- */
:root {
  --primary-color: #0a2e5c; /* Deep Blue */
  --secondary-color: #f4f7f6; /* Light Gray */
  --accent-color: #d4af37; /* Gold */
  --text-color: #333;
  --light-text-color: #fff;
  --border-color: #e0e0e0;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  --header-height: 80px;
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}


a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Header & Navigation --- */
.top-header {
  background-color: var(--light-text-color);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.top-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 90px;
  transition: height 0.3s ease;
}

.top-header.scrolled .logo img {
  height: 40px;
}

/* main navbar layout */
.navbar {
  display: flex;
  align-items: center;
}

.navbar .menu {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar .menu a {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 0;
  position: relative;
  transition: color 0.3s ease;
}

.navbar .menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.navbar .menu a:hover,
.navbar .menu .active a {
  color: var(--accent-color);
}

.navbar .menu a:hover::after,
.navbar .menu .active a::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* --- Dropdown Menu Styling --- */
.navbar .menu li {
  position: relative;
}

/* Dropdown container (desktop) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light-text-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 220px;
  z-index: 999;
}

/* Dropdown links */
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: left;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: var(--secondary-color);
  color: var(--accent-color);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Make the main "Committee" not clickable */
.no-click {
  pointer-events: none;
  cursor: default;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
}

.no-click::after {
  content: ' ▾';
  font-size: 0.8em;
  color: var(--accent-color);
  position: relative;
  top: -1px;
  left: 6px;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(10, 46, 92, 0.8), rgba(10, 46, 92, 0.8)), url('assets/hero-bg.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--light-text-color);
  padding: 0 20px;
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--light-text-color);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.9;
}

/* --- General Section Styling --- */
main {
  padding-top: 140px;
  padding-bottom: 90px;
}

section {
  padding: 80px 0;
}

section.page-header {
  padding: 120px 0 60px;
  background-color: var(--secondary-color);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--light-text-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0;
}

/* --- Timeline (Important Dates) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--accent-color);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--secondary-color);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.timeline-content h3 {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

/* --- Table Styling --- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 1.1em;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.styled-table thead tr {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 15px 20px;
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: var(--secondary-color);
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--primary-color);
}

/* --- Form Styling --- */
.form-container {
  background: var(--light-text-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-family: var(--font-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
}

.btn {
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 12px 30px;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background-color: #b89b2e;
  transform: translateY(-2px);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.contact-info strong {
  color: var(--primary-color);
}

.map-placeholder {
  height: 300px;
  background-color: var(--secondary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px dashed var(--border-color);
  color: #999;
}

/* --- Footer --- */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 5px 0;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer .container {
  opacity: 0.8;
}


/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
  .contact-grid, .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  /* Mobile nav becomes overlay */
  .navbar {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    transition: left 0.3s ease;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
    align-items: center;
  }

  .navbar.active {
    left: 0;
  }

  .navbar .menu {
    flex-direction: column;
    text-align: center;
    gap: 18px;
    width: 100%;
    padding: 20px;
  }

  .navbar .menu a {
    font-size: 1.25rem;
    display: block;
    width: 100%;
    padding: 12px 20px;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile: show dropdown items inside the menu when menu is open */
  .dropdown-menu {
    position: static;
    display: none; /* hide by default - revealed by the rule below */
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    min-width: auto;
  }

  /* When nav overlay is active, show dropdown items as regular links */
  .navbar.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding: 10px 20px;
    color: var(--primary-color);
    font-size: 1.05rem;
    text-align: left;
  }

  .dropdown-menu li a:hover {
    color: var(--accent-color);
    background: transparent;
  }

  /* Make sure 'Committee' remains non-clickable but visible on mobile */
  .no-click {
    pointer-events: none;
    cursor: default;
    display: block;
    width: 100%;
    padding: 12px 20px;
    text-align: left;
  }

  .timeline::after {
    left: 10px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 10px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 1px;
  }
}
/* --- Cards without images --- */
.card-noimg {
    background: var(--light-text-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px; /* important to prevent collapse */
    text-align: left;
}

.card-noimg h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.card-noimg p {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}
.card img {
  width: 100px;        /* passport width */
  height: 130px;       /* passport height */
  object-fit: cover;   /* ensures the face fits nicely */
  border-radius: 6px;  /* soft corners */
  display: block;
  margin: 0 auto 10px; /* centers image inside the card */
}

