/* Global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  zoom: 0.8;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333333;
  background-color: #ffffff;
}

/* Layout helpers */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

/* Header / navbar */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo img {
  max-height: 45px;
  width: auto;
}

.logo-main {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo-main span {
  color: #e32626;
}

.logo-sub {
  font-size: 0.75rem;
  color: #777777;
}

/* Navigation base */
.main-nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-item {
  position: relative;
}

.main-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: #444444;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.main-nav a i {
  font-size: 0.9rem;
  color: #e32626;
}

/* Red triangle arrow head next to each top link */
.nav-item > a::after {
  content: "";
  margin-left: 6px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #e32626;
}

.nav-item:not(.has-dropdown) > a::after {
  display: none;
}

/* Hover / active state */
.main-nav a:hover,
.main-nav a.active {
  color: #111111;
}

/* Buttons */
.btn-primary,
.btn-outline {
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}

.btn-primary {
  background-color: #e32626;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(227, 38, 38, 0.3);
}

.btn-primary:hover {
  background-color: #c91919;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(227, 38, 38, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #e32626;
  border: 1px solid #e32626;
  margin-right: 0.5rem;
}

.btn-outline:hover {
  background-color: #e32626;
  color: #ffffff;
}

/* Toggle buttons */
.toggle-btn {
  background-color: transparent;
  border: 1px solid #e32626;
  color: #e32626;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.toggle-btn:hover {
  background-color: #e32626;
  color: #ffffff;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  width: 36px;
  height: 28px;
  margin-left: 0.5rem;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background-color: #333333;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero section */
.hero {
  padding: 5rem 0 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: 0.98rem;
  max-width: 32rem;
  color: #666666;
}

.hero-btn {
  margin-top: 2rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section.light {
  background-color: #fafafa;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 0.96rem;
  color: #555555;
}

/* About content */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.about-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #333333;
}

.about-item p {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 1rem;
}

.toggle-content {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.toggle-content ul {
  list-style: none;
  padding-left: 0;
}

.toggle-content li {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.toggle-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e32626;
}

.toggle-content a {
  color: #e32626;
  text-decoration: none;
}

.toggle-content a:hover {
  text-decoration: underline;
}

/* Program cards */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
}

.program-card {
  border-radius: 6px;
  border: 1px solid #e5e5e5;
  padding: 1.2rem 1rem;
  background-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.program-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.program-card i {
  color: #e32626;
  font-size: 1.2rem;
}

.program-card p {
  font-size: 0.9rem;
  color: #666666;
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: #e32626;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

/* FAQ Styles */
.faq-category {
  margin-bottom: 1.5rem;
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.faq-category h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #333333;
}

.faq-content {
  margin-top: 1rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #333333;
}

.faq-item p {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.5rem;
}

.faq-item ul {
  list-style: none;
  padding-left: 1.5rem;
}

.faq-item li {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 0.3rem;
  position: relative;
}

.faq-item li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #e32626;
}

.faq-item a {
  color: #e32626;
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* Links list */
.link-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.link-list a {
  text-decoration: none;
  color: #e32626;
  font-size: 0.95rem;
}

.link-list a:hover {
  text-decoration: underline;
}

/* DROPDOWN MENU (top nav) */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  min-width: 210px;
  background-color: #ffffff;
  border-radius: 4px;
  padding: 0.4rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 900;
}

/* Show dropdown on hover (desktop) */
.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown list items */
.dropdown li {
  width: 100%;
}

.dropdown a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: #444444;
}

.dropdown a:hover {
  background-color: #f5f5f5;
  color: #e32626;
}

/* White arrow pointer on top of dropdown */
.has-dropdown .dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 18px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #ffffff;
}

/* Invisible bridge across the gap so the dropdown stays open
   while moving the mouse from the menu item down to the items */
.has-dropdown .dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
  background: transparent;
}

/* Footer */
.site-footer {
  background-color: #c60000;
  color: #ffffff;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.85rem;
}

.site-footer h4 {
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.25rem;
}

.site-footer a {
  text-decoration: none;
  color: #ffe7e7;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-right {
  grid-column: span 2;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 160px;
  padding: 0.45rem 0.6rem;
  border-radius: 4px;
  border: none;
}

.newsletter-form button {
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: none;
  background-color: #ffffff;
  color: #c60000;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.newsletter-form button:hover {
  background-color: #ffe7e7;
  transform: translateY(-1px);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 0.4rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 0.8rem;
  text-decoration: none;
}

/* Footer bottom */
.footer-bottom {
  background-color: #b00000;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  padding-block: 0.7rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero {
    padding-top: 4rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-right {
    grid-column: span 3;
  }

  .main-nav ul {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 60px 0 auto 0;
    padding: 1rem 1.5rem 1.5rem;
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .btn-outline {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-sub {
    max-width: 100%;
  }

  /* Mobile dropdowns are always visible under parent */
  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    padding-left: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0;
  }

  .has-dropdown .dropdown::before,
  .has-dropdown .dropdown::after {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-right {
    grid-column: span 2;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  .main-nav a i {
    font-size: 0.8rem;
  }
}

/* Hamburger active state */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
