/* =====================================================
   Amol Vitthalrao Kharat — Portfolio overrides
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  --mr-font: 'Noto Sans Devanagari', 'Mukta', sans-serif;
}

html {
  scroll-behavior: smooth !important;
  scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

body,
body p,
body h1, body h2, body h3, body h4, body h5, body h6,
body .vs-btn,
body .main-menu a,
body .vs-mobile-menu a,
body input,
body textarea,
body select,
body button {
  font-family: var(--mr-font) !important;
}

/* Keep Latin paper titles / DOIs readable */
.latin-text {
  font-family: 'DM Sans', var(--mr-font), sans-serif !important;
  line-height: 1.45;
}

/* ---- Header — classic layout4 (top bar + blue skew logo) ---- */
.header-layout4 .header-top {
  padding: 4px 0 !important;
  min-height: 0;
}

.header-layout4 .header-top .header-links ul li,
.header-layout4 .header-top .user-login {
  font-size: 13px;
  line-height: 1.2;
}

.header-layout4 .sticky-wrapper,
.header-layout4 .sticky-active {
  min-height: 64px !important;
  background-color: #0a282c !important;
}

.header-layout4 .sticky-active .container > .row {
  min-height: 64px;
}

.header-layout4 .menu-style4 > ul > li {
  padding: 0 !important;
}

.header-layout4 .main-menu > ul > li > a,
.header-layout4 .menu-style4 > ul > li > a {
  font-size: 14px !important;
  padding: 0 11px !important;
  line-height: 64px !important;
  color: #ffffff !important;
}

.header-layout4 .main-menu > ul > li > a.active-nav,
.header-layout4 .main-menu > ul > li > a:hover,
.header-layout4 .menu-style4 > ul > li > a:hover {
  color: var(--theme-color2) !important;
}

@media (max-width: 1399px) {
  .header-layout4 .main-menu > ul > li > a,
  .header-layout4 .menu-style4 > ul > li > a {
    font-size: 13px !important;
    padding: 0 8px !important;
  }
}

.header-layout4 .vs-logo.style4 {
  position: relative;
  overflow: visible !important;
  min-height: 64px !important;
  height: 64px !important;
  padding: 0 20px 0 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Keep blue skew behind logo only — don't cover nav */
.header-layout4 .vs-logo.style4::before {
  width: 420px !important;
  max-width: 55vw !important;
  right: -40px !important;
  left: auto !important;
}

.header-layout4 .sticky-active .main-menu,
.header-layout4 .sticky-active .header-btns {
  position: relative;
  z-index: 5;
}

.header-layout4 .vs-logo.style4 .brand-logo-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 5;
  background: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}

.header-layout4 .vs-logo img.logo-lockup,
.header-layout4 .vs-logo.style4 img.logo-lockup {
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  background: transparent;
  padding: 0;
  border-radius: 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.header-layout4 .header-btns .vs-btn {
  padding: 8px 18px !important;
  font-size: 14px !important;
}

.mobile-logo img.logo-lockup {
  max-height: 48px;
  width: auto;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}

/* ---- Hero — photo bg + soft color accents ---- */
.hero-animated {
  overflow: hidden !important;
  position: relative;
}

.hero-animated .hero-inner {
  position: relative;
  min-height: 620px !important;
  display: flex;
  align-items: center;
  padding: 110px 0 120px;
  overflow: hidden;
  background: #0a282c;
}

.hero-animated .hero-bg {
  display: block !important;
  position: absolute !important;
  inset: 0;
  z-index: 0;
  background-color: #0a282c !important;
  background-position: 65% top !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.hero-animated .hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(6, 24, 32, 0.92) 0%, rgba(10, 40, 44, 0.78) 42%, rgba(10, 40, 44, 0.45) 100%);
}

.hero-anim-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.22;
}

.hero-anim-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: blobFloat 14s ease-in-out infinite;
}

.hero-anim-bg .blob-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #3747ff 0%, transparent 70%);
  top: -80px;
  left: -60px;
  animation-duration: 16s;
}

.hero-anim-bg .blob-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ffcc33 0%, transparent 70%);
  bottom: -90px;
  right: 12%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.hero-anim-bg .blob-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #20c997 0%, transparent 70%);
  top: 40%;
  left: 42%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.hero-anim-bg .hero-grid-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: 0.35;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.94); }
}

