/*
Theme Name: MAIS - 2026
Author: trivia info it
Author URI: http://trivia.co.in/
Description: Bootstrap based wp theme for Maharaja Agrasen International School. 
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* 1. VARIABLES & BASE RE-SETS */
:root {
  --primary-color: #00458e;
  --primary-dark: #002244;
  --secondary-color: #f6ba00; /* CBSE Yellow */
  --accent-color: #f6ba00;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-white: #ffffff;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --light-bg: #f8f9fa;
  --radius-lg: 20px;
  --radius-md: 12px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 69, 142, 0.15);
}

/*Wordpress editor styles start*/
.entry-content img {
  margin: 0 0 1.5em 0;
}
.alignleft,
img.alignleft {
  margin-right: 1.5em;
  display: inline;
  float: left;
}
.alignright,
img.alignright {
  margin-left: 1.5em;
  display: inline;
  float: right;
}
.aligncenter,
img.aligncenter {
  margin-right: auto;
  margin-left: auto;
  display: block;
  clear: both;
}
.alignnone,
img.alignnone {
  /* not sure about this one */
}
.wp-caption {
  margin-bottom: 1.5em;
  text-align: center;
  padding-top: 5px;
}
.wp-caption img {
  border: 0 none;
  padding: 0;
  margin: 0;
}
.wp-caption p.wp-caption-text {
  line-height: 1.5;
  font-size: 10px;
  margin: 0;
}
.wp-smiley {
  margin: 0 !important;
  max-height: 1em;
}
blockquote.left {
  margin-right: 20px;
  text-align: right;
  margin-left: 0;
  width: 33%;
  float: left;
}
blockquote.right {
  margin-left: 20px;
  text-align: left;
  margin-right: 0;
  width: 33%;
  float: right;
}
/*Wordpress editor styles end*/

body,
html {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  overflow-x: clip; /* FIXED: Changed from hidden to clip to allow position:sticky to work! */
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--primary-dark);
}

.font-playfair {
  font-family: "Playfair Display", serif !important;
}

.section-padding {
  padding: 120px 0;
}

.section-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: block;
}

/* --- 2. NAVIGATION & MEGA MENU --- */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 10px 0;
  transition: var(--transition);
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.top-bar a:hover {
  color: var(--secondary-color);
}

.header-wrapper {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0;
  transition: var(--transition);
}

.header-wrapper.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header-wrapper.scrolled .top-bar {
  height: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}

.navbar-custom {
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-brand {
  display: flex;
  gap: 20px;
  font-family: "Playfair Display", serif;
  color: var(--primary-dark) !important;
  font-size: 1.2rem;
  font-weight: 700;
}

.navbar-brand img {
  width: 75px;
}

.navbar-brand .brand-sub {
  margin-top: 12px;
  color: var(--primary-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  color: var(--primary-dark) !important;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 10px 15px !important;
  border-radius: 20px;
  transition: 0.3s ease;
}

.nav-link:hover,
.nav-item.dropdown:hover .nav-link,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* Animated Underline for all links except the last one */
.navbar-nav .nav-item:not(:last-child) .nav-link {
  position: relative;
}

.navbar-nav .nav-item:not(:last-child) .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 5px;
  left: 50%;
  background-color: var(--accent-color);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
  border-radius: 2px;
}

.navbar-nav .nav-item:not(:last-child):hover .nav-link::after,
.navbar-nav .nav-item.dropdown:hover .nav-link::after,
.navbar-nav .nav-item .nav-link.active::after {
  width: 70%;
}

/* CTA Button Styling for the last item (Contact Us) */
.navbar-nav .nav-item:last-child {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-item:last-child .nav-link {
  background-color: var(--accent-color) !important;
  color: var(--primary-dark) !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  margin-left: 10px;
  box-shadow: 0 4px 15px rgba(246, 186, 0, 0.3);
  font-weight: 700;
  white-space: nowrap;
}

.navbar-nav .nav-item:last-child .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246, 186, 0, 0.5);
  color: var(--primary-dark) !important;
}

/* Dropdown & Mega Menu Alignment */
.dropdown-menu {
  border: none;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 15px 0;
  margin-top: 0;
}

@media (min-width: 1200px) {
  .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* Dropdown Pointer Arrow */
  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 25px;
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
  }

  .nav-item.dropdown .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  padding: 10px 25px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: 0.3s;
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-item i {
  color: var(--accent-color);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: 0.3s;
  margin-right: 10px;
  position: absolute;
  left: 10px;
}

