/* ==========================================================================
   Nilkantha Polytechnic Institute - UI Components & Modules
   ========================================================================== */

/* Hero Section */
.hero-section {
  position: relative;
  background: #081B33;
  color: #FFFFFF;
  overflow: hidden;
  min-height: 580px;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  transform: scale(1.04);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(8, 27, 51, 0.92) 0%, rgba(8, 27, 51, 0.78) 45%, rgba(8, 27, 51, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  padding: 5rem 0 7rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(200, 16, 46, 0.9);
  color: #FFFFFF;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: 1.15rem;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 400;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-light) 100%);
  color: #FFFFFF !important;
  box-shadow: var(--shadow-crimson);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(200, 16, 46, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

/* Hero Slider Controls */
.slider-nav-arrows {
  position: absolute;
  bottom: 2.5rem;
  right: 2rem;
  display: flex;
  gap: 0.6rem;
  z-index: 20;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

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

.slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  width: 32px;
  border-radius: 6px;
  background: var(--crimson-light);
}

/* Floating Stats Bar */
.hero-stats-wrapper {
  position: relative;
  margin-top: -3.5rem;
  z-index: 30;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

[data-theme="dark"] .stat-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Principal / Executive Desk */
.principal-card-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
}

.principal-photo-col {
  position: relative;
  background: #0B2545;
}

.principal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.principal-badge-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(11, 37, 69, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.principal-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.principal-role {
  font-size: 0.8rem;
  color: var(--gold-light);
}

.principal-content-col {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--crimson-light);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.principal-speech {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.principal-highlights-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
  list-style: none;
}

.principal-highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.principal-highlight-item i {
  color: var(--success);
}

/* Academic Programs Showcase */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-focus);
}

.program-thumb-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.program-card:hover .program-thumb {
  transform: scale(1.06);
}

.program-seats-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--crimson);
  color: #FFFFFF;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.program-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.program-meta {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.program-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.program-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.program-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.program-features-list {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.program-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.program-feature-item i {
  color: var(--primary-light);
  margin-top: 3px;
}

.program-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Interactive CTEVT Eligibility Calculator */
.calc-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

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

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #E2E8F0;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E2E8F0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px 15px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.form-control option {
  background: #0F3870;
  color: #FFFFFF;
  padding: 0.5rem;
}

select.admission-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F3870' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px 15px;
  padding-right: 2.5rem;
  cursor: pointer;
}

[data-theme="dark"] select.admission-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.grade-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.calc-result-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.result-status-pill {
  display: inline-block;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.status-eligible {
  background: #10B981;
  color: #FFFFFF;
}

.status-ineligible {
  background: var(--crimson-light);
  color: #FFFFFF;
}

.status-pending {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Online Admission Application Wizard */
.admission-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
}

.wizard-steps-header {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3rem;
}

.wizard-steps-header::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.wizard-step-node.active .step-circle {
  border-color: var(--primary);
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 6px var(--primary-subtle);
}

.wizard-step-node.completed .step-circle {
  border-color: var(--success);
  background: var(--success);
  color: #FFFFFF;
}

.step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.wizard-step-node.active .step-title {
  color: var(--primary);
}

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

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

.admission-input {
  background: var(--bg-body);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  transition: all var(--transition-fast);
}

.admission-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* Printable Admit Slip */
.admit-slip-box {
  border: 2px dashed var(--primary);
  background: #FFFFFF;
  color: #0F172A;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 1.5rem;
}

.admit-slip-header {
  text-align: center;
  border-bottom: 2px solid #0F3870;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.slip-grid {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 1.5rem;
}

.slip-details-table {
  width: 100%;
  border-collapse: collapse;
}

.slip-details-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.92rem;
}

.slip-details-table td.label-cell {
  font-weight: 700;
  color: #475569;
  width: 38%;
}

