:root {
  --primary: #0d5b87;
  --secondary: #2bb3a8;
  --dark: #102334;
  --green: #0f7b6d;
  --cream: #edf7f9;
  --cream2: #e8f3f7;
  --light: #f4f9fb;
  --shadow: 0 8px 40px rgba(15, 73, 101, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 73, 101, 0.18);
}

.detail-section {
  padding: 96px 0;
  background: #fff;
}

.profile-credentials {
  display: grid;
  gap: 4px;
  margin: -4px 0 24px;
  padding: 16px 18px;
  border-left: 3px solid var(--secondary);
  background: var(--light);
  color: #607381;
  font-size: .82rem;
  line-height: 1.55;
}

.profile-credentials strong {
  color: var(--dark);
  font-size: .95rem;
}

.profile-credentials span:first-of-type {
  color: var(--primary);
  font-weight: 700;
}

#page-sections {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

#page-sections > #hero { order: 0; }
#page-sections > #about { order: 1; }
#page-sections > #people { order: 2; }
#page-sections > #patents { order: 3; }
#page-sections > #publications { order: 4; }
#page-sections > #projects { order: 5; }
#page-sections > #alumni { order: 7; }
#page-sections > #gallery { order: 8; }
#page-sections > #contact-section { order: 9; }

.contact-email-link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email-link:hover,
.contact-email-link:focus-visible {
  color: var(--secondary);
  text-decoration: underline;
}

.team-card-body .team-role,
.team-card-body .team-summary {
  display: none;
}

.team-alumni-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 8px 13px;
  border: 1px solid rgba(13, 91, 135, .2);
  border-radius: 6px;
  background: #fff;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.team-alumni-link i {
  font-size: .72rem;
  transition: transform .2s ease;
}

.team-alumni-link:hover,
.team-alumni-link:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.team-alumni-link:hover i,
.team-alumni-link:focus-visible i {
  transform: translateX(3px);
}

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

.detail-card {
  height: 100%;
  padding: 28px;
  border: 1px solid rgba(13, 91, 135, .12);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.detail-card h4 {
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 1.08rem;
}

.detail-card p,
.publication-item p {
  margin-bottom: 0;
  color: #607381;
  font-size: .88rem;
  line-height: 1.75;
}

.join-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.join-copy p {
  margin-bottom: 24px;
  color: #607381;
  font-size: .96rem;
  line-height: 1.8;
}

.publication-list {
  max-width: 980px;
  margin: 0 auto;
}

.publication-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(13, 91, 135, .14);
}

.publication-item:first-child {
  padding-top: 0;
}

.publication-year {
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.publication-item h5 {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 1rem;
  line-height: 1.45;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.alumni-grid span {
  display: block;
  padding: 15px 18px;
  border: 1px solid rgba(13, 91, 135, .12);
  border-radius: 8px;
  background: #fff;
  color: #526877;
  font-size: .83rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  #hero .row {
    min-height: 0 !important;
  }

  #hero .row > .col-lg-6:last-child {
    order: -1;
  }
}

@media (max-width: 575px) {
  .detail-section {
    padding: 68px 0;
  }

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

  .publication-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", sans-serif;
  color: #444;
  background: #fff;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
}
a {
  text-decoration: none;
  transition: all 0.3s;
}
img {
  max-width: 100%;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ===================== TOP BAR ===================== */
#topbar {
  background: #111;
  padding: 8px 0;
  font-size: 0.82rem;
}
#topbar span {
  color: #aaa;
  margin-right: 16px;
}
#topbar span i {
  color: var(--secondary);
  margin-right: 5px;
}
#topbar .tsoc a {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.75rem;
  margin-left: 5px;
  transition: 0.3s;
}
#topbar .tsoc a:hover {
  background: var(--primary);
  color: #fff;
}
.ttag {
  background: var(--primary);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===================== NAVBAR ===================== */
#nav {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 990;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
  transition: 0.4s;
}
#nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.14);
}
.lab-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 40, 26, 0.35);
}
.bname {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
}
.bname span {
  color: var(--primary);
}
.bsub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aaa;
}
.navbar-nav .nav-link {
  font-size: 0.87rem;
  font-weight: 500;
  color: #333 !important;
  padding: 26px 13px !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 55%;
}
.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}
/* FIX 1 â€” Search btn in navbar */
#navSearchBtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: 0.3s;
}
#navSearchBtn:hover {
  background: rgba(232, 40, 26, 0.08);
  color: var(--primary);
}
.nav-cta {
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff !important;
  border-radius: 8px;
  padding: 10px 20px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(232, 40, 26, 0.3);
  margin-left: 6px;
}
.nav-cta::after {
  display: none !important;
}
@media (max-width: 991.98px) {
  #navmenu.show,
  #navmenu.collapsing {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #navmenu .navbar-nav {
    width: 100%;
  }

  #navmenu .navbar-nav .nav-link {
    padding: 10px 12px !important;
  }

  #navmenu .navbar-nav .nav-link::after {
    display: none;
  }

  #navmenu .navbar-nav .nav-link.active {
    border-radius: 6px;
    background: rgba(13, 91, 135, .08);
    color: var(--primary) !important;
  }
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 40, 26, 0.4);
}