.dropdown-item:hover {
  background-color: rgba(246, 186, 0, 0.05);
  color: var(--primary-color);
}

.dropdown-item:hover i {
  opacity: 1;
  transform: translateX(0);
}

.dropdown-item span {
  transition: 0.3s;
}

.dropdown-item:hover span {
  transform: translateX(15px);
}

/* Multi-column dropdowns for large menus (Desktop only) */
@media (min-width: 1200px) {
  .dropdown-menu.dropdown-menu-2col {
    column-count: 2;
    column-gap: 20px;
    min-width: 480px;
    padding: 15px;
  }

  .dropdown-menu.dropdown-menu-2col > li {
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
  }
}

.dropdown-toggle::after {
  display: none;
}

/* Mega Menu Specifics */
.mega-menu {
  width: 100%;
  max-width: 1140px;
  left: 50% !important;
  transform: translateX(-50%) translateY(15px) !important;
  padding: 40px;
}

@media (min-width: 1200px) {
  .nav-item.dropdown:hover .mega-menu {
    transform: translateX(-50%) translateY(0) !important;
  }
}

.mega-menu-title {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 10px;
}

.mega-menu-list {
  list-style: none;
  padding-left: 0;
}

.mega-menu-list a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 8px 0;
  transition: var(--transition);
}

.mega-menu-list a:hover {
  color: var(--primary-color);
  padding-left: 10px;
}

