/* =========================================================================
   Growing Buds School - Modern CSS (Built for Aesthetics and Responsiveness)
   ========================================================================= */

/* --- CSS Variables for Design System --- */
:root {
  /* Color Palette */
  --clr-primary: #1e3a8a; /* Deep Blue */
  --clr-primary-light: #3b82f6;
  --clr-primary-dark: #1e3a8a;

  --clr-secondary: #f59e0b; /* Golden Yellow/Orange */
  --clr-secondary-hover: #d97706;

  --clr-accent: #10b981; /* Green accent */

  --clr-dark: #0f172a;
  --clr-dark-text: #334155;
  --clr-light-text: #64748b;

  --clr-bg: #ffffff;
  --clr-bg-alt: #f8fafc;
  --clr-border: #e2e8f0;

  /* Typography */
  --font-main: "Outfit", system-ui, -apple-system, sans-serif;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:
    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Layout */
  --container-width: 1300px;
  --container-padding: 2rem;
  --section-padding: 6rem;
  --border-radius: 12px;
}

/* --- Resets & Setup --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--clr-dark-text);
  background-color: var(--clr-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--clr-dark);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
}

.light-bg {
  background-color: var(--clr-bg-alt);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: var(--transition-normal);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: var(--clr-secondary);
  color: var(--clr-dark);
}

.btn-primary:hover {
  background-color: var(--clr-secondary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-outline:hover {
  background-color: var(--clr-primary);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--clr-primary);
}

.btn-white:hover {
  background-color: var(--clr-bg-alt);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Top Bar --- */
.top-bar {
  background-color: var(--clr-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info,
.quick-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.contact-info a:hover,
.quick-links a:hover {
  color: var(--clr-secondary);
}

.quick-links a {
  color: var(--clr-secondary);
  font-weight: 600;
}

/* --- Header / Navigation --- */
.header {
  background-color: var(--clr-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  height: 50px;
}

.logo-text h1 {
  font-size: 1.25rem;
  color: var(--clr-primary);
  margin: 0;
  line-height: 1.1;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--clr-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--clr-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--clr-secondary);
  transition: var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--clr-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--clr-dark);
  cursor: pointer;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--clr-bg);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transition: 0.4s ease-in-out;
}

.mobile-menu.active {
  right: 0;
}

.mobile-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--clr-dark);
  cursor: pointer;
  margin-bottom: 2rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-dark);
}

.mobile-nav-links a.active {
  color: var(--clr-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 10rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/image//IMG_3903.jpg.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.9) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  color: white;
}

.hero .tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--clr-secondary);
  color: var(--clr-secondary);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero h1 .highlight {
  color: var(--clr-secondary);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.3rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--container-padding) * 2);
  max-width: var(--container-width);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  z-index: 10;
  overflow: hidden;
}