.hero-animated::after {
  display: none !important;
}

.hero-animated .hero-row {
  position: relative;
  z-index: 2;
}

.hero-animated .hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  text-align: left;
}

.hero-animated .hero-title {
  font-size: clamp(2rem, 4.2vw, 3.15rem) !important;
  line-height: 1.25 !important;
  color: #fff;
}

.hero-animated .hero-title span {
  color: var(--theme-color2);
}

.hero-animated .sec-subtitle,
.hero-animated .hero-text {
  color: rgba(255, 255, 255, 0.92);
}

.hero-animated .hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-btn-light {
  background: #fff !important;
  color: var(--title-color) !important;
}

.hero-typewriter {
  min-height: 1.6em;
  color: var(--theme-color2);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 18px;
}

.hero-typewriter .tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--theme-color2);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Main photo — right corner of hero */
.hero-portrait-badge {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 6px rgba(255, 204, 51, 0.9),
    0 0 40px rgba(55, 71, 255, 0.35);
  margin: 0 auto 0 0;
  z-index: 3;
  animation: portraitGlow 5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-portrait-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

@keyframes portraitGlow {
  0%, 100% { box-shadow: 0 28px 60px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,204,51,0.9), 0 0 30px rgba(55,71,255,0.3); }
  50% { box-shadow: 0 28px 60px rgba(0,0,0,0.45), 0 0 0 6px rgba(255,204,51,1), 0 0 55px rgba(255,204,51,0.45); }
}

@media (max-width: 1199px) {
  .hero-portrait-badge {
    width: min(320px, 100%);
  }
}

@media (max-width: 991px) {
  .hero-animated .hero-inner {
    min-height: auto;
    padding: 90px 0 80px;
  }
  .hero-animated .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  .hero-animated .hero-btns {
    justify-content: center;
  }
  .hero-portrait-badge {
    width: min(280px, 80%);
    margin: 10px auto 0;
  }
}

/* ---- About photos — main + overlapping award box (right) ---- */
.about-photos {
  position: relative;
  display: block;
  max-width: 480px;
  padding-bottom: 0;
  overflow: visible;
}

.about-photos-overlap {
  padding-bottom: 0;
}

.about-photos-main {
  border-radius: 18px;
  overflow: visible;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  width: 100%;
  box-shadow: 0 14px 36px rgba(10, 40, 44, 0.12);
  position: relative;
  z-index: 1;
}

.about-photos-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 18px;
}

/* Overlap box — bottom-right corner on main image */
.about-photo-card.about-photo-overlap {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 3;
  width: min(52%, 230px);
  max-height: none;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 16px 40px rgba(10, 40, 44, 0.25),
    0 0 0 5px #fff,
    0 0 0 8px var(--theme-color2);
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo-card.about-photo-overlap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 48px rgba(10, 40, 44, 0.3),
    0 0 0 5px #fff,
    0 0 0 8px var(--theme-color);
}

.about-photo-card.about-photo-overlap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  min-height: 0;
  max-height: none;
}

.about-photo-card.about-photo-wide {
  aspect-ratio: 16 / 9;
  max-height: 180px;
}

.about-photo-card.about-photo-wide img {
  object-position: center center;
}

.about-photos-side {
  display: none;
}

.about-photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 170px;
  box-shadow: 0 10px 28px rgba(10, 40, 44, 0.1);
  background: #fff;
}

.about-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 0;
  max-height: none;
}

.about-photo-card.about-photo-logo {
  background: #fff;
}

.about-photo-card.about-photo-logo img {
  object-fit: contain;
  padding: 8px;
  background: #fff;
  min-height: 0;
}

.about-photo-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 8px;
  background: linear-gradient(transparent, rgba(10, 40, 44, 0.85));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.about-box-clean {
  padding: 0 !important;
}

@media (min-width: 992px) {
  .about-photos {
    max-width: 100%;
    margin-right: 12px;
  }

  .about-photos-main {
    max-height: 460px;
    aspect-ratio: 4 / 5;
  }

  .about-photo-card.about-photo-overlap {
    right: 20px;
    bottom: 18px;
    width: min(50%, 240px);
  }
}