/* ===================== SECTION COMMONS ===================== */
section {
  padding: 88px 0;
}
.slbl {
  font-family: "Dancing Script", cursive;
  font-size: 1.35rem;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}
.stitle {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.stitle span {
  color: var(--primary);
}
.sline {
  width: 58px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto 12px;
}
.sline.lft {
  margin-left: 0;
}
.sdesc {
  color: #777;
  font-size: 0.93rem;
  line-height: 1.8;
}
.btn-red {
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 0.93rem;
  box-shadow: 0 8px 24px rgba(232, 40, 26, 0.35);
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}
.btn-red:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(232, 40, 26, 0.45);
  color: #fff;
}

/* ===================== HERO ===================== */
#hero {
  background: linear-gradient(112deg, #f8fbfa 0%, #edf7f8 58%, #e8f3f2 100%);
  min-height: 76vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(13, 91, 135, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 91, 135, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .58;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .24) 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .24) 28%, #000 100%);
}
.hero-row {
  min-height: 62vh;
}
.hbgtxt {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 900;
  font-family: "Playfair Display", serif;
  color: rgba(13, 91, 135, 0.025);
  pointer-events: none;
  white-space: nowrap;
}
.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 7px;
  padding: 6px 14px 6px 6px;
  border: 1px solid rgba(13, 91, 135, .1);
  box-shadow: 0 5px 18px rgba(15, 73, 101, .08);
  margin-bottom: 20px;
}
.hbadge .hbi {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.78rem;
}
.hbadge span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--dark);
}
.htitle {
  font-size: 4.35rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}
.htitle .hl {
  color: var(--primary);
  position: relative;
  display: inline-block;
}
.htitle .hl::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 7px;
  background: rgba(232, 40, 26, 0.14);
  border-radius: 4px;
  z-index: -1;
}
.hdesc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 470px;
  margin-bottom: 30px;
}
/* FIX 2 â€” Video play button */
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 15px 8px 8px;
  border: 1px solid rgba(13, 91, 135, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  transition: 0.3s;
  cursor: pointer;
}
.btn-play .pico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  color: var(--primary);
  font-size: 0.95rem;
  transition: 0.3s;
  flex-shrink: 0;
}
.hero-profile-link {
  width: fit-content;
  min-height: 44px;
  justify-content: flex-start;
  gap: 8px;
  padding: 5px 11px 5px 5px;
  border-radius: 999px;
  font-size: .82rem;
}
.hero-profile-link .pico {
  width: 32px;
  height: 32px;
  font-size: .8rem;
}
.btn-play:hover .pico {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.btn-play:hover {
  color: var(--primary);
}
.hcircle {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  padding: 8px;
  border: 1px solid rgba(13, 91, 135, .12);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 24px 56px rgba(15, 73, 101, .16);
  animation: hero-photo-drift 8s ease-in-out infinite;
  transition: box-shadow .45s ease;
}
.hcircle:hover {
  animation-play-state: paused;
  box-shadow: 0 30px 64px rgba(15, 73, 101, .2);
}
@keyframes hero-photo-drift {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.hcircle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  transition: transform .65s cubic-bezier(.2, .7, .2, 1);
}
.hcircle:hover img {
  transform: scale(1.015);
}
/* ===================== ABOUT ===================== */
#about {
  background: #fff;
}
.astack {
  position: relative;
}
.amain {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.amain img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}
.asm {
  position: absolute;
  bottom: -26px;
  right: -26px;
  width: 170px;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow);
}
.asm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aexp {
  position: absolute;
  top: 28px;
  left: -16px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(232, 40, 26, 0.4);
}
.aexp .anum {
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
  display: block;
}
.aexp small {
  font-size: 0.7rem;
  opacity: 0.9;
}
.fti {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 18px;
}
.ftico {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: 0.3s;
}
.ftico.r {
  background: rgba(232, 40, 26, 0.1);
  color: var(--primary);
}
.ftico.y {
  background: rgba(246, 166, 35, 0.11);
  color: var(--secondary);
}
.ftico.g {
  background: rgba(45, 106, 79, 0.1);
  color: var(--green);
}
.fti:hover .ftico {
  transform: scale(1.1);
}
.fti h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  font-family: "Poppins", sans-serif;
}
.fti p {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* ===================== GALLERY ===================== */
#gallery {
  background: var(--light);
}
.ggrid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 13px;
}
.gitem {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gitem:first-child {
  grid-row: auto;
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.gitem:hover img {
  transform: scale(1.08);
}
.gover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), transparent 60%);
  opacity: 0;
  transition: 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.gitem:hover .gover {
  opacity: 1;
}
.gover span {
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
}
.gover i {
  color: var(--secondary);
  margin-right: 5px;
}

