/* Root variables for theming */
:root {
  --primary-blue: #be2ed6; /* Dark blue for top bar and hero overlay */
  --primary-green: #37a246; /* Green for buttons, active links */
  --text-dark: #2e3a4b; /* Dark text for headings */
  --text-grey: #6a7a8c; /* Grey text for links and small text */
  --bg-white: #ffffff;
  --border-color: #e6eaef;

  --footer-bg: #35063e; /* Dark purple for footer background */
  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Layout Core */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= Top Bar ================= */
.top-bar {
  background-color: var(--footer-bg);
  color: #a2abba;
  font-size: 13px;
  height: 44px;
  display: flex;
  align-items: center;
}

.top-bar-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-item:hover {
  color: #fff;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-right a:not(.btn-support):hover {
  color: #fff;
}

.btn-support {
  background-color: var(--primary-green);
  color: #fff !important;
  font-weight: 600;
  padding: 0 20px;
  height: 44px;
  display: flex;
  align-items: center;
  margin-left: 20px;
}
.btn-support:hover {
  background-color: #2f8a3c;
}

/* ================= Main Header ================= */
.main-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 10;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #be2ed6;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-grey);
  letter-spacing: 0.5px;
}

.mobile-nav-toggle {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav ul li a {
  font-size: 14px;
  font-weight: 600;
  color: #4a5568;
  position: relative;
  padding-bottom: 30px; /* space for active indicator */
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--primary-green);
}

/* Mega Menu Variables & Styles */
.has-mega-menu {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background-color: var(--bg-white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--primary-green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s ease;
  z-index: 100;
  border-radius: 0 0 4px 4px;
}

.has-mega-menu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-content {
  padding: 20px 0;
}

.mega-menu-list {
  list-style: none;
  display: flex !important;
  gap: 0 !important;
  flex-direction: column;
}

.mega-menu-list li {
  margin: 0;
}

.mega-menu-list li a {
  display: block;
  padding: 12px 25px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-dark) !important;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease !important;
}

.mega-menu-list li:last-child a {
  border-bottom: none;
}

.mega-menu-list li a i {
  color: var(--primary-green);
  margin-right: 8px;
  font-size: 12px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.mega-menu-list li a:hover {
  color: var(--primary-green) !important;
  padding-left: 30px !important;
  background-color: #f8fafc;
}

.mega-menu-list li a:hover i {
  opacity: 1;
  transform: translateX(0);
}

.main-nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-green);
}

.search-icon a {
  color: #a0abc0;
  font-size: 16px;
}
.search-icon a:hover {
  color: var(--primary-green);
}

/* ================= Hero Slider Section ================= */
.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  background-color: var(--primary-blue);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: local;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    visibility 0.8s ease;
  transform: scale(1.05); /* Slight zoom for transition */
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(190, 46, 214, 0.95) 0%,
    rgba(190, 46, 214, 0.8) 50%,
    rgba(190, 46, 214, 0) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 40px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
}

.hero-slide.active .hero-subtitle {
  animation: slideUpFade 0.8s forwards 0.3s;
}

.hero-slide.active .hero-title {
  animation: slideUpFade 0.8s forwards 0.5s;
}

.hero-slide.active .btn-primary {
  animation: fadeLeft 0.8s forwards 0.7s;
  opacity: 0;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slider Controls */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

.slider-prev {
  left: 30px;
}

.slider-next {
  right: 30px;
}

.slider-dots {
  position: absolute;
  bottom: 80px; /* Above the overlapping cards */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.slider-dot.active {
  background-color: var(--primary-green);
  transform: scale(1.2);
}

.btn-primary {
  display: inline-block;
  background-color: #ffffff;
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 36px;
  border-left: 4px solid var(--primary-green);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-green);
}

/* ================= Info Cards Section ================= */
.info-cards-section {
  background-color: var(--bg-white);
  padding: 0;
}

.info-cards-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  position: relative;
  top: -50px;
  z-index: 10;
  border-radius: 4px;
  overflow: hidden;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 40px 30px;
  border-right: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.info-card:last-child {
  border-right: none;
}

.info-card:hover {
  background-color: #f8fafc;
}

.card-icon {
  font-size: 32px;
  color: var(--text-dark);
}

.card-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.card-text p {
  font-size: 13px;
  color: var(--text-grey);
}

/* ================= Utilities ================= */
.pt-100 {
  padding-top: 100px;
}
.pb-100 {
  padding-bottom: 100px;
}
.pt-80 {
  padding-top: 80px;
}
.pb-60 {
  padding-bottom: 60px;
}
.mt-30 {
  margin-top: 30px;
}
.mt-50 {
  margin-top: 50px;
}
.mb-30 {
  margin-bottom: 30px;
}
.mb-50 {
  margin-bottom: 50px;
}
.text-center {
  text-align: center;
}
.bg-light {
  background-color: #f8fafc;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 25px;
}

.title-separator {
  width: 60px;
  height: 3px;
  background-color: var(--primary-green);
  margin: 0 auto;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-blue);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border: 2px solid var(--primary-blue);
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background-color: var(--primary-blue);
  color: #fff;
}