@media (max-width: 991px) {
  .about-photos {
    max-width: 420px;
    margin: 0 auto 28px;
    padding-bottom: 0;
  }

  .about-photo-card.about-photo-overlap {
    right: 14px;
    bottom: 14px;
    width: min(50%, 190px);
  }

  .about-box-clean {
    text-align: center;
  }

  .about-box-clean .about-feature-list {
    text-align: left;
    display: inline-block;
  }
}

@media (max-width: 575px) {
  .about-photos {
    max-width: 100%;
    padding-bottom: 0;
    margin-bottom: 20px;
  }

  .about-photos-main {
    aspect-ratio: 4 / 5;
    max-height: 340px;
  }

  .about-photo-card.about-photo-overlap {
    right: 10px;
    bottom: 10px;
    width: min(54%, 160px);
    border-radius: 12px;
    box-shadow:
      0 12px 28px rgba(10, 40, 44, 0.22),
      0 0 0 4px #fff,
      0 0 0 6px var(--theme-color2);
  }

  .about-photo-card span {
    font-size: 0.68rem;
    padding: 5px 6px;
  }
}

/* Award felicitation crop */
.award-highlight .award-media img[alt*="पुरस्कार स्वीकारताना"] {
  object-position: center center;
}

/* ---- Stats / counters — sit above hero, fully visible ---- */
.stats-layout {
  margin-top: -55px;
  position: relative;
  z-index: 40 !important;
  padding-bottom: 30px;
}

.stats-layout .container {
  position: relative;
  z-index: 41;
}

.stats-layout .wow {
  visibility: visible !important;
}

.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(10, 40, 44, 0.14);
  height: 100%;
  border-bottom: 3px solid var(--theme-color);
  transition: transform 0.3s ease;
  visibility: visible !important;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-card .stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--theme-color);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 1rem;
  color: var(--title-color);
  margin: 0;
  font-weight: 500;
}

/* ---- About feature list ---- */
.about-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.about-feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 1.02rem;
  color: var(--title-color);
  font-weight: 500;
}

.about-feature-list .afi {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(55, 71, 255, 0.1);
  color: var(--theme-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* ---- Awards ---- */
.award-highlight {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(10, 40, 44, 0.1);
  height: 100%;
}

.award-highlight .award-media {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: #f5f6fa;
}

.award-highlight .award-media a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.award-highlight .award-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.award-highlight .award-media a:hover img {
  transform: scale(1.04);
}

.award-highlight .award-body {
  padding: 28px 26px 32px;
}

.award-highlight .award-eyebrow {
  color: var(--theme-color);
  font-weight: 600;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 6px;
}

.award-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  height: 100%;
  box-shadow: 0 10px 32px rgba(10, 40, 44, 0.07);
  border-top: 3px solid var(--theme-color2);
}

.award-card .award-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 204, 51, 0.2);
  color: #b8860b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.cert-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(10, 40, 44, 0.07);
  height: 100%;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-5px);
}

.cert-card .cert-img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #f0f1f5;
}

.cert-card .cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.cert-card .cert-body {
  padding: 18px 18px 22px;
}

.cert-card .cert-body h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.cert-card .cert-body p {
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 767px) {
  .award-highlight .award-media {
    grid-template-columns: 1fr;
  }
  .award-highlight .award-media img {
    height: 180px;
  }
}

/* ---- Publications (course-style cards) ---- */
.pub-card .course-img {
  height: 200px;
  overflow: hidden;
  background: #eef0f8;
}

.pub-card .course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.pub-card .course-price {
  background: var(--theme-color) !important;
  font-size: 0.75rem !important;
  padding: 4px 10px !important;
  white-space: nowrap;
}

.pub-card .course-name {
  font-size: 1.05rem !important;
  line-height: 1.4;
  min-height: 3.2em;
}

.pub-card .course-meta span {
  font-size: 0.82rem;
}

.pub-card .pub-journal {
  color: var(--theme-color);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  display: block;
}

/* ---- Media coverage ---- */
.media-clip-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(10, 40, 44, 0.08);
  height: 100%;
}

