* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
body {
  background: #f6f8fb;
  color: #1a1a1a;
}

/* NAVBAR */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}
.logo {
  font-weight: 700;
  font-size: 20px;
  color: #1e3a8a;
  margin-left: 49px;
}
.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-menu li {
  position: relative;
}
.nav-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: color 0.25s ease;
}
.nav-btn:hover {
  color: #1851ee;
}
.nav-menu li.active .nav-btn {
  color: #1e3a8a;
}
.arrow {
  font-size: 12px;
  transition: 0.25s ease;
  transform: rotate(180deg);
  line-height: 1;
}
.nav-menu li.active .arrow {
  transform: rotate(0deg);
}
.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 18px 20px;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.dropdown-panel a {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 6px 0;
  transition: 0.2s;
}
.dropdown-panel a:hover {
  color: #1e3a8a;
}
.show {
  display: flex;
}
.burger {
  display: none;
}

/* HERO SLIDER */
.hero-slider {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-top: 70px;
}
.slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide.active {
  opacity: 1;
}
.slide-text {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  font-size: 24px;
  text-align: center;
}

/* ABOUT */
.about-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  margin-top: 70px;
}
.about-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.about-text {
  position: relative;
  color: white;
  max-width: 900px;
  z-index: 2;
}
.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
}
.about-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.about-text .btn-primary {
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  background: white;
  color: #1e3a8a;
  transition: 0.3s;
}
.about-text .btn-primary:hover {
  background: #f0f0f0;
}

/* SECTION */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
}
.section h2 {
  font-size: 32px;
  margin-bottom: 25px;
  color: #1e3a8a;
}
.section p {
  line-height: 1.6;
}

/* PROGRAMS */
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.program-card {
  position: relative;
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.program-card h3 {
  margin-bottom: 10px;
}
.program-card p {
  margin-bottom: 10px;
}
.program-card .btn-primary {
  margin: 10px auto 0 auto;
  width: 180px;
  padding: 12px 0;
  font-size: 16px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  background: #1e3a8a;
  color: white;
  transition: 0.3s;
}
.program-card .btn-primary:hover {
  background: #3b82f6;
}
.program-dropdown {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  background: #f0f4ff;
  padding: 15px;
  border-radius: 12px;
  width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: none;
  text-align: left;
  z-index: 10;
}

/* NEWS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.news-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px;
  height: 100%;
  text-align: center;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

.news-card h3 {
  margin: 15px 0 10px 0;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card p {
  padding: 0 15px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  flex-grow: 1;
  overflow: hidden;
}

.news-card .btn-primary {
  width: 140px;
  padding: 10px 0;
  margin: 0 auto 10px auto;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  background: #1e3a8a;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
}

.news-card .btn-primary:hover {
  background: #3b82f6;
}

/* MOBILE */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* FOOTER */
footer {
  background: #1e3a8a;
  color: white;
  padding: 40px 20px 20px 20px;
  font-family: "Inter", sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  margin-bottom: 20px;
}

.footer-section h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #ffffff;
}

/* line under title */
.footer-section hr {
  border: 0;
  border-top: 2px solid #3b82f6;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 250px;
}

.footer-section p,
.footer-section li {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 6px;
  color: #e0e0e0;
  list-style: none;
}

.footer-section ul {
  padding-left: 0;
}

.footer-section li {
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #c0c0c0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* MOBILE NAV */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
  }
  .nav-menu.show-mobile {
    display: flex;
  }
  .burger {
    display: block;
    font-size: 24px;
    cursor: pointer;
  }
}