/* ===================== PEOPLE ===================== */
#people {
  background: #fff;
}
.team-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: 0.4s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}
.team-card:hover,
.team-card:focus-within {
  position: relative;
  z-index: 10;
  overflow: visible;
}
.team-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}
.team-photo {
  position: relative;
  overflow: hidden;
  height: 268px;
  background: var(--cream2);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.5s;
}
.team-photo img.member-photo-upper {
  object-position: center 20%;
}
.team-card:hover .team-photo,
.team-card:focus-within .team-photo {
  overflow: visible;
}
.member-hover {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: max-content;
  min-height: 100%;
  padding: 18px 16px 22px;
  background: linear-gradient(180deg, rgba(250, 253, 252, .82), rgba(235, 246, 243, .9));
  color: var(--dark);
  box-shadow: 0 12px 28px rgba(16, 35, 52, .18);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.team-card:hover .member-hover,
.team-card:focus-within .member-hover {
  opacity: 1;
  visibility: visible;
}
.member-name {
  margin: 0 0 10px;
  color: var(--dark);
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  line-height: 1.25;
}
.member-hover strong {
  color: var(--primary);
  font-size: .78rem;
  letter-spacing: .7px;
  text-transform: uppercase;
}
.member-hover span {
  margin-top: 4px;
  color: var(--green);
  font-size: .8rem;
  font-weight: 600;
}
.member-hover p {
  margin: 8px 0 0;
  color: #344d59;
  font-size: .76rem;
  line-height: 1.45;
}
@media (hover: none) {
  .member-hover {
    opacity: 0;
    visibility: hidden;
  }
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
}
.team-card-body {
  padding: 18px;
  text-align: center;
}
.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.team-role {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.team-summary {
  font-size: 0.76rem;
  color: #bbb;
  margin-top: 5px;
}

/* ===================== CONTACT â€” FIX 6 ===================== */
#contact-section {
  background: #fff;
}
.contact-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 38px 44px;
  border-radius: 8px;
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.contact-card-heading {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.contact-card-heading h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 1.55rem;
}
.contact-card-heading p {
  margin: 0;
  color: var(--secondary);
  font-size: .9rem;
  font-weight: 600;
}
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 30px;
  padding-top: 24px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}
