/* ===================================================
   MTMH - Premium Homepage Custom Styles
   Author: Antigravity
   ===================================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* ===================================================
   CSS VARIABLES / DESIGN TOKENS
   =================================================== */
:root {
  --primary-blue:    #0d4f8b;
  --accent-teal:     #00a99d;
  --accent-gold:     #e8a020;
  --light-bg:        #f4f7fc;
  --white:           #ffffff;
  --dark:            #1a1f2e;
  --text-muted:      #6b7a99;
  --border-light:    #e2eaf6;
  --card-shadow:     0 8px 32px rgba(13,79,139,0.10);
  --card-shadow-lg:  0 20px 60px rgba(13,79,139,0.18);
  --transition:      all 0.35s cubic-bezier(0.4,0,0.2,1);
  --radius-md:       14px;
  --radius-lg:       22px;
  --section-py:      90px;
}

/* ===================================================
   GLOBAL BASE ENHANCEMENTS
   =================================================== */
html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: #2d3748;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(0,169,157,0.10);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-heading span {
  color: var(--primary-blue);
}

.section-subtext {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ===================================================
   TOP BAR
   =================================================== */
.py-1.bg-black.top {
  background: linear-gradient(90deg, #0a2f56 0%, #0d4f8b 100%) !important;
  padding: 10px 0 !important;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  padding-top: 140px;
  padding-bottom: 100px; /* Increased bottom padding */
}

.hero-wrap .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(10, 30, 70, 0.82) 0%,
    rgba(13, 79, 139, 0.62) 60%,
    rgba(0,169,157,0.18) 100%
  );
  z-index: 1;
}

.hero-wrap .container {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-wrap .container {
    margin-top: auto;
    margin-bottom: auto;
  }
}

.hero-height {
  min-height: 450px; /* Ensure a minimum height for the content row */
}

.hero-content {
  padding: 40px 0;
}


.hero-desc {
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(255,255,255,0.88);
  line-height: 1.85;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
  margin-bottom: 36px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-teal), #007e76);
  color: #fff !important;
  padding: 14px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  box-shadow: 0 8px 28px rgba(0,169,157,0.40);
  transition: var(--transition);
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(0,169,157,0.55);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.7), transparent);
  display: block;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Stat pills on hero */
.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-stat-pill {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  padding: 14px 22px;
  color: #fff;
  text-align: center;
  min-width: 110px;
}

.hero-stat-pill .stat-num {
  font-size: 26px;
  font-weight: 800;
  display: block;
  line-height: 1;
  color: var(--accent-gold);
}

.hero-stat-pill .stat-lbl {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===================================================
   HISTORY / ABOUT SECTION
   =================================================== */
#about-section.history-section,
.history-section {
  padding: 80px 0; /* Standardized desktop padding */
  background: var(--light-bg);
  position: relative;
  overflow: visible; /* Allow badge to pop out if needed */
}

.history-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,169,157,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.history-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--primary-blue);
}

.history-box::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 200px;
  font-family: 'Playfair Display', serif;
  color: rgba(13,79,139,0.05);
  line-height: 1;
}

.history-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.history-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), transparent);
  border-radius: 2px;
}

.history-box p {
  font-size: 16px;
  line-height: 1.9;
  color: #4a5568;
  margin-top: 16px;
  margin-bottom: 0;
}

/* Year badge */
.history-year-badge {
  position: absolute;
  top: 28px;
  right: 32px;
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(13,79,139,0.35);
}

