/* ==========================================================================
   DAS CHAKDARA - CUSTOM PREMIUM STYLING SYSTEM
   Built with modern CSS variables, responsive grids, and premium motion dynamics.
   ========================================================================== */

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

:root {
  /* Branding Colors */
  --primary-rgb: 15, 43, 92;      /* Deep Navy Blue */
  --primary: rgb(var(--primary-rgb));
  --primary-light: #1e4e96;
  --primary-dark: #071939;
  
  --accent-rgb: 242, 169, 0;     /* Amber Gold */
  --accent: rgb(var(--accent-rgb));
  --accent-light: #ffbe2e;
  --accent-dark: #b88000;
  
  --secondary-rgb: 0, 135, 90;    /* Emerald Green (Islamic Integration) */
  --secondary: rgb(var(--secondary-rgb));
  
  /* UI Neutral Colors */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-gray: #475569;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  
  /* Fonts & Weights */
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(15, 43, 92, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 43, 92, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 43, 92, 0.1);
  --shadow-glow: 0 0 20px rgba(242, 169, 0, 0.35);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

/* ==========================================================================
   UTILITY CLASSES & GRID SYSTEM
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-title.left::after {
  left: 0;
  transform: translateX(0);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle.left {
  margin-left: 0;
}

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

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

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(15, 43, 92, 0.15);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-3px);
}

.btn-white {
  background-color: var(--bg-white);
  color: var(--primary);
}

.btn-white:hover {
  background-color: var(--primary);
  color: var(--bg-white);
  transform: translateY(-3px);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--bg-white);
  font-size: 0.85rem;
  padding: 0.5rem 0;
  font-weight: 500;
}

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

.top-contacts {
  display: flex;
  gap: 1.5rem;
}

.top-contacts span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-socials a {
  margin-left: 1rem;
  opacity: 0.85;
}

.top-socials a:hover {
  opacity: 1;
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.4rem 0;
  box-shadow: var(--shadow-md);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo-container {
  height: 52px;
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-dark);
}

/* Mobile Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -7px); }

/* ==========================================================================
   HERO BANNER & SLIDER
   ========================================================================== */
.hero-slider {
  position: relative;
  height: calc(100vh - 90px);
  width: 100%;
  background-color: var(--primary-dark);
  color: var(--bg-white);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) contrast(1.05);
  transform: scale(1.1);
  transition: transform 10s ease-out;
}

.hero-slide.active .hero-bg {
  transform: scale(1);
}

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

.hero-text-box {
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.8s 0.4s ease-out, opacity 0.8s 0.4s ease-out;
}

.hero-slide.active .hero-text-box {
  opacity: 1;
  transform: translateY(0);
}

