/* =============================================
   ST. ANN'S HOSPITAL — MAIN STYLESHEET
   Premium Medical UI — $50K Level Design
   ============================================= */

:root {
  --blue: #1E6FD9;
  --blue-dark: #1558b0;
  --blue-light: #e8f1fd;
  --green: #2BB673;
  --green-dark: #1e9058;
  --white: #F8FAFC;
  --dark: #0d1b3e;
  --dark2: #1a2d5a;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(30, 111, 217, .10);
  --shadow-lg: 0 12px 48px rgba(30, 111, 217, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all .35s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* CONTAINER */
.container {
  max-width: clamp(1200px, 90vw, 1920px);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-appt {
  background: var(--green);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: .78rem;
  transition: var(--transition);
}

.topbar-appt:hover {
  background: var(--green-dark);
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: none;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 10;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-sub {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--blue);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 26px);
  margin-left: auto;
}

.nav-links>li {
  position: relative;
}

.nav-links>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.arrow {
  font-size: .7rem;
  transition: transform .25s;
}

.nav-links li:hover .arrow {
  transform: rotate(-180deg);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 230px;
  overflow: hidden;
  z-index: 100;
  animation: dropDown .25s ease;
  border-top: 10px solid transparent;
  background-clip: padding-box;
}

@keyframes dropDown {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: .85rem;
  color: var(--dark);
  font-weight: 400;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-light);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--blue-light);
  color: var(--blue);
  padding-left: 24px;
}

/* DESKTOP NAV SCALING */
@media (min-width: 993px) {
  .nav-inner {
    padding: 8px 32px;
  }
}

@media (max-width: 1280px) {
  .nav-links>li>a {
    padding: 8px 10px;
    font-size: .8rem;
  }
}

/* Nav CTA */
.nav-appt-btn {
  background: linear-gradient(135deg, var(--blue), var(--green)) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 25px !important;
  font-weight: 600 !important;
}

.nav-appt-btn:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* Logo in navbar */


/* ===== PAGE HERO (Inner Pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 60%, #1a4a8a 100%);
  padding: 100px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231E6FD9' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
}

.breadcrumb a {
  color: var(--green);
}

.breadcrumb span {
  color: rgba(255, 255, 255, .4);
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(80px, 8vw, 140px) 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.section-header p {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.15rem;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--blue-light);
  margin-bottom: 18px;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: linear-gradient(135deg, var(--blue), var(--green));
}

/* GLASS CARD */
.glass-card {
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  box-shadow: 0 4px 20px rgba(30, 111, 217, .35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30, 111, 217, .45);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

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

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: var(--shadow);
}

.btn-white:hover {
  background: var(--blue);
  color: #fff;
}

/* ===== GRID LAYOUTS ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(135deg, var(--dark), var(--dark2));
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  margin-top: 6px;
}

/* ===== DEPT CARDS ===== */
.dept-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.dept-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transition: var(--transition);
}

.dept-card:hover::before {
  transform: scaleX(1);
}

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

/* ===== APPOINTMENT FORM ===== */
.appt-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.appt-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 111, 217, .2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.appt-form {
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.appt-form .form-group label {
  color: rgba(255, 255, 255, .8);
  font-size: .85rem;
  font-weight: 500;
}

.appt-form .form-group input,
.appt-form .form-group select,
.appt-form .form-group textarea {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: 13px 16px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
}

.appt-form .form-group input::placeholder,
.appt-form .form-group textarea::placeholder {
  color: rgba(255, 255, 255, .35);
}

.appt-form .form-group input:focus,
.appt-form .form-group select:focus,
.appt-form .form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(30, 111, 217, .15);
}

.form-group select option {
  background: var(--dark);
  color: #fff;
}

.form-full {
  grid-column: 1/-1;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding-top: 0;
}

.footer-wave {
  line-height: 0;
  background: #f1f5f9;
}

.footer-wave svg {
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding: 60px 24px 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-about {
  font-size: .87rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--blue);
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  font-size: .86rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--green);
  padding-left: 6px;
}

.footer-contact .fc-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.fc-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact span:last-child {
  font-size: .86rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== HOME HERO ===== */
.hero {
  height: clamp(450px, 35vw, 750px); /* proportional desktop height */
  max-width: 100%;
  margin: 0 auto;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231E6FD9' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-blob1,
.hero-blob2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-blob1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 111, 217, .25), transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-blob2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 182, 115, .2), transparent 70%);
  bottom: -80px;
  left: 20%;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .85);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 28px;
  animation: fadeInUp .8s ease forwards;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp .8s .15s ease both;
}