.history-year-badge .yr {
  font-size: 22px;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.history-year-badge .yr-lbl {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ===================================================
   DIRECTOR MESSAGES SECTION
   =================================================== */
.director-section {
  padding: var(--section-py) 0;
  background: var(--white);
  position: relative;
}

.director-section::before {
  content: 'Directors';
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 120px;
  font-weight: 900;
  color: rgba(13,79,139,0.03);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.director-card {
  border-radius: var(--radius-lg);
  padding: 50px 56px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.director-card:hover {
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-4px);
}

.director-card.bg1 {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef4ff 100%);
  border-left: 5px solid var(--primary-blue);
}

.director-card.bg2 {
  background: linear-gradient(135deg, #f0fffe 0%, #e6f9f7 100%);
  border-left: 5px solid var(--accent-teal);
}

.director-quote {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: 200px;
  line-height: 0.8;
  opacity: 0.06;
  color: var(--primary-blue);
  font-weight: 900;
}

.director-quote.top {
  top: -20px;
  left: 20px;
}

.director-quote.bottom {
  bottom: -60px;
  right: 20px;
}

.director-message {
  font-size: 16px;
  line-height: 2;
  color: #374151;
  font-style: italic;
  position: relative;
}

.director-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  margin-top: 16px;
  transition: var(--transition);
}

.director-read:hover {
  color: var(--accent-teal);
  gap: 12px;
}

.director-photo {
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(13,79,139,0.18);
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

.director-card:hover .director-photo {
  transform: scale(1.03);
}

.director-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-top: 18px;
  margin-bottom: 4px;
}

.director-designation {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-teal);
  background: rgba(0,169,157,0.10);
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
}

/* ===================================================
   CAROUSEL + COMMITMENT SECTION
   =================================================== */
#about-section.mt-3 {
  background: var(--dark);
  padding: 0;
  margin-top: 0 !important;
}

#about-section.mt-3 .card {
  background: linear-gradient(160deg, #1a2a4a 0%, #0d1f3c 100%);
  border: none;
  border-radius: 0;
  height: 100%;
  color: #fff;
  padding: 48px 40px;
}

#about-section.mt-3 .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
}

#about-section.mt-3 .card-title b {
  font-weight: 700;
}

#about-section.mt-3 .card-text {
  font-size: 14.5px;
  line-height: 2;
  color: rgba(255,255,255,0.75);
}

#owl-demo .item {
  position: relative;
  height: 540px;
  overflow: hidden;
}

#owl-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.05);
  display: block;
}

/* ===================================================
   SERVICES SECTION
   =================================================== */
.ftco-services-2 {
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, #f4f7fc 0%, #eef4ff 100%) !important;
}

.ftco-services-2 .heading-section h2,
.ftco-services-2 h2.mb-3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.ftco-services-2 h2.mb-3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 55px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), var(--primary-blue));
  border-radius: 2px;
}

.services {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px !important;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px rgba(13,79,139,0.08);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  width: 100%;
}

.services:hover {
  box-shadow: var(--card-shadow-lg);
  border-bottom-color: var(--accent-teal);
  transform: translateY(-5px);
}

.services .icon {
  background: linear-gradient(135deg, #e9f0ff, #d0e3ff);
  border-radius: 14px;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  margin-right: 22px;
  transition: var(--transition);
}

.services:hover .icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
}

.services .icon span {
  font-size: 30px;
  color: var(--primary-blue);
  transition: var(--transition);
}

.services:hover .icon span {
  color: #fff;
  transform: scale(1.1);
}

.services .heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.services p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ===================================================
   INTRO / CTA BAND
   =================================================== */
.ftco-intro {
  padding: 100px 0;
  position: relative;
}

.ftco-intro .overlay {
  background: linear-gradient(135deg, rgba(10,47,86,0.88), rgba(13,79,139,0.75));
}

.ftco-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.ftco-intro p {
  font-size: 18px;
  opacity: 0.88;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto;
}

/* ===================================================
   DEPARTMENTS SECTION
   =================================================== */
#department-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.department-section-head {
  text-align: center;
  padding: var(--section-py) 0 50px;
}

.department-wrap {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13,79,139,0.06);
}

.department-wrap::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-teal));
  transform: scaleX(0);
  transition: var(--transition);
}

.department-wrap:hover::before {
  transform: scaleX(1);
}

.department-wrap:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-6px);
  border-color: rgba(13,79,139,0.2);
}