/* ================= About Us Section ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  color: var(--text-grey);
  margin-bottom: 30px;
}

.about-features {
  list-style: none;
  margin-bottom: 30px;
}

.about-features li {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.about-features li i {
  color: var(--primary-green);
  font-size: 18px;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  padding: 20px 0 0 20px;
}

.about-image-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-green);
  z-index: 1;
}

.about-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  box-shadow: -15px -15px 0 0 var(--bg-white);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--primary-blue);
  color: #fff;
  padding: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.exp-years {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-green);
  line-height: 1;
}

.exp-text {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ================= Featured Courses Section ================= */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.course-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.course-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.course-card:hover .course-img {
  transform: scale(1.05);
}

.course-category {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 3px;
  z-index: 2;
}

.course-content {
  padding: 30px;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--text-grey);
}

.course-meta span i {
  color: var(--primary-green);
  margin-right: 5px;
}

.course-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.course-title a:hover {
  color: var(--primary-green);
}

.course-desc {
  font-size: 14px;
  color: var(--text-grey);
  margin-bottom: 25px;
}

.course-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.course-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.course-link:hover {
  color: var(--primary-green);
}

/* ================= Blog Section ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(190, 46, 214, 0.1);
}

.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.1);
}

.blog-date {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #f7a800;
  color: #fff;
  padding: 8px 15px;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  font-size: 14px;
  z-index: 1;
}

.blog-date span {
  font-size: 18px;
}

.blog-content {
  padding: 30px;
}

.blog-category {
  color: var(--primary-green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--primary-blue);
}

.blog-desc {
  color: var(--text-grey);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.read-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  color: var(--primary-green);
}

@media (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ================= Mobile Responsive Styles ================= */

/* Media queries moved to end of file for correct override behavior */

/* ================= Footer Section ================= */
.main-footer {
  background-color: var(--footer-bg);
  color: #a2abba;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 50px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.footer-logo-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
}

.widget-about p {
  font-size: 15px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-green);
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 30px;
}

.widget-links ul {
  list-style: none;
}

.widget-links li {
  margin-bottom: 15px;
}

.widget-links a {
  font-size: 15px;
  transition:
    color 0.3s ease,
    padding-left 0.3s ease;
}

.widget-links a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-info li i {
  color: var(--primary-green);
  font-size: 18px;
  margin-top: 3px;
}

.footer-bottom {
  background-color: #2a0531; /* Slightly darker shade for the very bottom */
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 14px;
}
.footer-bottom-links a:hover {
  color: #fff;
}

/* ================= Global Utility Classes ================= */
.pt-100 {
  padding-top: 100px;
}
.pb-100 {
  padding-bottom: 100px;
}
.pt-80 {
  padding-top: 80px;
}
.pb-80 {
  padding-bottom: 80px;
}
.pt-60 {
  padding-top: 60px;
}
.pb-60 {
  padding-bottom: 60px;
}
.mb-30 {
  margin-bottom: 30px;
}
.text-center {
  text-align: center;
}

/* ================= Footer Section ================= */
.nav-chevron {
  font-size: 10px;
  margin-left: 5px;
}

.blog-section-alt {
  background-color: #f8fafc;
}

.section-subtitle-alt {
  color: #f7a800 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
  display: block !important;
}

.section-title-alt {
  font-family: "Playfair Display", serif !important;
  font-size: 42px !important;
  color: #be2ed6 !important;
}

.title-line-alt {
  width: 70px;
  height: 3px;
  background: #be2ed6;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
}

.modal-meta-alt {
  margin-bottom: 20px;
  color: #64748b;
  font-size: 14px;
}

/* ================= History Page Styles ================= */

