/*
Theme Name: Gyani Institute
Theme URI: https://gandhiyoga.org
Author: Gandhi Yoga & Naturopathy Institute
Author URI: https://gandhiyoga.org
Description: Custom institutional WordPress theme for Gandhi Yoga & Naturopathy Institute, Jaipur. Built with Elementor compatibility, widget-ready areas, and modular template structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gyani
Tags: education, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready

This theme is designed for institutional websites with support for:
- Three-tier header structure
- Four-column footer widgets
- Elementor page builder compatibility
- Custom Post Types (Courses)
- ACF integration ready
*/

/* ==========================================================================
   CSS VARIABLES / DESIGN TOKENS
   ========================================================================== */

:root {
  /* Primary Colors - Deep Forest Green */
  --color-primary: 142 76% 20%;
  --color-primary-foreground: 0 0% 100%;
  
  /* Secondary Colors - Saffron Orange */
  --color-secondary: 30 90% 50%;
  --color-secondary-foreground: 0 0% 100%;
  
  /* Accent Colors */
  --color-accent: 142 20% 95%;
  --color-accent-foreground: 142 76% 20%;
  
  /* Neutral Colors */
  --color-background: 60 20% 99%;
  --color-foreground: 142 30% 15%;
  --color-card: 0 0% 100%;
  --color-card-foreground: 142 30% 15%;
  --color-popover: 0 0% 100%;
  --color-popover-foreground: 142 30% 15%;
  --color-muted: 60 10% 96%;
  --color-muted-foreground: 142 10% 40%;
  --color-border: 142 20% 88%;
  --color-input: 142 20% 88%;
  --color-ring: 142 76% 20%;
  
  /* Destructive */
  --color-destructive: 0 84% 60%;
  --color-destructive-foreground: 0 0% 100%;
  
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --section-padding-y: 4rem;
  --container-padding-x: 1rem;
  --container-max-width: 1280px;
  
  /* Radius */
  --radius: 0.5rem;
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--color-foreground));
  background-color: hsl(var(--color-background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: hsl(var(--color-foreground));
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem;
}

a {
  color: hsl(var(--color-primary));
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: hsl(var(--color-secondary));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.section-container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--container-padding-x);
  padding-right: var(--container-padding-x);
}

.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* ==========================================================================
   HEADER STYLES
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Header Top Bar */
.header-top {
  background-color: hsl(var(--color-primary));
  color: hsl(var(--color-primary-foreground));
}

.header-top__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.header-top__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-top__link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(var(--color-primary-foreground));
  transition: color 0.2s ease;
}

.header-top__link:hover {
  color: hsl(var(--color-secondary));
}

.header-top__link svg {
  width: 0.875rem;
  height: 0.875rem;
}

.header-top__actions ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-top__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: hsl(var(--color-secondary));
  color: hsl(var(--color-secondary-foreground));
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.header-top__cta:hover {
  background-color: hsl(30 90% 40%);
  color: hsl(var(--color-secondary-foreground));
}

/* Header Brand */
.header-brand {
  background-color: hsl(var(--color-card));
  border-bottom: 1px solid hsl(var(--color-border));
}

.header-brand__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo__image {
  height: 4rem;
  width: auto;
  object-fit: contain;
}

.site-logo--text {
  display: flex;
  align-items: center;
}

.site-logo__fallback {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--color-primary));
}

.header-brand__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--color-primary));
  line-height: 1.2;
  margin: 0;
}

.header-brand__tagline {
  font-size: 0.75rem;
  color: hsl(var(--color-muted-foreground));
  margin-top: 0.125rem;
}

/* Header Navigation */
.header-nav {
  background-color: hsl(var(--color-card));
  border-bottom: 1px solid hsl(var(--color-border));
}

.header-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__menu > li {
  position: relative;
}

.header-nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--color-foreground));
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header-nav__link:hover {
  color: hsl(var(--color-primary));
  background-color: hsl(var(--color-accent) / 0.5);
}

.header-nav__link svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.2s ease;
}

.header-nav__menu > li:hover > .header-nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background-color: hsl(var(--color-popover));
  border: 1px solid hsl(var(--color-border));
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  z-index: 50;
}