.hero-tag {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 1.5px;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: rgba(255,255,255,0.9);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

.slider-arrow.prev { left: 2rem; }
.slider-arrow.next { right: 2rem; }

/* ==========================================================================
   FEATURE CARDS & SECTIONS
   ========================================================================== */
.feature-box {
  background-color: var(--bg-white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-bottom: 4px solid transparent;
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.feature-box:hover .feature-icon {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* ==========================================================================
   WELCOME & MESSAGE SECTION
   ========================================================================== */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.welcome-img-box {
  position: relative;
}

.welcome-img-main {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.welcome-img-box::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(var(--accent) 20%, transparent 20%);
  background-size: 10px 10px;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  border-left: 5px solid var(--accent);
}

.experience-badge .years {
  font-size: 2.25rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: var(--accent);
}

.experience-badge .txt {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.welcome-content .badge-text {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.welcome-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.welcome-content .highlight-para {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.welcome-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 5rem 0;
  position: relative;
  background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(242, 169, 0, 0.08), transparent 40%);
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--bg-white);
}

.stat-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ==========================================================================
   HIFZ-E-QURAN BLOCK
   ========================================================================== */
.hifz-block {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hifz-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hifz-badge {
  background-color: rgba(0, 135, 90, 0.1);
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  align-self: flex-start;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hifz-content h3 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.hifz-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.hifz-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hifz-feat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.hifz-feat-item i {
  color: var(--secondary);
  font-size: 1.25rem;
}

.hifz-img {
  background-size: cover;
  background-position: center;
  min-height: 400px;
  position: relative;
}

.hifz-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
}

/* ==========================================================================
   ACADEMIC PROGRAMS GRID
   ========================================================================== */
.program-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.program-img {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.program-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.program-card:hover .program-img img {
  transform: scale(1.08);
}

.program-icon-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
  z-index: 2;
}

.program-info {
  padding: 2.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.program-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.program-desc {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.program-meta {
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gray);
}

.program-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.program-meta i {
  color: var(--primary);
}

.program-link {
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.program-link:hover {
  color: var(--accent-dark);
}

/* ==========================================================================
   TESTIMONIALS SLIDER
   ========================================================================== */
.testimonials-section {
  background-color: #f1f5f9;
}

.testimonial-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  background-color: var(--bg-white);
  padding: 3.5rem 4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: none;
  position: relative;
}

.testimonial-slide.active {
  display: block;
  animation: fadeUp 0.6s ease-out;
}

.testimonial-slide::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 30px;
  font-size: 8rem;
  font-family: var(--font-serif);
  color: rgba(var(--primary-rgb), 0.08);
  line-height: 1;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-gray);
  font-style: italic;
  margin-bottom: 2rem;
}

.testimonial-author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.author-role {
  font-size: 0.85rem;
  color: var(--accent-dark);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.testimonial-dot.active {
  background-color: var(--accent);
  transform: scale(1.2);
}

/* ==========================================================================
   CALL TO ACTION BANNER
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 80%, rgba(242, 169, 0, 0.1), transparent 50%);
}

.cta-box {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-box p {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
  background-color: var(--primary-dark);
  color: #e2e8f0;
  padding-top: 5.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col-about img {
  height: 52px;
  margin-bottom: 1.5rem;
}

.footer-col-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #94a3b8;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.05);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.footer-socials a.fb:hover {
  background-color: #1877f2; /* Facebook official color */
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.4);
}

.footer-socials a.insta:hover {
  background-color: #e4405f;
  box-shadow: 0 0 15px rgba(228, 64, 95, 0.4);
}

.footer-socials a.yt:hover {
  background-color: #ff0000;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.footer-title {
  color: var(--bg-white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 1.5px;
}

.footer-links li {
  margin-bottom: 0.85rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contact li {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-contact i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.footer-newsletter p {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  position: relative;
  display: flex;
}

.newsletter-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background-color: rgba(255,255,255,0.03);
  color: var(--bg-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.06);
}

.newsletter-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent);
  border: none;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: var(--accent-light);
  transform: scale(1.05);
}

.footer-bottom {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-links a {
  margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   PAGE HERO BANNER (SUBPAGES)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 80%);
  color: var(--bg-white);
  padding: 6.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(242, 169, 0, 0.12), transparent 40%);
}

.page-hero h1 {
  color: var(--bg-white);
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb i {
  font-size: 0.75rem;
  opacity: 0.6;
}

.breadcrumb span {
  color: var(--accent);
}

/* ==========================================================================
   ABOUT US PAGE SPECIFICS
   ========================================================================== */
.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-card {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
  transition: var(--transition-normal);
}

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

.about-card.vision {
  border-top-color: var(--accent);
}

.about-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-card.mission .about-card-icon {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

.about-card.vision .about-card-icon {
  background-color: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-dark);
}

.about-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

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

.about-card ul li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--text-gray);
  font-weight: 500;
}

.about-card ul i {
  color: var(--secondary);
}

/* Principal section */
.principal-section {
  background-color: var(--bg-white);
}

.principal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.principal-img-frame {
  position: relative;
}

.principal-img-frame img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border-light);
}

.principal-img-frame::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  border: 2px solid var(--accent);
  border-radius: var(--radius-md);
  z-index: 1;
}