.slip-qr-box {
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Notice Board & Filtering */
.notices-filter-nav {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-pill-btn {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  color: var(--text-main);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.notices-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-item-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: all var(--transition-fast);
}

.notice-item-card:hover {
  transform: translateX(6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.notice-date-badge {
  background: var(--primary-subtle);
  color: var(--primary);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  text-align: center;
  min-width: 90px;
  flex-shrink: 0;
}

[data-theme="dark"] .notice-date-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
}

.notice-bs-day {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.notice-bs-month {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.notice-title-box {
  flex: 1;
}

.notice-cat-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.35rem;
}

.cat-admission { background: #FEF3C7; color: #B45309; }
.cat-exam { background: #DBEAFE; color: #1D4ED8; }
.cat-circular { background: #D1FAE5; color: #047857; }
.cat-tender { background: #FEE2E2; color: #B91C1C; }

.notice-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

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

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 27, 51, 0.9) 0%, rgba(8, 27, 51, 0.2) 60%, transparent 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  transition: opacity var(--transition-fast);
}

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

.gallery-overlay-title {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
}

.gallery-overlay-cat {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Modal Popup Core */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-backdrop.is-open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--crimson);
}

.modal-body {
  padding: 1.75rem;
}

/* Citizen Charter (नागरिक बडापत्र) */
.charter-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.charter-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.charter-table th {
  background: var(--primary);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.charter-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-main);
}

.charter-table tr:hover td {
  background: var(--primary-subtle);
}

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

.faculty-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.faculty-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  border: 3px solid var(--primary-subtle);
}

.faculty-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.faculty-role {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.faculty-dept {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.facility-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

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

.facility-img-wrap {
  height: 200px;
  overflow: hidden;
}

.facility-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.facility-card:hover .facility-img-wrap img {
  transform: scale(1.06);
}

.facility-body {
  padding: 1.5rem;
}

.facility-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.facility-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Downloads Hub */
.downloads-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.downloads-table th {
  background: var(--bg-alt);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.downloads-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

/* Contact Us Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

.contact-item-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--gold-light);
}

.contact-form-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

/* Footer */
.main-footer {
  background: #081B33;
  color: #94A3B8;
  padding-top: 4.5rem;
  border-top: 4px solid var(--crimson);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--crimson);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  color: #CBD5E1;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links-list a:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--crimson);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.social-icon-btn i {
  color: #FFFFFF;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  font-size: 0.84rem;
  text-align: center;
  color: #64748B;
}

/* Floating Quick Action Widget */
.floating-actions-bar {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 1000;
}

.fab-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  font-size: 1.2rem;
}

.fab-apply {
  background: var(--crimson);
  color: #FFFFFF;
  position: relative;
}

.fab-apply:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(200, 16, 46, 0.5);
}

.fab-top {
  background: var(--primary);
  color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
}

.fab-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.fab-top:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

/* Responsive Rules for Components */
@media (max-width: 1024px) {
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .programs-grid { grid-template-columns: 1fr; }
  .principal-card-box { grid-template-columns: 1fr; }
  .principal-photo-col { height: 350px; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-content {
    padding: 2.75rem 0 3.5rem;
  }
  .hero-tag {
    font-size: 0.78rem;
    padding: 0.25rem 0.8rem;
    margin-bottom: 0.85rem;
  }
  .hero-title { 
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
  }
  .hero-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
  .hero-btns {
    gap: 0.6rem;
  }
  .slider-nav-arrows {
    display: none; /* Hide arrow clutter on mobile */
  }
  .slider-dots {
    bottom: 0.85rem;
    left: 1rem;
  }
  .hero-stats-wrapper {
    margin-top: -1.25rem;
    padding: 0 0.5rem;
  }
  .hero-stats-grid { 
    grid-template-columns: 1fr;
    padding: 1rem 0.85rem;
    gap: 0.65rem;
    border-radius: var(--radius-lg);
  }
  .stat-item {
    padding: 0.6rem 0.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .stat-num {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.82rem;
  }
  .floating-actions-bar {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
  .fab-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .wizard-steps-header { display: none; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .grade-inputs-row { grid-template-columns: 1fr; }
  .facilities-grid, .gallery-grid, .faculty-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .notice-item-card { flex-direction: column; align-items: flex-start; }
}