.department-wrap .icon {
  background: linear-gradient(135deg, #eef4ff, #dbeafe);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.department-wrap:hover .icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  transform: rotate(5deg) scale(1.08);
}

.department-wrap:hover .icon svg path,
.department-wrap:hover .icon svg circle,
.department-wrap:hover .icon svg rect,
.department-wrap:hover .icon svg line {
  stroke: rgba(255,255,255,0.9);
}

.department-wrap h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.department-wrap h3 a {
  color: inherit !important;
  text-decoration: none !important;
  transition: var(--transition);
}

.department-wrap:hover h3 a {
  color: var(--primary-blue) !important;
}

.department-wrap p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* Department info modal override */
#dept-info-modal .modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--card-shadow-lg);
  overflow: hidden;
}

#dept-info-modal .modal-header {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  color: #fff;
  border-bottom: none;
  padding: 24px 32px;
}

#dept-info-modal .modal-header h5 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

#dept-info-modal .modal-body {
  padding: 30px 32px;
  font-size: 15px;
  line-height: 1.9;
  color: #4a5568;
}

/* ===================================================
   DOCTORS SECTION
   =================================================== */
#doctor-section {
  padding: var(--section-py) 0;
  background: linear-gradient(160deg, #f4f7fc 0%, #eef4ff 100%);
}

#doctor-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--dark);
}

#doctor-section p {
  color: var(--text-muted);
}

.staff {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(13,79,139,0.08);
  transition: var(--transition);
  margin: 12px 8px;
}

.staff:hover {
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-6px);
}

.staff .img-wrap {
  height: 350px;
  overflow: hidden;
}

.staff .img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center ;
  transition: transform 0.5s ease;
}

.staff:hover .img {
  transform: scale(1.06);
}

.staff .text {
  padding: 22px 18px 26px;
}

.staff .text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.staff .text .position {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-teal);
  display: block;
  margin-bottom: 12px;
}

.staff .faded {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  margin-top: 12px;
}

.staff .faded p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.ftco-social li a {
  width: 36px;
  height: 36px;
  background: var(--light-bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ftco-social li a:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: scale(1.15);
}

/* ===================================================
   EVENTS SECTION
   =================================================== */
#events-section {
  padding: var(--section-py) 0;
  background: var(--white) !important;
}

#events-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--dark);
}

#events-section .heading-section p {
  color: var(--text-muted);
  font-size: 16px;
}

.event-entry {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,79,139,0.08);
  transition: var(--transition);
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
}

.event-entry:hover {
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-6px);
}

.event-entry .block-20 {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: block;
  position: relative;
  overflow: hidden;
}

.event-entry .block-20::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,79,139,0.5));
  transition: var(--transition);
}

.event-entry:hover .block-20::after {
  background: linear-gradient(to bottom, transparent 20%, rgba(13,79,139,0.7));
}

.event-entry .text {
  padding: 24px;
}

.event-entry .meta {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.event-entry .meta a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.event-entry .heading a {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark) !important;
  text-decoration: none !important;
  transition: var(--transition);
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
}

.event-entry:hover .heading a {
  color: var(--primary-blue) !important;
}

.event-entry p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================
   BLOG SECTION
   =================================================== */
#blog-section {
  padding: var(--section-py) 0;
  background: var(--light-bg) !important;
}

#blog-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--dark);
}

#blog-section .heading-section p {
  color: var(--text-muted);
  font-size: 16px;
}

.blog-entry {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,79,139,0.08);
  transition: var(--transition);
  margin-bottom: 30px;
  border: 1px solid var(--border-light);
}

.blog-entry:hover {
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-6px);
}

.blog-entry .block-20 {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: block;
  position: relative;
  overflow: hidden;
}

.blog-entry .block-20::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,79,139,0.5));
  transition: var(--transition);
}

.blog-entry:hover .block-20::after {
  background: linear-gradient(to bottom, transparent 20%, rgba(13,79,139,0.7));
}