.hero-content h1 span {
  background: linear-gradient(90deg, #5badff, var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  color: rgba(255, 255, 255, .72);
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 540px;
  animation: fadeInUp .8s .3s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp .8s .45s ease both;
}

.hero-float-icons {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  z-index: 2;
  animation: fadeInRight .8s .6s ease both;
}

.float-icon-card {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.float-icon-card:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-4px);
}

.float-icon-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.float-icon-card span {
  font-size: .78rem;
  color: rgba(255, 255, 255, .75);
  display: block;
  font-weight: 500;
}

/* ===== ABOUT HOME SECTION ===== */
.about-home {
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

.about-main-img {
  border-radius: 24px;
  width: 100%;
  height: 420px;
  background: linear-gradient(135deg, var(--blue-light), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.about-badge .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.about-badge .lbl {
  font-size: .75rem;
  opacity: .85;
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 18px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 32px;
}

.af-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--dark);
  font-weight: 500;
}

.af-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  flex-shrink: 0;
}

/* ===== SERVICES CARDS ===== */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px;
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

.service-card .icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-card p {
  font-size: .85rem;
  color: var(--gray);
}

/* ===== FACILITIES ===== */
.facility-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: var(--transition);
}

.facility-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.fac-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-light), #dbeafe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.fac-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.fac-text p {
  font-size: .85rem;
  color: var(--gray);
}

/* ===== GALLERY ===== */
.gallery-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.gf-btn {
  padding: 8px 22px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.gf-btn.active,
.gf-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-light), #bfdbfe);
  position: relative;
  cursor: pointer;
}

.gallery-item-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-inner {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 27, 62, .7), transparent);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
}

/* ===== CONTACT ===== */
.contact-info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 32px;
}

.ci-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-light);
}

.ci-item:last-child {
  border-bottom: none;
}

.ci-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ci-text h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

.ci-text p {
  font-size: .875rem;
  color: var(--gray);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* CONTACT FORM */
.contact-form {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 40px;
}

.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group select {
  background: var(--gray-light);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--dark);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.contact-form .form-group label {
  color: var(--gray);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green));
}

.tl-item {
  position: relative;
  margin-bottom: 40px;
}

.tl-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--blue-light);
}

.tl-year {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.tl-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.tl-text {
  font-size: .875rem;
  color: var(--gray);
}

/* ===== TEAM / ADMIN CARDS ===== */
.admin-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

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

.admin-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 16px;
}

.admin-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.admin-role {
  font-size: .82rem;
  color: var(--blue);
  font-weight: 500;
}

/* ===== AWARDS ===== */
.award-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: var(--transition);
}

.award-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--green);
  transform: translateY(-3px);
}

.award-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.award-year {
  font-size: .78rem;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 4px;
}

.award-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.award-by {
  font-size: .82rem;
  color: var(--gray);
}

/* ===== DEPT PAGE ===== */
.dept-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
}

.dept-img {
  border-radius: 24px;
  height: 380px;
  background: linear-gradient(135deg, var(--blue-light), #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.dept-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.dept-spec {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .875rem;
}

.ds-check {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--blue), var(--green));
  padding: 70px 0;
  text-align: center;
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== REAL IMAGE STYLES ===== */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  z-index: 0;
}

.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  z-index: 0;
}

.dept-hero-img {
  width: 100%;
  height: clamp(300px, 25vw, 450px);
  object-fit: cover;
  border-radius: 24px;
}

.about-real-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 24px;
}

.gallery-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover .gallery-real-img {
  transform: scale(1.08);
}

.team-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.facility-real-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.founder-portrait {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.banner-img {
  width: 100%;
  border-radius: var(--radius);
}

.org-chart-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.accolade-news-img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  height: 200px;
}

.academics-hero-img {
  width: 100%;
  height: clamp(300px, 25vw, 450px);
  object-fit: cover;
  border-radius: 24px;
}

/* =========================================
   HEADER BANNER — Dynamic Layout
   ========================================= */

.header-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 3% 10px;
  border-bottom: 2px solid var(--blue);
  min-height: 140px; /* Increased from 120px */
  gap: 15px;
  text-decoration: none;
  color: inherit;
}

.hb-static-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hb-img-wrap {
  flex: 0 0 auto;
  height: 130px; /* Increased from 110px */
  display: flex;
  align-items: center;
}

