:root {
  --thm-primary: #0d65bc;
  --thm-hover: #f04133;
  --thm-text: #232323;
  --thm-secondary-text: #8d8d8d;
  --thm-footer-text: #8d8d8d;
  --thm-radius: 0;
  --white: #ffffff;
  --light: #f5f7fa;
  --dark: #383838;
  --shadow: 0 5px 20px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Thick Blue Border for Cards */
.card-blue-border,
.news-card,
.team-card,
.blog-card,
.branch-card,
.contact-card,
.statement-card,
.activity-card,
.project-card,
.event-item,
.message-block,
.gallery-item {
  border: 3px solid var(--thm-primary);
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
}
.card-blue-border:hover,
.news-card:hover,
.team-card:hover,
.blog-card:hover,
.branch-card:hover,
.contact-card:hover,
.statement-card:hover,
.activity-card:hover,
.project-card:hover,
.event-item:hover {
  border-color: var(--thm-hover);
  box-shadow: 0 5px 20px rgba(13, 101, 188, 0.2);
}

/* Testimonial Cards */
.testimonial-card {
  border: 3px solid var(--thm-primary);
  transition: var(--transition);
}
.testimonial-card:hover {
  border-color: var(--thm-hover);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 101, 188, 0.3);
}

/* Animated Border for Feature Boxes */
.hover-border-outer {
  position: relative;
  overflow: hidden;
}
.hover-border-outer::before,
.hover-border-outer::after {
  content: '';
  position: absolute;
  background: var(--thm-primary);
  transition: all 0.6s ease;
  z-index: 10;
}
.hover-border-outer::before {
  top: 0; left: -100%;
  width: 100%; height: 3px;
}
.hover-border-outer::after {
  bottom: 0; right: -100%;
  width: 100%; height: 3px;
}
.hover-border-outer:hover::before { left: 0; }
.hover-border-outer:hover::after { right: 0; }

.hover-border-outer .icon {
  position: relative;
}
.hover-border-outer .icon::before,
.hover-border-outer .icon::after {
  content: '';
  position: absolute;
  background: var(--thm-primary);
  transition: all 0.6s ease;
  z-index: 10;
}
.hover-border-outer .icon::before {
  top: -100%; left: 0;
  width: 3px; height: 100%;
}
.hover-border-outer .icon::after {
  bottom: -100%; right: 0;
  width: 3px; height: 100%;
}
.hover-border-outer:hover .icon::before { top: 0; }
.hover-border-outer:hover .icon::after { bottom: 0; }

