/* 
   Chennai Tuition Institute Website 
   Premium, Modern, Mobile-First Stylesheet
*/

/* -------------------------------------------------------------
   1. ROOT VARIABLES & THEMING
------------------------------------------------------------- */
:root {
  --primary-dark: #3B4953;
  --primary-dark-hover: #2e3941;
  --secondary-green: #5A7863;
  --secondary-green-hover: #496150;
  --accent-green: #90AB8B;
  --accent-green-hover: #7b9876;
  --light-bg: #EBF4DD;
  --white: #FFFFFF;
  --black: #0E1214;
  
  /* Text and details contrast optimized */
  --text-main: #252F36; /* Dark slate derived from primary */
  --text-muted: #53626C;
  --text-light: #F7FAF6;
  
  /* Shadow tokens */
  --shadow-sm: 0 2px 4px rgba(59, 73, 83, 0.05);
  --shadow-md: 0 4px 12px rgba(59, 73, 83, 0.08);
  --shadow-lg: 0 12px 24px rgba(59, 73, 83, 0.12);
  --shadow-hover: 0 20px 32px rgba(59, 73, 83, 0.16);
  
  /* Layout tokens */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
  
  /* Container width */
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography styling based on system instruction */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.25;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

ul {
  list-style: none;
}

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

/* Accessibility Focus Outline */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-green);
  outline-offset: 2px;
}

/* -------------------------------------------------------------
   3. LAYOUT UTILITIES
------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

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

@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }
}

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

.d-flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

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

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

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

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

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Background Sections */
.bg-light {
  background-color: var(--light-bg);
}

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

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--white);
}

.bg-secondary {
  background-color: var(--secondary-green);
  color: var(--white);
}

.bg-secondary h1, .bg-secondary h2, .bg-secondary h3 {
  color: var(--white);
}

/* Section Header styling */
.section-header {
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.bg-dark .section-header p,
.bg-secondary .section-header p {
  color: #B9C6CD;
}

/* Badge styling */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background-color: var(--light-bg);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(90, 120, 99, 0.2);
}

.badge-accent {
  background-color: rgba(144, 171, 139, 0.25);
  color: var(--primary-dark);
  border-color: var(--accent-green);
}

/* -------------------------------------------------------------
   4. NAVIGATION (STICKY & DRAWER)
------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--primary-dark);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background-color: rgba(59, 73, 83, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  color: var(--white);
  padding: 2px 0;
}

.logo-img {
  height: 62px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: invert(90%) sepia(8%) saturate(500%) hue-rotate(75deg) brightness(105%) contrast(95%); /* Premium light sage-green color */
  position: relative;
  top: -9px; /* Shift the logo icon further upward for visual cap alignment */
  transition: var(--transition-smooth);
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth);
}

.navbar.scrolled .logo-img {
  height: 52px;
  top: -7px;
}

.navbar.scrolled .logo-text {
  font-size: 1.35rem;
}

@media (max-width: 768px) {
  .logo {
    gap: 0.5rem;
  }
  .logo-img {
    height: 50px;
    top: -5px;
  }
  .navbar.scrolled .logo-img {
    height: 44px;
    top: -4px;
  }
  .logo-text {
    font-size: 1.25rem;
  }
  .navbar.scrolled .logo-text {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .logo {
    gap: 0.35rem;
  }
  .logo-img {
    height: 44px;
    top: -5px;
  }
  .navbar.scrolled .logo-img {
    height: 38px;
    top: -4px;
  }
  .logo-text {
    font-size: 1.05rem;
  }
  .navbar.scrolled .logo-text {
    font-size: 1.05rem;
  }
}

.logo-accent {
  color: var(--accent-green);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger button for mobile */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--white);
  margin: 5px 0;
  transition: var(--transition-smooth);
}

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

/* Mobile slide drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--primary-dark);
  z-index: 1050;
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  box-shadow: var(--shadow-lg);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer.open {
  right: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.drawer-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.25rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}

.drawer-link:hover, .drawer-link.active {
  color: var(--white);
  padding-left: 0.5rem;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* -------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS
------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent-green);
  color: var(--primary-dark); /* High contrast dark text on light green */
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

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

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