.media-clip-card a.clip-thumb {
  display: block;
  height: 260px;
  overflow: hidden;
  background: #f4f5f8;
}

.media-clip-card a.clip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.media-clip-card a.clip-thumb:hover img {
  transform: scale(1.03);
}

.media-clip-card .clip-body {
  padding: 20px 22px 24px;
}

.media-clip-card .clip-paper {
  color: var(--theme-color);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.pull-quote-box {
  background: linear-gradient(135deg, var(--theme-color) 0%, #626FFF 100%);
  color: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  position: relative;
}

.pull-quote-box .quote-icon {
  font-size: 2rem;
  opacity: 0.7;
  margin-bottom: 12px;
  display: block;
}

.pull-quote-box p {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.7;
  margin-bottom: 14px;
  font-weight: 500;
}

.pull-quote-box cite {
  color: var(--theme-color2);
  font-style: normal;
  font-weight: 700;
}

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

.gallery-filter button {
  border: 1px solid rgba(55, 71, 255, 0.25);
  background: #fff;
  color: var(--title-color);
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--mr-font);
}

.gallery-filter button.active,
.gallery-filter button:hover {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}

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

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 44, 0.0);
  transition: background 0.3s ease;
}

.gallery-item .gal-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

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

.gallery-item:hover::after {
  background: rgba(10, 40, 44, 0.45);
}

