/*
Theme Name: Habit Builder Custom
Theme URI: https://github.com/tahirshahcoding/Habit-Builder-School-
Author: Tahir Shah
Author URI: https://github.com/tahirshahcoding
Description: Custom optimized premium theme for Habit Builder School.
Version: 1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: habit-builder-theme
Tags: custom-menu, featured-images, full-width-template, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool.
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* --- OFFICIAL BRAND COLORS & PREMIUM TOKENS --- */
:root {
  --brand-navy: #0a192f;
  /* Deep premium navy */
  --brand-navy-light: #112240;
  --brand-blue: #0077ff;
  /* Vibrant electric blue */
  --brand-gold: #ffb81c;
  /* Rich gold */
  --brand-gold-dark: #dca018;

  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --white: #ffffff;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #ffb81c 0%, #dca018 100%);
  --gradient-navy: linear-gradient(135deg, #0a192f 0%, #112240 100%);
  --gradient-blue: linear-gradient(135deg, #0077ff 0%, #0056b3 100%);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(10, 25, 47, 0.05), 0 2px 4px -1px rgba(10, 25, 47, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(10, 25, 47, 0.1), 0 8px 10px -6px rgba(10, 25, 47, 0.05);
  --shadow-lg: 0 25px 50px -12px rgba(10, 25, 47, 0.15);
  --shadow-gold-glow: 0 0 20px rgba(255, 184, 28, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  background-image: radial-gradient(at 0% 0%, rgba(0, 119, 255, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(255, 184, 28, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 119, 255, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.7;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--brand-navy);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Global Layout Utilities */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.w-100 {
  width: 100% !important;
}

.mt-2 {
  margin-top: 1rem !important;
}

.mt-3 {
  margin-top: 2rem !important;
}

.mt-4 {
  margin-top: 3rem !important;
}

.title-accent-left {
  margin-left: 0 !important;
}

.section-lead-text {
  max-width: 700px;
  margin: 0 auto 3rem auto;
  color: var(--text-muted);
  text-align: center;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--brand-navy);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--brand-navy);
  transform: translateY(-3px);
}

.btn-outline-navy {
  background: transparent;
  border: 2px solid var(--brand-navy);
  color: var(--brand-navy);
}

.btn-outline-navy:hover {
  background: var(--brand-navy);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-glow {
  box-shadow: var(--shadow-gold-glow);
}

/* Typography Enhancements */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphism Utilities */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.glass-header {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

/* Adjust header top when WordPress Admin Bar is showing */
body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

/* Force header container to span full width with elegant margins */
.site-header .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

@media (min-width: 992px) {
  .site-header .container {
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  position: relative;
}

/* Branding wrapper to isolate logo size from header height */
.site-branding {
  position: relative;
  height: 50px;
  width: 90px;
  z-index: 1001;
}

.site-logo {
  position: absolute;
  top: -12px;
  left: 0;
  max-height: 80px;
  width: auto;
  display: block;
  transition: all 0.3s ease;
  z-index: 1001;
}

/* Header action wrapper and CTA button */
.header-action {
  display: none;
  z-index: 1000;
  order: 2;
}

@media (min-width: 992px) {
  .header-action {
    display: block;
  }
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-blue);
  color: var(--white) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.35);
  white-space: nowrap;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 255, 0.45);
}

/* Scrolled Header Style Transition */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(10, 25, 47, 0.06);
  box-shadow: 0 8px 30px rgba(10, 25, 47, 0.04);
}

.site-header.scrolled .site-logo {
  max-height: 50px;
}

.site-header.scrolled .main-navigation a {
  color: var(--brand-navy) !important;
}

.site-header.scrolled .main-navigation a:hover {
  color: var(--brand-blue) !important;
}

.site-header.scrolled .hamburger-inner,
.site-header.scrolled .hamburger-inner::before,
.site-header.scrolled .hamburger-inner::after {
  background-color: var(--brand-navy) !important;
}

.site-header.scrolled .hamburger-inner,
.site-header.scrolled .hamburger-inner::before,
.site-header.scrolled .hamburger-inner::after {
  background-color: var(--brand-navy) !important;
}

/* Hamburger Button */
.menu-toggle {
  display: inline-block;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: var(--brand-navy);
  border-radius: 4px;
  position: absolute;
  transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Hamburger Active State */
.menu-toggle.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.menu-toggle.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.menu-toggle.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

/* Navigation Menu Overlay (Mobile Default) */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 999;
  overflow-y: auto;
}

.main-navigation.toggled {
  opacity: 1;
  visibility: visible;
}

.main-navigation ul {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem 0;
  list-style: none;
}

.main-navigation a {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-navy);
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  transition: width 0.3s ease;
}

.main-navigation a:hover {
  color: var(--brand-gold-dark);
}

.main-navigation a:hover::after {
  width: 80%;
}

/* Mobile CTA item & button inside menu */
.mobile-cta-item {
  margin-top: 1rem;
}

.mobile-cta-btn {
  background-color: #1e40af !important;
  color: var(--white) !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.75rem 2rem !important;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
  display: inline-block !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-cta-btn::after {
  display: none !important;
}

.mobile-cta-btn:hover {
  background-color: #1d3557 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
}

@media (min-width: 992px) {
  .mobile-cta-item {
    display: none !important;
  }
}

/* --- SECTIONS LAYOUT --- */
.section-padding {
  padding: 4rem 0;
}

.bg-navy {
  background: var(--gradient-navy);
}

.text-white {
  color: var(--white);
}

.bg-light {
  background-color: var(--bg-light);
}

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

.section-header {
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--brand-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.bg-navy .section-title {
  color: var(--white);
}

.title-accent {
  width: 60px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 0 auto;
  border-radius: 2px;
}

/* Hero Section Premium */
.premium-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -2;
  transform: scale(1.05);
  animation: subtleZoom 20s infinite alternate linear;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

@keyframes subtleZoom {
  0% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(10, 25, 47, 0.5) 0%, rgba(10, 25, 47, 0.8) 100%);
  z-index: -1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  padding: 2.5rem 1.25rem;
  color: var(--white);
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 2rem;
}

/* Premium Hero Tag-Badge above Title */
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.75rem;
  padding: 0.55rem 1.35rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.2px solid rgba(255, 184, 28, 0.35);
  border-radius: 50px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.25),
    inset 0 0 10px rgba(255, 184, 28, 0.05);
  animation: breathe 6s infinite ease-in-out alternate;
}

.badge-tag-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-gold);
  text-shadow: 0 0 12px rgba(255, 184, 28, 0.3);
}

