/* =============================================
   COMPONENT STYLES — Aatmaj Vidya Mandir School
   Navbar, Hero, Cards, Footer, etc.
   ============================================= */

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  transition: var(--transition);
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.98);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo i {
  font-size: 2rem;
  color: var(--secondary);
}

.logo-name {
  display: block;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1.2;
}

.logo-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

.nav-link {
  padding: 0.5rem 0.85rem;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== TOP BAR (above navbar) ===== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 0.4rem 0;
  font-size: 0.82rem;
}

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

.top-bar a {
  color: var(--white);
  margin-left: 1rem;
}

.top-bar a:hover {
  color: var(--secondary);
}

.top-bar i {
  margin-right: 0.4rem;
}

/* ===== HERO SECTION (Home Page) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') no-repeat bottom;
  background-size: cover;
  pointer-events: none;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-banner-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
  background: var(--white);
}

.hero-banner-wrapper:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.hero-banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-banner-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-content h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--secondary);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 550px;
}

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

.hero-shapes {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 80%;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.08;
  background: var(--white);
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 10%;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  right: 25%;
}

.hero-shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 40%;
  opacity: 0.05;
}

/* ===== PAGE HEADER (Sub-pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  margin-top: 0;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

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

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

/* ===== ANNOUNCEMENT TICKER ===== */
.announcement-bar {
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 0.6rem 0;
  overflow: hidden;
  position: relative;
}

.announcement-bar .label {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.ticker-wrap {
  margin-left: 140px;
  overflow: hidden;
}

.ticker {
  display: flex;
  animation: ticker 25s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  padding: 0 3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.ticker-item i {
  margin-right: 0.5rem;
  color: var(--primary);
}

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

/* ===== STATS SECTION ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card .icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-card .number {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .number span {
  color: var(--secondary);
}

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

/* ===== HIGHLIGHT / FEATURE CARDS ===== */
.highlight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transition: var(--transition);
}

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

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

.highlight-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--light-gray));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-card .icon i {
  font-size: 2rem;
  color: var(--primary);
}

.highlight-card h3 {
  margin-bottom: 0.75rem;
}

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

/* ===== ABOUT / INFO SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 4rem;
}

.about-content h2 {
  margin-bottom: 1rem;
}

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

.about-content .highlight-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  border-left: 4px solid var(--secondary);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

/* Mission / Vision Boxes */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mv-box {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
}

.mv-box.mission {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.mv-box.vision {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  color: var(--primary-dark);
}

.mv-box.values {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text);
}

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

.mv-box i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.mv-box.mission i,
.mv-box.mission h3 {
  color: var(--white);
}

.mv-box.vision h3 {
  color: var(--primary-dark);
}

.mv-box.values i {
  color: var(--primary);
}

.mv-box h3 {
  margin-bottom: 1rem;
}

.mv-box p {
  font-size: 0.95rem;
}

.mv-box.mission p {
  color: rgba(255, 255, 255, 0.85);
}

.mv-box.vision p {
  color: var(--primary-dark);
  opacity: 0.85;
}

/* ===== PRINCIPAL'S MESSAGE ===== */
.principal-section {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

.principal-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 5rem;
  box-shadow: var(--shadow);
}

.principal-content blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  border-left: 4px solid var(--secondary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.8;
}

.principal-content .name {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}

.principal-content .designation {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 30px);
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 30px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  border: 3px solid var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  border: 1px solid var(--border);
}

.timeline-content .year {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary-dark);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.testimonial-card .quote-icon {
  font-size: 2rem;
  color: var(--secondary);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-author .info h4 {
  font-size: 0.95rem;
  margin-bottom: 0;
}

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

/* ===== TABLES ===== */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

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

.table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-light);
}

.table tbody tr:hover {
  background: var(--light-gray);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== FORMS ===== */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-group label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

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

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.3rem;
  display: none;
}

.form-control.error {
  border-color: var(--danger);
}

.form-control.error + .form-error {
  display: block;
}

.form-success {
  background: var(--success);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  display: none;
  margin-top: 1rem;
}