.blog-entry .text {
  padding: 24px;
}

.blog-entry .meta {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.blog-entry .meta a {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-weight: 500;
}

.blog-entry .heading a {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark) !important;
  text-decoration: none !important;
  transition: var(--transition);
  display: block;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-entry:hover .heading a {
  color: var(--primary-blue) !important;
}

.blog-entry p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================================
   SHARED BUTTON STYLES
   =================================================== */
.btn.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), #1a6cc4);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 9px 22px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(13,79,139,0.30);
}

.btn.btn-primary:hover {
  background: linear-gradient(135deg, #0a3360, var(--primary-blue));
  box-shadow: 0 8px 22px rgba(13,79,139,0.45);
  transform: translateY(-2px);
}

.btn.btn-outline-primary {
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 28px;
  transition: var(--transition);
}

.btn.btn-outline-primary:hover {
  background: var(--primary-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ===================================================
   TESTIMONIALS SECTION
   =================================================== */
.testimony-section {
  padding: var(--section-py) 0;
  position: relative;
}

.testimony-section .overlay {
  background: linear-gradient(160deg, rgba(10,47,86,0.91), rgba(0,169,157,0.75));
}

.testimony-section .heading-section-white h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
}

.testimony-wrap {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 40px 32px !important;
  margin: 12px 8px;
  transition: var(--transition);
}

.testimony-wrap:hover {
  background: rgba(255,255,255,0.17);
  transform: translateY(-4px);
}

.user-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 20px;
  border: 3px solid rgba(255,255,255,0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  position: relative;
}

.user-img .quote {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 32px;
  height: 32px;
  background: var(--accent-gold);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
}

.testimony-wrap .text p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255,255,255,0.88);
  font-style: italic;
}

.testimony-wrap .name {
  font-weight: 700;
  color: #fff;
  font-size: 16px;
  font-family: 'Playfair Display', serif;
}

.testimony-wrap .position {
  color: var(--accent-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===================================================
   SPONSORS SECTION
   =================================================== */
#sponsor-section {
  padding: var(--section-py) 0;
  background: var(--white) !important;
}

#sponsor-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--dark);
}

#sponsor-section p {
  color: var(--text-muted);
}

.sponsor-box {
  background: var(--light-bg);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.sponsor-box:hover {
  box-shadow: var(--card-shadow);
  border-color: rgba(13,79,139,0.2);
  transform: translateY(-3px);
  background: var(--white);
}

.sponsor-logo {
  max-height: 65px;
  width: auto;
  filter: grayscale(0%);
  opacity: 1;
  transition: var(--transition);
}

.sponsor-box:hover .sponsor-logo {
  transform: scale(1.07);
}

/* ===================================================
   CONTACT SECTION
   =================================================== */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--light-bg);
}

.contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--dark);
}

.contact-section .heading-section p {
  color: var(--text-muted);
}

.contact-info .box {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  background: var(--white) !important;
  box-shadow: 0 3px 14px rgba(13,79,139,0.06);
}

.contact-info .box:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-4px);
  border-color: rgba(13,79,139,0.18);
}

.contact-info .box .icon {
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #e9f0ff, #d0e3ff);
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-info .box:hover .icon {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
}

.contact-info .box .icon span {
  font-size: 22px;
  color: var(--primary-blue);
  transition: var(--transition);
}

.contact-info .box:hover .icon span {
  color: #fff;
}

.contact-info .box h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-info .box p,
.contact-info .box a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none !important;
  transition: var(--transition);
}

.contact-info .box a:hover {
  color: var(--primary-blue) !important;
}

/* Contact Form */
.contact-form {
  border-radius: var(--radius-md) !important;
  background: var(--white) !important;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-light);
}

.contact-form .form-control {
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 14.5px;
  color: var(--dark);
  transition: var(--transition);
  background: #f8fbff;
}

.contact-form .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(13,79,139,0.12);
  background: #fff;
}