.header-nav__menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--color-foreground));
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sub-menu li a:hover {
  background-color: hsl(var(--color-accent));
  color: hsl(var(--color-primary));
}

/* Nested Dropdown */
.sub-menu .sub-menu {
  left: 100%;
  top: 0;
}

.sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.header-nav__toggle {
  display: none;
  padding: 0.75rem;
  background: none;
  border: none;
  color: hsl(var(--color-foreground));
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-nav__toggle:hover {
  color: hsl(var(--color-primary));
}

.header-nav__toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Navigation */
.header-nav__mobile {
  display: none;
}

@media (max-width: 1023px) {
  .header-nav__menu {
    display: none;
  }
  
  .header-nav__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .header-nav__mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
  }
  
  .header-nav__mobile.is-open {
    max-height: 80vh;
    opacity: 1;
    padding-bottom: 1rem;
    overflow-y: auto;
  }
  
  .header-nav__mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .header-nav__mobile > nav > ul {
    border-top: 1px solid hsl(var(--color-border));
    padding-top: 1rem;
  }
  
  .header-nav__mobile li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--color-border) / 0.5);
    color: hsl(var(--color-foreground));
  }
  
  .header-nav__mobile .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: none;
    padding-left: 1rem;
  }
  
  .header-brand__title {
    font-size: 1.25rem;
  }
  
  .header-top__link span {
    display: none;
  }
  
  .header-top__link span.mobile-text {
    display: inline;
  }
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.hero-slider {
  position: relative;
  overflow: hidden;
  background-color: hsl(var(--color-primary));
}

.hero-slider__wrapper {
  position: relative;
}

.hero-slide {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero-slide__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide__background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    hsla(var(--color-primary) / 0.9) 0%,
    hsla(var(--color-primary) / 0.7) 50%,
    hsla(var(--color-primary) / 0.4) 100%
  );
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 2rem 0;
}

.hero-slide__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--color-primary-foreground));
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-slide__description {
  font-size: 1.125rem;
  color: hsl(var(--color-primary-foreground) / 0.9);
  margin-bottom: 1.5rem;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.2s ease;
}

.hero-slide__cta--primary {
  background-color: hsl(var(--color-secondary));
  color: hsl(var(--color-secondary-foreground));
}

.hero-slide__cta--primary:hover {
  background-color: hsl(30 90% 40%);
  color: hsl(var(--color-secondary-foreground));
}

.hero-slide__cta--secondary {
  background-color: hsl(var(--color-primary-foreground) / 0.1);
  color: hsl(var(--color-primary-foreground));
  border: 1px solid hsl(var(--color-primary-foreground) / 0.3);
}

.hero-slide__cta--secondary:hover {
  background-color: hsl(var(--color-primary-foreground) / 0.2);
}

/* Slider Navigation */
.hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-slider__nav--prev {
  left: 1rem;
}

.hero-slider__nav--next {
  right: 1rem;
}

.hero-slider__nav button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: hsl(var(--color-primary-foreground) / 0.2);
  border: 1px solid hsl(var(--color-primary-foreground) / 0.3);
  color: hsl(var(--color-primary-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider__nav button:hover {
  background-color: hsl(var(--color-primary-foreground) / 0.3);
}

/* Slider Dots */
.hero-slider__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.hero-slider__dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: hsl(var(--color-primary-foreground) / 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-slider__dot.is-active,
.hero-slider__dot:hover {
  background-color: hsl(var(--color-secondary));
}

@media (min-width: 768px) {
  .hero-slide {
    min-height: 600px;
  }
  
  .hero-slide__title {
    font-size: 3.5rem;
  }
}

/* ==========================================================================
   PAGE BANNER
   ========================================================================== */

.page-banner {
  background-color: hsl(var(--color-primary));
  color: hsl(var(--color-primary-foreground));
  padding: 3rem 0;
}

.page-banner__title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--color-primary-foreground));
}

.page-banner__breadcrumbs {
  font-size: 0.875rem;
  opacity: 0.9;
}

.page-banner__breadcrumbs a {
  color: hsl(var(--color-primary-foreground));
}

.page-banner__breadcrumbs a:hover {
  color: hsl(var(--color-secondary));
}