.gallery-item:hover .gal-cap {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.is-hidden {
  display: none;
}

@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Contact ---- */
.contact-info-mr i {
  color: var(--theme-color);
  margin-right: 8px;
}

/* ---- Footer ---- */
.footer-logo img.logo-lockup-footer {
  max-height: 64px;
  width: auto;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

/* Section spacing helpers */
.space-pt {
  padding-top: 80px;
}

/* Prevent WOW from permanently hiding content */
.about-photos,
.about-box-clean,
.stats-layout .stat-card {
  visibility: visible !important;
}

/* Hide preloader — portfolio loads fast enough without it */
.preloader {
  display: none !important;
}

.header-layout4 .sticky-wrapper {
  background: var(--title-color);
}

.header-layout4 .sticky-wrapper .sticky-active {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.header-layout4 .vs-menu-toggle {
  width: 42px;
  height: 42px;
  line-height: 42px;
}

/* Section eyebrow labels — remove side/underline bars (clash with Devanagari) */
.sec-subtitle.style1 {
  display: inline-block !important;
  position: relative !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  line-height: 1.55 !important;
  padding: 0 !important;
  margin: 0 0 10px 0 !important;
  overflow: visible;
  white-space: nowrap;
}

.sec-subtitle.style1::before,
.sec-subtitle.style1::after {
  content: none !important;
  display: none !important;
}

/* =====================================================
   Responsive — all screen sizes
   ===================================================== */

/* Global overflow safety */
body {
  overflow-x: hidden;
}

img,
iframe,
video {
  max-width: 100%;
}

.container {
  max-width: 100%;
}

/* Hamburger always visible on dark header */
.header-layout4 .header-btns .vs-menu-toggle,
.header-layout4 .vs-menu-toggle {
  width: 42px !important;
  height: 42px !important;
  line-height: 42px !important;
  background: var(--theme-color) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 0 !important;
}

.header-layout4 .header-btns .vs-menu-toggle i {
  color: #fff !important;
}

/* ---- Large tablets / small laptops ---- */
@media (max-width: 1199px) {
  html {
    scroll-padding-top: 90px;
  }

  .header-layout4 .vs-logo.style4::before {
    width: 300px !important;
    max-width: 40vw !important;
    right: -24px !important;
  }

  .header-layout4 .vs-logo img.logo-lockup {
    max-height: 46px !important;
  }

  .title-area3 .sec-title {
    font-size: clamp(1.85rem, 3.2vw, 2.4rem) !important;
    line-height: 1.3 !important;
  }

  .hero-animated .hero-title {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem) !important;
  }
}

/* ---- Tablets ---- */
@media (max-width: 991px) {
  html {
    scroll-padding-top: 80px;
  }

  .header-layout4 .header-top {
    padding: 6px 0 !important;
  }

  .header-layout4 .header-top .header-links ul li,
  .header-layout4 .header-top .user-login {
    font-size: 12px;
  }

  .header-layout4 .sticky-wrapper,
  .header-layout4 .sticky-active,
  .header-layout4 .vs-logo.style4 {
    min-height: 58px !important;
    height: auto !important;
  }

  .header-layout4 .vs-logo.style4 {
    padding: 6px 10px 6px 0;
  }

  .header-layout4 .vs-logo.style4::before {
    width: 220px !important;
    max-width: 48vw !important;
    right: -16px !important;
  }

  .header-layout4 .vs-logo img.logo-lockup,
  .header-layout4 .vs-logo.style4 img.logo-lockup {
    max-height: 42px !important;
    max-width: min(180px, 52vw) !important;
  }

  .header-layout4 .sticky-active {
    overflow: hidden;
  }

  .hero-animated .hero-inner {
    padding: 80px 0 70px !important;
  }

  .hero-animated .hero-text {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-btn-light {
    margin-left: 0 !important;
  }

  .stats-layout {
    margin-top: -28px;
    padding: 0 0 20px;
  }

  .stat-card {
    padding: 22px 14px;
  }

  .stat-card .stat-number {
    font-size: 2rem;
  }

  .stat-card .stat-label {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .title-area3 .sec-title {
    font-size: clamp(1.7rem, 4.5vw, 2.1rem) !important;
  }

  .sec-subtitle.style1 {
    white-space: normal !important;
    max-width: 92vw;
  }

  .about-box-clean .about-feature-list {
    display: block !important;
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .award-highlight .award-media {
    grid-template-columns: 1fr 1fr !important;
  }

  .award-highlight .award-media img {
    height: 160px !important;
  }

  .award-highlight .award-body {
    padding: 22px 18px !important;
  }

  .award-highlight h3.h2,
  .award-highlight .h2 {
    font-size: clamp(1.35rem, 4vw, 1.7rem) !important;
    line-height: 1.35 !important;
  }

  .media-clip-card a.clip-thumb {
    height: 220px;
  }

  .pull-quote-box {
    padding: 28px 22px !important;
  }

  .pull-quote-box p {
    font-size: 1.1rem !important;
  }

  .form-style5 .vs-circle {
    display: none !important;
  }

  .contact-map {
    margin-top: 24px !important;
  }

  .contact-map iframe {
    width: 100% !important;
    height: 280px !important;
  }

  #contact .h1 {
    font-size: clamp(1.6rem, 5vw, 2rem) !important;
  }

  .footer-wrapper .widget-area {
    padding-top: 56px !important;
    padding-bottom: 36px !important;
  }

  .space-top {
    padding-top: 60px !important;
  }

  .space-extra-bottom,
  .space-bottom {
    padding-bottom: 60px !important;
  }
}

/* ---- Phones / small tablets ---- */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 72px;
  }

  .header-layout4 .header-top .user-login {
    font-size: 11px;
  }

  .header-layout4 .vs-logo.style4::before {
    width: 160px !important;
    max-width: 42vw !important;
  }

  .hero-animated .hero-inner {
    padding: 72px 0 56px !important;
  }

  .hero-animated .hero-title {
    font-size: clamp(1.65rem, 7vw, 2.1rem) !important;
  }

  .hero-typewriter {
    font-size: clamp(0.95rem, 3.5vw, 1.15rem) !important;
    min-height: 2.6em;
  }

  .hero-portrait-badge {
    width: min(240px, 72%) !important;
    border-radius: 22px;
  }

  .hero-animated .hero-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-animated .hero-btns .vs-btn {
    width: 100%;
    justify-content: center;
    margin: 0 !important;
  }

  .stats-layout {
    margin-top: -16px;
  }

  .stat-card {
    padding: 16px 10px;
    border-radius: 12px;
  }

  .stat-card .stat-number {
    font-size: 1.75rem;
    margin-bottom: 4px;
  }

  .stat-card .stat-label {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .title-area3 .sec-title {
    font-size: clamp(1.5rem, 6.5vw, 1.85rem) !important;
    margin-top: 0 !important;
  }

  .award-highlight .award-media img {
    height: 140px !important;
  }

  .cert-card .cert-img {
    height: 170px;
  }

  .pub-card .course-img {
    height: 180px;
  }

  .pub-card .course-name {
    font-size: 0.98rem !important;
    min-height: 0;
  }

  .pub-card .course-price {
    white-space: normal !important;
    font-size: 0.7rem !important;
  }

  .media-clip-card a.clip-thumb {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .media-clip-card .clip-body {
    padding: 16px 16px 20px;
  }

  .pull-quote-box {
    padding: 22px 16px !important;
  }

  .pull-quote-box p {
    font-size: 1.02rem !important;
    line-height: 1.55 !important;
  }

  .gallery-filter {
    gap: 8px;
  }

  .gallery-filter button {
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .form-style5 {
    padding: 28px 18px !important;
  }

  .form-style5 .form-title {
    font-size: 1.45rem !important;
  }

  .form-style5 .form-group input,
  .form-style5 .form-group textarea {
    height: auto !important;
    min-height: 48px;
    padding: 12px 14px !important;
  }

  .form-style5 .form-group textarea {
    min-height: 120px;
  }

  .contact-map iframe {
    height: 240px !important;
  }

  .footer-logo img.logo-lockup-footer {
    max-height: 52px;
  }

  .footer-wrapper .col-6 {
    margin-bottom: 8px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 575px) {
  html {
    scroll-padding-top: 68px;
  }

  .header-layout4 .header-top {
    text-align: center;
  }

  .header-layout4 .header-top .header-links {
    display: none;
  }

  .header-layout4 .header-right {
    width: 100%;
    justify-content: center;
  }

  .header-layout4 .header-top .user-login {
    margin: 0 !important;
    font-size: 11px !important;
    white-space: nowrap;
  }

  .header-layout4 .vs-logo.style4::before {
    display: none !important;
  }

  .header-layout4 .vs-logo.style4 {
    padding-right: 0;
  }

  .header-layout4 .vs-logo .brand-logo-link {
    padding: 3px 8px;
  }

  .header-layout4 .vs-logo img.logo-lockup,
  .header-layout4 .vs-logo.style4 img.logo-lockup {
    max-height: 36px !important;
    max-width: min(150px, 48vw) !important;
  }

  .header-layout4 .header-btns .vs-menu-toggle {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
  }

  .hero-animated .hero-inner {
    padding: 64px 0 48px !important;
  }

  .hero-animated .sec-subtitle {
    font-size: 0.88rem !important;
    letter-spacing: 0.02em !important;
    line-height: 1.45;
  }

  .hero-portrait-badge {
    width: min(210px, 68%) !important;
    border-radius: 18px;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.4),
      0 0 0 4px rgba(255, 204, 51, 0.9) !important;
  }

  .stats-layout {
    margin-top: 0;
    padding-top: 8px;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .stat-card .stat-number {
    font-size: 1.55rem;
  }

  .stat-card .stat-label {
    font-size: 0.75rem;
  }

  .stat-card .stat-label small {
    display: block;
    font-size: 0.65rem;
  }

  .title-area3 .sec-title {
    font-size: 1.45rem !important;
  }

  .sec-subtitle.style1 {
    font-size: 0.92rem !important;
    white-space: normal !important;
  }

  .award-highlight .award-media {
    gap: 8px !important;
  }

  .award-highlight .award-media img {
    height: 120px !important;
    border-radius: 10px;
  }

  .award-highlight .award-body {
    padding: 18px 14px !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }

  .gallery-item {
    border-radius: 12px;
  }

  .gallery-item .gal-cap {
    font-size: 0.75rem;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .footer-wrapper .col-6.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .footer-wrapper .widget_title {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
  }

  .space-top {
    padding-top: 48px !important;
  }

  .space-extra-bottom,
  .space-bottom {
    padding-bottom: 48px !important;
  }

  .space-pt {
    padding-top: 48px;
  }
}

/* Touch devices — always show gallery captions */
@media (hover: none) {
  .gallery-item::after {
    background: rgba(10, 40, 44, 0.4);
  }

  .gallery-item .gal-cap {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .hero-animated .hero-title {
    font-size: 1.45rem !important;
  }

  .stat-card .stat-number {
    font-size: 1.35rem;
  }

  .gallery-filter button {
    width: 100%;
  }
}

