/* ================================================================
   RUDRA SCHOOL - OUR FACILITIES & FACILITY DETAIL STYLES
   Faithful to https://rudrathepraticalschool.com/our-facilities/
   120fps Smooth, High-DPI Assets, Fully Mobile Responsive
   ================================================================ */

/* ===== 1. HERO BANNER ===== */
.fac-hero {
  background: linear-gradient(135deg, #062a1e 0%, #0b3d2c 60%, #0d4a36 100%);
  color: #ffffff;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #f59e0b;
}

.fac-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at 80% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.fac-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.fac-breadcrumb a {
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fac-breadcrumb a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.fac-breadcrumb .separator {
  color: #64748b;
}

.fac-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.fac-hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.fac-hero-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #e2e8f0;
  max-width: 800px;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

/* ===== 2. MAIN SPLIT CONTENT SECTION ===== */
.fac-content-section {
  padding: 65px 0;
  background: #ffffff;
}

.fac-content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
}

.fac-lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 22px;
  padding-left: 20px;
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
}

.fac-body-p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 18px;
}

/* Photo & Stats Column */
.fac-media-col {
  position: sticky;
  top: 100px;
}

.fac-photo-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(11, 61, 44, 0.12);
  border: 4px solid #ffffff;
  background: #08291f;
  margin-bottom: 24px;
}

.fac-photo-img {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 480px;
  object-fit: contain;
  background: #092c21;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 12px;
}

.fac-photo-frame:hover .fac-photo-img {
  transform: scale(1.02);
}

.fac-badge-overlay {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f59e0b;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fac-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fac-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.fac-stat-card:hover {
  transform: translateY(-2px);
  border-color: #f59e0b;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.fac-stat-number {
  font-family: var(--font-primary);
  font-size: 1.6rem;
  font-weight: 800;
  color: #0b3d2c;
  margin-bottom: 4px;
  line-height: 1.1;
}

.fac-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.3;
}

/* ===== 3. KEY FEATURES GRID ===== */
.fac-features-section {
  padding: 70px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.fac-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px;
}

.fac-section-title {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  color: #0b3d2c;
  margin-bottom: 10px;
}

.fac-section-desc {
  font-size: 1.02rem;
  color: #64748b;
  line-height: 1.6;
}

.fac-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.fac-feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.fac-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(11, 61, 44, 0.08);
  border-color: #cbd5e1;
}

.fac-feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fac-feature-content h4 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.fac-feature-content p {
  font-size: 0.94rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* ===== 4. OTHER FACILITIES BROWSER ===== */
.fac-others-section {
  padding: 70px 0;
  background: #ffffff;
}

.fac-others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.fac-other-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.fac-other-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(11, 61, 44, 0.1);
  border-color: #f59e0b;
}

.fac-other-img-wrap {
  height: 180px;
  background: #08291f;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.fac-other-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.fac-other-card:hover .fac-other-img-wrap img {
  transform: scale(1.05);
}

.fac-other-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fac-other-body h4 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.fac-other-body p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex: 1;
}

.fac-other-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.fac-other-card:hover .fac-other-link {
  color: #f59e0b;
  gap: 10px;
}

/* ===== 5. MAIN FACILITIES HUB (/our-facilities & /facilities) ===== */
.facilities-hub-hero {
  background: linear-gradient(135deg, #062a1e 0%, #0b3d2c 60%, #0d4a36 100%);
  color: #ffffff;
  padding: 70px 0 60px;
  text-align: center;
  border-bottom: 3px solid #f59e0b;
}

.facilities-hub-hero h1,
.facilities-hub-title {
  color: #ffffff !important;
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.facilities-hub-hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

.facilities-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.facility-hub-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.facility-hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 61, 44, 0.12);
  border-color: #059669;
}

.facility-hub-media {
  height: 220px;
  background: #08291f;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.facility-hub-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.facility-hub-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #f59e0b;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.facility-hub-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.facility-hub-content h3 {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.facility-hub-content p {
  font-size: 0.93rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.btn-facility-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #a7f3d0;
  transition: all 0.25s ease;
}

.facility-hub-card:hover .btn-facility-view {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

/* ===== 6. ADMISSIONS CALLOUT ===== */
.fac-cta-section {
  padding: 60px 0 80px;
  background: #f8fafc;
}

.fac-cta-card {
  background: linear-gradient(135deg, #0b3d2c 0%, #062a1e 100%);
  border-radius: 24px;
  padding: 50px 60px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(11, 61, 44, 0.18);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.fac-cta-content h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #f59e0b;
  margin-bottom: 12px;
}

.fac-cta-content p {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 0;
}

.fac-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.btn-fac-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #f59e0b;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-fac-primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.btn-fac-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-fac-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 992px) {
  .fac-content-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .fac-media-col {
    position: static;
  }

  .fac-features-grid,
  .facilities-hub-grid,
  .fac-others-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .fac-cta-card {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .fac-hero-title {
    font-size: 1.85rem;
  }

  .fac-hero {
    padding: 45px 0 35px;
  }

  .fac-features-grid,
  .facilities-hub-grid,
  .fac-others-grid {
    grid-template-columns: 1fr;
  }

  .fac-stats-grid {
    grid-template-columns: 1fr;
  }
}