/* Mobile Menu Styling */
@media (max-width: 1199px) {
  .navbar-collapse {
    background-color: var(--bg-white, #ffffff);
    padding: 20px;
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    z-index: 1050;
    margin-top: 15px;
  }

  .navbar-nav {
    align-items: flex-start !important;
  }

  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-item:last-child {
    border-bottom: none;
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 12px 0 !important;
  }

  /* Fix the CTA button width on mobile */
  .navbar-nav .nav-item:last-child .nav-link {
    text-align: center;
    width: 100%;
    margin-left: 0;
  }

  /* Adjust sub-menus for mobile */
  .dropdown-menu {
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 15px;
    margin-top: 0;
    border-radius: 0;
  }

  .dropdown-item {
    padding: 8px 15px;
  }
}

/* --- 3. BUTTONS --- */
.btn-gold {
  background: var(--accent-color);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 50px;
  padding: 14px 35px;
  border: 2px solid var(--accent-color);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.btn-gold:hover {
  background: transparent;
  color: var(--accent-color);
  transform: translateY(-3px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  border-radius: 50px;
  padding: 14px 35px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

.hover-lift {
  transition: var(--transition);
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

/* --- 4. HERO SECTIONS (Homepage & Internal) --- */
/* Homepage Hero */
.hero-section {
  padding: 200px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  position: relative;
  z-index: 5;
}

.hero-title {
  font-size: clamp(3.5rem, 5vw, 6rem);
  line-height: 1.05;
  margin-bottom: 25px;
  letter-spacing: -1px;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 90%;
  line-height: 1.8;
}

.hero-img-wrapper {
  position: relative;
  height: 650px;
  width: 100%;
}

.hero-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  height: 85%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.hero-img-secondary {
  position: absolute;
  bottom: 40px;
  left: -20px;
  width: 55%;
  height: 50%;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 12px solid var(--bg-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

/* Rotating Badge */
.rotating-badge {
  position: absolute;
  top: 10%;
  left: -5%;
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 4;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.rotating-text {
  position: absolute;
  inset: 5px;
  animation: spin 15s linear infinite;
}
.rotating-text svg {
  width: 100%;
  height: 100%;
}
.rotating-text text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  fill: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rotating-badge-icon {
  position: absolute;
  font-size: 2.2rem;
  color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Internal Page Banner Hero */
.page-title-banner {
  background: var(--light-bg);
  padding: 160px 0 60px; /* Accounts for fixed header */
  margin-bottom: 50px;
  border-bottom: 1px solid #eaeaea;
}
.internal-hero-title {
  font-size: 3.5rem;
  color: var(--primary-color);
}
.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-item.active {
  color: var(--text-light);
}

/* --- 5. EDITORIAL INTRO --- */
.intro-section {
  background: var(--bg-white);
}

.intro-content p {
  color: #6c757d; /* Bootstrap text-muted */
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem; /* Bootstrap mb-4 */
}

.intro-images {
  position: relative;
  height: 500px;
}

.intro-img-1 {
  width: 70%;
  height: 80%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.intro-img-2 {
  width: 50%;
  height: 60%;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  border: 10px solid var(--bg-white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.intro-heading {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 25px;
}

/* --- 6. USP SECTION --- */
.usp-wrapper {
  background-color: var(--primary-dark);
  border-radius: var(--radius-lg);
  margin: 0 20px;
  position: relative;
}
.usp-wrapper .icon-wrapper svg {
  fill: var(--accent-color);
}
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sticky-left-panel {
  position: sticky;
  top: 120px;
  height: max-content;
  z-index: 10;
}

@media (max-width: 991px) {
  .sticky-left-panel {
    position: relative;
    top: 0;
    margin-bottom: 40px;
  }
  .usp-wrapper {
    margin: 0;
    border-radius: 0;
  }
}

/* --- 7. ACADEMICS --- */
.academics-section {
  background: var(--bg-light);
}

.academic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

@media (max-width: 768px) {
  .academic-grid {
    grid-template-columns: 1fr;
  }
}

.acad-card {
  position: relative;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.acad-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.acad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 34, 68, 0.95) 0%,
    rgba(0, 0, 0, 0) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: var(--transition);
}

.acad-card:hover .acad-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 34, 68, 0.98) 0%,
    rgba(246, 186, 0, 0.3) 100%
  );
}

.acad-card:hover img {
  transform: scale(1.05);
}

.acad-badge {
  background: var(--bg-white);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 15px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.acad-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 10px;
  transition: var(--transition);
  transform: translateY(20px);
}

.acad-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: var(--transition);
  transform: translateY(20px);
}

.acad-card:hover .acad-title {
  transform: translateY(0);
  color: var(--accent-color);
}

.acad-card:hover .acad-desc {
  opacity: 1;
  max-height: 100px;
  transform: translateY(0);
  margin-top: 10px;
}

.acad-arrow {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.2rem;
  transition: var(--transition);
}

.acad-card:hover .acad-arrow {
  background: var(--accent-color);
  color: var(--primary-dark);
  border-color: var(--accent-color);
  transform: scale(1.1);
}

/* --- 8. PRINCIPAL'S DESK --- */
.principal-section {
  background: var(--bg-white);
}

.principal-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.principal-quote {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  color: var(--primary-dark);
  line-height: 1.4;
  font-style: italic;
}

.signature {
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  color: var(--accent-color);
  margin-top: 20px;
}

/* --- 9. UPCOMING EVENTS --- */
.events-section {
  background: var(--bg-light);
}

.event-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 25px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.event-item:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  border-color: rgba(246, 186, 0, 0.3);
}

.event-date {
  background: var(--bg-light);
  padding: 15px 20px;
  border-radius: 15px;
  text-align: center;
  min-width: 100px;
  margin-right: 25px;
}

.event-date .day {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  display: block;
}

.event-date .month {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
}

.event-details h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.event-details p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

/* --- 10. GOOGLE REVIEWS --- */
.reviews-section {
  background: var(--bg-white);
}

.review-card {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-lg);
  height: 100%;
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  background: #fff;
}

.reviewer-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.reviewer-initial {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 15px;
  color: white;
}

.stars i {
  color: #fbbc05;
  font-size: 1.1rem;
}

.review-text {
  font-style: italic;
  color: #555;
  line-height: 1.7;
  margin-top: 15px;
}

/* --- 11. NEWS & ANNOUNCEMENTS --- */
.news-section {
  background: var(--bg-light);
}

.news-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.date-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  border-radius: 12px;
  text-align: center;
  line-height: 1;
}

.date-badge span {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  color: var(--accent-color);
}

.date-badge small {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.btn-link-custom {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--accent-color);
  transition: 0.3s;
}

.btn-link-custom i {
  margin-left: 8px;
  transition: 0.3s;
}

.btn-link-custom:hover {
  color: var(--accent-color);
  border-color: var(--primary-color);
}

.btn-link-custom:hover i {
  transform: translateX(5px);
}

/* --- 12. FULL WIDTH CTA --- */
.cta-section {
  position: relative;
  padding: 150px 0;
  background-image: url("https://images.unsplash.com/photo-1541829070764-84a7d30dd3f3?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 34, 68, 0.95) 0%,
    rgba(0, 34, 68, 0.7) 100%
  );
}

/* --- 13. INTERNAL PAGES: SIDEBAR, EDITORIAL, CARDS, FORMS --- */

/* Sidebar Navigation */
.sticky-sidebar {
  position: sticky;
  top: 120px;
  z-index: 10;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.sidebar-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar-menu-list li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.sidebar-menu-list li.current_page_item > a,
.sidebar-menu-list li.current-menu-item > a,
.sidebar-menu-list li a:hover {
  background: rgba(0, 69, 142, 0.05);
  color: var(--primary-color);
  padding-left: 20px;
  border-left: 4px solid var(--primary-color);
}
.quick-action-box {
  background: linear-gradient(135deg, var(--primary-color), #002d5e);
  color: var(--white);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin-top: 30px;
}

/* Editorial & Article Content */
.editorial-content {
  font-family: "Montserrat", sans-serif;
}
.wp-block-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 25px;
}
.wp-block-content > p:first-of-type::first-letter {
  font-family: "Playfair Display", serif;
  float: left;
  font-size: 4.5rem;
  line-height: 0.8;
  padding: 10px 15px 10px 0;
  color: var(--primary-color);
}
.wp-block-content blockquote {
  border-left: 4px solid var(--accent-color);
  padding: 20px 30px;
  background: var(--light-bg);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-color);
  margin: 40px 0;
  border-radius: 0 15px 15px 0;
}
.article-cover-img {
  border-radius: 15px;
  width: 100%;
  height: 450px;
  object-fit: cover;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

/* Master Cards (Bento, Directory, Documents) */
.bento-card {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: none;
}
.bento-card img {
  transition: transform 0.6s ease;
}
.bento-card:hover img {
  transform: scale(1.08);
}
.bento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 69, 142, 0.95), transparent);
  color: var(--white);
}
.profile-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}
.profile-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}
.doc-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border-left: 5px solid var(--primary-color);
  display: flex;
  align-items: center;
  transition: var(--transition);
}
.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}
.doc-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-right: 20px;
}