/* Testimonial Card Hover Accent */
.testimonial-card:hover {
  border-color: var(--thm-hover) !important;
}
.testimonial-card:hover .client-info {
  border-top-color: var(--thm-hover) !important;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--thm-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
a:hover { color: var(--thm-primary); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ========================
   PRELOADER
   ======================== */
.loader-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader-container.hidden {
  opacity: 0; visibility: hidden;
}
.lds-dual-ring {
  width: 60px; height: 60px;
}
.lds-dual-ring::after {
  content: '';
  display: block;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 4px solid var(--thm-primary);
  border-color: var(--thm-primary) transparent var(--thm-primary) transparent;
  animation: lds-dual 1.2s linear infinite;
}
@keyframes lds-dual {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================
   TOP BAR
   ======================== */
.top-bar {
  background: var(--thm-primary);
  padding: 10px 0;
  color: var(--white);
  font-size: 0.88rem;
}
.topbar-block {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-right: 10px;
  border-right: 2px solid rgba(255,255,255,0.3);
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-item i { font-size: 0.85rem; }
.topbar-item a { color: var(--white); }
.topbar-item a:hover { opacity: 0.8; }

/* ========================
   HEADER / NAVBAR
   ======================== */
.main-header { position: relative; z-index: 1000; }
.stricky {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: var(--transition);
}
.stricky.sticky-active {
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}
.navbar {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.navbar-brand {
  padding: 8px 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-brand img,
.footer-logo-img { max-height: 60px; height: auto; max-width: 200px; }

@media (max-width: 768px) {
  .navbar-brand img,
  .footer-logo-img { max-height: 45px; max-width: 160px; }
}

@media (max-width: 480px) {
  .navbar-brand img,
  .footer-logo-img { max-height: 40px; max-width: 140px; }
}

@media (max-width: 360px) {
  .navbar-brand img,
  .footer-logo-img { max-height: 35px; max-width: 120px; }
}
.navbar-toggler {
  border: none;
  font-size: 1.3rem;
  color: var(--thm-text);
  padding: 8px 12px;
  background: transparent;
  display: none;
  cursor: pointer;
}
.navbar-collapse {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}
.navbar-style3 {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}
.navbar-style3 .nav-item {
  position: relative;
}
.navbar-style3 .nav-item > .nav-link {
  display: block;
  color: var(--thm-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 22px 16px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.navbar-style3 .nav-item > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--thm-primary);
  transition: var(--transition);
}
.navbar-style3 .nav-item > .nav-link:hover::after,
.navbar-style3 .nav-item > .nav-link.active::after {
  width: 100%;
}
.navbar-style3 .nav-item > .nav-link:hover { color: var(--thm-primary); }

.navbar-style3 .nav-item > .nav-link.btn-nav-login {
  color: #fff;
  background: var(--thm-primary, #0d65bc);
  border-radius: 6px;
  padding: 12px 18px;
  margin: 10px 6px;
  transition: var(--transition);
}
.navbar-style3 .nav-item > .nav-link.btn-nav-login:hover {
  background: #0a4d8f;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13,101,188,0.3);
}
.navbar-style3 .nav-item > .nav-link.btn-nav-login::after {
  display: none;
}

/* Caret icons using Font Awesome pseudo-elements */
.topmenu-caret, .submenu-caret {
  display: none;
}
.navbar-style3 .nav-item.dropdown > .nav-link::before {
  content: '\f0d7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  margin-left: 5px;
  vertical-align: middle;
  opacity: 0.6;
}
.dropdown-submenu > .nav-link::before {
  content: '\f0da' !important;
  float: right;
  margin-left: 0;
}

/* Desktop Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: 0 5px 30px rgba(0,0,0,0.12);
  border-top: 3px solid var(--thm-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  list-style: none;
  margin: 0;
}
.navbar-style3 .nav-item.dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu .nav-item {
  width: 100%;
}
.dropdown-menu .nav-link {
  display: block;
  padding: 11px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--thm-text);
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}
.dropdown-menu .nav-item:last-child .nav-link {
  border-bottom: none;
}
.dropdown-menu .nav-link:hover {
  background: var(--light);
  color: var(--thm-primary);
  padding-left: 30px;
}
.dropdown-menu .nav-link::after { display: none !important; }

/* Submenu */
.dropdown-submenu {
  position: relative;
}
.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -3px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
}
.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ========================
   LATEST NEWS TICKER
   ======================== */
.latest--news {
  background: var(--thm-primary);
  padding: 12px 0;
  overflow: hidden;
}
.latest-title {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  padding: 5px 20px;
  background: var(--thm-hover);
  border-radius: var(--thm-radius);
}
.latest-title i { margin-right: 6px; }
.news-updates-list {
  flex: 1;
  overflow: hidden;
  padding: 0 20px;
}
.news-updates-list .nav {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  gap: 40px;
}
.news-updates-list .nav li {
  display: inline-flex;
  align-items: center;
}
.news-updates-list .nav a {
  color: var(--white);
  font-size: 0.88rem;
}
.news-updates-list .nav a:hover { opacity: 0.8; }
.news-updates-list .nav .date-text {
  font-style: italic;
  opacity: 0.8;
}
.current-date {
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 500;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========================
   HERO SLIDER
   ======================== */
.main-slider { position: relative; overflow: hidden; }
.main-slider .slider-wrapper {
  position: relative;
  height: 600px;
  min-height: 500px;
  display: none;
}
.main-slider .slider-wrapper:first-child {
  display: block;
}
.main-slider .slider-wrapper .image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
}
.slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.4);
}
.slider-caption {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 10;
  color: var(--white);
  padding: 0 60px;
  max-width: 700px;
}
.slider-caption.c-left { left: 0; }
.slider-caption.c-center {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.slider-caption.c-right {
  left: auto;
  right: 0;
  text-align: right;
}
.slider-caption h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-transform: uppercase;
}
.slider-caption h1 span,
.slider-caption h1 b {
  color: var(--thm-hover);
}
.slider-caption .text {
  font-size: 1.05rem;
  margin-bottom: 30px;
  line-height: 1.7;
  opacity: 0.95;
}
.slider-caption .btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--thm-primary);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--thm-radius);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
}
.slider-caption .btn:hover {
  background: var(--thm-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Slider Navigation */
.slide-nav { position: relative; }
.owl-nav {
  display: none;
}
.owl-nav button {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2) !important;
  backdrop-filter: blur(4px);
  border-radius: 50% !important;
  color: var(--white) !important;
  font-size: 1.2rem !important;
  transition: var(--transition);
}
.owl-nav button:hover {
  background: var(--thm-primary) !important;
}
.owl-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.owl-dots .owl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4) !important;
  border: 2px solid var(--white);
  transition: var(--transition);
}
.owl-dots .owl-dot.active {
  background: var(--thm-primary) !important;
  border-color: var(--thm-primary);
  transform: scale(1.2);
}

/* ========================
   FEATURE BOXES
   ======================== */
.notification-boxes { margin-top: -60px; position: relative; z-index: 100; }
.box {
  background: var(--white);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  transition: var(--transition);
  height: 100%;
}
.box:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.box .icon {
  width: 70px; height: 70px;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}