.btn-whatsapp {
  background-color: #447A57;
  color: var(--white);
  box-shadow: 0 4px 10px rgba(68, 122, 87, 0.2);
}

.btn-whatsapp:hover {
  background-color: #3A684A;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(68, 122, 87, 0.3);
}

.btn-call {
  background-color: var(--primary-dark);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-call:hover {
  background-color: var(--primary-dark-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn:active {
  transform: translateY(0);
}

/* -------------------------------------------------------------
   6. HERO SECTION
------------------------------------------------------------- */
.hero {
  position: relative;
  background-color: var(--white);
  padding: 6rem 0;
  overflow: hidden;
}

/* Premium Academic Blueprint Background styling */
.hero-blueprint-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: url('../assets/images/academic_blueprint.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.25; /* Reduced visibility of academic elements for readability */
}

/* Radial gradient to reduce background visibility behind text content and CTA buttons */
.hero-blueprint-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.42) 40%, rgba(255, 255, 255, 0.08) 70%, rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  text-align: center;
}

.hero-content .highlight {
  color: var(--secondary-green);
  position: relative;
  display: inline-block;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2.5rem;
}

.hero-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.hero-badge-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(235, 244, 221, 0.6) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.hero-image {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  animation: floatIllustration 6s ease-in-out infinite;
}

@keyframes floatIllustration {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@media (max-width: 1024px) {
  .hero {
    padding: 4rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-badges-grid {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .hero-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* -------------------------------------------------------------
   7. TRUST BAR (HORIZONTAL TICKER)
------------------------------------------------------------- */
.trust-bar {
  background-color: var(--primary-dark);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-bar::before, .trust-bar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.trust-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--primary-dark) 0%, rgba(59, 73, 83, 0) 100%);
}

.trust-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--primary-dark) 0%, rgba(59, 73, 83, 0) 100%);
}

.trust-ticker {
  display: flex;
  width: max-content;
  animation: ticker 25s linear infinite;
}

.trust-ticker-content {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
}

.trust-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.trust-item span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* -------------------------------------------------------------
   8. ABOUT US SECTION
------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(90, 120, 99, 0.1);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

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

.about-bullet-item {
  display: flex;
  gap: 0.75rem;
}

.about-bullet-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--light-bg);
  border-radius: var(--radius-sm);
  color: var(--primary-dark);
  flex-shrink: 0;
}

.about-bullet-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about-bullet-text p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  .about-bullets {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-content h2 {
    font-size: 2rem;
  }
}

/* -------------------------------------------------------------
   9. ACHIEVEMENT COUNTERS
------------------------------------------------------------- */
.counter-section {
  background-color: var(--secondary-green);
  color: var(--white);
  padding: 4.5rem 0;
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-card {
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.counter-card:last-child {
  border-right: none;
}

.counter-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 1.05rem;
  color: #D3E0D0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@media (max-width: 1024px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .counter-card {
    border-right: none;
  }
  .counter-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 560px) {
  .counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .counter-card {
    border-right: none;
    padding: 0.75rem 0.5rem;
  }
  .counter-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .counter-number {
    font-size: 2.25rem;
  }
}

/* -------------------------------------------------------------
   10. WHAT WE PROVIDE & WHY CHOOSE US CARDS
------------------------------------------------------------- */
.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(59, 73, 83, 0.05);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(144, 171, 139, 0.3);
}

.card-accent-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--secondary-green);
  transition: var(--transition-smooth);
}

.card:hover .card-accent-border {
  background-color: var(--accent-green);
  height: 6px;
}

.card-icon {
  width: 52px;
  height: 52px;
  background-color: var(--light-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

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

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-action {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary-green);
  transition: var(--transition-fast);
}

.card:hover .card-action {
  color: var(--primary-dark);
}

/* Specific styling for Why Choose Us - 6 premium cards */
.why-choose-us-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .why-choose-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .why-choose-us-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------
   11. FACULTY PREVIEW & DETAILED FACULTY CARDS
------------------------------------------------------------- */
.faculty-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(59, 73, 83, 0.05);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(90, 120, 99, 0.15);
}

