/* ===== GLOBAL / RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #111;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Responsive intro image for facilities */
/* Responsive intro image for facilities */
.intro-image img {
  width: 100%;
  max-width: 900px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: block;
  margin: 12px auto;
}

.center-heading {
  text-align: center;
  line-height: 1.3;
}

.btn-container {
  display: flex;
  justify-content: center;
}

/* ===== HEADER (shared across ALL pages) ===== */
.site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(1, 180, 241, 0.18);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.site-header .container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  height: 90px;
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Responsive adjustments for tables */
@media (max-width: 900px) {
  .table {
    min-width: 400px;
    font-size: 0.98rem;
  }
}

.logo-wrap img {
  height: 52px;
  width: auto;
  display: block;
}

.site-title {
  font-weight: 700;
  color: #01b4f1;
  font-size: 1.15rem;
}

/* Burger menu styles */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  height: 4px;
  width: 100%;
  background: #01b4f1;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* NAV */
.site-nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  color: #0b0b0b;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  transform: translateY(-5px);
  background: linear-gradient(90deg, #e7f7ff, #d4f0ff);
  box-shadow: 0 8px 20px rgba(1, 180, 241, 0.18);
  color: #00578a;
}

@media (max-width: 900px) {
  .site-header .container {
    padding: 12px;
  }
  .logo-wrap img {
    height: 44px;
  }
  .burger {
    display: flex;
    margin-left: 10px;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0 0 16px 0;
    transition: max-height 0.3s ease;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .site-nav li {
    width: 100%;
  }
  .site-nav a {
    width: 100%;
    padding: 14px 18px;
    border-radius: 0;
    border-bottom: 1px solid #e7f7ff;
    color: #0b0b0b;
    background: none;
    text-align: left;
  }
}

/* ===== HERO - home full screen, others half ===== */
.hero {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
}
.hero .container {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}
.hero h1 {
  font-size: 3.4rem;
  color: #fff;
  margin-bottom: 12px;
  max-width: 900px;
}
.hero p {
  color: #f0f8ff;
  max-width: 900px;
  margin-bottom: 18px;
  text-align: center;
}

/* hero sizing */
.hero.home {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.other {
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .hero.home {
    min-height: 60vh;
    background-position: center top;
  }
  .hero h1 {
    font-size: 2rem;
    padding: 0 8px;
  }
  .hero p {
    font-size: 1rem;
    padding: 0 8px;
  }
  .hero .container {
    padding: 24px 8px;
  }
}

@media (max-width: 600px) {
  .hero.home {
    min-height: 40vh;
    background-position: center top;
  }
  .hero h1 {
    font-size: 1.2rem;
    padding: 0 4px;
  }
  .hero p {
    font-size: 0.95rem;
    padding: 0 4px;
  }
  .hero .container {
    padding: 16px 4px;
  }
}

/* CTA button */
.btn {
  display: inline-block;
  background: #01b4f1;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s;
}
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(1, 180, 241, 0.18);
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: 48px 0;
}
.section .container {
  display: block;
}

/* Headings */
.h2 {
  color: #01b4f1;
  font-size: 1.6rem;
  margin-bottom: 14px;
}
.lead {
  color: #333;
  margin-bottom: 14px;
  text-align: center;
}

/* ABOUT - interactive card blocks */
.about-section {
  width: 100%;
  padding: 20px 0;
}

.about-card {
  width: 90%; /* almost full width */
  margin: 40px auto 0; /* centers but spans full width */
  border: 4px solid #01b4f1; /* thicker border */
  padding: 35px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* smooth hover animation */
  animation: fadeIn 0.8s ease;
}

/* HOVER GLOW EFFECT */
.about-card:hover {
  box-shadow: 0 0 18px rgba(16, 141, 237, 0.647); /* blue glow */
  border-color: #01b4f1; /* slight color shift */
  transform: scale(1.01); /* subtle zoom */
}

.about-card h2 {
  color: #01b4f1; /* same blue as your header/buttons */
  font-size: 32px;
  margin-bottom: 20px;
  text-align: left; /* matches your preference */
}

.about-card p {
  margin-bottom: 18px;
  line-height: 1.75;
  font-size: 18px;
  text-align: justify; /* justification preference */
}

/* LEADERSHIP */
.leaders {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.leader {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 16px;
  border-radius: 10px;
  flex: 1 1 320px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}
.leader h3 {
  color: #01b4f1;
  margin-bottom: 8px;
}
.leader p {
  font-size: 0.95rem;
  text-align: justify;
  color: #333;
}

/* ===== TABLES (Products & Facilities) ===== */
.table-wrap {
  overflow: auto;
  background: transparent;
  margin-top: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.table th {
  background: #01b4f1;
  color: #fff;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}
.table tr:nth-child(even) {
  background: #fbfbfb;
}
.table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

/* category image */
.cat-image {
  display: flex;
  justify-content: center;
  margin: 18px 0;
}
.cat-image img {
  width: 100%;
  max-width: 1000px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ===== FACILITIES - two-column table left, image right ===== */
.facilities-tables {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

/* Card styling for both tables */
/* ===== FACILITIES – STACKED TABLES (ONE BELOW ANOTHER) ===== */
.facilities-tables {
  width: 100%;
  display: block !important; /* force vertical layout */
  margin-top: 30px;
}

/* Card styling for each table box */
.table-box {
  background: #ffffff;
  padding: 22px;
  border-radius: 12px;
  border: 2px solid rgba(1, 180, 241, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  width: 100%;
  margin-bottom: 35px; /* space between tables */
}

/* Headings */
.table-box h2 {
  font-size: 1.4rem;
  color: #01b4f1;
  margin-bottom: 12px;
}

/* Paragraphs */
.table-box p {
  margin-bottom: 14px;
  text-align: justify;
}

/* Tables - Base styles with font consistency */
.table-box table {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid rgba(1, 180, 241, 0.28);
  table-layout: auto;
}

/* Table cells - Base styles with font consistency */
.table-box td {
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.4;
  font-weight: 400;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: top;
}

/* Remove last border line */
.table-box tr:last-child td {
  border-bottom: none;
}

.intro-image {
  display: flex;
  justify-content: center; /* Horizontal */
  align-items: center; /* Vertical */
  height: 200px; /* Set as needed */
  margin-bottom: 230px;
  margin-top: 230px;
}

/* ===== MOBILE SAFARI/iOS FONT CONSISTENCY FIX ===== */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
  .table-box table {
    table-layout: fixed;
    width: 100%;
  }

  .table-box td {
    font-size: 0.95rem !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      sans-serif !important;
    line-height: 1.4 !important;
    -webkit-text-size-adjust: 100% !important;
    text-size-adjust: 100% !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    word-break: break-word;
    padding: 10px 12px !important;
    vertical-align: top !important;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}

/* Additional iOS safety net */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .table-box td {
      font-variant-ligatures: none !important;
      -webkit-font-smoothing: antialiased !important;
    }
  }
}

/* MOBILE SUPPORT – ensures stacking on small screens */
@media (max-width: 768px) {
  .facilities-tables {
    display: block !important;
  }
}

/* ===== FACILITIES SLIDER (simple CSS slider) ===== */
.facility-slider {
  position: relative;
  width: 100%;
  max-width: 1100px; /* Adjust width as needed */
  margin: 40px auto;
  display: flex;
  align-items: center;
}

.slides-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
}

.slides {
  display: flex;
  transition: transform 0.4s ease;
}

.slides img {
  width: 100%;
  height: 400px; /* Adjust the height */
  object-fit: cover; /* Ensures no distortion */
  flex-shrink: 0;
}

.slide-btn {
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #fff;
  font-size: 28px;
  padding: 12px 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.prev {
  margin-right: 10px;
}

.next {
  margin-left: 10px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.contact-card {
  flex: 1 1 400px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  height: 320px;
}
.contact-card h2 {
  color: #01b4f1;
  margin-bottom: 12px;
}
.contact-card p,
.contact-card li {
  text-align: justify;
  color: #333;
}

/* contact image */
.contact-photo {
  flex: 1 1 400px;
}
.contact-photo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== FOOTER (shared) ===== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 28px 0;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer h4 {
  color: #01b4f1;
  margin-bottom: 8px;
}
.site-footer p,
.site-footer a {
  color: #cfcfcf;
  text-decoration: none;
}
.site-footer .links ul {
  list-style: none;
  padding-left: 0;
}
.site-footer .links li {
  margin-bottom: 8px;
}

/* ===== RESPONSIVE ===== */
/* ...existing code... (moved header/nav responsive styles above) */
@media (max-width: 600px) {
  .site-header .container {
    padding: 12px;
  }
  .logo-wrap img {
    height: 44px;
  }
  .site-nav ul {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .facilities-row {
    flex-direction: column;
  }
  .contact-grid {
    flex-direction: column;
  }
  .cat-image img {
    height: 180px;
  }
  .slider img {
    height: 200px;
  }
}
/* LEADERSHIP PAGE */
.leader-profile {
  display: flex;
  gap: 30px;
  margin: 40px 0;
  background: #fff;
  padding: 25px;
  border-radius: 14px;
  border: 2px solid rgba(1, 180, 241, 0.25);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
}

.leader-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.leader-text h3 {
  color: #01b4f1;
  margin-bottom: 12px;
}

.leader-text h4 {
  color: #01b4f1;
  margin-top: 18px;
  margin-bottom: 6px;
}

.leader-text p {
  text-align: justify;
  margin-bottom: 14px;
}

/* Mobile */
@media (max-width: 768px) {
  .leader-profile {
    flex-direction: column;
    text-align: center;
  }

  .leader-photo img {
    width: 100%;
    height: auto;
  }
}

/* ===== FACILITIES SLIDER (Safari-Optimized) ===== */
.facility-slider {
  width: 100%;
  max-width: 1000px;
  margin: 50px auto;
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.facility-slider .track {
  display: flex;
  gap: 20px; /* Consistent 20px gaps */
  animation: slide 50s linear infinite;
  align-items: flex-start; /* Safari flex fix [web:26] */
  justify-content: flex-start; /* Consistent alignment */
  will-change: transform; /* Safari animation optimization [web:9] */
}

.facility-slider img {
  /* Fixed frame - ALL images identical size */
  width: 300px !important;
  height: 380px !important;
  flex-shrink: 0;
  flex-grow: 0; /* Prevent flex expansion [web:44] */

  /* Safari rendering fixes */
  display: block; /* Removes whitespace [web:35] */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0); /* Hardware acceleration [web:47] */
  transform: hidden;
  image-rendering: -webkit-optimize-contrast;

  /* Uniform appearance */
  border-radius: 10px;
  object-fit: cover; /* All images fill frame consistently */
  object-position: center;

  /* Uniform background fallback */
  background: #f8f9fa;
  background-size: cover;
  background-position: center;
}

/* Landscape images - slight enhancement (optional) */
.facility-slider img.landscape {
  object-position: center;
  filter: contrast(1.05); /* Subtle enhancement */
}

/* Safari-specific fixes */
@supports (-webkit-appearance: none) {
  .facility-slider img {
    min-width: 300px;
    min-height: 380px;
  }

  .facility-slider .track {
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
  }
}

/* Continuous sliding animation - Perfect 22-image loop */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Seamless with 22 images */
  }
}

/* Navigation arrows */
.facility-slider .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 10;
}

.facility-slider .arrow.left {
  left: 10px;
}
.facility-slider .arrow.right {
  right: 10px;
}

/* Arrow design using CSS shapes */
.facility-slider .arrow.left::before,
.facility-slider .arrow.right::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-top: 3px solid #333;
  border-right: 3px solid #333;
}

.facility-slider .arrow.left::before {
  transform: rotate(-135deg);
}

.facility-slider .arrow.right::before {
  transform: rotate(45deg);
}

.facility-header {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #2a2a2a;
  margin: 40px 0 20px 0;
  font-family: inherit;
}