.box:hover .icon { background: var(--thm-hover); }
.box h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--thm-text);
  text-transform: uppercase;
}
.box p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
  margin-bottom: 20px;
  line-height: 1.6;
}
.box .btn-transparent {
  display: inline-block;
  padding: 8px 25px;
  border: 2px solid var(--thm-primary);
  color: var(--thm-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-radius: var(--thm-radius);
}
.box .btn-transparent:hover {
  background: var(--thm-primary);
  color: var(--white);
}

/* ========================
   WELCOME SECTION
   ======================== */
.welcome-area { padding: 80px 0; }
.main-heading1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--thm-primary);
}
.main-heading2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.sec-title .decor {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--thm-primary);
  margin-bottom: 20px;
}
.sec-title .decor .inner {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--thm-hover);
  margin-top: 5px;
}
.welcome-area p {
  font-size: 0.95rem;
  color: var(--thm-secondary-text);
  margin-bottom: 15px;
  line-height: 1.8;
}
.wel-img img {
  border-radius: var(--thm-radius);
  box-shadow: var(--shadow);
}

/* ========================
   RECENT NEWS
   ======================== */
.recent-news { padding: 60px 0 80px; }
.section-heading-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 15px;
}
.section-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--thm-hover);
  margin-bottom: 5px;
  font-weight: 600;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--thm-text);
}
.more-news-link {
  color: var(--thm-primary);
  font-weight: 600;
  font-size: 0.95rem;
}
.more-news-link:hover { color: var(--thm-hover); }
.more-news-link i { margin-left: 5px; transition: var(--transition); }
.more-news-link:hover i { margin-left: 10px; }

.recent-news-grid { gap: 25px; }
.news-card.compact {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.news-card.compact:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.news-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: #e0e0e0;
}
.news-card.compact:hover .news-card-media img { transform: scale(1.05); }
.news-card-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--thm-primary);
  color: var(--white);
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2px;
}
.news-card-content { padding: 20px; }
.news-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--thm-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
  line-height: 1.4;
}
.news-card-title:hover { color: var(--thm-primary); }
.news-card-snippet {
  font-size: 0.88rem;
  color: var(--thm-secondary-text);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--thm-secondary-text);
}
.news-card-meta i { margin-right: 4px; }

/* ========================
   TESTIMONIALS
   ======================== */
.testimonial-wrapper {
  background: var(--light);
  padding: 80px 0;
}
.testimonial-wrapper .sec-title { margin-bottom: 50px; }
.testimonial-wrapper .sec-title h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--thm-text);
}
.testimonial-wrapper .sec-title p {
  color: var(--thm-secondary-text);
  max-width: 600px;
  margin: 10px auto 0;
}
.testimonial-carousel { position: relative; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.single-testimonial-style {
  background: var(--white);
  padding: 35px;
  box-shadow: var(--shadow);
  margin: 10px;
  border-radius: var(--thm-radius);
}
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
.review-box ul {
  display: flex;
  gap: 3px;
  margin-bottom: 15px;
}
.review-box ul li {
  color: #ffc107;
  font-size: 0.9rem;
}
.text-box p {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--thm-secondary-text);
  margin-bottom: 25px;
  line-height: 1.8;
}
.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}
.client-info .image {
  width: 60px; height: 60px;
  border-radius: 50%;
  overflow: hidden;
}
.client-info .image img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #e0e0e0;
}
.client-info .title h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--thm-text);
}
.client-info .title span {
  font-size: 0.82rem;
  color: var(--thm-primary);
}

/* ========================
   COUNTERS
   ======================== */
.counters-wrapper {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.counters-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(13, 101, 188, 0.85);
}
.counters-wrapper .container { position: relative; z-index: 2; }
.counters-wrapper .sec-title { margin-bottom: 50px; }
.counters-wrapper .sec-title h2 { color: var(--white) !important; }
.counters-wrapper .sec-title p { color: rgba(255,255,255,0.8) !important; }
.counters-wrapper .sec-title .decor .inner { background: var(--thm-hover); }
.counters-wrapper .sec-title .decor { background: var(--white); }

.counters-item {
  padding: 20px;
  text-align: center;
}
.counters-item i {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 15px;
  display: block;
}
.counters-item .counter {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 5px;
}
.counters-item h3 {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  font-weight: 500;
}

/* ========================
   SERVICES / WHY CHOOSE US
   ======================== */
.medical-services { padding: 60px 0; }
.medical-services .sec-title { margin-bottom: 50px; }
.medical-services .sec-title h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}
.medical-services .sec-title p { color: var(--thm-secondary-text); }

