/*
 * TAPWEBS International School - Main Stylesheet
 * Author: Antigravity AI
 * Description: Premium, modern, responsive styles for the school frontend.
 * Fully accessible and mobile-optimized
 */

:root {
  /* Color Palette */
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --navy: #0f172a;
  --secondary: #2563eb;
  --accent: #f59e0b;
  /* Golden accent */
  --text-main: #334155;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border-color: #e2e8f0;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Spacing */
  --section-padding: 80px 0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
}

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

a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

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

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

/* Common Layout Utils */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding: var(--section-padding);
}

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

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

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

.text-primary {
  color: var(--primary-color) !important;
}

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

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

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

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

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

.text-start {
  text-align: left;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-800 {
  max-width: 800px;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mr-3 {
  margin-right: 1rem;
}

.text-sm {
  font-size: 0.875rem;
}

.font-bold {
  font-weight: bold;
}

.fst-italic {
  font-style: italic;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

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

.justify-content-between {
  justify-content: space-between;
}

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

.flex-center-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.gap-4 {
  gap: 1.5rem;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.rounded {
  border-radius: var(--radius-md);
}

.border {
  border: 1px solid var(--border-color);
}

.border-top {
  border-top: 1px solid var(--border-color);
}

.border-bottom {
  border-bottom: 1px solid var(--border-color);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow-md);
}

.list-unstyled {
  list-style: none;
  padding: 0;
}

.display-4 {
  font-size: 2.5rem;
}

.display-6 {
  font-size: 2rem;
}

.cursor-pointer {
  cursor: pointer;
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  will-change: transform, box-shadow;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  min-height: 48px;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

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

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

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

.btn-secondary:hover {
  opacity: 0.9;
}

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

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

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

.btn-light {
  background: var(--white);
  color: var(--navy);
}

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

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge-light {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.badge-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

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

.bg-success {
  background-color: #10b981 !important;
}

.text-success {
  color: #10b981;
}

.bg-warning {
  background-color: var(--accent) !important;
  color: var(--navy);
}

.bg-danger {
  background-color: #ef4444 !important;
}

.text-danger {
  color: #ef4444;
}

/* Section Headers */
.section-subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

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

.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background-color: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.announcement-bar p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.announcement-bar a {
  color: var(--accent);
  font-weight: bold;
}

.announcement-bar a:hover {
  text-decoration: underline;
}

/* --- Header / Navigation --- */
#site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

#site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.logo-text h1 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1;
}

.logo-text h1 span {
  color: var(--primary-color);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--navy);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

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

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--navy);
  padding: 0.5rem;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%),
              linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-text h1 {
  font-size: 4rem;
  color: var(--white);
  margin: 1rem 0;
}

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

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: #e2e8f0;
}

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

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-left: auto;
  min-width: 250px;
}

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

.stat-item h3 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Vision / Mission --- */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.vm-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid transparent;
  will-change: transform;
}

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

.vm-card:nth-child(1) {
  border-top-color: var(--primary-color);
}

.vm-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.vm-card:nth-child(3) {
  border-top-color: var(--accent);
}

.vm-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.value-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-list i {
  color: var(--success);
}

/* --- Campus Highlights --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.highlight-card:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.h-img {
  height: 180px;
  overflow: hidden;
}

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

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

.h-content {
  padding: 1.5rem;
}

.h-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.h-content p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Quick Adm / Notices --- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.quick-admission h2 {
  color: var(--white);
  margin: 1rem 0;
  font-size: 2.5rem;
}

.quick-admission p {
  font-size: 1.125rem;
  color: #cbd5e1;
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.nb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.nb-header h3 {
  color: var(--white);
  margin: 0;
}

.notice-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.notice-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border: none;
}

.n-date {
  background: var(--accent);
  color: var(--navy);
  min-width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
}

.n-date span {
  font-size: 1.5rem;
}

.n-info h4 {
  color: var(--white);
  margin-bottom: 0.25rem;
}

.n-info p {
  margin: 0;
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.t-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: box-shadow;
}

.t-card:hover {
  box-shadow: var(--shadow-md);
}

.t-quote {
  font-size: 2rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.t-text {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 2rem;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.t-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.t-author h5 {
  margin: 0;
  font-size: 1rem;
}

.t-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- About School --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.img-large {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-small {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 250px;
  border-radius: var(--radius-md);
  border: 10px solid var(--bg-light);
  box-shadow: var(--shadow-md);
}

.experience-badge {
  position: absolute;
  top: 30px;
  left: -30px;
  background: var(--accent);
  color: var(--navy);
  padding: 1.5rem;
  border-radius: 50%;
  text-align: center;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.experience-badge span {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.experience-badge p {
  font-size: 0.75rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
}

.history-text {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1rem;
}

.f-icon {
  width: 50px;
  height: 50px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.f-text h4 {
  margin-bottom: 0.25rem;
}

.f-text p {
  margin: 0;
  font-size: 0.9rem;
}

/* floating animation - optimized with transform */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

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

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

