:root {
  --primary: #003366;
  --secondary: #f2f2f2; /*  --secondary: #f0f4f8; */
  --accent: #005a9c;
  --hover: #1a75d1;
  --light: #ffffff;
  --shadow: rgba(0,0,0,0.1);
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  background-color: var(--secondary);
  color: #222;
}

/* Header Section */
header {
  background-color: var(--secondary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  border-bottom: none;
}

header img.logo {
  height: 60px;
}

header strong {
  font-size: 1.2em;
  font-weight: 600;
}


/* To have links in header normal */
header a {
  color: inherit;           /* use the same color as header text */
  text-decoration: none;    /* remove underline */
}
header a:hover,
header a:visited,
header a:active {
  color: inherit;           /* prevent color change */
  text-decoration: none;    /* no underline on hover */
}


/* Navigation Bar */
nav {
  background-color: var(--primary);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 18px 0;
}

nav a {
  position: relative;
  color: white;
  text-decoration: none;
  margin: 8px 18px;
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--hover);
  transition: width 0.3s ease;
}

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

nav a:hover::after {
  width: 100%;
}

/* Hero Banner */
.hero {
  position: relative;
  text-align: center;
  color: white;
  background-color: white;   /* white background box */
  max-width: 1200px;         /* same width as main content */
  margin: 30px auto;         /* space above and below + center alignment */
  border-radius: 8px;
  overflow: hidden;          /* keeps image corners clean */
  box-shadow: 0 2px 6px var(--shadow); /* subtle shadow for consistency */
}

.hero img {
  width: 100%;
  height: 300px;          /* make the image smaller vertically */
  object-fit: cover;
  filter: brightness(70%);
  display: block;
  border-bottom: 1px solid #ddd; /* gentle divider line below image */
}

.hero h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.2em;
  font-weight: 600;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

section.content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px var(--shadow);
}

h2, h3 {
  color: var(--primary);
}

h2 {
  font-size: 1.9em;  
  margin-bottom: 20px; 
}

h3 {
  font-size: 1.5em;  
  margin-bottom: 16px;
}

/* Program Section */
.program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
  list-style: none;
  padding: 0;
}

.program-item {
  background-color: var(--secondary);
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px var(--shadow);
}

.program-item::before {
  content: "✔";
  color: var(--accent);
  font-weight: bold;
  margin-right: 8px;
}

.program-item:hover {
  transform: translateY(-3px);
  background-color: #e8f1fa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* News Section */
.section-header {
  display: flex;
  align-items: center;
  margin-top: 70px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.9em;
  margin: 0;
  margin-right: 15px;
  white-space: nowrap;
}

.header-line {
  flex-grow: 1;
  height: 1px;
  background-color: #003366;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
}

.news-card {
  display: flex;
  align-items: center;
  background-color: var(--light);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 150px;
  box-shadow: none;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/*Adjusting image ratio*/
/*.news-card img {
  width: 30%;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}*/

.news-card img {
  width: 150px;       /* fixed width */
  height: 150px;      /* same as width to make square */
  object-fit: cover;  /* keeps image proportions and crops excess */
  flex-shrink: 0;
}

.news-card-content {
  padding: 16px 30px;
  line-height: 1.4;
}

.news-card-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.news-card-content a:hover {
  color: var(--hover);
  text-decoration: underline;
}

.news-date {
  font-size: 0.85em;
  color: #666;
  font-style: italic;
  margin-bottom: 6px;
  display: block;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #555;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .hero img { height: 200px; }
  .hero h1 { font-size: 1.6em; }
  .news-grid { grid-template-columns: 1fr; gap: 25px}
  .news-card { flex-direction: row; height: 150px; }
  .news-card img { width: 30%; height: 100%; }
  nav a { font-size: 1em; margin: 6px 12px; }
  main { padding: 0 15px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.3em; }
  .news-card-content { font-size: 0.9em; }
  .program-list { grid-template-columns: 1fr; }
}

/* Hide the checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon (only for small screens) */
.menu-icon {
  display: none;       /* hide by default */
  font-size: 1.5em;
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  user-select: none;
  font-weight: bold;
}

.menu-icon .menu-text {
  font-size: 0.9em;
  margin-left: 8px; /* space between ☰ and "Menu" */
  vertical-align: middle;
}

/* Show hamburger only on screens <= 768px */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;           /* hide nav links by default */
    flex-direction: column;
    width: 100%;
    background-color: var(--primary);
  }

  /* Show nav links when checkbox is checked */
  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .nav-links a {
    margin: 10px 0;
  }
}


/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary);
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 10;
  border-radius: 4px;
}

.dropdown-content a {
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: var(--hover);
  color: white;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Active main navbar link */
nav a.active {
  color: var(--hover); /* highlight color */
  font-weight: bold;   /* optional: makes it stand out more */
  text-decoration: none; /* ensures no underline */
}

/* Optional: active dropdown item */
.dropdown-content a.active {
  background-color: var(--hover);
  color: white;
  text-decoration: none;
}

/* Adjust positioning for mobile menu (stacked layout) */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: var(--primary);
  }

  .dropdown-content a {
    padding-left: 25px; /* indent subitems a bit */
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px 15px;      /* less horizontal space */
  }
  header img.logo {
    height: 45px;           /* smaller logo */
    width: auto;
  }
  header strong {
    font-size: 1em;         /* slightly smaller title */
  }
}

@media (max-width: 480px) {
  header {
    padding: 6px 12px;
  }
  header img.logo {
    height: 36px;
  }
  header strong {
    font-size: 0.95em;
  }
}





.dropdown {
  position: relative;
  display: inline-block;   /* change back from inline-flex */
}

.dropdown-arrow {
  display: none;        /* hidden on desktop */
  cursor: pointer;
  color: white;
  padding-left: 6px;
  font-size: 0.8em;
}



/* Dropdown menu fix on mobile devices */
.dropdown input {
  display: none;
}

/* Dropdown menu fix on mobile devices */
@media (max-width: 768px) {

  /* Show arrow only on mobile */
  .dropdown-arrow {
    display: inline-block;
  }

  /* Disable hover dropdown on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  /* Show when checkbox is checked */
  .dropdown input:checked ~ .dropdown-content {
    display: block;
  }

}







/* See All News Button */
.see-all-news {
  text-align: center;
  margin-top: 30px;
}

.see-all-btn {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05em;
  box-shadow: 0 3px 6px var(--shadow);
  transition: all 0.3s ease;
}

.see-all-btn:hover {
  background-color: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}