.medical-services ul {
  padding: 0;
  margin: 0 -15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.medical-services ul li,
.why-choose-item {
  padding: 15px;
  flex: 0 0 16.666%;
  max-width: 16.666%;
  text-align: center;
}
.medical-services .icon {
  width: 80px; height: 80px;
  margin: 0 auto 15px;
  position: relative;
}
.medical-services .icon .i-hover {
  width: 100%; height: 100%;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition);
}
.medical-services ul li:hover .icon .i-hover {
  background: var(--thm-hover);
  transform: scale(1.1);
}
.medical-services ul li h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--thm-text);
}
.service-desc-wrap .service-desc {
  margin-bottom: 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 3em;
  font-size: 0.85rem;
  color: var(--thm-secondary-text);
}
.service-desc-wrap .service-desc.expanded {
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
}
.service-desc-wrap .service-more-btn {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--thm-primary);
}

/* ========================
   POPUP MODAL
   ======================== */
.entry-popup .modal-content {
  border: none;
  border-radius: var(--thm-radius);
  overflow: hidden;
}
.entry-popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: var(--white);
  opacity: 1;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-popup-card {
  display: flex;
}
.popup-visual {
  flex: 0 0 45%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
}
.popup-visual-img { display: none; }
.popup-body {
  flex: 1;
  padding: 40px;
  background: var(--white);
}
.popup-chip {
  display: inline-block;
  background: var(--thm-primary);
  color: var(--white);
  padding: 4px 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border-radius: 2px;
}
.popup-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--thm-text);
  margin-bottom: 15px;
  line-height: 1.3;
}
.popup-modal-description {
  font-size: 0.92rem;
  color: var(--thm-secondary-text);
  margin-bottom: 25px;
  line-height: 1.7;
}
.popup-modal-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--thm-primary);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-radius: var(--thm-radius);
}
.popup-modal-action:hover { background: var(--thm-hover); color: var(--white); }
.popup-meta {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--thm-secondary-text);
  font-style: italic;
}

/* ========================
   FOOTER
   ======================== */
.main-footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 70px;
}
.footer-area {
  background-size: cover;
  background-position: center;
}
.footer-logo { margin-bottom: 10px; }
.footer-logo img { height: 55px; width: auto; }
.footer-dec {
  font-size: 0.9rem;
  color: var(--thm-footer-text);
  line-height: 1.7;
  margin-bottom: 25px;
}
.social {
  display: flex;
  gap: 8px;
}
.social li a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social li a:hover {
  background: var(--thm-primary);
  transform: translateY(-3px);
}
.main-footer h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}
.main-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--thm-primary);
}
.address-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.88rem;
  color: var(--thm-footer-text);
}
.address-list li i {
  color: var(--thm-primary);
  font-size: 1rem;
  margin-top: 4px;
  min-width: 16px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links li a {
  color: var(--thm-footer-text);
  font-size: 0.88rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links li a::before {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.75rem;
}
.footer-links li a:hover {
  color: var(--thm-primary);
  padding-left: 5px;
}
.newsletter-form {
  position: relative;
  margin-top: 15px;
}
.newsletter-form input {
  width: 100%;
  padding: 12px 50px 12px 15px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 0.9rem;
  border-radius: var(--thm-radius);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form button {
  position: absolute;
  right: 0;
  top: 0;
  width: 45px;
  height: 100%;
  background: var(--thm-primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.newsletter-form button:hover { background: var(--thm-hover); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  margin-top: 50px;
}
.footer-bottom p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--thm-footer-text);
}
.footer-bottom a { color: var(--thm-primary); }

/* ========================
   PAGE HEADER
   ======================== */
.page-header {
  background: linear-gradient(135deg, var(--thm-primary), #0a4f94);
  padding: 140px 0 70px;
  text-align: center;
  color: var(--white);
  position: relative;
}
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.breadcrumb-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  opacity: 0.85;
}
.breadcrumb-list a { color: var(--white); }
.breadcrumb-list a:hover { opacity: 0.8; }

/* ========================
   CONTENT SECTIONS
   ======================== */
.section { padding: 80px 0; }
.section.bg-light { background: var(--light); }
.section-heading {
  text-align: center;
  margin-bottom: 50px;
}
.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--thm-text);
  margin-bottom: 10px;
}
.section-heading p {
  color: var(--thm-secondary-text);
  max-width: 600px;
  margin: 0 auto;
}
.section-heading .decor {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--thm-primary);
  margin: 15px auto 0;
}
.section-heading .decor .inner {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--thm-hover);
  margin-top: 5px;
  margin-left: auto;
}

/* Content text styling */
.content-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--thm-secondary-text);
}
.content-text p { margin-bottom: 15px; }