.stat-item {
  padding: 2rem;
  text-align: center;
  border-right: 1px solid var(--clr-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--clr-light-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
}

/* --- Section Headers --- */
.section-subtitle {
  display: inline-block;
  color: var(--clr-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-header.center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

/* --- About Section --- */
.about-section {
  padding-top: 10rem; /* space for absolute stats box */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.experience-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: var(--clr-secondary);
  color: var(--clr-dark);
  padding: 2rem;
  border-radius: 50%;
  width: 115px;
  height: 115px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 8px solid white;
}

.experience-badge .num {
  font-size: 0.80rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.70rem;
  font-weight: 600;
}

.about-content p {
  color: var(--clr-light-text);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--clr-dark);
}

.feature-list i {
  color: var(--clr-accent);
  font-size: 1.5rem;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: var(--clr-bg-alt);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.feature-card:hover .icon-box {
  background-color: var(--clr-primary);
  color: white;
}

.icon-box i {
  font-size: 2rem;
  color: var(--clr-primary);
}

.feature-card:hover .icon-box i {
  color: white;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--clr-light-text);
}

/* --- Quote Section --- */
.quote-section {
  background-color: var(--clr-primary);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.quote-content i {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.quote-content h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.quote-content p {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--clr-secondary);
}

.quote-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2rem auto 0;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item.tall {
  grid-row: span 2;
  grid-column: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.gallery-overlay p {
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: var(--transition-normal);
  transition-delay: 0.1s;
}

.gallery-item:hover h3,
.gallery-item:hover p {
  transform: translateY(0);
}

.center-btn {
  text-align: center;
}

/* --- Pre-Footer CTA --- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./image/annual\ photos/IMG_4327.JPG");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: brightness(0.3);
  z-index: -1;
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  color: white;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background-color: var(--clr-dark);
  color: white;
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text h3 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.school-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  color: white;
}

.social-links a:hover {
  background-color: var(--clr-secondary);
  transform: translateY(-3px);
}

.footer h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--clr-secondary);
}

.footer ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
}

.footer ul li a:hover {
  color: var(--clr-secondary);
  padding-left: 5px;
}

.contact-details li {
  display: flex;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  align-items: flex-start;
}

.contact-details i {
  color: var(--clr-secondary);
  font-size: 1.25rem;
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.fox:hover{
  color: yellow;
}

/* --- Animations & Utilities --- */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s forwards ease-out;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s forwards ease-out;
}

.delay-1 {
  animation-delay: 0.2s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
.delay-4 {
  animation-delay: 0.8s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Revel Classes via JS */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.right {
  transform: translateX(50px);
}

.reveal.left {
  transform: translateX(-50px);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* =========================================================================
   Responsive Breakpoints
   ========================================================================= */

/* 1440px -> Maintained largely by container max-width */

/* 1024px */
@media screen and (max-width: 1024px) {
  :root {
    --section-padding: 5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .about-grid {
    gap: 2rem;
  }

  .experience-badge {
    width: 120px;
    height: 120px;
    bottom: 10px;
    right: 10px;
  }
  .experience-badge .text {
  font-size: 0.7rem;
  font-weight: 600;
}

.experience-badge .num {
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}


  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* 768px */
@media screen and (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-links,
  .btn-cta {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    text-align: center;
    padding-top: 4rem;
  }

  .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    position: relative;
    bottom: 0;
    transform: none;
    left: 0;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: 3rem;
  }

  .stat-item {
    border-bottom: 1px solid var(--clr-border);
  }

  .stat-item:nth-child(even) {
    border-right: none;
  }

  .about-section {
    padding-top: var(--section-padding);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: 2;
    margin-top: 2rem;
  }

  .about-content {
    order: 1;
  }
}

/* 425px */
@media screen and (max-width: 425px) {
  :root {
    --section-padding: 4rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* 375px & 320px */
@media screen and (max-width: 375px) {
  .experience-badge {
    display: none; /* Hide on very small screens to save space */
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* =========================================================================
   Phase 2: Multi-Page Specific Styles & Components
   ========================================================================= */

/* --- Dropdown Menu (Desktop) --- */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown .dropbtn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--border-radius);
  overflow: hidden;
  z-index: 105;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-fast);
}

.dropdown-content a {
  color: var(--clr-dark);
  padding: 0.75rem 1.5rem;
  display: block;
  font-weight: 500;
}

.dropdown-content a::after {
  display: none; /* Hide the underline effect in dropdown */
}

.dropdown-content a:hover {
  background-color: var(--clr-bg-alt);
  color: var(--clr-primary);
  padding-left: 1.75rem; /* Slight indent on hover */
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Dropdown --- */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropbtn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--clr-dark);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.mobile-dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 1.5rem;
  margin-top: 1rem;
  gap: 1rem;
  border-left: 2px solid var(--clr-border);
}

.mobile-dropdown.active .mobile-dropdown-content {
  display: flex;
}

.mobile-dropdown.active .mobile-dropbtn i {
  transform: rotate(180deg);
}

.mobile-dropdown-content a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--clr-light-text);
}

.mobile-dropdown-content a:hover,
.mobile-dropdown-content a.active {
  color: var(--clr-primary);
}

/* --- Inner Page Header --- */
.inner-header {
  position: relative;
  padding: 8rem 0 6rem;
  background-color: var(--clr-primary-dark);
  color: white;
  text-align: center;
  overflow: hidden;
  margin-top: -80px; /* Pull up under transparent/white header */
  padding-top: calc(8rem + 80px);
}

.inner-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://images.unsplash.com/photo-1577896849786-73debf6fd815?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.inner-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.8),
    rgba(15, 23, 42, 0.95)
  );
  z-index: 1;
}

.inner-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.inner-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  margin-bottom: 1rem;
}

.inner-header p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

/* --- About Pages Specific --- */
.vma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.vma-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.vma-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.vma-card .icon-circle {
  width: 80px;
  height: 80px;
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--clr-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition-normal);
}

.vma-card:hover .icon-circle {
  background-color: var(--clr-secondary);
  color: white;
}

.vma-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.founder-image-col {
  position: relative;
}

.founder-img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.founder-title {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  border-left: 4px solid var(--clr-secondary);
}

.founder-title h3 {
  margin-bottom: 0.25rem;
  color: var(--clr-primary);
}

.founder-title span {
  font-weight: 600;
  color: var(--clr-light-text);
}

.guest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.guest-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.guest-card i.ph-quotes {
  color: rgba(30, 58, 138, 0.1);
  font-size: 4rem;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.guest-quote {
  font-style: italic;
  font-size: 1.125rem;
  color: var(--clr-dark-text);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.guest-author h4 {
  color: var(--clr-primary);
  margin-bottom: 0.25rem;
}

.guest-author span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-light-text);
}

/* --- Academics Specific --- */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.faculty-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.faculty-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.faculty-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.faculty-info {
  padding: 1.5rem;
  text-align: center;
}

.faculty-info h3 {
  color: var(--clr-primary);
  margin-bottom: 0.25rem;
}

.faculty-info span {
  display: block;
  color: var(--clr-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.faculty-info p {
  color: var(--clr-light-text);
  font-size: 0.875rem;
}

/* Tables */
.table-container {
  overflow-x: auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.styled-table thead tr {
  background-color: var(--clr-primary);
  color: white;
  text-align: left;
}

.styled-table th,
.styled-table td {
  padding: 1.25rem 1.5rem;
}

.styled-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: var(--clr-bg-alt);
}

.styled-table tbody tr:last-of-type {
  border-bottom: 2px solid var(--clr-primary);
}

.styled-table.holiday-table tbody tr td:last-child {
  font-weight: 600;
  color: var(--clr-accent);
}

/* Rules List */
.rules-list {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.rules-list h3 {
  color: var(--clr-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--clr-bg-alt);
}

.rules-list h3:first-child {
  margin-top: 0;
}

.rules-list ul {
  list-style: none;
}

.rules-list ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--clr-dark-text);
}

.rules-list ul li::before {
  content: "•";
  color: var(--clr-secondary);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -4px;
}

/* --- Blog / Glimpses Specific --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.blog-img {
  height: 240px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--clr-light-text);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.blog-meta i {
  color: var(--clr-secondary);
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-content h3 a {
  color: var(--clr-dark);
}

.blog-content h3 a:hover {
  color: var(--clr-primary);
}

.blog-content p {
  color: var(--clr-light-text);
  flex-grow: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--clr-primary);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.read-more:hover {
  color: var(--clr-secondary);
  gap: 0.75rem;
}

/* --- Contact Page Specific --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.info-card .icon-box {
  margin-bottom: 0;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
}

.info-details h3 {
  margin-bottom: 0.5rem;
  color: var(--clr-primary);
}

.info-details p,
.info-details a {
  color: var(--clr-light-text);
}

.info-details a:hover {
  color: var(--clr-secondary);
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--clr-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--clr-dark);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--clr-dark-text);
  background-color: var(--clr-bg-alt);
  transition: var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
  background-color: white;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.map-container {
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 4rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Mobile Adjustments for Inner Pages --- */
@media screen and (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .dropdown {
    display: none;
  } /* Hide desktop dropdown on mobile */
  .founder-grid {
    grid-template-columns: 1fr;
  }
  .founder-title {
    position: static;
    margin-top: -1rem;
    margin-inline: 2rem;
    margin-bottom: 2rem;
  }
  .rules-list {
    padding: 2rem;
  }
}