.faculty-avatar-container {
  position: relative;
  height: 260px;
  background-color: var(--primary-dark);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-avatar-container svg {
  color: rgba(255, 255, 255, 0.2);
  width: 100px;
  height: 100px;
  transition: var(--transition-smooth);
}

.faculty-card:hover .faculty-avatar-container svg {
  transform: scale(1.1);
  color: rgba(144, 171, 139, 0.3);
}

.faculty-subject-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.85rem;
  background-color: var(--accent-green);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.faculty-info {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.faculty-info h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.faculty-title {
  color: var(--secondary-green);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.faculty-details-list {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faculty-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.faculty-details-list li svg {
  color: var(--secondary-green);
  margin-top: 2px;
  flex-shrink: 0;
}

.faculty-approach {
  font-size: 0.88rem;
  background-color: var(--light-bg);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary-green);
  margin-top: auto;
  color: var(--primary-dark);
}

/* Category Filter for Our Faculty Page */
.faculty-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid rgba(59, 73, 83, 0.15);
  color: var(--primary-dark);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

/* -------------------------------------------------------------
   12. TESTIMONIALS SECTION
------------------------------------------------------------- */
.testimonial-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(59, 73, 83, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.testimonial-stars {
  color: #F5A623;
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-main);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid rgba(59, 73, 83, 0.08);
  padding-top: 1.25rem;
}

.testimonial-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.testimonial-author-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.testimonial-author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  opacity: 0.08;
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* -------------------------------------------------------------
   13. FINAL CTA & CONTACT INFO SECTION
------------------------------------------------------------- */
.cta-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-block p {
  font-size: 1.2rem;
  color: #B9C6CD;
  margin-bottom: 2.5rem;
}

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

@media (max-width: 768px) {
  .cta-block h2 {
    font-size: 2.25rem;
  }
  .cta-buttons {
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-option-card {
  background-color: var(--white);
  border: 1px solid rgba(59, 73, 83, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.contact-option-card:hover {
  border-color: var(--accent-green);
  box-shadow: var(--shadow-md);
}

.contact-option-icon {
  width: 48px;
  height: 48px;
  background-color: var(--light-bg);
  color: var(--primary-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option-info h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-option-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.contact-option-action {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-green);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.contact-option-action:hover {
  color: var(--primary-dark);
}

/* Contact Quote Hero */
.contact-quote {
  font-size: 1.25rem;
  font-style: italic;
  color: #B9C6CD;
  margin-top: 1rem;
  font-family: 'Playfair Display', Georgia, serif;
}

/* -------------------------------------------------------------
   14. ENQUIRY FORM STYLING
------------------------------------------------------------- */
.form-container {
  background-color: var(--white);
  border: 1px solid rgba(59, 73, 83, 0.08);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

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

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

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

.form-control {
  border: 1px solid rgba(59, 73, 83, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: var(--white);
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--secondary-green);
  box-shadow: 0 0 0 3px rgba(90, 120, 99, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233B4953' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

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

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

/* Success modal popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(14, 18, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--light-bg);
  color: var(--secondary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.modal-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  .form-container {
    padding: 1.75rem;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* -------------------------------------------------------------
   15. FOOTER
------------------------------------------------------------- */
.footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-green);
}

.footer-col p {
  color: #B9C6CD;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-logo .logo-accent {
  color: var(--accent-green);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  color: #B9C6CD;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #B9C6CD;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  color: var(--accent-green);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a:hover {
  color: var(--white);
}

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

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-btn:hover {
  background-color: var(--accent-green);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(144, 171, 139, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #8C9CA6;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link:hover {
  color: var(--white);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* -------------------------------------------------------------
   16. ENTRY SCROLL ANIMATIONS (FADE EFFECTS)
------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-left-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-image {
    animation: none;
  }
}

/* -------------------------------------------------------------
   17. FINAL REFINEMENT ADDITIONS & ACADEMIC STYLE
------------------------------------------------------------- */
.academic-symbol {
  position: absolute;
  color: var(--primary-dark);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.5rem;
  opacity: 0.05;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform, opacity;
}

.academic-symbol:hover {
  opacity: 0.25;
  transform: scale(1.2);
}

/* Floating Animations */
@keyframes floatSlow1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatSlow2 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(-8deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatSlow3 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(12deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Glassmorphism Cards */
.card-glass {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 32px 0 rgba(59, 73, 83, 0.05);
}

.card-glass-dark {
  background-color: rgba(59, 73, 83, 0.85);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(14, 18, 20, 0.25);
}

/* Hero Canvas & Academic Visual Layouts */
.hero-academic-canvas {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: var(--light-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(90, 120, 99, 0.15);
}

.hero-academic-canvas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.85) 0%, rgba(235, 244, 221, 0.25) 100%);
  z-index: 1;
}

.hero-academic-canvas svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.about-academic-visual {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid rgba(59, 73, 83, 0.08);
}

.about-academic-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, rgba(235, 244, 221, 0.15) 100%);
  z-index: 1;
}

.about-academic-visual svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

/* Department Cards Redesign */
.dept-card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: 3rem 2.25rem;
  border: 1px solid rgba(59, 73, 83, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  z-index: -1;
  transition: var(--transition-smooth);
  background-size: cover;
  background-position: center;
}

.dept-card-math::before {
  /* Infinite mathematical grid layout pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40h40M40 0v40' fill='none' stroke='%233B4953' stroke-width='0.5'/%3E%3C/svg%3E");
}

.dept-card-physics::before {
  /* Wave/Trajectory pattern */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 0 30 30 T60 30' fill='none' stroke='%233B4953' stroke-width='0.5'/%3E%3C/svg%3E");
}

.dept-card-chemistry::before {
  /* Hexagonal molecular bond grid */
  background-image: url("data:image/svg+xml,%3Csvg width='52' height='30' viewBox='0 0 52 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0 L30 8.66 L30 26 L15 34.64 L0 26 L0 8.66 Z M45 0 L60 8.66 L60 26 L45 34.64 L30 26 M30 8.66 L45 0 M30 26 L45 34.64' fill='none' stroke='%233B4953' stroke-width='0.5'/%3E%3C/svg%3E");
}

.dept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-green);
}

.dept-card:hover::before {
  opacity: 0.1;
  transform: scale(1.05);
}

.dept-header {
  margin-bottom: 1.5rem;
}

.dept-icon {
  width: 56px;
  height: 56px;
  background-color: var(--light-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  transition: var(--transition-smooth);
}

.dept-card:hover .dept-icon {
  background-color: var(--primary-dark);
  color: var(--accent-green);
}

.dept-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.dept-subtitle {
  color: var(--secondary-green);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.dept-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

.dept-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dept-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dept-list li svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.dept-divider-academic {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  opacity: 0.15;
}

.dept-divider-academic svg {
  color: var(--primary-dark);
}

/* ==========================================================================
   18. NEW DESIGN REVISION STYLES
   ========================================================================== */

/* Navbar Social Icons */
.nav-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.social-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-link.whatsapp:hover {
  background-color: #447A57;
  color: var(--white);
  border-color: #447A57;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(68, 122, 87, 0.25);
}

.social-icon-link.instagram:hover {
  background-color: #E1306C;
  color: var(--white);
  border-color: #E1306C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.social-icon-link.email:hover {
  background-color: var(--accent-green);
  color: var(--primary-dark);
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 171, 139, 0.3);
}

.drawer-socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-socials .social-icon-link {
  width: 42px;
  height: 42px;
}

/* Global Academic Background Canvas */
.academic-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.12; /* Increased opacity to 12% for better blueprint visibility */
}

/* Coordinate Grid Shift Animation (blueprint theme grid size 60px) */
.bg-grid-shift {
  position: absolute;
  top: -60px;
  left: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  background-image: 
    linear-gradient(to right, var(--primary-dark) 0.75px, transparent 0.75px),
    linear-gradient(to bottom, var(--primary-dark) 0.75px, transparent 0.75px);
  background-size: 60px 60px;
  animation: gridShift 25s linear infinite;
}

.bg-dark .bg-grid-shift,
.counter-section .bg-grid-shift {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.25) 0.75px, transparent 0.75px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0.75px, transparent 0.75px);
}

@keyframes gridShift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.ani-dash {
  stroke-dasharray: 6, 12;
  animation: trajectoryShift 18s linear infinite;
}

@keyframes trajectoryShift {
  to { stroke-dashoffset: -180; }
}

.ani-rotate {
  animation: rotateSlow 28s linear infinite;
}

@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Soft glowing academic particles */
.glow-particle {
  animation: glowPulse 12s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 0.85; transform: scale(1.15); }
}

/* About Us Stats Cards Container */
.about-stats-container {
  position: relative;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid rgba(59, 73, 83, 0.08);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: 2.5rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.academic-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
}

.academic-bg-overlay svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.about-stat-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.about-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-green);
}

.about-stat-card .stat-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.about-stat-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary-green);
  margin-bottom: 0.5rem;
}