.page-banner__breadcrumbs .separator {
  margin: 0 0.5rem;
  opacity: 0.6;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

.content-section {
  padding: var(--section-padding-y) 0;
}

.content-section--alt {
  background-color: hsl(var(--color-muted));
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header__title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: hsl(var(--color-primary));
}

.section-header__subtitle {
  color: hsl(var(--color-muted-foreground));
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr 300px;
  }
  
  .two-column-layout--sidebar-left {
    grid-template-columns: 300px 1fr;
  }
}

.page-content__main {
  min-width: 0;
}

/* Sidebar */
.sidebar-widget-area {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background-color: hsl(var(--color-card));
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--color-border));
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(var(--color-primary));
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  background-color: hsl(var(--color-card));
  border: 1px solid hsl(var(--color-border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.card__content {
  padding: 1.5rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card__excerpt {
  color: hsl(var(--color-muted-foreground));
  margin-bottom: 1rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: hsl(var(--color-primary));
  color: hsl(var(--color-primary-foreground));
}

.btn--primary:hover {
  background-color: hsl(142 76% 15%);
  color: hsl(var(--color-primary-foreground));
}

.btn--secondary {
  background-color: hsl(var(--color-secondary));
  color: hsl(var(--color-secondary-foreground));
}

.btn--secondary:hover {
  background-color: hsl(30 90% 40%);
  color: hsl(var(--color-secondary-foreground));
}

.btn--outline {
  background-color: transparent;
  border: 1px solid hsl(var(--color-border));
  color: hsl(var(--color-foreground));
}

.btn--outline:hover {
  background-color: hsl(var(--color-accent));
  color: hsl(var(--color-primary));
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.site-footer {
  background-color: hsl(var(--color-primary));
  color: hsl(var(--color-primary-foreground));
}

.footer-main {
  padding: var(--section-padding-y) 0;
}

.footer-widgets {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-widgets {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-widget__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  background-color: hsl(var(--color-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-logo span {
  color: hsl(var(--color-secondary-foreground));
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-branding__text h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.footer-branding__text p {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

.footer-description {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Footer Menus */
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu__item {
  margin-bottom: 0.5rem;
}

.footer-menu__link {
  font-size: 0.875rem;
  color: hsl(var(--color-primary-foreground));
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-menu__link:hover {
  opacity: 1;
  color: hsl(var(--color-secondary));
}

/* Footer Contact */
.footer-contact {
  font-style: normal;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact__item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: hsl(var(--color-secondary));
  margin-top: 0.125rem;
}

.footer-contact__item a {
  color: hsl(var(--color-primary-foreground));
  opacity: 0.9;
}

.footer-contact__item a:hover {
  color: hsl(var(--color-secondary));
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid hsl(var(--color-primary-foreground) / 0.2);
  padding: 1rem 0;
}

.footer-bottom__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

@media (min-width: 640px) {
  .footer-bottom__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal a {
  color: hsl(var(--color-primary-foreground));
}

.footer-legal a:hover {
  color: hsl(var(--color-secondary));
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--color-input));
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background-color: hsl(var(--color-background));
  color: hsl(var(--color-foreground));
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: hsl(var(--color-ring));
  box-shadow: 0 0 0 3px hsl(var(--color-ring) / 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.gallery-filter {
  padding: 0.5rem 1rem;
  background-color: hsl(var(--color-muted));
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter:hover,
.gallery-filter.is-active {
  background-color: hsl(var(--color-primary));
  color: hsl(var(--color-primary-foreground));
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-responsive {
  overflow-x: auto;
}

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

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid hsl(var(--color-border));
}

th {
  background-color: hsl(var(--color-primary));
  color: hsl(var(--color-primary-foreground));
  font-weight: 600;
}

tr:hover td {
  background-color: hsl(var(--color-muted));
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   ELEMENTOR CONTENT AREA - TYPOGRAPHY STYLES
   ========================================================================== */

.elementor-content-area {
  min-height: 200px;
}

/* Rich Text Content Styling */
.elementor-content-area h2,
.page-content__main h2 {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(var(--color-primary));
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.elementor-content-area h2:first-child,
.page-content__main h2:first-child {
  margin-top: 0;
}

.elementor-content-area h3,
.page-content__main h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--color-foreground));
  margin: 1.75rem 0 0.75rem;
  line-height: 1.3;
}

.elementor-content-area p,
.page-content__main p {
  margin-bottom: 1rem;
  line-height: 1.7;
  color: hsl(var(--color-muted-foreground));
}

/* Blockquotes - Gandhi Quote Style */
.elementor-content-area blockquote,
.page-content__main blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  background-color: hsl(var(--color-accent));
  border-left: 4px solid hsl(var(--color-secondary));
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.elementor-content-area blockquote::before,
.page-content__main blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-family: var(--font-heading);
  font-size: 3rem;
  color: hsl(var(--color-secondary));
  opacity: 0.5;
  line-height: 1;
}

.elementor-content-area blockquote p,
.page-content__main blockquote p {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
  color: hsl(var(--color-foreground));
}

.elementor-content-area blockquote p:last-child,
.page-content__main blockquote p:last-child {
  margin-bottom: 0;
}

.elementor-content-area blockquote cite,
.page-content__main blockquote cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: hsl(var(--color-primary));
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

/* Unordered Lists */
.elementor-content-area ul,
.page-content__main ul {
  margin: 1rem 0 1.5rem;
  padding-left: 0;
  list-style: none;
}

.elementor-content-area ul li,
.page-content__main ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--color-muted-foreground));
  line-height: 1.6;
}

.elementor-content-area ul li::before,
.page-content__main ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: hsl(var(--color-secondary));
  font-weight: bold;
}

/* Ordered Lists */
.elementor-content-area ol,
.page-content__main ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  counter-reset: list-counter;
}

.elementor-content-area ol li,
.page-content__main ol li {
  position: relative;
  margin-bottom: 0.75rem;
  color: hsl(var(--color-muted-foreground));
  line-height: 1.6;
  counter-increment: list-counter;
}

/* Links in Content */
.elementor-content-area a,
.page-content__main a {
  color: hsl(var(--color-primary));
  text-decoration: underline;
  text-decoration-color: hsl(var(--color-secondary));
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.elementor-content-area a:hover,
.page-content__main a:hover {
  color: hsl(var(--color-secondary));
}

/* Strong/Bold Text */
.elementor-content-area strong,
.page-content__main strong {
  font-weight: 600;
  color: hsl(var(--color-foreground));
}

/* WordPress Alignment Classes */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide {
  margin-left: -2rem;
  margin-right: -2rem;
  max-width: calc(100% + 4rem);
}

.alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

/* WordPress Caption */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  text-align: center;
  padding: 0.5rem;
}

/* Screen Reader Text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404 {
  text-align: center;
  padding: 4rem 0;
}

.error-404__title {
  font-size: 6rem;
  color: hsl(var(--color-primary));
  margin-bottom: 1rem;
}

.error-404__message {
  font-size: 1.5rem;
  color: hsl(var(--color-muted-foreground));
  margin-bottom: 2rem;
}

/* ==========================================================================
   HOMEPAGE SECTIONS - COMPLETE STYLES
   ========================================================================== */

/* Section Header Tagline */
.section-header__tagline {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--color-secondary));
  margin-bottom: 0.5rem;
}

.section-header--light .section-header__title,
.section-header--light .section-header__subtitle,
.section-header--light .section-header__tagline {
  color: hsl(var(--color-primary-foreground));
}

.section-header--light .section-header__subtitle {
  opacity: 0.9;
}

/* Section Footer */
.section-footer {
  text-align: center;
  margin-top: 2.5rem;
}

.section-footer--center {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary Section (colored background) */
.content-section--primary {
  background: linear-gradient(135deg, hsl(var(--color-primary)) 0%, hsl(142 76% 25%) 100%);
  color: hsl(var(--color-primary-foreground));
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text {
  color: hsl(var(--color-muted-foreground));
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-feature__icon {
  color: hsl(var(--color-secondary));
  font-weight: bold;
}

.about-feature__text {
  font-size: 0.875rem;
  color: hsl(var(--color-foreground));
}

.about-grid__image {
  position: relative;
}

.about-image-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: hsl(var(--color-muted));
  aspect-ratio: 4/3;
}

.about-image-wrapper--placeholder {
  background: linear-gradient(135deg, hsl(var(--color-primary) / 0.1), hsl(var(--color-secondary) / 0.1));
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.about-stat {
  text-align: center;
}

.about-stat__number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: hsl(var(--color-primary));
  line-height: 1;
}

.about-stat__label {
  display: block;
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  margin-top: 0.25rem;
}

/* ==========================================================================
   ADMISSION SECTION
   ========================================================================== */

/* Fix admission steps overflow */
.admission-steps .cards-grid {
  min-width: 0;
}

.admission-steps .card {
  min-width: 0;
  overflow: hidden;
}

.admission-steps {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .admission-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admission-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.admission-step {
  text-align: center;
  padding: 1.5rem;
}

.admission-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: hsl(var(--color-secondary));
  color: hsl(var(--color-secondary-foreground));
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.admission-step__title {
  font-size: 1.125rem;
  color: hsl(var(--color-primary-foreground));
  margin-bottom: 0.5rem;
}

.admission-step__text {
  font-size: 0.875rem;
  color: hsl(var(--color-primary-foreground));
  opacity: 0.85;
  margin: 0;
}

/* CTA Button */
.btn--cta {
  background-color: hsl(var(--color-secondary));
  color: hsl(var(--color-secondary-foreground));
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn--cta:hover {
  background-color: hsl(30 90% 55%);
  color: hsl(var(--color-secondary-foreground));
  transform: translateY(-2px);
}

.btn--outline-light {
  background-color: transparent;
  border: 2px solid hsl(var(--color-primary-foreground) / 0.5);
  color: hsl(var(--color-primary-foreground));
  padding: 0.75rem 1.5rem;
}

.btn--outline-light:hover {
  background-color: hsl(var(--color-primary-foreground) / 0.1);
  border-color: hsl(var(--color-primary-foreground));
  color: hsl(var(--color-primary-foreground));
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: hsl(var(--color-card));
  border: 1px solid hsl(var(--color-border));
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.service-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card__title {
  font-size: 1.25rem;
  color: hsl(var(--color-primary));
  margin-bottom: 0.75rem;
}

.service-card__text {
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   WHY CHOOSE US / FEATURES SECTION
   ========================================================================== */

.features-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  padding: 1.5rem;
  text-align: center;
}

.feature-item__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item__title {
  font-size: 1.125rem;
  color: hsl(var(--color-primary));
  margin-bottom: 0.5rem;
}

.feature-item__text {
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.gallery-grid--preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid--preview {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  
  .gallery-grid--preview .gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(var(--color-muted)), hsl(var(--color-border)));
  min-height: 150px;
}

.gallery-item--large {
  aspect-ratio: auto;
}

.gallery-item--large .gallery-item__placeholder {
  min-height: 100%;
}

/* ==========================================================================
   NEWS/PRESS CARDS
   ========================================================================== */

.card--news .card__date {
  font-size: 0.75rem;
  color: hsl(var(--color-secondary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card--news .card__title {
  font-size: 1.125rem;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--color-primary));
}

.card__link:hover {
  color: hsl(var(--color-secondary));
}

/* Card Meta */
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card__meta-item {
  font-size: 0.75rem;
  color: hsl(var(--color-muted-foreground));
  background-color: hsl(var(--color-muted));
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

/* Card Image Placeholder */
.card__image--placeholder {
  background-color: hsl(var(--color-muted));
}

.card__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 150px;
  background: linear-gradient(135deg, hsl(var(--color-primary) / 0.1), hsl(var(--color-secondary) / 0.1));
}


/* Footer White Text Override */
.site-footer, 
.footer-widget__title, 
.footer-branding__text h3, 
.footer-branding__text p, 
.footer-description, 
.footer-menu__link, 
.footer-contact__item, 
.footer-contact__item a,
.footer-bottom__inner,
.footer-legal a {
  color: #ffffff !important;
  opacity: 1 !important;
}

.footer-contact__item svg {
  color: #ffffff !important;
}

/* Broader Footer White Text Override */
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.site-footer p, .site-footer a, .site-footer span, .site-footer li, .site-footer div,
.footer-widget__title, .widget-title, .footer-menu__link, .footer-contact__item a,
.footer-widget a, .footer-widget ul li a, .footer-widget h4 {
  color: #ffffff !important;
  opacity: 1 !important;
}

.site-footer svg, .footer-contact__item svg {
  color: #ffffff !important;
}