/* Forms & Contact Details */
.form-floating > .form-control,
.form-floating > .form-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: var(--light-bg);
}
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 69, 142, 0.15);
  background-color: var(--white);
}
.contact-info-box {
  background: var(--light-bg);
  padding: 40px;
  border-radius: 15px;
}

/* --- 14. FOOTER --- */
.footer {
  background: #05101c;
  color: #8a9bb0;
  padding: 80px 0 30px;
}

.footer h5 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-family: "Montserrat", sans-serif;
}

.footer a {
  color: #8a9bb0;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-links li {
  margin-bottom: 12px;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
}

.social-links a:hover {
  background: var(--accent-color);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

/* GSAP Utility */
.gs-reveal {
  opacity: 0;
  visibility: hidden;
}
/* ==========================================================================
   MAIS Premium List UI (Global Gutenberg Override)
   ========================================================================== */

.wp-block-content ul {
  list-style: none !important;
  /* Strip default browser bullets */
  padding-left: 0;
  margin-bottom: 2rem;
}

.wp-block-content ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  /* Slightly larger for readability */
  line-height: 1.7;
  color: #4a4a4a;
  /* Soft dark gray */
}

/* Custom Geometric Diamond Bullet */
.wp-block-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  /* Vertically aligns with the first line of text */
  width: 10px;
  height: 10px;
  background-color: #f6ba00;
  /* MAIS Accent Gold */
  border-radius: 2px;
  /* Softens the sharp corners */
  transform: rotate(45deg);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.3s ease;
}

/* Hover Interaction */
.wp-block-content ul li:hover::before {
  background-color: #00458e;
  /* MAIS Primary Blue */
  transform: rotate(135deg) scale(1.15);
}

/* Ensure ordered lists (<ol>) still render their numbers correctly */
.wp-block-content ol {
  margin-bottom: 2rem;
  padding-left: 1.5rem;
}

.wp-block-content ol li {
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
}


/* --- INFRASTRUCTURE PAGE --- */
.infra-sidebar-menu {
  background: transparent;
  padding: 0;
}

.infra-tab-btn {
  text-align: left;
  padding: 12px 20px !important;
  color: #4a4a4a !important;
  font-weight: 600 !important;
  font-size: 1.05rem;
  border-radius: 8px !important;
  margin-bottom: 5px;
  background: transparent !important;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.infra-tab-btn:hover {
  background: rgba(0, 69, 142, 0.05) !important;
  color: var(--primary-dark) !important;
}

.infra-tab-btn.active {
  background: rgba(0, 69, 142, 0.08) !important; /* light blue/gray matching screenshot */
  color: var(--primary-dark) !important;
}

.infra-tab-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--primary-dark);
  border-radius: 4px 0 0 4px;
}