.about-stat-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .about-stats-container {
    padding: 1.5rem;
    min-height: auto;
  }
}


/* ==========================================================================
   19. COMPREHENSIVE MOBILE OPTIMIZATION
   Target: 320px, 375px, 390px, 414px, 768px, 1024px
   Desktop layout is NOT affected. Only mobile refinements below.
   ========================================================================== */

/* ---- TABLET (max-width: 1024px) ---- */
@media (max-width: 1024px) {
  /* Hide nav-socials on tablet/mobile — socials live in the drawer */
  .nav-socials {
    display: none;
  }
}

/* ---- TABLET PORTRAIT / LARGE MOBILE (max-width: 768px) ---- */
@media (max-width: 768px) {
  /* Hero refinements */
  .hero {
    padding: 3.5rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1.05rem;
    max-width: 100%;
  }

  /* Ensure hero CTA buttons stack and have proper touch targets */
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
  }

  /* Trust badges stay 2x2 grid on mobile */
  .hero-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    max-width: 100%;
  }

  .hero-badge-item {
    font-size: 0.85rem;
  }

  /* Blueprint background: slightly lower opacity on smaller screens for clarity */
  .hero-blueprint-bg {
    background-position: center center;
  }

  /* Counter section */
  .counter-number {
    font-size: 2.5rem;
  }

  .counter-label {
    font-size: 0.92rem;
  }

  /* Cards: reduce hover transform on touch devices */
  .card:hover {
    transform: translateY(-4px);
  }

  .faculty-card:hover {
    transform: translateY(-3px);
  }

  /* Faculty avatar smaller on mobile */
  .faculty-avatar-container {
    height: 200px;
  }

  /* CTA Block */
  .cta-block h2 {
    font-size: 2rem;
  }

  .cta-block p {
    font-size: 1.05rem;
  }

  /* Footer center-align on mobile */
  .footer-col {
    text-align: center;
  }

  .footer-col h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: left;
  }

  .footer-links {
    align-items: center;
  }

  /* Prevent horizontal overflow globally */
  body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Section headers */
  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* Form optimizations */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    min-height: 48px;
    padding: 0.85rem 1rem;
  }

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

  /* About section bullets: keep 2-column on tablets */
  .about-bullets {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- MOBILE (max-width: 560px) ---- */
@media (max-width: 560px) {
  .hero {
    padding: 2.75rem 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .hero-cta .btn {
    min-height: 50px;
    font-size: 0.95rem;
  }

  /* Trust badges: maintain 2x2 on small mobile */
  .hero-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-badge-item {
    font-size: 0.8rem;
    gap: 0.35rem;
  }

  .hero-badge-item svg {
    width: 16px;
    height: 16px;
  }

  /* Badge pill */
  .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.85rem;
  }

  /* Counter section: keep 2x2 grid */
  .counter-section {
    padding: 3rem 0;
  }

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

  .counter-card {
    border-right: none;
    padding: 0.75rem 0.5rem;
  }

  .counter-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .counter-number {
    font-size: 2.25rem;
  }

  .counter-label {
    font-size: 0.82rem;
  }

  /* Cards */
  .card {
    padding: 1.75rem;
  }

  .card:hover {
    transform: translateY(-3px);
  }

  /* Faculty preview cards */
  .faculty-avatar-container {
    height: 180px;
  }

  .faculty-info {
    padding: 1.25rem;
  }

  /* Section padding compression */
  .section-padding {
    padding: 3rem 0;
  }

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

  .section-header h2 {
    font-size: 1.75rem;
  }

  /* Footer */
  .footer {
    padding: 3.5rem 0 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.82rem;
  }

  .footer-bottom-links {
    gap: 1rem;
  }

  /* CTA section */
  .cta-block h2 {
    font-size: 1.75rem;
  }

  .cta-block p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .cta-buttons .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Mobile drawer refinements */
  .nav-drawer {
    width: 280px;
    padding: 5rem 1.75rem 1.75rem;
  }

  .drawer-link {
    font-size: 1.15rem;
  }

  .drawer-socials {
    gap: 1rem;
    padding-top: 1.25rem;
  }

  .drawer-socials .social-icon-link {
    width: 44px;
    height: 44px;
  }

  /* About section */
  .about-content h2 {
    font-size: 1.75rem;
  }

  .about-content p {
    font-size: 0.92rem;
  }

  /* About stats: keep 2x2 on mobile */
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .about-stats-container {
    padding: 1.5rem;
    min-height: auto;
  }

  .about-stat-card {
    padding: 1rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  /* Staff page: filter buttons scroll horizontally */
  .filter-group {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.6rem 1rem;
    min-height: 44px;
  }

  /* Department cards on staff page */
  .dept-card {
    padding: 1.5rem;
  }
}

/* ---- SMALL MOBILE (max-width: 414px) ---- */
@media (max-width: 414px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-badges-grid {
    gap: 0.6rem;
  }

  .hero-badge-item {
    font-size: 0.78rem;
  }

  /* Footer contact items: stack vertically */
  .footer-contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }

  /* Slightly reduce form container padding */
  .form-container {
    padding: 1.5rem;
  }

  .modal-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
}

/* ---- EXTRA SMALL MOBILE (max-width: 375px) ---- */
@media (max-width: 375px) {
  .hero {
    padding: 2.25rem 0;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content p {
    font-size: 0.88rem;
  }

  .hero-cta .btn {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .footer-logo {
    font-size: 1.25rem;
  }

  .nav-drawer {
    width: 260px;
    padding: 4.5rem 1.5rem 1.5rem;
  }

  .drawer-link {
    font-size: 1.05rem;
  }
}

/* ---- MINIMUM MOBILE (max-width: 320px) ---- */
@media (max-width: 320px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta .btn {
    padding: 0.8rem 0.75rem;
    font-size: 0.85rem;
    min-height: 46px;
  }

  .hero-badge-item {
    font-size: 0.72rem;
  }

  .counter-grid {
    gap: 1rem;
  }

  .counter-number {
    font-size: 1.75rem;
  }

  .counter-label {
    font-size: 0.78rem;
  }

  .card {
    padding: 1.5rem;
  }

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

  .section-header h2 {
    font-size: 1.45rem;
  }

  .footer-grid {
    gap: 1.75rem;
  }

  .footer-col p,
  .footer-link {
    font-size: 0.85rem;
  }

  .cta-block h2 {
    font-size: 1.5rem;
  }

  .nav-drawer {
    width: 240px;
    padding: 4rem 1.25rem 1.25rem;
  }

  /* About stats: single column on very small screens */
  .about-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- TOUCH DEVICE ENHANCEMENTS ---- */
@media (hover: none) and (pointer: coarse) {
  /* Remove hover transforms on touch-only devices to prevent sticky hover states */
  .card:hover {
    transform: none;
  }

  .faculty-card:hover {
    transform: none;
  }

  /* Ensure all interactive elements have at least 44px touch target */
  .btn {
    min-height: 48px;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .drawer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .filter-btn {
    min-height: 44px;
  }

  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-social-btn {
    width: 44px;
    height: 44px;
  }

  .social-icon-link {
    width: 40px;
    height: 40px;
  }
}