/* ========================
   GALLERY
   ======================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: var(--thm-radius);
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
  background: #e0e0e0;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(13, 101, 188, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 2rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content {
  max-width: 85%;
  max-height: 85vh;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--thm-radius);
}
.lightbox-close {
  position: absolute;
  top: -45px; right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--thm-hover); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 10px;
  transition: var(--transition);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--thm-hover); }

/* ========================
   CONTACT
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-card {
  display: flex;
  gap: 15px;
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.contact-card-icon {
  width: 50px; height: 50px;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--thm-text);
}
.contact-card p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
}
.map-placeholder {
  width: 100%;
  height: 280px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--thm-secondary-text);
  margin-top: 25px;
  border-radius: var(--thm-radius);
}

/* Forms */
.contact-form {
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--thm-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
  border-radius: var(--thm-radius);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--thm-primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-primary-custom {
  display: inline-block;
  padding: 14px 35px;
  background: var(--thm-primary);
  color: var(--white);
  font-weight: 600;
  border: none;
  border-radius: var(--thm-radius);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary-custom:hover { background: var(--thm-hover); color: var(--white); transform: translateY(-2px); }

/* ========================
   TIMELINE
   ======================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--thm-primary);
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row-reverse; }
.timeline-content {
  width: 44%;
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--thm-radius);
}
.timeline-content img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  background: #e0e0e0;
}
.timeline-year {
  display: inline-block;
  padding: 4px 15px;
  background: var(--thm-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
  border-radius: 2px;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 18px; height: 18px;
  background: var(--thm-primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--thm-primary);
  z-index: 2;
}

/* ========================
   TEAM
   ======================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.team-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.team-card-image { height: 260px; overflow: hidden; }
.team-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  background: #e0e0e0;
  transition: transform 0.5s ease;
}
.team-card:hover .team-card-image img { transform: scale(1.05); }
.team-card-info {
  padding: 20px;
  text-align: center;
}
.team-card-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--thm-text);
  margin-bottom: 5px;
}
.team-card-info p {
  font-size: 0.85rem;
  color: var(--thm-primary);
}

/* ========================
   EVENTS
   ======================== */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-item {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.event-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.event-date-box {
  text-align: center;
  padding: 15px 20px;
  background: var(--thm-primary);
  color: var(--white);
  min-width: 80px;
  border-radius: var(--thm-radius);
}
.event-date-box .day { font-size: 2rem; font-weight: 700; line-height: 1; }
.event-date-box .month { font-size: 0.8rem; text-transform: uppercase; }
.event-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--thm-text);
  margin-bottom: 8px;
}
.event-info p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
  margin-bottom: 8px;
}
.event-time {
  font-size: 0.85rem;
  color: var(--thm-primary);
  font-weight: 600;
}

/* ========================
   WHATSAPP BUTTON
   ======================== */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.6); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: var(--white); position: relative; z-index: 2; }
.whatsapp-pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: wpulse 2s infinite;
}
@keyframes wpulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ========================
    SUBPAGE COMPONENTS
    ======================== */

/* Calendar Table */
.calendar-wrapper { overflow-x: auto; }
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
}
.calendar-table th,
.calendar-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.calendar-table th {
  background: var(--thm-primary);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.calendar-table tr:hover td { background: var(--light); }

/* Curriculum Cards */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.curriculum-card {
  background: var(--white);
  padding: 35px 25px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.curriculum-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.curriculum-icon {
  width: 70px; height: 70px;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.curriculum-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--thm-text);
}
.curriculum-card p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
  margin-bottom: 15px;
  line-height: 1.6;
}
.curriculum-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}
.curriculum-card ul li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--thm-secondary-text);
  position: relative;
  padding-left: 20px;
}
.curriculum-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--thm-primary);
}

/* Grading Table */
.grading-wrapper { overflow-x: auto; }
.grading-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
}
.grading-table th,
.grading-table td {
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
.grading-table th {
  background: var(--thm-primary);
  color: var(--white);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.grading-table tr:nth-child(even) td { background: #f8f9fa; }
.grading-table tr:hover td { background: var(--light); }

/* Message Block (About page) */
.message-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}
.message-block.reverse { direction: rtl; }
.message-block.reverse .message-image { direction: ltr; }
.message-block.reverse .message-content { direction: ltr; }
.message-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.message-content h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--thm-text);
}
.message-content p {
  font-size: 0.95rem;
  color: var(--thm-secondary-text);
  margin-bottom: 15px;
  line-height: 1.8;
}
.message-content h4 {
  font-size: 1rem;
  color: var(--thm-primary);
  margin-top: 25px;
}

/* Statements Grid */
.statements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.statement-card {
  background: var(--white);
  padding: 35px 25px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.statement-card:hover { transform: translateY(-5px); }
.statement-icon {
  width: 70px; height: 70px;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.statement-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--thm-text);
}
.statement-card p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
  line-height: 1.6;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--thm-text);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--thm-secondary-text);
  max-width: 600px;
  margin: 0 auto;
}
.section-alt { background: var(--light); }

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.step-card {
  background: var(--white);
  padding: 30px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-5px); }
.step-number {
  width: 50px; height: 50px;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--thm-text);
}
.step-card p {
  font-size: 0.88rem;
  color: var(--thm-secondary-text);
  line-height: 1.6;
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.requirements-list {
  list-style: none;
  padding: 0;
}
.requirements-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--thm-text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.requirements-list li i {
  color: var(--thm-primary);
  font-size: 1rem;
}

/* Scholarship Content */
.scholarship-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.scholarship-content p {
  font-size: 0.95rem;
  color: var(--thm-secondary-text);
  margin-bottom: 20px;
  line-height: 1.8;
}
.btn {
  display: inline-block;
  padding: 14px 35px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--thm-radius);
}
.btn-primary {
  background: var(--thm-primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--thm-hover);
  color: var(--white);
  transform: translateY(-2px);
}

