html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #1B3A57;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.logo-img {
  max-height: 80px;
  width: auto;
  display: block;
  
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 40px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  border: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav a {
  font-weight: bolder;
}

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

.dropbtn {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  font-weight: bolder;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
  z-index: 1;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 8px;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  color: #1B3A57;
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

.hero {
  padding: 60px 20px;
  text-align: center;
  color: white;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                    url("bgimg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-btn {
  background-color: #F9A826;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  color: #1B3A57;
  display: inline-block;
}

.why-us {
  padding: 50px 20px;
  text-align: center;
  background-color: #7ab0e5;
}

.why-us h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  background-color: #daeafa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  font-weight: 500;
}

.programs {
  padding: 50px 20px;
  text-align: center;
  background-color: hsla(36, 100%, 59%, 0.587);
}

.programs h2 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card h2 {
  margin-bottom: 10px;
}

.card p {
  margin-bottom: 15px;
}

.card a {
  color: #F9A826;
  font-weight: bold;
  margin-top: auto;
}

.call-to-action {
  background-color: #1B3A57;
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.call-to-action .cta-btn {
  margin-top: 15px;
  display: inline-block;
}

.footer {
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  padding: 40px 20px 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer h3 {
  color: #1B3A57;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #F9A826;
  padding-bottom: 8px;
  display: inline-block;
}

.footer p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer a {
  color: #1B3A57;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer a:hover {
  color: #F9A826;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* Announcement Banner */
.announcement-banner {
  background: linear-gradient(90deg, #F9A826 0%, #ffed85 100%);
  color: #1B3A57;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 10px 12px 10px;
  text-align: center;
  border-bottom: 2px solid #f3c13a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  letter-spacing: 0.01em;
  z-index: 1001;
}
.announcement-banner .banner-title {
  font-size: 1.13rem;
  color: #b05e00;
  margin-right: 8px;
  text-shadow: 0 1px 0 #fff7c1;
}
.announcement-banner .banner-list {
  display: inline-block;
  text-align: left;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: disc inside;
  font-weight: 500;
  font-size: 1rem;
}
.announcement-banner .banner-list li {
  margin-bottom: 6px;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .announcement-banner {
    font-size: 0.98rem;
    padding: 12px 4px 8px 4px;
  }
  .announcement-banner .banner-title {
    font-size: 1.01rem;
  }
  .announcement-banner .banner-list {
    font-size: 0.95rem;
    padding-left: 12px;
  }
}

/* Announcement Ticker */
.announcement-ticker {
  background: linear-gradient(90deg, #F9A826 0%, #ffed85 100%);
  color: #1B3A57;
  font-weight: 600;
  font-size: 1.01rem;
  padding: 7px 0 4px 0;
  text-align: left;
  border-bottom: 1.5px solid #f3c13a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  letter-spacing: 0.01em;
  z-index: 1001;
  width: 100%;
}
.announcement-ticker .ticker-title {
  color: #b05e00;
  margin-right: 10px;
  font-size: 1.05rem;
}
.announcement-ticker marquee {
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #1B3A57;
  width: 80%;
}
@media (max-width: 700px) {
  .announcement-ticker {
    font-size: 0.93rem;
    padding: 5px 0 2px 0;
  }
  .announcement-ticker .ticker-title {
    font-size: 0.98rem;
  }
  .announcement-ticker marquee {
    font-size: 0.93rem;
    width: 100%;
  }
}

.announcement-ticker.compact-ticker {
  background: linear-gradient(90deg, #1B3A57 0%, #F9A826 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.01rem;
  padding: 4px 0 2px 0;
  text-align: left;
  border-bottom: 1.5px solid #f3c13a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  letter-spacing: 0.01em;
  z-index: 1001;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.announcement-ticker.compact-ticker .ticker-title {
  color: #fff;
  background: none;
  border-radius: 0;
  padding: 0 10px 0 0;
  font-size: 1.05rem;
  margin-right: 10px;
  font-weight: bold;
  text-shadow: none;
}
.announcement-ticker.compact-ticker marquee {
  font-size: 1rem;
  font-weight: 500;
  background: transparent;
  border: none;
  color: #fff;
  width: 80%;
}
@media (max-width: 700px) {
  .announcement-ticker.compact-ticker {
    font-size: 0.93rem;
    padding: 3px 0 1px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .announcement-ticker.compact-ticker .ticker-title {
    font-size: 0.98rem;
    margin-bottom: 2px;
  }
  .announcement-ticker.compact-ticker marquee {
    font-size: 0.93rem;
    width: 100%;
  }
}

/* Announcement Popup Modal */
.announcement-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 42, 60, 0.45);
  justify-content: center;
  align-items: center;
}
.announcement-modal.active {
  display: flex;
}
.announcement-modal-content {
  background: linear-gradient(90deg, #1B3A57 0%, #F9A826 100%);
  color: #fff;
  padding: 28px 32px 22px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 420px;
  width: 90vw;
  text-align: left;
  position: relative;
  font-size: 1.08rem;
}
.announcement-modal-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: bold;
  letter-spacing: 0.01em;
}
.announcement-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: #fff3;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
}
.announcement-modal-close:hover {
  background: #F9A826;
  color: #1B3A57;
}
@media (max-width: 600px) {
  .announcement-modal-content {
    padding: 16px 8px 14px 12px;
    font-size: 0.98rem;
    max-width: 98vw;
  }
  .announcement-modal-content h3 {
    font-size: 1.05rem;
  }
}

/* Slide-in Announcement Panel */
.announcement-slide-panel {
  position: fixed;
  top: 40px;
  right: -370px;
  width: 340px;
  max-width: 90vw;
  min-width: 220px;
  min-height: 120px;
  height: auto;
  background: linear-gradient(90deg, #1B3A57 0%, #F9A826 100%);
  color: #fff;
  z-index: 2000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  border-radius: 10px 0 0 10px;
  padding: 22px 24px 18px 20px;
  transition: right 0.4s cubic-bezier(.77,0,.18,1);
  font-size: 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.announcement-slide-panel.active {
  right: 0;
}
.announcement-slide-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: #fff;
  color: #1B3A57;
  border: 2px solid #F9A826;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}
.announcement-slide-close:hover {
  background: #F9A826;
  color: #1B3A57;
  border: 2px solid #1B3A57;
}
.announcement-slide-tab {
  position: fixed;
  right: 24px;
  top: 46%;
  bottom: unset;
  transform: translateY(-46%);
  z-index: 2001;
  background: linear-gradient(90deg, #1B3A57 0%, #F9A826 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.3s;
}
.announcement-slide-tab:hover {
  background: linear-gradient(90deg, #F9A826 0%, #ffed85 100%);
  transform: translateY(-46%);
}
.announcement-slide-tab .tab-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.announcement-slide-tab .tab-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
}
@media (max-width: 600px) {
  .announcement-slide-tab {
    top: 46%;
    bottom: unset;
    transform: translateY(-46%);
  }

  .announcement-slide-tab:hover {
    top: 46%;
    transform: translateY(-46%);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    background-color: white;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .nav a, .nav .dropbtn {
    padding: 15px 20px;
    text-align: left;
    display: block;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #f8f9fa;
    margin-top: 0;
    width: 100%;
    text-align: left;
  }

  .dropdown-content a {
    text-align: left;
    padding-left: 40px;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .why-us {
    padding: 30px 15px;
  }

  .why-us h2 {
    font-size: 1.5rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .feature {
    padding: 15px;
  }

  .programs {
    padding: 30px 15px;
  }

  .programs h2 {
    font-size: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
  }

  .card {
    padding: 15px;
  }

  .footer {
    padding: 30px 15px 15px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .footer p,
  .footer a {
    font-size: 0.9rem;
  }

  .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
  }

  .cta-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Tablet Responsiveness */
@media (max-width: 1024px) and (min-width: 769px) {
  .features {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .header {
    padding: 15px;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hero {
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .why-us, .programs {
    padding: 25px 10px;
  }

  .feature, .card {
    padding: 12px;
  }

  .footer {
    padding: 20px 10px 10px;
  }

  .footer-container {
    gap: 20px;
  }

  .footer h3 {
    font-size: 0.95rem;
  }

  .footer p,
  .footer a {
    font-size: 0.85rem;
  }
}

/* Original CSS for other pages - keeping unchanged */
.about {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
  font-size: 1rem;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h1,
.about-section h2 {
  color: #1B3A57;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.about-section p {
  margin-bottom: 15px;
  color: #333;
}

.course-page {
  padding: 60px 20px;
  max-width: 900px;
  margin: auto;
}

.course-header h1 {
  font-size: 2rem;
  color: #1B3A57;
  margin-bottom: 15px;
}

.course-header p {
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.modules h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #1B3A57;
}

.module-list details {
  background-color: white;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  cursor: pointer;
}

.module-list summary {
  font-weight: bold;
  cursor: pointer;
  color: #1B3A57;
}

.module-list ul {
  margin-top: 10px;
  padding-left: 20px;
}

.module-list li {
  margin-bottom: 5px;
}

.enroll-container {
  text-align: center;
  margin-top: 40px;
}

.enroll-container .cta-btn {
  font-size: 1rem;
  padding: 14px 30px;
}

.contact-page {
  padding: 60px 20px;
  max-width: 800px;
  margin: auto;
}

.contact-info h1,
.social-links h2 {
  color: #1B3A57;
  margin-bottom: 20px;
}

.contact-info p,
.social-links p {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.social-links a {
  color: #1B3A57;
  font-weight: 500;
  text-decoration: underline;
}