/* Custom styles that extend Tailwind */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
:root {
  --primary: #017c39;
  --bg-color: #ffffff;
  --text-color: #4b5563; /* gray-600 equivalent */
  --card-radius: 16px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);

  --secondary: #f0b323;
  --accent: #4caf50;
  --light: #f5f7fa;
  --dark: #333333;
  --gray: #6c757d;
  --light-gray: #e9ecef;

  --radius: 12px;
}
/* Highlight style */
.search-highlight {
  background-color: yellow;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
  background-color: white;
  position: relative;
}
/* Top Bar */
.top-bar {
  background: linear-gradient(65deg, #2a2a2a, black);
  color: #fff;
  font-size: 0.75rem;
}

.top-bar-inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Contact Info */
.top-bar-contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-contact p {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  font-size: 0.7rem;

  i {
    font-size: 1rem;
  }
}

/* Actions */
.top-bar-actions {
  display: flex;
  gap: 0.75rem;
}

/* Buttons */
.top-btn {
  background-color: #fff;
  color: var(--primary);
  padding: 0.45rem 1.25rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-size: 0.75rem;
  text-align: center;
}

.top-btn:hover {
  background-color: var(--primary);
  color: white;
}
.top-btn:active {
  transform: scale(0.9);
}

/* 🔹 Responsive */
@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .top-bar-contact {
    justify-content: center;
    gap: 0.75rem;
  }

  .top-bar-actions {
    width: 100%;
    justify-content: center;
  }

  .top-btn {
    width: 100%;
    max-width: 220px;
  }
}

header {
  position: sticky;
  top: 0px;
  z-index: 50;
  background-color: white;
  /*   background: linear-gradient(35deg, #017c39, #017c39); */
}
/* Custom scrollbar */
body::-webkit-scrollbar {
  display: none;
}

/* Animation classes */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ======================================= */
/*  HEADER SECTION                     */
/* ======================================= */

/* .main-nav {
} */
.nav-link {
  position: relative;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: black;
  font-weight: 600;
  letter-spacing: 1px;

  .help {
    font-size: 1.2rem;
  }
}
.nav-link:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary) !important;
  transition: width 0.3s ease;
}
.nav-link:hover:after {
  width: 80%;
}
.mobile-menu {
  position: relative;
  width: 100%;
  padding: 0px;
}
.menu-option {
  background-color: var(--primary);
  background-color: white;
  position: absolute;
  width: 100%;
  height: 0px;
  top: 0.95rem;
  overflow: hidden;
  transition: height 0.3s ease-out, padding 0.3s ease-out;
  color: black;
}
.menu-option.open {
  height: 410px;
  padding: 1rem;
  border-bottom: 1px solid #d3d3d377;
}
/* Active link style - highlighted with underline */
.nav-link.active {
  font-weight: bold;
  color: #fff !important;
  color: var(--primary) !important;
}

.nav-link.active:after {
  width: 80% !important; /* Full underline on active page */
}

/* Optional: Slightly brighter on hover even when active */
.nav-link:hover {
  color: var(--primary) !important;
  opacity: 0.9;
}

/* Mobile active item (optional enhancement) */
#mobile-menu button,
#mobile-menu a {
  font-size: 0.865rem;
}
#mobile-menu button:hover,
#mobile-menu a:hover {
  background: #017c3815;
  color: #017c39;
  border-radius: 8px;
}
#mobile-menu a.active {
  background: #017c3815;
  color: #017c39;
  border-radius: 8px;
  font-weight: bold;
}
#mobile-academics-icon {
  transition: transform 0.3s ease;
}
.rotate-180 {
  transform: rotate(180deg);
}

/* ======================================= */
/*  FOOTER SECTION                     */
/* ======================================= */
.footer-link:hover {
  color: white;
  transform: translateX(5px);
}
.social-icon {
  transition: all 0.3s ease;
}
.social-icon:hover {
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.2);
}

/* ------------------------- */
/*        HERO SECTION       */
/* ------------------------- */
#mobile-menu-button {
  display: block;
}
#nav {
  display: none;
}

.hero-section {
  position: relative;
  background: var(
    --primary
  ); /* 
  background-image: url("/assets/design-images/top-8-2024-princ.jpg"); */
  text-align: center;
  align-content: center;
}