.form-success.show {
  display: block;
}

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

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

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

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

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

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
}

.gallery-placeholder i {
  font-size: 2rem;
  opacity: 0.8;
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 92, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

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

.gallery-item .overlay i {
  font-size: 1.5rem;
  color: var(--white);
}

/* Gallery color variations for placeholders */
.gallery-placeholder.color-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.gallery-placeholder.color-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.gallery-placeholder.color-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.gallery-placeholder.color-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.gallery-placeholder.color-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.gallery-placeholder.color-6 { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.gallery-placeholder.color-7 { background: linear-gradient(135deg, #fccb90, #d57eeb); }
.gallery-placeholder.color-8 { background: linear-gradient(135deg, #e0c3fc, #8ec5fc); }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-content img,
.lightbox-placeholder {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-placeholder {
  width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--secondary);
  transform: scale(1.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 0.95rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
}

/* ===== FACULTY CARDS ===== */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.faculty-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border);
}

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

.faculty-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
}

.faculty-info {
  padding: 1.25rem;
}

.faculty-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
}

.faculty-info .designation {
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.faculty-info .subject {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ===== FACILITIES CARDS ===== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.facility-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

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

.facility-card .icon-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.facility-card:hover .icon-circle {
  background: var(--primary);
}

.facility-card .icon-circle i {
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.facility-card:hover .icon-circle i {
  color: var(--white);
}

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

.facility-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== EVENTS / NEWS ===== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.event-date {
  background: var(--primary);
  color: var(--white);
  padding: 1.25rem;
  text-align: center;
}

.event-date .day {
  display: block;
  font-size: 2rem;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

.event-card .event-info {
  padding: 1.5rem;
}

.event-card .event-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.event-card .event-tag {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ===== CONTACT INFO ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-card {
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.contact-info-card:hover {
  background: var(--primary);
  color: var(--white);
}

.contact-info-card:hover i,
.contact-info-card:hover h4,
.contact-info-card:hover p {
  color: var(--white);
}

.contact-info-card i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  display: block;
}

.contact-info-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
}

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

.map-placeholder {
  width: 100%;
  height: 100%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
}

.map-placeholder i {
  font-size: 3rem;
  color: var(--primary);
}

/* ===== ACADEMICS ===== */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.curriculum-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.curriculum-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.curriculum-card h3 i {
  color: var(--secondary);
}

.curriculum-card ul {
  list-style: none;
}

.curriculum-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
  color: var(--text-light);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.curriculum-card ul li:last-child {
  border-bottom: none;
}

.curriculum-card ul li i {
  color: var(--success);
  font-size: 0.8rem;
}

/* ===== ADMISSION STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step-card h4 {
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== DOCUMENT LIST ===== */
.doc-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.doc-list h3 {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-list h3 i {
  color: var(--secondary);
}

.doc-list ul {
  list-style: none;
}

.doc-list ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.doc-list ul li:last-child {
  border-bottom: none;
}

.doc-list ul li i {
  color: var(--primary);
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.cta-section .btn {
  margin: 0 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col p i {
  color: var(--secondary);
  margin-right: 0.5rem;
  width: 18px;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
  font-size: 1rem;
}

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

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: var(--secondary);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== INFO LIST (general purpose) ===== */
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.info-list li i {
  color: var(--secondary);
  margin-top: 4px;
  min-width: 18px;
}

/* ===== LOGO IMAGE (Navbar & Footer) ===== */
.logo-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* ===== EVENT IMAGE CARD ===== */
.event-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

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

.event-date-badge {
  position: absolute;
  bottom: -1px;
  right: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius) var(--radius) 0 0;
  text-align: center;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.event-date-badge .day {
  display: block;
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date-badge .month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}

/* ===== VIDEO GRID & CARDS ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 1rem 1.25rem;
}

.video-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== RESPONSIVE: Video & Event grids ===== */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  
  .event-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .event-image {
    height: 150px;
  }
  
  .logo-img {
    width: 40px;
    height: 40px;
  }
}

