/* Infrastructure page styles - inherits global styles from style.css */

/* ===== HERO SECTION ===== */
.infrastructure-hero {
  position: relative;
  height: auto;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: none;
}

.infrastructure-hero .hero-overlay {
  display: none;
}

.infrastructure-hero .hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  margin: 0 auto;
}

.infrastructure-hero h1 {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
}

.infrastructure-hero p {
  font-size: 20px;
  opacity: 0.95;
}

/* Desktop Hero Content - Right Aligned */
.infrastructure-hero .banner-text {
  left: auto;
  right: 12%;
  text-align: right;
}

@media (max-width: 991px) {
  .infrastructure-hero .banner-text {
    right: 8%;
  }
}

@media (max-width: 768px) {
  .infrastructure-hero .banner-text {
    right: 5%;
  }
}

/* ===== SECTIONS ===== */
.library-section {
  padding: 70px 0 40px;
  background: white;
}

.laboratories-section {
  padding: 70px 0 40px;
  background: #F7F6EC;
}

.campus-facilities-section {
  padding: 70px 0 40px;
  background: white;
}

/* ===== FACILITY CONTENT ===== */
.facility-label {
  display: inline-block;
  background: rgba(232,64,42,0.1);
  color: #E8402A;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 15px;
  border: 1px solid rgba(232,64,42,0.2);
}

.facility-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
}

.facility-intro {
  font-size: 18px;
  line-height: 1.8;
  color: #000000;
  margin-bottom: 40px;
}

/* ===== FACILITY IMAGE ===== */
.facility-image {
  position: relative;
}

.facility-image img {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%;
}

.facility-badge {
  position: absolute;
  bottom: 30px;
  right: 30px;
  background: white;
  padding: 20px 30px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 4px solid #E8402A;
}

.facility-badge i {
  font-size: 32px;
  color: #E8402A;
}

.facility-badge span {
  font-size: 16px;
  font-weight: 600;
  color: #000000;
}

/* ===== FEATURE ITEMS ===== */
.facility-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-item i {
  font-size: 30px;
  color: #E8402A;
  min-width: 45px;
  margin-top: 5px;
}

.feature-item h5 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000000;
}

.feature-item p {
  font-size: 15px;
  color: #000000;
  margin: 0;
  line-height: 1.6;
}

/* ===== CAMPUS FACILITIES ===== */
.section-desc {
  font-size: 17px;
  color: #000000;
  max-width: 700px;
  margin: 15px auto 0;
  line-height: 1.7;
}

.campus-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.campus-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.campus-image {
  position: relative;
  height: 390px;
  overflow: hidden;
}

.campus-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.campus-card:hover .campus-image img {
  transform: scale(1.1);
}

.campus-content {
  padding: 35px 30px;
}

.campus-icon {
  width: 60px;
  height: 60px;
  background: #E8402A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.campus-icon i {
  font-size: 28px;
  color: white;
}

.campus-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000;
}

.campus-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.campus-content ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  font-size: 15px;
  color: #000000;
  line-height: 1.6;
}

.campus-content ul li:before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #E8402A;
  font-size: 14px;
}

/* ===== CTA SECTION ===== */
.infrastructure-cta {
  padding: 70px 0 40px;
  background: #E8402A;
  color: white;
}

.infrastructure-cta h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
}

.infrastructure-cta p {
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.infrastructure-cta .btn-dark-primary {
  background: white;
  color: #E8402A;
  padding: 16px 35px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.infrastructure-cta .btn-dark-primary:hover {
  background: #F7F6EC;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.infrastructure-cta .btn-outline-light {
  padding: 16px 35px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.8);
  color: white;
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.infrastructure-cta .btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .infrastructure-hero {
    height: auto;
  }
  
  .infrastructure-hero h1 {
    font-size: 38px;
  }

  .facility-content h2,
  .infrastructure-cta h2 {
    font-size: 32px;
  }

  .facility-badge {
    bottom: 20px;
    right: 20px;
    padding: 15px 20px;
  }

  .facility-badge i {
    font-size: 24px;
  }

  .facility-badge span {
    font-size: 14px;
  }

  .library-section,
  .laboratories-section,
  .campus-facilities-section,
  .infrastructure-cta {
    padding: 70px 0;
  }

  .campus-image {
    height: 430px;
  }
}

@media (max-width: 768px) {
  .infrastructure-hero {
    height: auto;
  }
  
  .infrastructure-hero .banner-text-mobile {
    /* padding-top: 80px; */
    bottom: -28px;
  }
  
  .infrastructure-hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .infrastructure-hero p {
    font-size: 14px;
  }
  
  .facility-content h2 {
    font-size: 26px;
  }
  
  .facility-intro {
    font-size: 15px;
  }
  
  .feature-item h5 {
    font-size: 16px;
  }
  
  .feature-item p {
    font-size: 14px;
  }
  
  .library-section,
  .laboratories-section,
  .campus-facilities-section {
    padding: 50px 0 30px;
  }
  
  .facility-badge {
    position: static;
    margin-top: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
  }
  
  /* Better image visibility */
  .facility-image,
  .campus-image {
    border-radius: 12px;
    overflow: hidden;
  }
  
  .facility-image img,
  .campus-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .library-section,
  .laboratories-section,
  .campus-facilities-section {
    padding: 40px 0 25px;
  }
  
  .facility-content h2,
  .section-title {
    font-size: 22px;
  }
}