.infra-tab-content {
  min-height: 500px;
}


/* --- INFRASTRUCTURE READ MORE --- */
.infra-content-wrapper {
  position: relative;
  padding-bottom: 10px;
}
.infra-content {
  position: relative;
  overflow: hidden;
  transition: max-height 0.5s ease;
  max-height: 3000px; /* arbitrary large value for transition to work */
}
.infra-content.collapsed-content {
  max-height: 250px;
}
.infra-content.collapsed-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
  pointer-events: none;
}
.read-more-toggle {
  position: relative;
  z-index: 10;
  display: inline-block;
  font-size: 0.95rem;
}



/* --- INFRASTRUCTURE MOBILE TABS --- */
@media (max-width: 767px) {
  .infra-sidebar-menu .nav-pills {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .infra-sidebar-menu .nav-pills::-webkit-scrollbar {
    display: none;
  }
  .infra-tab-btn {
    white-space: nowrap;
    margin-bottom: 0;
    margin-right: 10px;
    padding: 10px 15px !important;
  }
  .infra-tab-btn.active::before {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    border-radius: 4px 4px 0 0;
  }
}



/* --- INFRASTRUCTURE CHILD TABS (Desktop) --- */
@media (min-width: 768px) {
  .child-tab-btn {
    font-size: 0.95rem;
    font-weight: 500 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    padding-left: 45px !important;
    color: #6c757d !important;
    border-radius: 0 8px 8px 0 !important;
  }
  .child-tab-btn::after {
    content: "";
    position: absolute;
    left: 20px;
    top: -15px;
    bottom: 50%;
    width: 15px;
    border-left: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
    border-bottom-left-radius: 6px;
    z-index: 1;
  }
  .child-tab-btn:hover {
    background: transparent !important;
    color: var(--primary-dark) !important;
  }
  .child-tab-btn.active {
    background: transparent !important;
    color: var(--primary-dark) !important;
    font-weight: 600 !important;
  }
  .child-tab-btn.active::before {
    display: none; /* Remove thick left border */
  }
  .child-tab-btn.active::after {
    border-left-color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
  }
}



/* --- RANKMATH BREADCRUMBS STYLING --- */
.breadcrumb-custom .rank-math-breadcrumb {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.breadcrumb-custom .rank-math-breadcrumb p {
  margin-bottom: 0;
  color: #6c757d;
}
.breadcrumb-custom .rank-math-breadcrumb a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb-custom .rank-math-breadcrumb a:hover {
  color: var(--primary-color);
}
.breadcrumb-custom .rank-math-breadcrumb .separator {
  margin: 0 10px;
  color: #adb5bd;
}
.breadcrumb-custom .rank-math-breadcrumb .last {
  color: var(--primary-color);
  font-weight: 600;
}







/* --- ENHANCED SCHOOL DOODLES --- */
@keyframes drawScribble {
  to { stroke-dashoffset: 0; }
}
@keyframes flyPlane {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translate(250px, -80px) rotate(10deg); opacity: 0; }
}
@keyframes floatWobble {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}
.doodle-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawScribble 4s ease-out forwards infinite alternate;
}
.doodle-fly {
  animation: flyPlane 8s linear infinite;
}
.doodle-wobble {
  animation: floatWobble 5s ease-in-out infinite;
}




/* === EXPERIMENTAL FUN INTRO === */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Quicksand:wght@500;600;700&display=swap');