.contact-detail .cticon {
  background: rgba(43, 179, 168, .15);
  color: var(--secondary);
}
.contact-detail strong {
  display: block;
  margin-bottom: 4px;
  color: #aebdc7;
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-detail a,
.contact-detail address {
  color: #fff;
  font-size: .88rem;
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.contact-detail a:hover {
  color: var(--secondary);
}
.contact-address {
  grid-column: 1 / -1;
}
@media (max-width: 575px) {
  .contact-card {
    padding: 28px 22px;
  }

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

  .contact-address {
    grid-column: auto;
  }
}
.cticon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: rgba(232, 40, 26, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
/* ===================== FOOTER ===================== */
footer {
  background: var(--dark);
  padding: 34px 0 0;
  border-top: 3px solid var(--secondary);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(150px, .65fr) minmax(300px, 1.25fr);
  gap: 32px;
  padding-bottom: 24px;
}
.fnm {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: #fff;
}
.fnm span {
  color: var(--secondary);
}
.footer-summary {
  max-width: 280px;
  margin: 8px 0 12px;
  color: #bdcbd1;
  font-size: .78rem;
  line-height: 1.55;
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social-item {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7d3d8;
  font-size: .74rem;
}
.footer-heading {
  margin: 3px 0 12px;
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.footer-links a {
  color: #c3cdd3;
  font-size: .77rem;
  line-height: 1.35;
  transition: color .2s ease;
}
.footer-links a:hover {
  color: var(--secondary);
}
.footer-contact-list {
  display: grid;
  gap: 9px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #c3cdd3;
  font-size: .75rem;
  line-height: 1.45;
}
.footer-contact-item > i {
  width: 15px;
  margin-top: 2px;
  color: var(--secondary);
  text-align: center;
  flex-shrink: 0;
}
.footer-contact-item strong {
  display: block;
  color: #fff;
  font-size: .72rem;
}
.footer-contact-item span,
.footer-contact-item address {
  display: block;
  color: #c3cdd3;
  font-style: normal;
}
.footer-contact-item a {
  color: #c3cdd3;
  overflow-wrap: anywhere;
}
.footer-contact-item a:hover {
  color: var(--secondary);
}
.footer-bottom {
  min-height: 44px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom span {
  color: #9eafb7;
  font-size: .7rem;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c3cdd3;
  font-size: .7rem;
}
.footer-bottom a:hover {
  color: var(--secondary);
}
@media (max-width: 991px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(150px, .7fr);
    gap: 28px;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  footer {
    padding-top: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 18px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
  }

  .footer-links .footer-heading {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  .footer-contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .footer-contact-item:last-child {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
  }
}

/* ===================== UTILITIES ===================== */
#btt {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #c01e12);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(232, 40, 26, 0.38);
  opacity: 0;
  transform: translateY(18px);
  transition: 0.4s;
}
#btt.show {
  opacity: 1;
  transform: translateY(0);
}
#btt:hover {
  transform: translateY(-4px) !important;
}
/* ====================================================
   ALL POPUP / MODAL STYLES
==================================================== */

/* --- FIX 1: SEARCH POPUP --- */
#searchOv {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(5, 5, 5, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 78px;
}
#searchOv.open {
  display: flex;
  animation: fadeov 0.28s ease;
}
@keyframes fadeov {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
#searchOv .sovclose {
  position: absolute;
  top: 22px;
  right: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: 0.3s;
}
#searchOv .sovclose:hover {
  background: var(--primary);
}
.sovbox {
  width: 100%;
  max-width: 760px;
  padding: 0 18px;
}
.sovbox h4 {
  color: #fff;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 26px;
  font-family: "Playfair Display", serif;
}
.sovinput {
  display: flex;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 60px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}
.sovinput input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 17px 24px;
  color: #fff;
  font-size: 1.05rem;
  font-family: "Poppins", sans-serif;
  outline: none;
}
.sovinput input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.sovinput button {
  background: var(--primary);
  border: none;
  padding: 0 26px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}
.sovinput button:hover {
  background: #c01e12;
}
.sovfilters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: 20px 0 12px;
}
.sovfilter {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  padding: 7px 13px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  transition: 0.3s;
}
.sovfilter:hover,
.sovfilter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sovresults {
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.sovcount,
.sovempty {
  margin: 0;
  padding: 15px 4px;
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
}
.sovresult {
  display: block;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
.sovresult:hover,
.sovresult:focus-visible {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  outline: none;
}
.sovresult-category {
  display: block;
  margin-bottom: 4px;
  color: var(--secondary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sovresult h5 {
  margin: 0 0 4px;
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
}
.sovresult p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, .65);
  font-size: .76rem;
  line-height: 1.5;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
@media (max-width: 575px) {
  #searchOv {
    padding-top: 72px;
  }

  .sovbox h4 {
    margin-bottom: 18px;
  }

  .sovinput input {
    padding: 14px 15px;
    font-size: .9rem;
  }

  .sovfilters {
    gap: 6px;
  }

  .sovfilter {
    padding: 6px 9px;
    font-size: .7rem;
  }

  .sovresults {
    max-height: calc(100vh - 260px);
  }
}

/* --- FIX 7: GALLERY POPUP --- */
#galPop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
  padding: 18px;
}
#galPop.open {
  display: flex;
  animation: fadeov 0.28s ease;
}
.gpbox {
  max-width: 880px;
  width: 100%;
  position: relative;
  text-align: center;
}
.gpbox img {
  width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border-radius: 14px;
}
.gpclose {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.gpclose:hover {
  background: var(--primary);
}
.gpcap {
  color: #fff;
  margin-top: 18px;
}
.gpcap h5 {
  font-size: 1.25rem;
  margin-bottom: 5px;
  color: #fff;
}
.gpcap p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}
.gpnav {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 14px;
}
.gpnav button {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 50px;
  padding: 7px 20px;
  cursor: pointer;
  font-size: 0.83rem;
  font-family: "Poppins", sans-serif;
  transition: 0.3s;
}
.gpnav button:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 991px) {
  .hcircle {
    max-width: 560px;
  }
  .ggrid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .gitem:first-child {
    grid-row: span 1;
  }
  .asm {
    display: none;
  }
}
@media (max-width: 767px) {
  section {
    padding: 55px 0;
  }
  #topbar .top-contact span:last-child {
    display: none;
  }
  .hcircle {
    max-width: 560px;
  }
  .ggrid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .hcircle {
    max-width: 560px;
  }
  .htitle {
    font-size: 2.4rem;
  }
  .stitle {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