.hero,
.hero-section {
  color: white;
  position: relative;
  padding: 5.5rem 0.5rem;
  min-height: 55vh;
  background-size: 220% 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: #001007a9;
  background: rgba(0, 0, 0, 0.65);
}

.hero-content {
  position: relative;
  max-width: 98%;
  margin: 0 auto;
  z-index: 10;
}

.hero {
  background-image: url("/assets/design-images/hero-sm.png");
  background-size: 100% 100%;
  /*  background-size: cover; */

  .container {
    position: relative;
    height: 100%;
    align-content: center;
  }
  .hero-content {
    margin: 0;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 1.5rem; /* Mobile */
    font-weight: 700;
    margin-bottom: 0rem;
    color: white;

    span {
      color: #099e4c;
    }
  }

  .hero-content p {
    font-size: 0.9rem;
    color: white;
  }
}

.hero-content h1 {
  font-size: 1.5rem; /* Mobile */
  font-weight: 700;
  margin-bottom: 0rem;
}

.hero-content p {
  font-size: 0.9rem;
}

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4rem;
  background: #ffffff;
  transform: skewY(-2deg);
  z-index: 10;
}
/* Base Button */
.h-btn {
  display: inline-block;
  padding: 0.611rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: white;
}

.h-btn:hover {
  background-color: white;
  color: var(--primary);
}
.h-btn:active {
  transform: scale(0.9);
}

/* Primary Button */
.btn-primary {
  background-color: #ffffff;
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  background-color: #f3f4f6;
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: var(--primary);
}

/* Responsive (optional) */
@media (max-width: 640px) {
  .btn {
    width: 100%;
    max-width: 320px;
    margin-bottom: 0.75rem;
  }
}

/* ----- Move Up Button ----- */
.bottom-actions {
  position: fixed; /* floating */
  right: 20px; /* distance from right edge */
  bottom: 20px; /* distance from bottom edge */
  z-index: 60;
}

.subscribe {
  background-color: rgb(246, 55, 55);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 10px;
  cursor: pointer;
}

/* Bell animation */
.subscribe i {
  font-size: 22px;
  animation: bell-shake 4s infinite;
  transform-origin: top center;
  font-weight: 500;
}

/* Shake keyframes */
@keyframes bell-shake {
  0% {
    transform: rotate(0);
  }
  2% {
    transform: rotate(15deg);
  }
  4% {
    transform: rotate(-15deg);
  }
  6% {
    transform: rotate(10deg);
  }
  8% {
    transform: rotate(-10deg);
  }
  10% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(0);
  }
}

.moveup {
  width: 50px;
  height: 50px;
  align-content: center;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--primary);
  color: white;
  transition: 0.3s all ease-in-out;

  i {
    display: flex;
    margin: auto;
    font-weight: bold;
  }
}

.subscribe:active,
.moveup:active {
  transform: scale(0.9);
}

/* ================================ */
/*   HEADER     */
/* ================================ */

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.4rem; /* ≈ text-5xl */
  font-weight: 700;
  color: #111;
  margin-bottom: 0rem;
}

.section-subtitle {
  font-size: 0.8rem; /* ≈ text-xl */
  color: #555;
  max-width: 60rem; /* ≈ max-w-5xl */
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 1.5rem;
  }
  .section-title {
    font-size: 2rem; /* md:text-4xl */
  }
  .section-subtitle {
    font-size: 1.2rem; /* ≈ text-xl */
  }
}

.text-white {
  color: white;
}

/* ================================ */
/*   STATS     */
/* ================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat-box {
  padding: 0;
  border-radius: 0.75rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0rem;
}
.stat-number.white,
.stat-label.white {
  color: white;
}

.stat-label {
  color: #4b5563; /* gray-600 */
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stat-label {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
  }
}
/* =============================== */
/*           FOOTER                */
/* =============================== */

.footer-section {
  background: #0d0d0d;
  padding: 5rem 0 2.5rem;
  color: white;
}

/* Titles */
.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Links */
.footer-link {
  color: #b3b3b3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s ease;
  font-size: 0.8rem;
}