.badge-tag-line {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 8px var(--brand-gold);
}

.hero-title.font-cinematic {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin: 0 auto 1.5rem auto;
  line-height: 1.15;
  max-width: 950px;
  text-shadow: 0 4px 15px rgba(10, 25, 47, 0.65);
}

@media (min-width: 992px) {
  .hero-title.font-cinematic {
    font-size: 5.2rem;
  }
}

/* Cinematic Gradient Highlights */
.hero-title .highlight-habits {
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
  filter: drop-shadow(0 2px 10px rgba(0, 119, 255, 0.4));
}

.hero-title .highlight-future {
  background: linear-gradient(135deg, #ffdb58 0%, #ffb81c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
  filter: drop-shadow(0 2px 10px rgba(255, 184, 28, 0.4));
}

.hero-title-top {
  display: block;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0.4rem;
}

.hero-title-bottom {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.hero-actions .btn {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 576px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Section 1: At a Glance Overlap */
.stats-overlap {
  padding: 0;
  margin-top: -40px;
  position: relative;
  z-index: 10;
}

.glass-stats {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
  border-top: 4px solid var(--brand-gold);
}

.stat-number,
.stat-suffix {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Massive Stats Grid */
.stats-grid-massive {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.massive-stats {
  background: #ffffff;
  border-bottom: 1px solid rgba(10, 25, 47, 0.06);
}

.massive-stats .stat-number {
  font-size: 3.5rem;
  line-height: 1;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
}

.massive-stats .stat-number.gradient-text,
.massive-stats .stat-suffix.gradient-text {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.massive-stats .stat-suffix {
  font-size: 2.2rem;
  font-weight: bold;
}

.massive-stats .stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand-navy);
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Section 2: Philosophy Premium Cards */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.premium-card {
  background: var(--bg-white);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.premium-card:hover::before {
  transform: scaleX(1);
}

.gradient-icon {
  margin-bottom: 1.5rem;
  color: var(--brand-blue);
}

.gradient-icon svg {
  width: 48px;
  height: 48px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Philosophy Floating Grid */
.philosophy-floating-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.philosophy-floating-card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  border-top: 5px solid var(--brand-gold);
}

.philosophy-floating-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--brand-blue);
}

/* Section 3: Director's Message Editorial */
.premium-director {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

.director-image-wrapper {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.gradient-bg {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  background: var(--gradient-navy);
  border-radius: 20px;
  z-index: 0;
}

.director-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.director-content {
  width: 100%;
}

.glass-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.7;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg-white);
  border-left: 5px solid var(--brand-gold);
  box-shadow: var(--shadow-md);
  border-radius: 0 20px 20px 0;
  position: relative;
}

.glass-quote::before {
  content: '"';
  position: absolute;
  top: -15px;
  left: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  color: rgba(255, 184, 28, 0.1);
  line-height: 1;
}

.signature-block {
  margin-top: 1.5rem;
}

.director-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-navy);
}

.director-title {
  color: var(--brand-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* About Us Split */
.about-us-split {
  display: flex;
  flex-direction: column;
}

.about-visual {
  width: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.about-content {
  width: 100%;
  padding: 3rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Section 4: Latest News */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.premium-news-card {
  background: var(--bg-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.premium-news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-thumbnail {
  overflow: hidden;
  height: 200px;
}

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

.premium-news-card:hover .zoom-img {
  transform: scale(1.08);
}

.placeholder-thumb {
  background: var(--gradient-navy);
  width: 100%;
  height: 200px;
}

.news-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-gold-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-title a {
  color: var(--brand-navy);
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: var(--brand-blue);
}

.read-more {
  margin-top: auto;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--brand-navy);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--brand-gold-dark);
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--bg-light);
  color: var(--text-main);
  padding: 5rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-elegant-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  text-align: center;
  align-items: center;
}

.footer-brand {
  width: 100%;
  max-width: 350px;
}

.footer-brand img {
  height: 85px;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.footer-brand img:hover {
  transform: scale(1.05);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--brand-navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  font-size: 0.95rem;
  line-height: 2.2;
}

.footer-col ul a {
  color: var(--text-muted);
  transition: color 0.3s;
  text-decoration: none;
}

.footer-col ul a:hover {
  color: var(--brand-navy);
}

.site-info {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.site-info-links {
  display: flex;
  gap: 1.5rem;
}

.site-info-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.site-info-links a:hover {
  color: var(--brand-navy);
}

/* --- INTERNAL PAGE HEADERS --- */
.page-header {
  padding: 6rem 0 3rem;
  background: var(--gradient-navy);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
}

/* --- VISION STATEMENT --- */
.vision-statement {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.vision-statement strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: var(--brand-navy);
  display: block;
}

/* --- TIMELINE SECTION --- */
.timeline-section {
  position: relative;
  background-color: var(--white);
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 4px;
  background: var(--gradient-gold);
  top: 0;
  bottom: 0;
  left: 31px;
  margin-left: -2px;
  border-radius: 2px;
}

.timeline-item {
  padding: 10px 0 10px 70px;
  position: relative;
  background-color: inherit;
  width: 100%;
  box-sizing: border-box;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  left: 21px;
  background-color: var(--brand-navy);
  border: 4px solid var(--brand-gold);
  top: 30px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: var(--shadow-gold-glow);
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-title {
  color: var(--brand-navy);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  color: var(--brand-gold-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* --- ACADEMICS PAGE --- */
.tier-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: auto;
  margin-bottom: 2rem;
  overflow: hidden;
}

.tier-visual {
  position: relative;
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.tier-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.4);
  /* Uniform overlay */
}

.tier-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 1.25rem;
  margin-top: -60px;
  /* Pull panel up to overlap the image beautifully */
}

.tier-glass-panel {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--brand-gold);
}

.tier-label {
  display: inline-block;
  background: var(--brand-gold);
  color: var(--brand-navy);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.tier-title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

.tier-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-highlight {
  color: var(--brand-blue);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.tier-glass-panel p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.tier-heading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.5rem;
  color: var(--brand-navy);
  font-size: 1.25rem;
}

.tier-list {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
}

.tier-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tier-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand-gold-dark);
  font-weight: bold;
}

.tier-list li strong {
  color: var(--brand-navy);
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.tier-grid-item {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tier-grid-item h5 {
  color: var(--brand-blue);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.tier-grid-item p {
  font-size: 0.9rem !important;
  margin-bottom: 0 !important;
  color: var(--text-muted);
}

.tier-quote {
  font-style: italic;
  font-size: 1.1rem;
  border-left: 3px solid var(--brand-gold);
  padding-left: 1rem;
  color: var(--brand-gold-dark);
  margin-top: 2rem;
}

/* --- STUDENT LIFE PAGE --- */
.staggered-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
  align-items: center;
}

.staggered-text {
  width: 100%;
}

.staggered-image {
  width: 100%;
  min-height: 300px;
  background: var(--gradient-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: none;
}

.placeholder-text {
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  opacity: 0.5;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.placeholder-text.text-navy {
  color: var(--brand-navy);
}

.council-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.council-card {
  transition: all 0.3s ease;
}

.council-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--brand-gold);
}

.council-avatar {
  width: 100px;
  height: 100px;
  background: var(--bg-light);
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  border: 3px solid var(--brand-gold);
}

/* House System Cards Styling */
.house-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.house-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.house-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: var(--shadow-lg);
}

.house-card.house-jinnah {
  border-top: 5px solid #dc2626;
}

.house-card.house-iqbal {
  border-top: 5px solid #2563eb;
}

.house-card.house-syed {
  border-top: 5px solid #16a34a;
}

.house-card.house-edhi {
  border-top: 5px solid #d97706;
}

.house-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.house-jinnah .house-icon-wrapper {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.house-iqbal .house-icon-wrapper {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.house-syed .house-icon-wrapper {
  background: rgba(22, 163, 74, 0.1);
  color: #16a34a;
}

.house-edhi .house-icon-wrapper {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
}

.house-card h3 {
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.house-card .house-motto {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.house-jinnah .house-motto {
  color: #dc2626;
}

.house-iqbal .house-motto {
  color: #2563eb;
}

.house-syed .house-motto {
  color: #16a34a;
}

.house-edhi .house-motto {
  color: #d97706;
}

/* --- NEWS & BLOGS PAGE --- */
.news-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--bg-light);
  position: sticky;
  top: 60px;
  z-index: 99;
}

.filter-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.filter-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-bottom: 3px solid transparent;
}

.filter-menu a:hover,
.filter-menu a.active {
  color: var(--brand-navy);
  border-bottom-color: var(--brand-gold);
}

.news-grid-advanced {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.news-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-tag {
  align-self: flex-start;
  background: var(--brand-gold);
  color: var(--brand-navy);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.news-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.masonry-gallery {
  column-count: 1;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

/* --- CONTACT PAGE --- */
.department-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.dept-card {
  text-align: center;
  transition: all 0.3s ease;
}

.dept-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-navy);
}

.dept-icon {
  width: 48px;
  height: 48px;
  stroke: var(--brand-gold-dark);
  margin-bottom: 1.5rem;
}

.dept-card h4 {
  color: var(--brand-navy);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.dept-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.dept-contact {
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--brand-navy);
  line-height: 1.6;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-map-wrapper {
  padding: 0;
  overflow: hidden;
  min-height: 300px;
}

/* --- ADMISSIONS PAGE --- */
.step-tracker {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 1.5rem;
  text-align: left;
}

.step-circle {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 60px;
  height: 60px;
  background: var(--gradient-navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 !important;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  align-self: start;
}

.step h4 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

.step p {
  grid-column: 2;
  grid-row: 2;
  margin: 0 !important;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-line {
  display: none;
  flex: 1;
  height: 4px;
  background: var(--gradient-gold);
  margin-top: 28px;
  z-index: 1;
  opacity: 0.3;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  overflow: hidden;
}

.fee-table th,
.fee-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--bg-light);
}

.fee-table th {
  background: var(--brand-navy);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.fee-table tr:hover {
  background-color: var(--bg-light);
}

/* Forms */
.form-container {
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--brand-navy);
}

.secure-form input,
.secure-form select,
.secure-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.secure-form textarea {
  resize: vertical;
}

.secure-form input:focus,
.secure-form select:focus,
.secure-form textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.2);
}

.secure-form .btn {
  width: 100%;
  margin-top: 1.5rem;
}

.contact-form-wrapper h3 {
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.form-submit {
  margin-top: 2rem;
}

/* Accordions */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.faq-item summary {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brand-gold-dark);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-content {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-light);
  color: var(--text-main);
  animation: fadeIn 0.4s ease;
}

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

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

/* --- CAMPUSES PAGE --- */
.facilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.campuses-directory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.campus-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.campus-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.campus-card li {
  margin-bottom: 0.5rem;
}

.campus-card.campus-featured {
  border: 2px dashed var(--brand-gold);
}

.campus-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.badge-navy {
  background: var(--brand-navy);
  color: var(--brand-gold);
}

.badge-blue {
  background: var(--brand-blue);
  color: var(--white);
}

.badge-gold {
  background: var(--brand-gold);
  color: var(--brand-navy);
}


/* ==========================================================================
   PROGRESSIVE ENHANCEMENTS (TABLET BREAKPOINT: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .section-padding {
    padding: 6rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  /* Hero actions */
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-actions .btn {
    width: auto;
    max-width: none;
  }

  /* Grids */
  .stats-grid-massive {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid-advanced {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .house-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .campuses-directory-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .facilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .department-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  /* Timeline */
  .timeline-container::after {
    left: 50%;
  }

  .timeline-item {
    width: 50%;
    padding: 10px 40px;
  }

  .timeline-item.left {
    left: 0;
  }

  .timeline-item.right {
    left: 50%;
  }

  .timeline-dot {
    left: auto;
    right: -10px;
  }

  .timeline-item.right .timeline-dot {
    left: -10px;
    right: auto;
  }

  /* Forms */
  .form-row {
    flex-direction: row;
    gap: 2rem;
  }

  .form-group {
    flex: 1;
  }

  .form-container {
    padding: 3rem;
  }

  /* Footer */
  .footer-nav {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }

  .footer-elegant-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .site-info {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENTS (DESKTOP BREAKPOINT: 992px)
   ========================================================================== */
@media (min-width: 992px) {
  .section-padding {
    padding: 8rem 0;
  }

  .section-title {
    font-size: 2.75rem;
  }

  .container {
    max-width: 95%;
  }

  /* Header Navigation Reset (Minimalist floating glass bar) */
  .menu-toggle {
    display: none;
  }

  .main-navigation {
    position: static;
    height: auto;
    width: auto;
    opacity: 1;
    visibility: visible;
    background: transparent;
    backdrop-filter: none;
    display: block;
    overflow-y: visible;
    margin-left: auto;
    margin-right: 2.5rem;
  }

  .main-navigation ul {
    flex-direction: row;
    gap: 2rem;
    padding: 0;
    border: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }

  .main-navigation li {
    border: none;
  }

  .main-navigation li:first-child {
    border: none;
  }

  .main-navigation a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 0.5rem 0;
    transition: all 0.25s ease;
    display: block;
    white-space: nowrap;
    position: relative;
    text-shadow: 0 1px 3px rgba(10, 25, 47, 0.8), 0 0 1px rgba(10, 25, 47, 0.4);
  }

  /* Elegant underline hover effect */
  .main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
    display: block;
  }

  .main-navigation a:hover {
    color: var(--brand-gold);
    background: none;
  }

  .main-navigation a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .site-branding {
    height: 60px;
    width: 130px;
  }

  .site-logo {
    top: -20px;
    max-height: 120px;
  }

  .header-inner {
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .btn-register {
    font-size: 0.8rem;
    padding: 0.65rem 1.6rem;
  }

  /* News grid bar */
  .news-filter-bar {
    top: 110px;
  }

  .filter-menu a {
    padding: 1.5rem 0;
    font-size: 0.9rem;
  }

  .filter-menu {
    gap: 2rem;
    padding: 0;
  }

  /* Grids & Columns */
  .stats-grid-massive {
    grid-template-columns: repeat(4, 1fr);
  }

  .philosophy-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .philosophy-floating-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4rem;
  }

  .philosophy-floating-card.offset-up {
    transform: translateY(-40px);
  }

  .philosophy-floating-card.offset-up:hover {
    transform: translateY(-50px);
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .house-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Split layouts */
  .premium-director {
    flex-direction: row;
    gap: 6rem;
    text-align: left;
  }

  .director-image-wrapper {
    flex: 1;
    max-width: none;
    margin: 0;
  }

  .director-content {
    flex: 1;
  }

  .glass-quote {
    font-size: 1.6rem;
    padding: 2.5rem;
  }

  .about-us-split {
    flex-direction: row;
    min-height: 80vh;
  }

  .about-visual {
    flex: 1;
    min-height: auto;
  }

  .about-content {
    flex: 1;
    padding: 6rem 4rem;
  }

  .staggered-row {
    flex-direction: row;
    gap: 4rem;
    text-align: left;
  }

  .staggered-row.reverse {
    flex-direction: row-reverse;
  }

  .staggered-text {
    flex: 1;
  }

  .staggered-image {
    flex: 1;
    min-height: 400px;
  }

  .contact-split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .contact-map-wrapper {
    min-height: 400px;
  }

  /* Admissions process step tracker desktop view */
  .step-tracker {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .step {
    flex: 1;
    text-align: center;
    display: block;
  }

  .step-circle {
    margin: 0 auto 1.5rem !important;
  }

  .step p {
    margin-top: 1rem !important;
    text-align: center;
  }

  .step-line {
    display: block;
  }

  /* Academics tier showcase desktop view */
  .tier-showcase {
    flex-direction: row;
    min-height: 80vh;
    margin-bottom: 0;
  }

  .tier-showcase.reverse {
    flex-direction: row-reverse;
  }

  .tier-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
  }

  .tier-showcase.reverse .tier-visual {
    left: auto;
    right: 0;
  }

  .tier-visual::after {
    background: linear-gradient(90deg, var(--brand-navy) 0%, rgba(10, 25, 47, 0.7) 50%, transparent 100%);
  }

  .tier-showcase.reverse .tier-visual::after {
    background: linear-gradient(-90deg, var(--brand-navy) 0%, rgba(10, 25, 47, 0.7) 50%, transparent 100%);
  }

  .tier-content-wrapper {
    width: 100%;
    padding: 4rem 0;
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
  }

  .tier-showcase.reverse .tier-content-wrapper {
    justify-content: flex-start;
  }

  .tier-glass-panel {
    width: 55%;
    padding: 4rem;
    border-top: none;
    border-left: 5px solid var(--brand-gold);
    transform: translateX(-10%);
  }

  .tier-showcase.reverse .tier-glass-panel {
    border-left: none;
    border-right: 5px solid var(--brand-gold);
    transform: translateX(10%);
  }

  .tier-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Masonry gallery */
  .masonry-gallery {
    column-count: 3;
  }
}

/* ==========================================================================
   PROGRESSIVE ENHANCEMENTS (LARGE DESKTOP BREAKPOINT: 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .hero-title-top {
    font-size: 2.25rem;
  }

  .hero-title-bottom {
    font-size: 4.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .stats-overlap {
    margin-top: -80px;
  }

  .glass-stats {
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem 2rem;
  }
}

/* ==========================================================================
   INTERACTIVE HABIT BUILDER HERO GAME
   ========================================================================== */

.hero-header {
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.hero-header .hero-title {
  margin-bottom: 1rem;
}

.hero-header .hero-subtitle {
  max-width: 750px;
  margin: 0 auto;
}

.hero-game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

@media (min-width: 992px) {
  .hero-game-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }

  .premium-hero {
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Glass Panels */
.pool-container,
.backpack-container {
  padding: 2.25rem 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.column-header {
  margin-bottom: 1.25rem;
}

.game-column-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.game-column-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

/* Habits Pool */
.habits-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-content: flex-start;
  transition: all 0.3s ease;
}

/* Habit Badges */
.habit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: grab;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.habit-badge:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.habit-badge:active {
  cursor: grabbing;
  transform: scale(0.95);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.habit-badge.dragging {
  opacity: 0.4;
  transform: scale(0.92);
}

.habit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.habit-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.2;
  display: block;
}

/* Disabled badges in pool after win */
.habit-badge.disabled {
  opacity: 0.25;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Packed state */
.habit-badge.packed {
  cursor: default;
  background: var(--gradient-gold);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transform: none !important;
  animation: badgePackIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePackIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Backpack Slots */
.backpack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.backpack-counter {
  background: rgba(255, 184, 28, 0.15);
  color: var(--brand-gold);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 184, 28, 0.25);
  box-shadow: 0 0 12px rgba(255, 184, 28, 0.08);
}

.backpack-slots {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.backpack-slot {
  min-height: 65px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

/* Magnetic Drop Zone Border & Glow effects */
.backpack-container.drag-over {
  border-color: rgba(255, 184, 28, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 184, 28, 0.2);
}

.backpack-slot.drag-over {
  border-color: var(--brand-gold);
  background: rgba(255, 184, 28, 0.08);
  box-shadow: 0 0 12px rgba(255, 184, 28, 0.15) inset, var(--shadow-gold-glow);
  transform: scale(1.01);
}

.slot-placeholder {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Success Messaging & Animations */
.game-success-message {
  margin-top: 1.5rem;
  background: rgba(10, 25, 47, 0.92);
  border: 1px solid rgba(255, 184, 28, 0.35);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold-glow);
  z-index: 5;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  animation: floatIcon 3s ease-in-out infinite;
}

.success-icon svg {
  width: 2.75rem;
  height: 2.75rem;
  stroke: var(--brand-gold);
  stroke-width: 1.8;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.success-title {
  color: var(--brand-gold);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.success-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.success-actions .btn {
  width: 100%;
  max-width: 280px;
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.btn-game-reset {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn-game-reset:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* Success glow class on container */
.backpack-container.success-glow {
  border-color: var(--brand-gold);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.5), var(--shadow-gold-glow);
}

/* Fade in animation */
.fade-in {
  animation: fadeInEffect 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes fadeInEffect {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for win button */
.animate-pulse {
  animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 184, 28, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 184, 28, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 184, 28, 0);
  }
}

/* --- CONFETTI SYSTEM --- */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  opacity: 0.85;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(105vh) rotate(720deg);
  }
}

/* ==========================================================================
   ENHANCED GAME ANIMATIONS & DYNAMIC HOVER GLOWS
   ========================================================================== */

/* 1. Staggered Idle Floating for Badges */
.habit-badge {
  animation: floatHabit 5s ease-in-out infinite;
}

.habit-badge:nth-child(1) {
  animation-delay: 0.1s;
  animation-duration: 4.8s;
}

.habit-badge:nth-child(2) {
  animation-delay: 0.8s;
  animation-duration: 5.2s;
}

.habit-badge:nth-child(3) {
  animation-delay: 1.4s;
  animation-duration: 4.6s;
}

.habit-badge:nth-child(4) {
  animation-delay: 0.3s;
  animation-duration: 5.4s;
}

.habit-badge:nth-child(5) {
  animation-delay: 1.9s;
  animation-duration: 5.0s;
}

.habit-badge:nth-child(6) {
  animation-delay: 0.7s;
  animation-duration: 4.9s;
}

.habit-badge:nth-child(7) {
  animation-delay: 1.2s;
  animation-duration: 5.3s;
}

.habit-badge:nth-child(8) {
  animation-delay: 0.5s;
  animation-duration: 5.1s;
}

.habit-badge:nth-child(9) {
  animation-delay: 1.6s;
  animation-duration: 4.7s;
}

.habit-badge:nth-child(10) {
  animation-delay: 0.2s;
  animation-duration: 5.5s;
}

.habit-badge:nth-child(11) {
  animation-delay: 1.1s;
  animation-duration: 4.5s;
}

.habit-badge:nth-child(12) {
  animation-delay: 1.7s;
  animation-duration: 5.2s;
}

@keyframes floatHabit {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-6px) rotate(0.8deg);
  }
}

/* Override transform behaviors on focus states */
.habit-badge:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.02) !important;
}

.habit-badge:active {
  animation: none !important;
  transform: scale(0.95) !important;
}

.habit-badge.dragging {
  animation: none !important;
  transform: scale(0.92) !important;
}

.habit-badge.packed {
  animation: none !important;
  transform: none !important;
}

/* 2. Breathing Empty slots pulse */
.backpack-slot:not(.filled) {
  animation: slotPulse 2.5s infinite ease-in-out;
}

@keyframes slotPulse {

  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 0 0 rgba(0, 119, 255, 0);
  }

  50% {
    border-color: rgba(0, 119, 255, 0.35);
    background: rgba(0, 119, 255, 0.04);
    box-shadow: 0 0 12px rgba(0, 119, 255, 0.08);
  }
}

/* 3. Individualized Neon Hover Glows */
.habit-badge[data-habit="Reading"]:hover {
  border-color: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.habit-badge[data-habit="Sports"]:hover {
  border-color: #10b981;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.habit-badge[data-habit="Science"]:hover {
  border-color: #a855f7;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.habit-badge[data-habit="Coding"]:hover {
  border-color: #06b6d4;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}

.habit-badge[data-habit="Arts"]:hover {
  border-color: #ec4899;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}

.habit-badge[data-habit="Logic"]:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

.habit-badge[data-habit="Leadership"]:hover {
  border-color: #eab308;
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.35);
}

.habit-badge[data-habit="Math"]:hover {
  border-color: #f43f5e;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

.habit-badge[data-habit="Robotics"]:hover {
  border-color: #14b8a6;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
}

.habit-badge[data-habit="Languages"]:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.habit-badge[data-habit="Empathy"]:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

.habit-badge[data-habit="Oratory"]:hover {
  border-color: #f97316;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
}

/* 4. Column Entrance Load Animations */
.game-pool-column {
  animation: slideInLeft 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.game-backpack-column {
  animation: slideInRight 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   BLOG / NEWS FEED ARCHITECTURE
   ========================================================================== */

/* 1. News Hero Header */
.news-hero-header {
  background: var(--brand-navy);
  color: var(--white);
  padding: 6rem 1rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.news-hero-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 184, 28, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(0, 119, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.news-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--white) 60%, var(--brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.news-hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 2. News Feed Section and CSS Grid */
.news-feed-section {
  background-color: var(--bg-light);
  padding: 5rem 0;
}

.news-grid-archive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* News Card Design */
.news-feed-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 25, 47, 0.04);
  border: 1px solid rgba(10, 25, 47, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
}

.news-feed-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(10, 25, 47, 0.08);
  border-color: rgba(255, 184, 28, 0.25);
}

.news-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  overflow: hidden;
  background: #f1f5f9;
}

.news-card-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-feed-card:hover .zoom-img {
  transform: scale(1.06);
}

.placeholder-thumb::before {
  content: '📰';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  opacity: 0.35;
}

.news-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: block;
}

.news-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.news-card-title a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color 0.3s;
}

.news-card-title a:hover {
  color: var(--brand-blue);
}

.news-card-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #475569;
  /* Slate text */
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-card-excerpt p {
  margin: 0;
}

.news-card-link {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  transition: color 0.3s, transform 0.3s;
}

.news-card-link:hover {
  color: var(--brand-navy);
  transform: translateX(4px);
}

/* 3. Pagination styling */
.news-pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.news-pagination-wrapper .pagination {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-pagination-wrapper .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.news-pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid rgba(10, 25, 47, 0.08);
  color: var(--brand-navy);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}

.news-pagination-wrapper .page-numbers:hover {
  background: var(--brand-blue);
  color: var(--white);
  border-color: var(--brand-blue);
}

.news-pagination-wrapper .page-numbers.current {
  background: var(--brand-navy);
  color: var(--white);
  border-color: var(--brand-navy);
}

/* ==========================================================================
   INDIVIDUAL ARTICLE TEMPLATE (SINGLE.PHP)
   ========================================================================== */

.single-article-container {
  background-color: var(--white);
  padding-bottom: 6rem;
}

/* Narrow Column helper */
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Single Header styling */
.article-header {
  padding: 6rem 0 3rem;
  background-color: var(--bg-light);
  border-bottom: 1px solid rgba(10, 25, 47, 0.05);
}

.article-date {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue);
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
  display: block;
}

.article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 0;
}

/* Featured image full width inside narrow */
.article-featured-image-wrapper {
  max-width: 1000px;
  margin: -2rem auto 4rem;
  /* Pull image upwards over the header background */
  padding: 0 1.5rem;
  position: relative;
  z-index: 5;
}

.article-featured-image {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(10, 25, 47, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Article Content & Typography */
.article-content-wrapper {
  margin-top: 2rem;
}

.article-entry-content {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #334155;
  /* Slate-700 text color */
  line-height: 1.8;
}

.article-entry-content p {
  margin-bottom: 1.75rem;
}

.article-entry-content h2,
.article-entry-content h3 {
  font-family: 'Outfit', sans-serif;
  color: var(--brand-navy);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-entry-content h2 {
  font-size: 1.75rem;
}

.article-entry-content h3 {
  font-size: 1.4rem;
}

.article-entry-content blockquote {
  border-left: 4px solid var(--brand-gold);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brand-navy);
  background: var(--bg-light);
  border-radius: 0 12px 12px 0;
}

.article-entry-content ul,
.article-entry-content ol {
  margin-bottom: 1.75rem;
  padding-left: 2rem;
}

.article-entry-content li {
  margin-bottom: 0.5rem;
}

/* Back button at the bottom of the article */
.article-footer {
  margin-top: 5rem;
  border-top: 1px solid rgba(10, 25, 47, 0.08);
  padding-top: 3rem;
}

.btn-outline-navy {
  background: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
  padding: 0.75rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
}

.btn-outline-navy:hover {
  background: var(--brand-navy);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(10, 25, 47, 0.15);
}

/* ==========================================================================
   BLOG / NEWS RESPONSIVENESS OVERRIDES
   ========================================================================== */

@media (max-width: 992px) {
  .news-grid-archive {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .news-hero-title {
    font-size: 2.5rem;
  }

  .article-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .news-grid-archive {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .news-hero-header {
    padding: 5rem 1rem 4rem;
  }

  .news-hero-title {
    font-size: 2rem;
  }

  .article-title {
    font-size: 1.85rem;
  }

  .article-header {
    padding: 5rem 0 2rem;
  }

  .article-featured-image-wrapper {
    margin-top: -1rem;
    margin-bottom: 2.5rem;
  }

  .article-entry-content {
    font-size: 1.05rem;
    line-height: 1.7;
  }
}

/* ==========================================================================
   INTERACTIVE GRID HERO HABITS & INLINE POPUPS
   ========================================================================== */

/* Container: Grid on mobile/tablet, Absolute on desktop */
.floating-habits-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 2.5rem;
  width: 100%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
  padding: 0 1.25rem;
}

.floating-habit-badge {
  position: relative;
  border-radius: 50px;
  padding: 0.45rem 1rem;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: rgba(var(--badge-base-rgb), 0.12);
  border: 1.5px solid rgba(var(--badge-base-rgb), 0.4);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 0 12px rgba(var(--badge-base-rgb), 0.2),
    inset 0 0 8px rgba(var(--badge-base-rgb), 0.1);
  animation: breathe 6s infinite ease-in-out;
}

.floating-habit-badge:nth-child(2n) { animation-delay: -2s; }
.floating-habit-badge:nth-child(3n) { animation-delay: -4s; }

@keyframes breathe {
  0% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(1.5deg); }
  66% { transform: translateY(2px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.floating-habit-badge:hover,
.floating-habit-badge.active {
  background: rgba(var(--badge-base-rgb), 0.25);
  border-color: rgba(var(--badge-base-rgb), 1);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.2),
    0 0 25px rgba(var(--badge-base-rgb), 0.5),
    inset 0 0 12px rgba(var(--badge-base-rgb), 0.2);
  transform: translateY(-5px) scale(1.04);
  z-index: 20;
}

/* Badge Icon Wrapper - Sleek, compact */
.badge-icon-wrapper {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--badge-base-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--badge-accent-color);
  border: 1px solid rgba(var(--badge-base-rgb), 0.4);
  transition: all 0.3s ease;
}

.floating-habit-badge:hover .badge-icon-wrapper,
.floating-habit-badge.active .badge-icon-wrapper {
  background: var(--badge-accent-color);
  color: var(--brand-navy);
  box-shadow: 0 0 8px var(--badge-accent-color);
  border-color: var(--badge-accent-color);
}

.badge-icon-wrapper svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
}

.badge-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Accent Colors */
.floating-habit-badge.accent-blue { --badge-base-rgb: 0, 119, 255; --badge-accent-color: #3b82f6; }
.floating-habit-badge.accent-orange { --badge-base-rgb: 255, 85, 0; --badge-accent-color: #ff661a; }
.floating-habit-badge.accent-emerald { --badge-base-rgb: 16, 185, 129; --badge-accent-color: #34d399; }
.floating-habit-badge.accent-cyan { --badge-base-rgb: 6, 182, 212; --badge-accent-color: #22d3ee; }
.floating-habit-badge.accent-purple { --badge-base-rgb: 139, 92, 246; --badge-accent-color: #a78bfa; }
.floating-habit-badge.accent-indigo { --badge-base-rgb: 99, 102, 241; --badge-accent-color: #818cf8; }
.floating-habit-badge.accent-gold { --badge-base-rgb: 255, 184, 28; --badge-accent-color: #ffcc5c; }
.floating-habit-badge.accent-violet { --badge-base-rgb: 168, 85, 247; --badge-accent-color: #c084fc; }
.floating-habit-badge.accent-rose { --badge-base-rgb: 244, 63, 94; --badge-accent-color: #fb7185; }
.floating-habit-badge.accent-teal { --badge-base-rgb: 20, 184, 166; --badge-accent-color: #2dd4bf; }

/* Popover Bubble */
.badge-popup {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) scale(0.9) translateY(10px);
  width: 270px;
  padding: 1.25rem;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(var(--badge-base-rgb), 0.5);
  border-radius: 16px;
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(var(--badge-base-rgb), 0.35);
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: all 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.255);
  cursor: default;
  z-index: 100;
}

.badge-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(10, 25, 47, 0.95);
  border-right: 1.5px solid rgba(var(--badge-base-rgb), 0.5);
  border-bottom: 1.5px solid rgba(var(--badge-base-rgb), 0.5);
  z-index: 1;
}

.floating-habit-badge.active .badge-popup {
  opacity: 1;
  transform: translateX(-50%) scale(1) translateY(0);
  pointer-events: auto;
}

.popup-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--badge-accent-color);
  display: block;
  margin-bottom: 0.2rem;
}

.popup-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.4rem 0;
}

.popup-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Tablet columns layout */
@media (min-width: 768px) {
  .floating-habits-container {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    gap: 1rem;
  }
}

/* Desktop absolute positioning layout (Small & Scattered) */
@media (min-width: 992px) {
  .floating-habits-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: none;
    display: block;
  }

  .floating-habit-badge {
    position: absolute !important;
    pointer-events: auto;
  }

  /* Scattered placement around the centered heading */
  .floating-habit-badge:nth-child(1) { top: 15%; left: 8%; animation: float1 8s infinite ease-in-out; }
  .floating-habit-badge:nth-child(2) { top: 18%; right: 8%; animation: float2 9.5s infinite ease-in-out; }
  .floating-habit-badge:nth-child(3) { top: 40%; left: 4%; animation: float3 7.5s infinite ease-in-out; }
  .floating-habit-badge:nth-child(4) { top: 42%; right: 4%; animation: float4 11s infinite ease-in-out; }
  .floating-habit-badge:nth-child(5) { top: 66%; left: 6%; animation: float5 8.5s infinite ease-in-out; }
  .floating-habit-badge:nth-child(6) { top: 68%; right: 6%; animation: float2 10s infinite ease-in-out; }
  .floating-habit-badge:nth-child(7) { bottom: 12%; left: 18%; animation: float1 9s infinite ease-in-out; }
  .floating-habit-badge:nth-child(8) { bottom: 12%; right: 18%; animation: float4 9.5s infinite ease-in-out; }
  .floating-habit-badge:nth-child(9) { top: 10%; left: 24%; animation: float3 11s infinite ease-in-out; }
  .floating-habit-badge:nth-child(10) { top: 10%; right: 24%; animation: float5 8.5s infinite ease-in-out; }

  /* Left-side items (1, 3, 5, 7, 9): align popover left to prevent offscreen overflow */
  .floating-habit-badge:nth-child(odd) .badge-popup {
    left: 0;
    transform: translateX(0) scale(0.9) translateY(10px);
  }
  .floating-habit-badge:nth-child(odd) .badge-popup::after {
    left: 20px;
    transform: rotate(45deg);
  }
  .floating-habit-badge:nth-child(odd).active .badge-popup {
    transform: translateX(0) scale(1) translateY(0);
  }

  /* Right-side items (2, 4, 6, 8, 10): align popover right to prevent offscreen overflow */
  .floating-habit-badge:nth-child(even) .badge-popup {
    left: auto;
    right: 0;
    transform: translateX(0) scale(0.9) translateY(10px);
  }
  .floating-habit-badge:nth-child(even) .badge-popup::after {
    left: auto;
    right: 20px;
    transform: rotate(45deg);
  }
  .floating-habit-badge:nth-child(even).active .badge-popup {
    transform: translateX(0) scale(1) translateY(0);
  }

  /* Top-row overrides (Habits 1, 2, 9, 10): align popup below the badge */
  .floating-habit-badge:nth-child(1) .badge-popup,
  .floating-habit-badge:nth-child(2) .badge-popup,
  .floating-habit-badge:nth-child(9) .badge-popup,
  .floating-habit-badge:nth-child(10) .badge-popup {
    bottom: auto;
    top: calc(100% + 14px);
    transform: scale(0.9) translateY(-10px);
  }

  .floating-habit-badge:nth-child(1).active .badge-popup,
  .floating-habit-badge:nth-child(9).active .badge-popup {
    transform: translateX(0) scale(1) translateY(0);
  }
  .floating-habit-badge:nth-child(2).active .badge-popup,
  .floating-habit-badge:nth-child(10).active .badge-popup {
    transform: translateX(0) scale(1) translateY(0);
  }

  /* Adjust arrow pointing up */
  .floating-habit-badge:nth-child(1) .badge-popup::after,
  .floating-habit-badge:nth-child(2) .badge-popup::after,
  .floating-habit-badge:nth-child(9) .badge-popup::after,
  .floating-habit-badge:nth-child(10) .badge-popup::after {
    bottom: auto;
    top: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1.5px solid rgba(var(--badge-base-rgb), 0.5);
    border-top: 1.5px solid rgba(var(--badge-base-rgb), 0.5);
  }
}

/* Dynamic, lively floating/drifting animations for desktop scattered layout */
@keyframes float1 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(16px, -20px) rotate(3.5deg); }
  50% { transform: translate(-10px, -34px) rotate(-4deg); }
  75% { transform: translate(-24px, -15px) rotate(-2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes float2 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(-20px, 15px) rotate(-4deg); }
  50% { transform: translate(14px, 32px) rotate(3.5deg); }
  75% { transform: translate(26px, 18px) rotate(2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes float3 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(-15px, -18px) rotate(-3deg); }
  50% { transform: translate(20px, -32px) rotate(4.5deg); }
  75% { transform: translate(28px, -14px) rotate(2.5deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes float4 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(22px, 14px) rotate(4deg); }
  50% { transform: translate(-14px, 30px) rotate(-3.5deg); }
  75% { transform: translate(-26px, 12px) rotate(-2deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}
@keyframes float5 {
  0% { transform: translate(0px, 0px) rotate(0deg); }
  25% { transform: translate(14px, -16px) rotate(2.5deg); }
  50% { transform: translate(-18px, 28px) rotate(-4deg); }
  75% { transform: translate(20px, 14px) rotate(3deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

/* --- PREMIUM LIGHTBOX MODAL FOR HABITS --- */
.habit-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.habit-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 25, 47, 0.85); /* Premium dark navy overlay */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.4s ease;
}

.lightbox-content-wrapper {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: rgba(17, 34, 64, 0.95); /* Deep premium navy card */
  border: 1px solid rgba(255, 184, 28, 0.25); /* Gold accent border */
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 184, 28, 0.1);
  padding: 2.5rem 2rem 2rem 2rem;
  z-index: 10;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.habit-lightbox-modal.active .lightbox-content-wrapper {
  transform: scale(1) translateY(0);
}

/* Close Button */
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-close:hover {
  background: var(--brand-gold);
  color: var(--brand-navy);
  border-color: var(--brand-gold);
  transform: rotate(90deg) scale(1.1);
  box-shadow: var(--shadow-gold-glow);
}

.lightbox-close svg {
  width: 18px;
  height: 18px;
}

/* Header Info */
.lightbox-header {
  text-align: center;
}

.lightbox-number {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-gold);
  display: block;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px rgba(255, 184, 28, 0.2);
}

.lightbox-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  letter-spacing: -0.5px;
}

/* Body / Image Container */
.lightbox-body {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-body img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  transition: transform 0.5s ease;
}

.lightbox-body:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .lightbox-content-wrapper {
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    width: 95%;
  }
  .lightbox-title {
    font-size: 1.5rem;
  }
  .lightbox-body img {
    max-height: 50vh;
  }
}