/* ==========================================================================
   Page Specific Styles: Inner Page Banners, About, Facilities, Payment, etc.
   ========================================================================== */

/* Inner Page Hero Header */
.page-hero {
  background: linear-gradient(135deg, rgba(14, 75, 82, 0.92) 0%, rgba(4, 47, 46, 0.95) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, rgba(7, 13, 20, 0.95) 0%, rgba(12, 22, 34, 0.98) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition-fast);
}

.breadcrumb-nav a:hover {
  color: var(--accent-300);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero-title {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.page-hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* ==========================================================================
   About Page Components
   ========================================================================== */

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

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

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

.about-main-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -1.25rem;
  right: -1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .about-experience-badge {
    position: static;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    box-shadow: var(--shadow-md);
  }
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-700);
  line-height: 1;
}

[data-theme="dark"] .exp-number {
  color: var(--primary-400);
}

.exp-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

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

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

.value-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.value-card h4 {
  font-size: 1.1rem;
  color: var(--primary-700);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .value-card h4 {
  color: var(--primary-300);
}

/* ==========================================================================
   Admissions & Eligibility Table
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.custom-table th {
  background: var(--primary-50);
  color: var(--primary-900);
  padding: 1rem 1.25rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .custom-table th {
  background: rgba(13, 148, 136, 0.2);
  color: #ffffff;
}

.custom-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

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

.custom-table tr:hover td {
  background: var(--bg-tertiary);
}

/* ==========================================================================
   Facilities Page Styles
   ========================================================================== */

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

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

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

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

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

.facility-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.facility-content p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.payment-grid > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 900px) {
  .payment-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.bank-details-card {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-950));
  color: #ffffff;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 480px) {
  .bank-details-card {
    padding: 1.5rem 1.25rem;
  }
}

.bank-details-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

@media (max-width: 480px) {
  .bank-details-card::before {
    display: none;
  }
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.925rem;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .bank-detail-row {
    font-size: 0.825rem;
    padding: 0.65rem 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }
}

.bank-detail-row:last-child {
  border-bottom: none;
}

.bank-label {
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.bank-val {
  font-weight: 700;
  color: #ffffff;
  text-align: right;
  word-break: break-word;
}

@media (max-width: 480px) {
  .bank-val {
    text-align: left;
  }
}

.qr-code-box {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
  color: #0f172a;
  max-width: 100%;
}

.qr-code-box img {
  width: 160px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
}

.qr-code-box p {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: #475569;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  width: 100%;
  max-width: 100%;
}

.contact-grid > * {
  min-width: 0;
  max-width: 100%;
}

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

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  width: 100%;
  max-width: 100%;
}

.contact-info-card > div {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 480px) {
  .contact-info-card {
    padding: 1.15rem 0.85rem;
    gap: 0.75rem;
  }
  .contact-grid .glass-card,
  .payment-grid .glass-card {
    padding: 1.5rem 1.15rem !important;
  }
}

.contact-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--primary-50);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .contact-icon-box {
    width: 42px;
    height: 42px;
  }
}

[data-theme="dark"] .contact-icon-box {
  background: rgba(13, 148, 136, 0.2);
  color: var(--primary-300);
}

.contact-icon-box svg {
  width: 24px;
  height: 24px;
}

.contact-map-wrapper {
  margin-top: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  height: 420px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .contact-map-wrapper {
    height: 280px;
    margin-top: 2rem;
  }
}

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