.page-banner {
  position: relative;
  padding: 120px 0;
  text-align: center;
  color: white;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.history-banner {
  background-image: url("assets/hero_slide_2.png");
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(190, 46, 214, 0.85);
}

.banner-content {
  position: relative;
  z-index: 1;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 48px;
  margin-bottom: 15px;
}

.breadcrumb {
  font-size: 16px;
}

.breadcrumb a {
  color: var(--primary-accent);
  text-decoration: none;
}

.breadcrumb-separator {
  margin: 0 10px;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-header .section-title {
  font-size: 36px;
  color: var(--primary-purple);
  margin-bottom: 20px;
}

.section-desc {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

/* Timeline */
.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 80px;
}

.timeline-line {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  z-index: 1;
}

.timeline-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.timeline-item {
  text-align: center;
  width: 25%;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border: 4px solid white;
  border-radius: 50%;
  margin: 0 auto 15px;
  position: relative;
  z-index: 3;
}

.dot-purple {
  background: var(--primary-purple);
  box-shadow: 0 0 0 4px rgba(190, 46, 214, 0.2);
}

.dot-orange {
  background: var(--primary-accent);
  box-shadow: 0 0 0 4px rgba(247, 168, 0, 0.2);
}

.dot-grey {
  background: #e5e7eb;
}

.timeline-year {
  font-family: var(--font-heading);
  color: var(--primary-accent);
  font-size: 24px;
  margin-bottom: 5px;
}

.timeline-desc {
  font-weight: 600;
  color: var(--primary-purple);
  font-size: 14px;
}

.text-grey {
  color: #a0aec0;
}

/* History Content Grids */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.mb-80 {
  margin-bottom: 80px;
}

.history-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.history-title {
  font-family: var(--font-heading);
  color: var(--primary-purple);
  font-size: 28px;
  margin-bottom: 20px;
}

.history-desc {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.history-image-staggered .staggered-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.history-img-sm {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.img-stagger {
  margin-top: 30px;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #555;
  font-weight: 500;
}

.history-list li {
  margin-bottom: 10px;
}

.history-list i {
  color: var(--primary-accent);
  margin-right: 10px;
}

/* ================= Mission & Vision Page Styles ================= */

.mission-banner {
  background-image: url("assets/hero_slide_3.png") !important;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}

.mv-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.mv-card:hover {
  transform: translateY(-5px);
}

.mv-image-box {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.mv-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-icon-badge {
  position: absolute;
  bottom: -25px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  z-index: 2;
}

.badge-orange {
  background: var(--primary-accent);
  box-shadow: 0 5px 15px rgba(247, 168, 0, 0.4);
}

.badge-purple {
  background: var(--primary-purple);
  box-shadow: 0 5px 15px rgba(190, 46, 214, 0.4);
}

.mv-content-box {
  padding: 40px 30px;
  position: relative;
  flex-grow: 1;
}

.mv-subtitle {
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
  font-size: 14px;
}

.mv-title {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 20px;
}

.mv-text {
  color: #555;
  font-size: 16px;
  line-height: 1.8;
}

.color-orange {
  color: var(--primary-accent) !important;
}

.color-purple {
  color: var(--primary-purple) !important;
}

.mb-40 {
  margin-bottom: 40px !important;
}

.title-line-center {
  width: 60px;
  height: 3px;
  background: var(--primary-accent);
  margin: 15px auto 0;
}

/* Goals Section */
.goals-section {
  background: #f4f7fa;
  border-radius: 12px;
  padding: 60px 50px;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.goal-item {
  display: flex;
  gap: 20px;
}

.goal-icon {
  color: var(--primary-accent);
  font-size: 24px;
  padding-top: 5px;
}

.goal-title {
  font-family: var(--font-heading);
  color: var(--primary-purple);
  font-size: 20px;
  margin-bottom: 10px;
}

.goal-text {
  color: #555;
  line-height: 1.6;
}

/* ================= Academic Calendar Page Styles ================= */

.calendar-banner {
  background-image: url("assets/137668771_110758110929687_1300181901622902668_n.jpg") !important;
  background-position: center 40% !important;
}

.calendar-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  border-bottom: 2px solid #eee;
  padding-bottom: 15px;
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 24px;
  color: #777;
  cursor: pointer;
  padding: 10px 20px;
  position: relative;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--primary-accent);
  font-weight: 700;
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-purple);
}

.calendar-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.calendar-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.semester-table-wrapper {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  overflow: hidden;
  margin-bottom: 40px;
}

.semester-header {
  background: var(--primary-purple);
  color: white;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.semester-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 0;
}

.semester-header i {
  color: var(--primary-accent);
  font-size: 24px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th,
.calendar-table td {
  padding: 20px 30px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.calendar-table th {
  background: #f9fbfd;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.calendar-table tr:last-child td {
  border-bottom: none;
}

.calendar-table tr:hover td {
  background-color: #fcfcfc;
}

.date-col {
  width: 25%;
  font-weight: 600;
  color: var(--primary-purple);
}

.event-col {
  width: 55%;
  color: #555;
}

.type-col {
  width: 20%;
}

.event-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-academic {
  background: rgba(190, 46, 214, 0.1);
  color: var(--primary-purple);
}

.badge-holiday {
  background: rgba(247, 168, 0, 0.15);
  color: #d99100;
}

.badge-deadline {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.download-section {
  background: #f4f7fa;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.download-text {
  text-align: left;
}

.download-text h4 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--primary-purple);
  margin-bottom: 15px;
}

.download-text p {
  color: #666;
  margin: 0;
}

.btn-download {
  background: var(--primary-accent);
  color: var(--primary-purple);
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-download:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
}

/* ================= Mobile Responsive Styles (Moved to end for correct override) ================= */

@media (max-width: 991px) {
  .container {
    padding: 0 30px !important;
  }

  .header-container {
    padding: 15px 0;
  }

  .main-nav {
    display: none; /* Hide desktop nav */
  }

  /* Hamburger Toggle */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    z-index: 1001;
  }

  .main-nav.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 30px;
    overflow-y: auto;
    transition: transform 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
  }

  /* Mega Menu adjustment for mobile */
  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    width: 100%;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-mega-menu.active .mega-menu {
    max-height: 500px;
  }

  .top-bar {
    display: none; /* Hide info bar on small screens to save space */
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .info-cards-container {
    grid-template-columns: repeat(2, 1fr);
    top: -30px;
  }

  .section-title {
    font-size: 32px;
  }

  /* Tablet Footer Grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px;
  }

  .footer-widget {
    margin-bottom: 20px;
  }

  /* History Page Tablet */
  .history-banner {
    padding: 80px 0;
  }

  .banner-title {
    font-size: 36px;
  }

  .history-grid {
    gap: 30px;
  }

  /* Mission & Vision Tablet */
  .mv-grid {
    gap: 30px;
  }

  .goals-section {
    padding: 40px 30px;
  }

  /* Academic Calendar Tablet */
  .calendar-tabs {
    gap: 10px;
  }

  .tab-btn {
    font-size: 20px;
    padding: 10px 15px;
  }

  .download-section {
    padding: 30px;
  }
}

@media (max-width: 767px) {
  .about-grid,
  .courses-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
    text-align: center;
  }

  .info-cards-container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .slider-nav {
    display: none; /* Hide carousel arrows on mobile */
  }

  .experience-badge {
    right: 10px;
    bottom: -10px;
    padding: 15px;
  }

  .exp-years {
    font-size: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  /* Footer Mobile Specifics */
  .footer-brand {
    justify-content: center;
    text-align: center;
  }

  .widget-about p {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .widget-title {
    text-align: center;
    margin-bottom: 20px;
  }

  .widget-links ul {
    text-align: center;
  }

  .contact-info li {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
  }

  .contact-info li i {
    margin-top: 0;
    font-size: 20px;
  }

  /* Responsive Spacing Overrides */
  .pt-80 { padding-top: 50px !important; }
  .pb-60 { padding-bottom: 40px !important; }
  .pt-100 { padding-top: 60px !important; }
  .pb-100 { padding-bottom: 60px !important; }

  /* History Page Mobile */
  .history-banner {
    padding: 60px 0;
  }

  .banner-title {
    font-size: 28px;
  }

  .section-header .section-title {
    font-size: 26px;
  }

  .timeline-wrapper {
    padding-left: 15px;
    margin-bottom: 50px;
  }

  .timeline-line {
    width: 2px;
    height: 100%;
    top: 0;
    left: 11px;
    transform: none;
  }

  .timeline-container {
    flex-direction: column;
    gap: 30px;
  }

  .timeline-item {
    width: 100%;
    text-align: left;
    padding-left: 45px;
    position: relative;
  }

  .timeline-dot {
    margin: 0;
    position: absolute;
    left: 0;
    top: 5px;
  }

  .history-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .history-title {
    font-size: 22px;
  }

  .history-list {
    text-align: left;
    display: inline-block;
  }

  .img-stagger {
    margin-top: 0;
  }

  .order-md-1 {
    order: -1;
  }

  /* Mission & Vision Mobile */
  .mv-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .mv-title {
    font-size: 26px;
  }

  .mv-image-box {
    height: 200px;
  }

  .mv-icon-badge {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: -20px;
    right: 20px;
  }

  .goals-section {
    padding: 40px 20px;
  }

  .goals-grid {
    grid-template-columns: 1fr !important;
  }

  .goal-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .goal-icon {
    font-size: 32px;
    padding-top: 0;
  }

  /* Academic Calendar Mobile */
  .calendar-tabs {
    flex-wrap: wrap;
    gap: 5px;
  }

  .tab-btn {
    font-size: 16px;
    padding: 12px;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
  }

  .tab-btn.active::after {
    display: none;
  }

  .tab-btn.active {
    background: var(--primary-accent);
    color: var(--primary-purple);
    border-color: var(--primary-accent);
    font-weight: 700;
  }

  .calendar-table thead {
    display: none;
  }

  .calendar-table,
  .calendar-table tbody,
  .calendar-table tr,
  .calendar-table td {
    display: block;
    width: 100%;
  }

  .calendar-table tr {
    border-bottom: 2px solid #eee;
    padding: 15px 0;
  }

  .calendar-table td {
    padding: 8px 15px;
    border: none;
    position: relative;
    padding-left: 100px;
  }

  .calendar-table td::before {
    position: absolute;
    left: 15px;
    width: 80px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
  }

  .calendar-table td:nth-child(1)::before {
    content: "Date:";
  }
  .calendar-table td:nth-child(2)::before {
    content: "Event:";
  }
  .calendar-table td:nth-child(3)::before {
    content: "Type:";
  }

  .date-col,
  .event-col,
  .type-col {
    width: 100% !important;
  }

  .download-section {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }

  .download-text {
    text-align: center;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* ================= Application Modal Styles ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(53, 6, 62, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.modal-overlay.active {
  display: flex;
  opacity: 1;
}
.app-modal-container {
  background: white;
  width: 90%;
  max-width: 650px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .app-modal-container {
  transform: translateY(0);
}
.modal-header-app {
  background: #be2ed6;
  padding: 30px;
  color: white;
  position: relative;
}
.modal-header-app h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 5px;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
}
.app-form-body {
  padding: 40px;
}
.form-step {
  display: none;
  animation: fadeInStep 0.4s ease;
}
.form-step.active {
  display: block;
}
@keyframes fadeInStep {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}
.step-indicator {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}
.indicator-dot {
  height: 6px;
  flex: 1;
  background: #eee;
  border-radius: 10px;
  transition: background 0.3s;
}
.indicator-dot.active {
  background: #f7a800;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}
.form-group input, .form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
  font-size: 15px;
}
.form-group input:focus, .form-group select:focus {
  border-color: #be2ed6;
  outline: none;
}
.checklist-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: border-color 0.3s;
}
.checklist-row:hover {
  border-color: #be2ed6;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.checklist-item input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.file-upload-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 30px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
}
.file-upload-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #be2ed6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.file-upload-btn:hover {
  background: #be2ed6;
  color: white;
  border-color: #be2ed6;
}
.file-input-hidden {
  display: none;
}
.file-status {
  font-size: 12px;
  color: #888;
  font-style: italic;
}
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}
.btn-nav {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.btn-prev {
  background: #f4f7fa;
  color: #666;
}
.btn-next {
  background: #be2ed6;
  color: white;
}
.btn-submit {
  background: #37a246;
  color: white;
}
.success-state {
  text-align: center;
  padding: 40px 0;
}
.success-icon {
  font-size: 60px;
  color: #37a246;
  margin-bottom: 20px;
  display: block;
}

/* Detail Modals (Programs, Colleges, etc.) */
.college-modal-container {
  background: white;
  width: 100%;
  max-width: 650px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin: 20px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-overlay.active .college-modal-container {
  transform: translateY(0);
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
}
.close-modal:hover {
  background: rgba(255, 255, 255, 0.4);
}
.modal-body {
  overflow-y: auto;
  padding: 40px;
}
.modal-description {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
}