.floating {
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

/* --- Admissions Page --- */
.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 3rem;
}

.step {
  text-align: center;
  width: 18%;
  position: relative;
  z-index: 2;
}

.step-num {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-sm);
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

.step-line {
  flex-grow: 1;
  height: 2px;
  background: var(--border-color);
  margin-top: 25px;
  z-index: 1;
}

.admissions-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 3rem;
}

.custom-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.custom-form input,
.custom-form select,
.custom-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-light);
  min-height: 40px;
}

.custom-form input:focus-visible,
.custom-form select:focus-visible,
.custom-form textarea:focus-visible {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

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

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

.admission-form-wrap {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-color);
}

.file-drop-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  background: #f8fafc;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.file-drop-area:hover {
  border-color: var(--primary-color);
  background: rgba(13, 110, 253, 0.05);
}

.file-drop-area:focus-within {
  border-color: var(--primary-color);
  background: rgba(13, 110, 253, 0.05);
  outline: 3px solid var(--primary-color);
  outline-offset: -2px;
}

.file-input {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.sidebar-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.fee-table {
  border-collapse: collapse;
  text-align: left;
}

.fee-table th,
.fee-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.fee-table th {
  background: var(--bg-light);
  font-weight: 600;
}

/* --- Academics --- */
.academics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.acad-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
}

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

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

.acad-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.acad-card .badge {
  margin-bottom: 1rem;
}

.acad-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Facilities --- */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.fac-item {
  background: var(--bg-light);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  will-change: background, transform;
}

.fac-item:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: scale(1.03);
}

.fac-item i {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.fac-item h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.fac-item p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

/* --- Gallery Masonry --- */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 0.8rem;
  margin-top: 3rem;
}

.mg-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.mg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

.mg-item.tall {
  grid-row: span 2;
}

.mg-item.wide {
  grid-column: span 2;
}

.mg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.mg-overlay span {
  color: white;
  font-weight: bold;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  transform: translateY(20px);
  transition: var(--transition);
}

.mg-item:hover .mg-overlay span {
  transform: translateY(0);
}

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

.staff-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform, box-shadow;
}

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

.s-img {
  height: 260px;
  overflow: hidden;
}

.s-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.staff-card:hover .s-img img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.s-info {
  padding: 1.5rem;
}

.s-info h4 {
  margin-bottom: 0.25rem;
}

.s-info span {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.s-info p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.f-links h4,
.f-newsletter h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.f-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-links li {
  margin-bottom: 0.75rem;
}

.f-links a {
  color: #cbd5e1;
  transition: color 0.3s;
}

.f-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  margin-right: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
  will-change: background, transform;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  outline: none;
}

.newsletter-form button {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Floating Button --- */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-premium);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.floating-btn:hover {
  transform: scale(1.05);
  background: #fcd34d;
  box-shadow: var(--shadow-premium);
}

.tooltip-text {
  position: absolute;
  right: 70px;
  background: var(--navy);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  white-space: nowrap;
}

.floating-btn:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================= */

@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

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

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

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

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

  .process-steps {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .step {
    width: 30%;
    margin-bottom: 2rem;
  }

  .step-line {
    display: none;
  }

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

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

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

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

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

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

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

  .menu-toggle {
    display: flex;
  }

  .d-none-mobile {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-out;
    max-height: 70vh;
    overflow-y: auto;
  }

  .main-nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .main-nav a {
    font-size: 1.1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-stats {
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-buttons .btn {
    min-width: 48px;
    min-height: 48px;
  }

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

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

  .quick-admission h2 {
    font-size: 1.75rem;
  }

  .qa-actions {
    justify-content: center;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

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

  .img-small {
    right: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .contact-grid {
    flex-direction: column;
    display: flex;
    gap: 2rem;
  }

  .map-placeholder {
    min-height: 300px;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .header-container {
    height: auto;
    padding: 0.75rem 0;
  }

  .logo-text h1 {
    font-size: 1.25rem;
  }
}

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

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

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    min-height: 44px;
  }

  .btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
  }

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

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

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

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

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

  .masonry-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .mg-item.tall,
  .mg-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

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

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

  .qa-actions {
    flex-direction: column;
  }

  .step {
    width: 100%;
  }

  .process-steps {
    flex-direction: column;
  }

  .step-line {
    display: none;
  }

  .split-grid {
    padding: 0 1rem;
  }

  .custom-form input,
  .custom-form select,
  .custom-form textarea {
    font-size: 16px;
  }

  .admission-form-wrap {
    padding: 1.5rem;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 1.25rem;
  }

  .hero-overlay {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
  }
}