.contact-form .form-control::placeholder {
  color: #a0aec0;
}

.contact-form input[type="submit"] {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-teal));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 40px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(13,79,139,0.30);
  width: 100%;
}

.contact-form input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(13,79,139,0.45);
}

/* Map */
#map {
  width: 100%;
  height: 100%;
  min-height: 450px;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
}

/* ===================================================
   SECTION HEADING UTILITY (legacy overrides)
   =================================================== */
.heading-section h2,
.heading-section .mb-4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--dark);
}

.heading-section-white h2 {
  color: #fff !important;
}

.heading-section .subheading {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 14px;
}

/* ===================================================
   SCROLL ANIMATIONS (AOS-like utility)
   =================================================== */
[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================
   DEPARTMENT TOOLTIP MODAL
   =================================================== */
.dept-tooltip-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-lg);
  padding: 24px 30px;
  max-width: 480px;
  width: 90%;
  z-index: 9999;
  border-left: 4px solid var(--accent-teal);
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dept-tooltip-popup h5 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.dept-tooltip-popup p {
  font-size: 14px;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
}

.dept-tooltip-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dept-tooltip-close:hover {
  color: var(--dark);
  transform: scale(1.2);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 991px) {
  :root { --section-py: 60px; }

  .history-box {
    padding: 36px 24px;
    margin-top: 40px; /* Add margin to prevent sticking to hero */
  }

  .director-card {
    padding: 36px 30px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat-pill {
    background: rgba(13, 79, 139, 0.95); /* Solid for clarity */
    backdrop-filter: none;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 90px;
    padding: 12px 16px;
  }
}

@media (max-width: 767px) {
  :root { --section-py: 50px; }

  .history-title {
    font-size: 24px;
  }

  .history-year-badge {
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 20px;
    display: inline-block;
    padding: 8px 16px;
  }

  .history-year-badge .yr {
    font-size: 18px;
  }

  .history-year-badge .yr-lbl {
    font-size: 9px;
  }

  .director-card {
    padding: 28px 20px;
  }

  .director-quote {
    font-size: 120px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 30px;
  }

  .hero-stat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    text-align: left;
    border-radius: 10px;
  }

  .hero-stat-pill .stat-num {
    font-size: 22px;
    margin-bottom: 0;
  }

  .hero-stat-pill .stat-lbl {
    font-size: 12px;
    margin-top: 0;
  }

  .department-wrap {
    margin: 6px 4px;
  }
}

/* ===================================================
   OWL CAROUSEL CUSTOMIZATIONS
   =================================================== */
.owl-carousel .owl-dots .owl-dot span {
  background: rgba(13,79,139,0.3);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: var(--transition);
}

.owl-carousel .owl-dots .owl-dot.active span {
  background: var(--primary-blue);
  width: 28px;
  border-radius: 5px;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
  background: var(--white) !important;
  border-radius: 50% !important;
  width: 42px !important;
  height: 42px !important;
  box-shadow: 0 3px 12px rgba(13,79,139,0.18) !important;
  color: var(--primary-blue) !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition) !important;
}

.owl-carousel .owl-nav .owl-prev:hover,
.owl-carousel .owl-nav .owl-next:hover {
  background: var(--primary-blue) !important;
  color: #fff !important;
}

/* ===================================================
   NAVBAR ENHANCEMENTS
   =================================================== */
.ftco_navbar {
  box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
}

.ftco_navbar .nav-link {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  transition: var(--transition) !important;
  position: relative;
}

.ftco_navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--accent-teal);
  border-radius: 2px;
  transition: var(--transition);
}

.ftco_navbar .nav-link:hover::after,
.ftco_navbar .nav-item.active .nav-link::after {
  left: 8px;
  right: 8px;
}

.ftco_navbar .nav-item.cta .nav-link {
  background: linear-gradient(135deg, var(--accent-teal), #007e76);
  border-radius: 50px;
  padding: 8px 22px !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,169,157,0.35);
}