.fun-intro-wrapper {
  --primary-navy: #1A2B4C; 
  --accent-yellow: #f6ba00;
  --accent-orange: #00458e;
  --accent-teal: #f6ba00;
  --accent-purple: #00458e;
  --text-dark: #33415C;
  --text-gray: #5C677D;
  --bg-light: #F8F9FA;
  font-family: 'Quicksand', sans-serif;
  color: var(--text-gray);
  overflow-x: hidden;
}
.fun-intro-wrapper h1, .fun-intro-wrapper h2, .fun-intro-wrapper h3, .fun-intro-wrapper h4, .fun-intro-wrapper h5, .fun-intro-wrapper h6 {
  font-family: 'Fredoka', sans-serif;
  color: var(--primary-navy);
}
.cloud-divider {
  width: 100%; height: 80px; overflow: hidden; line-height: 0; background-color: #ffffff; position: relative; margin-top: -1px; z-index: 10;
}
.cloud-divider svg {
  display: block; width: calc(150% + 1.3px); height: 100px; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
}
.cloud-divider .shape-fill { fill: var(--bg-light); }
.fun-intro-section {
  position: relative; padding: 60px 0 120px; background: transparent; z-index: 1;
}
@keyframes float-random {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-12px, -20px) rotate(4deg); }
  50% { transform: translate(15px, -5px) rotate(-3deg); }
  75% { transform: translate(-5px, 20px) rotate(2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes float-random-alt {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(15px, -15px) rotate(-5deg); }
  50% { transform: translate(-10px, -25px) rotate(3deg); }
  75% { transform: translate(-15px, 10px) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes rotate-star { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes orbit { 0% { transform: rotate(0deg) translateX(10px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(10px) rotate(-360deg); } }
@keyframes point-right { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
.doodle { position: absolute; z-index: 0; pointer-events: none; }
.doodle-rocket { top: -30px; right: 10%; width: 75px; animation: float-random 7s ease-in-out infinite; }
.doodle-planet { bottom: 8%; left: 4%; width: 110px; animation: float-random-alt 9s ease-in-out infinite; }
.doodle-star-1 { top: 20px; left: -40px; width: 35px; transform-origin: center; animation: rotate-star 8s linear infinite; }
.doodle-star-2 { bottom: 30%; right: 5%; width: 35px; transform-origin: center; animation: rotate-star 6s linear infinite reverse; }
.doodle-arrow { position: absolute; top: -10px; left: -95px; width: 90px; z-index: 3; animation: point-right 1.5s infinite ease-in-out; }
.image-composition { position: relative; z-index: 2; padding: 20px; margin-top: 30px; }
.blob-bg { position: absolute; top: -10%; left: 0; width: 100%; height: 110%; background: var(--accent-yellow); border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: -1; opacity: 0.8; animation: orbit 20s linear infinite; }
.blob-bg-2 { position: absolute; top: 0; right: -10%; width: 90%; height: 100%; background: var(--accent-teal); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; z-index: -2; opacity: 0.3; }
.img-frame { border: 8px solid #ffffff; border-radius: 24px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); object-fit: cover; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.main-img { width: 85%; aspect-ratio: 4/3; transform: rotate(-3deg); position: relative; z-index: 2; }
.overlap-img { position: absolute; bottom: -20px; right: 0; width: 55%; aspect-ratio: 1/1; transform: rotate(5deg); z-index: 3; border-width: 6px; }
.image-composition:hover .main-img { transform: rotate(0deg) scale(1.02); }
.image-composition:hover .overlap-img { transform: rotate(0deg) scale(1.05) translateY(-10px); }
.content-area { position: relative; z-index: 2; padding-left: 3rem; }
.fun-intro-wrapper .section-tag { display: inline-block; background-color: #E0F7FA; color: var(--accent-teal); font-family: 'Fredoka', sans-serif; font-weight: 600; padding: 8px 16px; border-radius: 50px; margin-bottom: 20px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.fun-intro-wrapper .intro-heading { font-size: 3.8rem; font-weight: 700; line-height: 1.15; margin-bottom: 25px; color: var(--primary-navy); }
.fun-intro-wrapper .intro-heading span { color: var(--accent-orange); position: relative; display: inline-block; }
.fun-intro-wrapper .intro-heading span::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 100%; height: 12px; background-image: url("data:image/svg+xml,%3Csvg width='24' height='12' viewBox='0 0 24 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 C 6 -2, 18 14, 24 6' fill='none' stroke='%23f6ba00' stroke-width='2' stroke-dasharray='4,3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 24px 12px; background-repeat: repeat-x; z-index: -1; }
.fun-intro-wrapper .intro-content p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 20px; font-weight: 500; }
.btn-container { position: relative; display: inline-block; margin-top: 15px; margin-left: 95px; }

@media (max-width: 991px) { .content-area { padding-left: 0; margin-top: 60px; text-align: center; } .btn-container { margin-left: 0; } .fun-intro-wrapper .intro-heading { font-size: 3rem; } .doodle-rocket { right: -10px; } .doodle-star-1 { left: -10px; } .doodle-arrow { display: none; } .blob-bg { border-radius: 50%; } }
@media (max-width: 576px) { .fun-intro-wrapper .intro-heading { font-size: 2.4rem; } .overlap-img { position: relative; width: 70%; margin: -30px auto 0; display: block; right: auto; bottom: auto; transform: rotate(2deg); } .main-img { width: 100%; transform: rotate(0); } .doodle-rocket { width: 60px; right: 0; } .doodle-planet { width: 70px; left: 0; } }