/* Enquiry / Contact / Job Forms */
.enquiry-form,
.contact-form,
.job-form {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--thm-text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e8e8e8;
  font-size: 0.95rem;
  transition: var(--transition);
  font-family: inherit;
  border-radius: var(--thm-radius);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--thm-primary);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Branch Cards */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.branch-card {
  background: var(--white);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.branch-card:hover { transform: translateY(-5px); }
.branch-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--thm-text);
}
.branch-card h3 i {
  color: var(--thm-primary);
  margin-right: 8px;
}
.branch-card p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
  margin-bottom: 8px;
}
.branch-card p i {
  color: var(--thm-primary);
  margin-right: 8px;
  min-width: 16px;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); }
.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e0e0e0;
}
.blog-content { padding: 25px; }
.blog-date {
  font-size: 0.82rem;
  color: var(--thm-primary);
  margin-bottom: 10px;
  display: block;
}
.blog-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--thm-text);
}
.blog-content p {
  font-size: 0.88rem;
  color: var(--thm-secondary-text);
  margin-bottom: 15px;
  line-height: 1.6;
}
.read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--thm-primary);
}
.read-more:hover { color: var(--thm-hover); }
.read-more i { margin-left: 5px; transition: var(--transition); }
.read-more:hover i { margin-left: 10px; }

/* Events */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.event-item {
  display: flex;
  gap: 25px;
  padding: 25px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.event-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.event-date {
  text-align: center;
  padding: 15px 20px;
  background: var(--thm-primary);
  color: var(--white);
  min-width: 80px;
  border-radius: var(--thm-radius);
}
.event-date .day { font-size: 2rem; font-weight: 700; line-height: 1; display: block; }
.event-date .month { font-size: 0.8rem; text-transform: uppercase; display: block; }
.event-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--thm-text);
  margin-bottom: 8px;
}
.event-info p {
  font-size: 0.9rem;
  color: var(--thm-secondary-text);
  margin-bottom: 5px;
}
.event-info i { color: var(--thm-primary); margin-right: 6px; }

/* Activities Grid */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.activity-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.activity-card:hover { transform: translateY(-5px); }
.activity-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e0e0e0;
}
.activity-icon {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 50px;
  background: var(--thm-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid var(--white);
}
.activity-card h3 {
  font-size: 1.05rem;
  margin: 35px 20px 10px;
  text-align: center;
  color: var(--thm-text);
}
.activity-card p {
  font-size: 0.88rem;
  color: var(--thm-secondary-text);
  padding: 0 20px 25px;
  line-height: 1.6;
  text-align: center;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.project-card {
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover { transform: translateY(-5px); }
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #e0e0e0;
}
.project-info { padding: 20px; }
.project-info h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--thm-text);
}
.project-info p {
  font-size: 0.88rem;
  color: var(--thm-secondary-text);
  line-height: 1.6;
}

/* ========================
    SCROLL ANIMATIONS
    ======================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   TOUCH-FRIENDLY TARGETS
   ======================== */
@media (max-width: 768px) {
  .nav-link,
  .btn,
  .dropdown-toggle,
  .navbar-toggler {
    min-height: 44px;
  }

  a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ========================
   FLUID TYPOGRAPHY
   ======================== */
@media (max-width: 1200px) {
  h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
  h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
  p { font-size: clamp(0.9rem, 1.5vw, 1rem); }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); }
  h3 { font-size: clamp(1rem, 3vw, 1.2rem); }
  p { font-size: clamp(0.85rem, 2vw, 0.95rem); }
}

/* ========================
   RESPONSIVE GRID UTILITIES
   ======================== */
.grid-responsive-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.grid-responsive-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.grid-responsive-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

@media (max-width: 1200px) {
  .grid-responsive-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .grid-responsive-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-responsive-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-responsive-4,
  .grid-responsive-3,
  .grid-responsive-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 480px) {
  .grid-responsive-4,
  .grid-responsive-3,
  .grid-responsive-2 { grid-template-columns: 1fr; gap: 15px; }
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1200px) {
  .container { max-width: 100%; padding: 0 20px; }

  .main-slider .slider-wrapper { height: 550px; }
  .slider-caption h1 { font-size: 2.5rem; }
  .slider-caption .text { font-size: 1rem; }

  .welcome-area h2 { font-size: 1.8rem; }
  .main-heading1 { font-size: 1.8rem; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }

  .enquiry-form,
  .contact-form,
  .job-form { padding: 30px; }

  .counter-item h3 { font-size: 2.2rem; }
}