.ftco_navbar .nav-item.cta .nav-link::after {
  display: none;
}

.ftco_navbar .nav-item.cta .nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,169,157,0.50);
}

/* ===================================================
   SECTION DIVIDERS
   =================================================== */
.wave-divider {
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ===================================================
   SPONSORS SECTION
   =================================================== */
.sponsor-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none !important;
  color: inherit !important;
  transition: var(--transition);
  height: 100%;
  box-shadow: 0 4px 14px rgba(13,79,139,0.05);
  position: relative;
  overflow: hidden;
}

.sponsor-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-teal), var(--primary-blue));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.sponsor-box:hover::before {
  transform: scaleX(1);
}

.sponsor-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
  border-color: rgba(13,79,139,0.15);
}

.sponsor-img-wrap {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sponsor-logo {
  max-width: 220px;
  max-height: 100px;
  object-fit: contain;
  transition: var(--transition);
}

.sponsor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.sponsor-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.sponsor-box:hover .sponsor-name {
  color: var(--primary-blue);
}

.sponsor-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

/* ===================================================
   MODERN DIRECTOR CARDS CUSTOM CSS
   =================================================== */
.director-section::before {
  display: none !important;
}

.modern-director-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-director-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13,79,139,0.12) !important;
}

.modern-director-card .btn-outline-primary {
  transition: all 0.3s ease;
}

.modern-director-card:hover .btn-outline-primary {
  background-color: #2563eb;
  color: #fff;
  border-color: #2563eb;
  transform: translateX(5px);
}

.modern-director-card .director-img-wrapper img {
  transition: all 0.5s ease;
}

.modern-director-card:hover .director-img-wrapper img {
  transform: scale(1.08);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.modern-director-card .director-quote-icon {
  transition: all 0.5s ease;
}

.modern-director-card:hover .director-quote-icon {
  transform: scale(1.1) rotate(-5deg);
  opacity: 0.08 !important;
}

@media (max-width: 767.98px) {
  .modern-director-card .director-quote-icon {
    font-size: 6rem !important;
  }
}

/* ===================================================
   MOBILE ENHANCEMENTS & ANIMATIONS
   =================================================== */

/* Animation Utilities */
[data-aos] {
  pointer-events: none;
}
.aos-animate {
  pointer-events: auto;
}

/* Hero Mobile Fixes */
@media (max-width: 768px) {
  .hero-wrap {
    display: block; /* Standard block flow for mobile */
    padding-top: 110px;
    padding-bottom: 60px;
    height: auto !important;
    min-height: auto !important;
  }

  .hero-height {
    min-height: auto !important;
    padding: 20px 0;
  }
  .hero-title {
    font-size: 32px !important;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .hero-stats {
    gap: 10px;
    margin-top: 30px;
  }
  .hero-stat-pill {
    padding: 10px 15px;
    min-width: 90px;
    flex: 1 1 calc(50% - 10px);
  }
  .hero-stat-pill .stat-num {
    font-size: 20px;
  }
}

/* Director Section Mobile */
@media (max-width: 768px) {
  .modern-director-card {
    min-height: auto !important;
  }
  .modern-director-card .col-md-4 {
    padding: 40px 20px !important;
  }
  .modern-director-card .col-md-8 {
    padding: 30px 20px !important;
  }
  .director-name {
    font-size: 1.25rem !important;
  }
  .director-message {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }
}

/* Services & Department Grid Fixes */
@media (max-width: 991.98px) {
  .department-wrap {
    margin: 10px 0;
  }
  .services {
    margin-bottom: 20px;
  }
}

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

/* Pulsing Button */
@keyframes pulse-teal {
  0% { box-shadow: 0 0 0 0 rgba(0, 169, 157, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 169, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 169, 157, 0); }
}

.pulse-teal {
  animation: pulse-teal 2s infinite;
}

/* Glassmorphism Enhancements */
.glass-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
}