.hb-img-wrap img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.hb-center-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hb-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.hb-main-logo {
  height: 65px; /* Increased from 55px */
  width: auto;
  object-fit: contain;
}

.hb-dynamic-title {
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hb-dynamic-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--blue);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  font-style: italic;
}

/* Ensure the banner link covers everything */
.header-banner a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* Nav logo image in sticky bar */
.nav-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: #fff;
  flex-shrink: 0;
}

/* Fix for ultra-narrow screens */
@media(max-width: 400px) {
  .logo-text {
    display: none;
  }
}

/* FOOTER LOGO */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, .2);
  flex-shrink: 0;
}

.footer-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo-sub {
  font-size: .72rem;
  color: var(--green);
  font-weight: 600;
  letter-spacing: .06em;
}

/* ===== MOBILE RESPONSIVENESS IMPROVEMENTS ===== */
@media(max-width:1100px) {
  .container {
    padding: 0 20px;
  }

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

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

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

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .stat-item:nth-child(even) {
    border-right: none;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}

@media(max-width:1024px) {
  .hero-float-icons {
    display: none;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dept-intro {
    grid-template-columns: 1fr;
  }

  .appt-grid-resp {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* Navbar adjustments for tablet */
  .nav-links {
    gap: 8px;
  }
  
  .nav-links>li>a {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
}

@media(max-width:992px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    padding: 80px 20px 40px;
    gap: 5px;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    margin: 0;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links>li {
    width: 100%;
  }

  .nav-links>li>a {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    justify-content: space-between;
    width: 100%;
  }

  .nav-links .nav-appt-btn {
    margin-top: 15px;
    text-align: center;
    justify-content: center !important;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--blue);
    margin: 5px 0 5px 15px;
    display: none;
    padding: 0;
    background: #f8fafc;
    width: auto;
    min-width: 0;
  }

  .dropdown-menu a {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .dropdown.open>.dropdown-menu {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .dropdown.open>a .arrow {
    transform: rotate(-180deg);
  }
}

@media(max-width:768px) {
  .section {
    padding: 50px 0;
  }

  .stats-bar {
    padding: 30px 0;
  }

  .stat-num {
    font-size: 2.2rem;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  /* Gallery specific responsive */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Forms */
  .appt-form {
    padding: 24px;
  }

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

  /* Typography */
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header {
    margin-bottom: 35px;
  }

  /* Header Banner */
  .header-banner {
    min-height: 100px;
    padding: 10px 0;
  }

  .hb-img-wrap {
    flex: 0 0 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hb-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .hb-dynamic-title {
    font-size: 1.4rem !important;
  }

  .hb-dynamic-subtitle {
    font-size: 0.7rem !important;
  }

  .hb-badge {
    display: none;
  }

  .hb-center-link {
    gap: 12px;
  }

  .hb-logo {
    width: 70px;
    height: 70px;
  }

  /* Topbar */
  .topbar-left {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }
}

@media(max-width:576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--blue);
    margin: 8px auto 0;
  }

  .footer-col h4 {
    border-bottom: none;
  }

  .footer-logo-wrap {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .fc-item {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }
}

@media(max-width:480px) {
  .header-banner {
    min-height: 80px;
  }

  .hb-side {
    display: none;
  }

  .hb-name {
    font-size: 1.15rem;
  }

  .hb-logo {
    width: 60px;
    height: 60px;
  }

  .hb-center-link {
    gap: 10px;
    padding: 10px;
  }

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

  .grid-3,
  .grid-4,
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-btns {
    flex-direction: column;
    width: 100%;
  }

  .hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Navbar */
  .logo-name {
    font-size: 0.9rem;
  }

  .logo-sub {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
  }

  .nav-logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Hero */
  .hero {
    min-height: 70vh !important;
    padding: 100px 0 50px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  /* Section tag */
  .section-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  /* Dynamic Header Banner Mobile Redux */
  .header-banner {
    padding: 10px;
  }
  
  .hb-static-link {
    flex-direction: row; /* Keep row unless very small */
    gap: 10px;
    padding: 5px;
  }
  
  .hb-img-wrap {
    flex: 0 0 45px;
    height: 60px;
  }
  
  .hb-dynamic-title {
    font-size: 1.1rem !important;
  }
  
  .hb-main-logo {
    height: 32px;
  }
  
  .hb-dynamic-subtitle {
    font-size: 0.6rem !important;
    line-height: 1.2;
  }
}

@media(max-width: 380px) {
  .logo-text {
    display: none;
  }
  
  .hb-img-wrap {
    display: none;
  }
}