.footer-link i {
  font-size: 0.5rem;
}

.footer-link:hover {
  color: white;
  padding-left: 4px;
}

/* Social Icons */
.footer-social {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 0.3s ease;
}

.footer-social:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* Contact Items */
.footer-contact {
  color: #b3b3b3;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-contact i {
  font-size: 0rem;
  margin-top: 3px;
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #8d8d8d;
  font-size: 0.765rem;
}
/* ================================ */
/*   FAQ SECTION                    */
/* ================================ */

.faq-question {
  cursor: pointer;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.faq-answer {
  padding-left: 0.25rem;
  p {
    line-height: 1.6;
    font-size: 0.9rem;
  }
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-open i {
  transform: rotate(180deg);
}

/* ================================ */
/*   VIEW ALL FAQ LINK              */
/* ================================ */

.faq-viewall {
  color: #2563eb;
  font-weight: 500;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-viewall:hover {
  color: #1e40af;
}
/* ================================ */
/*   SUBSCRIBE OVERLAY              */
/* ================================ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.popup-overlay.active {
  overflow: hidden;
}

.popup {
  background: linear-gradient(65deg, #102a1b, #116030);
  border: 1px solid #333;
  padding: 60px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.4s;
}

.popup-overlay.active .popup {
  transform: scale(1);
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.close-popup:hover {
  opacity: 1;
}

.popup h3 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 15px;
  color: white;
}

.popup p {
  color: white;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.7;
  margin-bottom: 40px;
}

.popup input {
  width: 100%;
  padding: 18px;
  background: transparent;
  border: 1px solid white;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 25px;
  transition: border-color 0.3s;
  color: white;
  font-size: 0.765rem;
}

.popup input:focus {
  color: white;
  outline: none;
  border-color: #fff;
}

.popup input::placeholder {
  color: white;
  font-size: 0.765rem;
}

.popup button[type="submit"] {
  width: 100%;
  padding: 18px;
  background: #fff;
  border: none;
  color: #0a0a0a;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
}

.popup button[type="submit"]:hover {
  background: #ddd;
}

.popup button[type="submit"]:active {
  transform: scale(0.95);
}

.success-message {
  display: none;
  text-align: center;
  padding: 40px;
}

.success-message.show {
  display: block;
}

.success-message h3 {
  font-size: 28px;
  margin-bottom: 15px;
}
@media (max-width: 768px) {
  .popup {
    padding: 40px 25px;
    max-width: 90%;
  }

  .popup h3 {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .popup p {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
  }

  .popup input {
    padding: 14px;
    font-size: 0.75rem;
  }

  .popup input::placeholder {
    font-size: 0.5rem;
  }
  .popup button[type="submit"] {
    padding: 14px;
    font-size: 12px;
  }

  .close-popup {
    font-size: 26px;
    top: 15px;
    right: 15px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .popup {
    padding: 30px 20px;
  }

  .popup h3 {
    font-size: 22px;
  }

  .popup p {
    font-size: 11px;
  }

  .success-message {
    padding: 20px;
  }
}

/* Prevent overflow on short screens */
@media (max-height: 600px) {
  .popup-overlay {
    align-items: flex-start;
    padding: 20px;
  }

  .popup {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
}
/* ================================== */
/*  FORM FIELDS  */
/* ================================== */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.form-input::placeholder {
  font-size: 0.765rem;
}

.form-input:disabled {
  background: lightgray;
}
.form-input:focus {
  outline: none;
  border-color: #017c39;
  box-shadow: 0 0 0 3px rgba(1, 124, 57, 0.1);
}

.form-input.error {
  border-color: #dc2626;
}
/* ================================== */
/*  VIDEO STYLE  */
/* ================================== */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  cursor: pointer;
}

.video-wrapper video {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allows clicks to pass through to video controls once visible */
}

.video-wrapper:hover .play-overlay {
  background: rgba(0, 0, 0, 0.55);
}

/* Hide overlay when video is playing */
.video-wrapper.playing .play-overlay {
  opacity: 0;
}

.custom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem; /* same as gap-12 */
  width: 100%;
}

/* Medium screens and up (≥768px) */
@media (min-width: 768px) {
  .custom-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .custom-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