@media (max-width: 1024px) {
  .main-slider .slider-wrapper { height: 500px; }
  .slider-caption h1 { font-size: 2.2rem; }
  .slider-caption { padding: 0 40px; }
  .medical-services ul li { flex: 0 0 33.333%; max-width: 33.333%; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .top-bar { display: none !important; }

  .navbar-toggler { display: block; }

  .navbar-collapse {
    position: fixed;
    top: 0; left: -320px;
    width: 300px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    box-shadow: 5px 0 30px rgba(0,0,0,0.15);
    transition: left 0.35s ease;
    z-index: 10001;
    overflow-y: auto;
    justify-content: flex-start;
  }
  .navbar-collapse.show { left: 0; }

  .navbar-style3 {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .navbar-style3 .nav-item > .nav-link {
    padding: 14px 25px;
    border-bottom: 1px solid #eee;
    font-size: 0.88rem;
  }
  .navbar-style3 .nav-item > .nav-link::after { display: none !important; }

  .navbar-style3 .nav-item.dropdown > .nav-link::before {
    float: right;
    margin-left: 0;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  .navbar-style3 .nav-item.dropdown.open > .nav-link::before {
    transform: rotate(180deg);
  }

  .nav-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .dropdown-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    display: none;
    background: #f8f9fa;
  }
  .dropdown-menu.show { display: block !important; }
  .dropdown-menu .nav-link {
    padding: 10px 25px 10px 40px;
    font-size: 0.84rem;
    border-bottom-color: #e8e8e8;
  }
  .dropdown-menu .nav-link:hover {
    padding-left: 40px;
  }

  .dropdown-submenu > .dropdown-menu {
    left: 0 !important;
    margin-top: 0;
    background: #f0f2f5;
  }
  .dropdown-submenu > .nav-link::before {
    content: '\f0d7' !important;
    float: right;
  }

  .main-slider .slider-wrapper { height: 400px; min-height: 350px; }
  .slider-caption h1 { font-size: 1.6rem; }
  .slider-caption .text { font-size: 0.9rem; }
  .slider-caption { padding: 0 20px; }
  .slider-caption.c-center {
    left: 50%;
    text-align: center;
  }

  .notification-boxes { margin-top: 30px; }
  .welcome-area { padding: 50px 0; }
  .main-heading1 { font-size: 1.5rem; }

  .section-heading-flex { flex-direction: column; align-items: flex-start; }
  .news-card-media { height: 180px; }

  .testimonial-wrapper { padding: 50px 0; }
  .counters-wrapper { padding: 50px 0; background-attachment: scroll; }

   .medical-services ul li,
   .why-choose-item { flex: 0 0 50%; max-width: 50%; }

  .entry-popup-card { flex-direction: column; }
  .popup-visual { min-height: 200px; flex: none; }
  .popup-body { padding: 25px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item img { height: 180px; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid { grid-template-columns: 1fr; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(odd) { flex-direction: row; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; }

  .event-item { flex-direction: column; }
  .event-date-box { min-width: 100%; display: flex; gap: 8px; justify-content: center; align-items: center; }

  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }

  .message-block { grid-template-columns: 1fr; }
  .message-block.reverse { direction: ltr; }
  .statements-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .requirements-grid { grid-template-columns: 1fr; }
  .branches-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .curriculum-grid { grid-template-columns: 1fr; }

  .enquiry-form,
  .contact-form,
  .job-form { padding: 25px; }

  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .section { padding: 50px 0; }
  .page-header { padding: 120px 0 60px; }
  .page-header h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .main-slider .slider-wrapper { height: 350px; min-height: 300px; }
  .slider-caption h1 { font-size: 1.3rem; }
  .slider-caption .text { font-size: 0.85rem; }
  .slider-caption .btn { padding: 10px 25px; font-size: 0.85rem; }
  .slider-caption { padding: 0 15px; }

   .medical-services ul li,
   .why-choose-item { flex: 0 0 100%; max-width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 200px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-member { padding: 20px; }

  .navbar-collapse { width: 280px; left: -310px; }

  .welcome-area { padding: 40px 0; }
  .welcome-area h2 { font-size: 1.4rem; }

  .section { padding: 40px 0; }
  .section-heading h2 { font-size: 1.5rem; }

  .main-heading1 { font-size: 1.4rem; }
  .page-header { padding: 100px 0 50px; }
  .page-header h1 { font-size: 1.5rem; }

  .curriculum-grid { grid-template-columns: 1fr; }
  .event-item { flex-direction: column; padding: 20px; }
  .event-date-box { min-width: auto; }

  .activity-card img { height: 160px; }
  .activities-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card img { height: 180px; }

  .branches-grid { grid-template-columns: 1fr; }
  .requirements-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .statements-grid { grid-template-columns: 1fr; }
  .message-block { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-bottom { padding: 15px 0; text-align: center; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info-box { padding: 20px; }

  .enquiry-form,
  .contact-form,
  .job-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }

  .timeline::before { left: 15px; }
  .timeline-item, .timeline-item:nth-child(odd) { padding-left: 40px; }
  .timeline-dot { left: 15px; }

  .news-card-media { height: 160px; }
  .entry-popup-card { flex-direction: column; }
  .popup-visual { min-height: 150px; }
  .popup-body { padding: 20px; }

  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  .lightbox-close { top: 5px; right: 5px; }

  .counters-wrapper { padding: 40px 0; }
  .counter-item { margin-bottom: 20px; }
  .counter-item h3 { font-size: 2rem; }

  .whatsapp-btn { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .whatsapp-btn svg { width: 26px; height: 26px; }

   .btn { padding: 12px 25px; font-size: 0.9rem; }

   .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 360px) {
  .testimonials-grid { gap: 15px; }

  .main-slider .slider-wrapper { height: 300px; min-height: 260px; }
  .slider-caption h1 { font-size: 1.15rem; }
  .slider-caption .text { font-size: 0.8rem; }
  .slider-caption .btn { padding: 8px 20px; font-size: 0.8rem; }
  .slider-caption { padding: 0 10px; }

  .navbar-collapse { width: 260px; left: -290px; }
  .navbar-style3 .nav-item > .nav-link { padding: 12px 20px; font-size: 0.85rem; }
  .dropdown-menu .nav-link { padding: 10px 20px 10px 35px; font-size: 0.82rem; }

  .section { padding: 35px 0; }
  .section-heading h2 { font-size: 1.3rem; }
  .section-heading p { font-size: 0.85rem; }

  .main-heading1 { font-size: 1.25rem; }
  .page-header { padding: 90px 0 40px; }
  .page-header h1 { font-size: 1.3rem; }

  .welcome-area { padding: 30px 0; }
  .welcome-area h2 { font-size: 1.2rem; }

  .gallery-item img { height: 160px; }
  .activity-card img { height: 140px; }
  .project-card img { height: 160px; }
  .blog-card img { height: 150px; }
  .news-card-media { height: 140px; }

  .popup-visual { min-height: 130px; }
  .popup-body { padding: 15px; }

  .counter-item h3 { font-size: 1.6rem; }
  .counter-item p { font-size: 0.8rem; }

  .enquiry-form,
  .contact-form,
  .job-form { padding: 15px; }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 10px 12px; font-size: 0.9rem; }

  .branch-card { padding: 20px; }
  .team-member { padding: 15px; }
  .contact-info-box { padding: 15px; }
  .event-item { padding: 15px; }

  .btn { padding: 10px 20px; font-size: 0.85rem; }

   .whatsapp-btn { width: 45px; height: 45px; bottom: 15px; right: 15px; }
   .whatsapp-btn svg { width: 22px; height: 22px; }
}

/* ========================
   MOBILE ENHANCEMENTS (Always Mobile-Friendly)
   ======================== */

/* Prevent horizontal scroll on all devices */
html, body {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Ensure images never overflow containers */
img, embed, object, video {
  max-width: 100%;
  height: auto;
}

/* iOS input zoom prevention - keep font-size at 16px or larger */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  font-size: 16px !important;
}

/* Remove 300ms delay on touch devices */
a, button, input, select, textarea, .btn {
  touch-action: manipulation;
}

/* Ensure minimum touch target size (44x44 pixels) */
a, button, .nav-link, input[type="submit"], input[type="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Smooth scrolling for iOS */
body {
  -webkit-overflow-scrolling: touch;
}

/* Better tap highlight color */
* {
  -webkit-tap-highlight-color: rgba(13, 101, 188, 0.1);
}

/* Ensure forms are usable on mobile */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px !important;
}

/* Prevent zoom on focus for iOS */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  select:focus,
  textarea:focus,
  input:focus {
    font-size: 16px !important;
  }
}

/* Ensure WhatsApp button doesn't cover content on very small screens */
@media (max-width: 360px) {
  .whatsapp-btn {
    bottom: 10px;
    right: 10px;
    z-index: 99999;
  }
}

/* Safe area insets for devices with notches (iPhone X+) */
@supports (padding: env(safe-area-inset-top)) {
  .main-header {
    padding-top: env(safe-area-inset-top);
  }
  .whatsapp-btn {
    bottom: calc(15px + env(safe-area-inset-bottom));
    right: calc(15px + env(safe-area-inset-right));
  }
}

/* Ensure tables are scrollable on mobile */
table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Better readability on small screens */
@media (max-width: 480px) {
  body {
    font-size: 14px;
    line-height: 1.6;
  }
  
  p {
    margin-bottom: 12px;
  }
  
  /* Ensure buttons are easy to tap */
  .btn, button, input[type="submit"] {
    padding: 12px 25px;
    font-size: 14px;
  }
}

/* Print styles - ensure mobile styles don't affect print */
@media print {
  html, body {
    overflow-x: visible;
    width: auto;
  }
}