.principal-content h3 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.principal-title {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.principal-content .quote-icon {
  font-size: 2rem;
  color: rgba(var(--primary-rgb), 0.1);
  margin-bottom: 1rem;
}

.principal-content p {
  color: var(--text-gray);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.principal-content .sig {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2rem;
}

/* ==========================================================================
   ADMISSIONS PAGE SPECIFICS
   ========================================================================== */
.admission-timeline {
  position: relative;
  padding: 1rem 0;
}

.admission-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--border-light);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  border: 4px solid var(--bg-light);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-number {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  background-color: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

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

.doc-card {
  background-color: var(--bg-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-fast);
}

.doc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.doc-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

/* Admission Inquiry Form styling */
.admission-form-container {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.form-info-sidebar {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--bg-white);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-info-sidebar h3 {
  color: var(--bg-white);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-info-sidebar p {
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.form-info-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-info-list i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.form-info-list span {
  font-weight: 500;
}

.admission-form {
  padding: 4rem;
}

.form-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--primary-dark);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background-color: var(--bg-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

select.form-control {
  cursor: pointer;
}

/* ==========================================================================
   ACADEMICS PAGE SPECIFICS
   ========================================================================== */
.academics-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.acad-tab-btn {
  padding: 0.85rem 2rem;
  font-weight: 700;
  border: none;
  background-color: var(--bg-white);
  color: var(--primary);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.acad-tab-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

.acad-tab-btn.active {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

.acad-tab-content {
  display: none;
}

.acad-tab-content.active {
  display: block;
  animation: fadeUp 0.6s ease-out;
}

.acad-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.acad-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.acad-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.subject-tag {
  background-color: rgba(var(--primary-rgb), 0.05);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
}

.acad-img img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   CAMPUS LIFE & FILTERABLE MEDIA GALLERY
   ========================================================================== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border: none;
  background-color: var(--bg-white);
  color: var(--text-gray);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--primary);
  color: var(--bg-white);
}

.filter-btn.active {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-glow);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 280px;
  cursor: pointer;
}

.gallery-item.hidden {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 43, 92, 0.85), transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  opacity: 0;
  transition: var(--transition-normal);
}

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

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

.gallery-tag {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.gallery-item-title {
  color: var(--bg-white);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ==========================================================================
   CAREERS PAGE STYLING
   ========================================================================== */
.career-benefits {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 4rem;
  margin-bottom: 5rem;
}

.jobs-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.accordion-header {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--bg-white);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background-color: rgba(var(--primary-rgb), 0.02);
}

.accordion-header h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.accordion-badge {
  background-color: rgba(242, 169, 0, 0.15);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
}

.accordion-toggle-icon {
  font-size: 1.1rem;
  color: var(--primary);
  transition: var(--transition-fast);
}

.accordion-item.active .accordion-toggle-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  border-top: 1px solid transparent;
}

.accordion-item.active .accordion-content {
  border-color: var(--border-light);
}

.accordion-inner-content {
  padding: 2rem;
  color: var(--text-gray);
}

.accordion-inner-content h4 {
  color: var(--primary-dark);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.accordion-inner-content h4:first-child {
  margin-top: 0;
}

.accordion-inner-content ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.accordion-inner-content li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   CONTACT US PAGE SPECIFICS
   ========================================================================== */
.contact-sidebar-card {
  background-color: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info-block {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.contact-info-block:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-block:hover .contact-icon-box {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.contact-info-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.contact-info-text p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info-text a:hover {
  color: var(--accent-dark);
}

.contact-fb-btn {
  margin-top: 2rem;
  background-color: #1877f2 !important;
  color: var(--bg-white) !important;
  width: 100%;
}

.contact-fb-btn:hover {
  background-color: #125eca !important;
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
  border: 1px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   SCROLL REVEAL & INTERACTION DYNAMICS
   ========================================================================== */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-left { transform: translateX(-50px); }
.reveal.reveal-right { transform: translateX(50px); }

.reveal.active {
  opacity: 1;
  transform: translate(0);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet & Smaller Layouts */
@media (max-width: 1024px) {
  .section-padding { padding: 4.5rem 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .welcome-grid { grid-template-columns: 1fr; gap: 3rem; }
  .principal-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hifz-block { grid-template-columns: 1fr; }
  .hifz-content { padding: 3rem; }
  .admission-form-container { grid-template-columns: 1fr; }
  .form-info-sidebar { padding: 3rem; }
  .admission-form { padding: 3rem; }
  .acad-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .hero-title { font-size: 3rem; }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .top-bar { display: none; }
  .hamburger { display: block; }
  
  .nav-links {
    position: fixed;
    top: 76px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 76px);
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transition: var(--transition-normal);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    z-index: 999;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.25rem;
  }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  .hero-slider { height: calc(85vh - 76px); }
  .hero-title { font-size: 2.25rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 2rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; }
  .hero-buttons .btn { width: 100%; }
  
  .slider-arrow { display: none; }
  
  .section-title { font-size: 2rem; }
  .experience-badge { right: 0; bottom: -15px; padding: 1rem 1.5rem; }
  
  .about-card-grid { grid-template-columns: 1fr; }
  .about-card { padding: 2rem; }
  .docs-grid { grid-template-columns: 1fr; }
  .form-group-row { grid-template-columns: 1fr; gap: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-filters { flex-wrap: wrap; gap: 0.5rem; }
  .academics-nav { flex-wrap: wrap; gap: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-links a { margin: 0 0.75rem; }
  .testimonial-slide { padding: 2rem 1.5rem; }
  .testimonial-slide::before { display: none; }
  .testimonial-text { font-size: 1rem; }
}
