/* ════════════════════════════════════════════
   London Institute – Main Stylesheet
   ════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --red:       #8B0000;
  --red-dark:  #6b0000;
  --red-light: #c0392b;
  --navy:      #0a1628;
  --navy-mid:  #1a2a4a;
  --white:     #ffffff;
  --off-white: #f8f9fa;
  --grey-light:#f1f3f5;
  --grey:      #6c757d;
  --dark:      #000000;
  --font-body: 'Poppins', sans-serif;
  --font-head: 'Poppins', sans-serif;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.15);
  --transition: .3s ease;
  --container: 1600px;
  --header-h:  80px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.25; }

/* ── Container ── */
.livs-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Buttons ── */
.livs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.livs-btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.livs-btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }

.livs-btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.livs-btn-outline:hover { background: var(--red); color: var(--white); }

.livs-btn-lg  { padding: 14px 38px; font-size: 16px; }
.livs-btn-sm  { padding:  8px 20px; font-size: 13px; }

/* ── Section commons ── */
.livs-section { padding: 80px 0; }
.livs-section-header { text-align: center; margin-bottom: 50px; }
.livs-section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.livs-section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
}
.livs-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ════════════════════════════════════════════
   TOP BAR
   ════════════════════════════════════════════ */
.livs-topbar {
  background: var(--navy);
  color: rgba(255,255,255,.80);
  font-size: 13px;
  padding: 7px 0;
}
.livs-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.livs-topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.livs-topbar-left span i,
.livs-topbar-right a i { margin-right: 6px; color: var(--red); }
.livs-topbar-right { display: flex; gap: 14px; }
.livs-topbar-right a { color: rgba(255,255,255,.75); font-size: 14px; }
.livs-topbar-right a:hover { color: var(--white); }

/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */
.livs-header {
  background: var(--white);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: box-shadow var(--transition);
}
.livs-header.livs-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.14); }

.livs-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.livs-logo { flex-shrink: 0; }
.livs-logo img,
.livs-logo .custom-logo { width: 100%; height: 80px; object-fit: contain; }

/* Nav */
.livs-nav { flex: 1; }
.livs-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.livs-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 6px;
  transition: all var(--transition);
}
.livs-menu > li > a:hover,
.livs-menu > li.current-menu-item > a {
  color: var(--red);
  background: rgba(139,0,0,.06);
}

/* Sub-menu */
.livs-menu li { position: relative; }
.livs-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  list-style: none;
  z-index: 200;
}
.livs-menu li:hover > .sub-menu { display: block; }
.livs-menu .sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--dark);
  transition: background var(--transition);
}
.livs-menu .sub-menu li a:hover { background: var(--grey-light); color: var(--red); }

.livs-header-cta { flex-shrink: 0; }

/* Hamburger */
.livs-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.livs-hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.livs-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.livs-hamburger.active span:nth-child(2) { opacity: 0; }
.livs-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════
   HERO SLIDER
   ════════════════════════════════════════════ */
.livs-hero { position: relative; width: 100%; }
.livs-hero-swiper { width: 100%; }
.livs-hero-slide {
  position: relative;
  height: 90vh;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}
.livs-hero-demo {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6a 100%);
}
.livs-hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(135deg, rgba(10,22,40,.75) 0%, rgba(10,22,40,.40) 100%); */
}
.livs-hero-content {
  position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 1000px;
    animation: livsFadeUp .8s ease both;
    text-align: center;
}
.livs-hero-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.livs-hero-content h1 {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

/* Swiper hero arrows */
.livs-hero-swiper .swiper-button-prev,
.livs-hero-swiper .swiper-button-next {
  color: var(--white);
  width: 48px; height: 48px;
  background: rgba(139,0,0,.7);
  border-radius: 50%;
  transition: background var(--transition);
}
.livs-hero-swiper .swiper-button-prev::after,
.livs-hero-swiper .swiper-button-next::after { font-size: 16px; }
.livs-hero-swiper .swiper-button-prev:hover,
.livs-hero-swiper .swiper-button-next:hover { background: var(--red); }
.livs-hero-swiper .swiper-pagination-bullet-active { background: var(--red); }

/* ════════════════════════════════════════════
   MARQUEE
   ════════════════════════════════════════════ */
.livs-marquee-section {
  background: var(--red);
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
}
.livs-marquee-track {
  display: inline-flex;
  animation: livs-marquee 28s linear infinite;
  padding: 14px 0;
}
.livs-marquee-track:hover { animation-play-state: paused; }
.livs-marquee-item {
  display: inline-block;
  padding: 0 28px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  position: relative;
}
.livs-marquee-item::after {
  content: '|';
  position: absolute;
  right: 0;
  color: rgba(255,255,255,.35);
}
.livs-marquee-highlight {
  color: var(--white);
  font-weight: 700;
  background: rgba(0,0,0,.2);
  border-radius: 20px;
  padding: 2px 20px;
}

/* ════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════ */
.livs-about { background: var(--white); }
.livs-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.livs-about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.livs-about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.livs-about-img:hover { transform: scale(1.03); }
.livs-about-img-lg {
  grid-row: 1 / 3;
  height: 100%;
}
.livs-about-text .livs-section-label { text-align: left; }
.livs-about-text .livs-section-title { text-align: left; }
.livs-about-text .livs-section-title::after { margin-left: 0; }
.livs-about-body { margin: 20px 0 28px; color: var(--grey); font-size: 15px; line-height: 1.85; }

/* ════════════════════════════════════════════
   COURSES
   ════════════════════════════════════════════ */
.livs-courses { background: var(--off-white); }

.livs-course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.livs-course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.livs-course-thumb {
  overflow: hidden;
  height: 210px;
  background: var(--grey-light);
}
.livs-course-thumb-placeholder {
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
}
.livs-course-img { width: 100%; height: 210px; object-fit: cover; transition: transform .5s ease; }
.livs-course-card:hover .livs-course-img { transform: scale(1.07); }
.livs-course-body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.livs-course-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}
.livs-course-excerpt {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 18px;
}
.livs-courses-swiper { padding-bottom: 42px !important; }
.livs-courses-pagination.swiper-pagination-bullets {
  bottom: 4px;
}
.livs-courses-pagination .swiper-pagination-bullet-active { background: var(--red); }

/* ════════════════════════════════════════════
   BOARD MEMBERS
   ════════════════════════════════════════════ */
.livs-board { background: var(--white); }
.livs-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.livs-member-card {
  text-align: center;
  transition: transform var(--transition);
}
.livs-member-card:hover { transform: translateY(-5px); }
.livs-member-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--grey-light);
  transition: border-color var(--transition);
}
.livs-member-card:hover .livs-member-photo { border-color: var(--red); }
.livs-member-img { width: 100%; height: 100%; object-fit: cover; }
.livs-member-placeholder {
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: rgba(255,255,255,.5);
}
.livs-member-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.livs-member-role { font-size: 13px; color: var(--grey); }

/* ════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════ */
.livs-testimonials { background: var(--off-white); }
.livs-testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.livs-testi-quote {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 36px;
  color: var(--red);
  opacity: .12;
}
.livs-testi-stars { color: #f59e0b; margin-bottom: 14px; font-size: 15px; }
.livs-testi-stars i { margin-right: 2px; }
.livs-testi-text {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 22px;
  font-style: italic;
}
.livs-testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--grey-light);
  padding-top: 18px;
}
.livs-testi-avatar,
.livs-testi-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.livs-testi-avatar-placeholder {
  background: linear-gradient(135deg, var(--red) 0%, var(--navy) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); font-size: 20px;
}
.livs-testi-author strong { display: block; font-size: 15px; font-weight: 700; color: var(--dark); }
.livs-testi-author span  { font-size: 12px; color: var(--grey); }

.livs-testimonials-swiper { padding-bottom: 46px !important; }
.livs-testi-pagination .swiper-pagination-bullet-active { background: var(--red); }

/* ════════════════════════════════════════════
   ACCREDITATION
   ════════════════════════════════════ */
.livs-accreditation { background: var(--white); padding: 60px 0; }
.livs-accred-swiper { padding: 10px 0 !important; }
.livs-accred-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}
.livs-accred-slide img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(40%);
  opacity: .75;
  transition: all var(--transition);
}
.livs-accred-slide img:hover { filter: none; opacity: 1; }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.livs-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 70px 0 0;
}
.livs-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.livs-footer-col h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.livs-footer-brand .custom-logo,
.livs-footer-brand img:not(.livs-footer-social a img) {
  width: 50%;
    /* height: 70px; */
    border-radius: 8px;
    margin-bottom: 16px;
}
.livs-footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.livs-footer-social { display: flex; gap: 12px; }
.livs-footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--white);
  transition: background var(--transition);
}
.livs-footer-social a:hover { background: var(--red); }

.livs-footer-menu li { margin-bottom: 10px; }
.livs-footer-menu li a {
  font-size: 14px;
  color: rgba(255,255,255,.72);
  transition: color var(--transition), padding-left var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.livs-footer-menu li a i { font-size: 11px; color: var(--red); }
.livs-footer-menu li a:hover { color: var(--white); padding-left: 6px; }

.livs-footer-contact { display: flex; flex-direction: column; gap: 14px; }
.livs-footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.livs-footer-contact li i { color: var(--red); margin-top: 3px; width: 16px; flex-shrink: 0; }
.livs-footer-contact li a { color: rgba(255,255,255,.78); }
.livs-footer-contact li a:hover { color: var(--white); }

.livs-footer-bottom {
  padding: 20px 0;
  background: rgba(0,0,0,.2);
}
.livs-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.livs-footer-bottom p { font-size: 13px; color: rgba(255,255,255,.55); }
.livs-footer-bottom nav { display: flex; gap: 20px; }
.livs-footer-bottom nav a { font-size: 13px; color: rgba(255,255,255,.55); }
.livs-footer-bottom nav a:hover { color: var(--white); }

/* ════════════════════════════════════════════
   PAGE / BLOG
   ════════════════════════════════════════════ */
.livs-main { padding: 60px 0; min-height: 100vh; }
.livs-page-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 28px;
  color: var(--dark);
  text-align: center;
}
.livs-entry-content { font-size: 16px; line-height: 1.9; color: var(--grey); }
.livs-entry-content h2,
.livs-entry-content h3 { color: var(--dark); margin: 28px 0 12px; }
.livs-entry-content p  { margin-bottom: 18px; }

/* ════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════ */
@keyframes livsFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes livs-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

/* Tablet ≤1024px */
@media (max-width: 1024px) {
  .livs-about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .livs-footer-inner  { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Mobile ≤768px */
@media (max-width: 768px) {
  /* :root { --header-h: 68px; } */

  .livs-section { padding: 56px 0; }

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

  /* Header */
  .livs-nav {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--white);
    padding: 24px 20px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
  }
  .livs-nav.open { display: flex; }
  .livs-menu { flex-direction: column; gap: 0; }
  .livs-menu > li > a { padding: 13px 10px; font-size: 15px; border-bottom: 1px solid var(--grey-light); border-radius: 0; }
  .livs-menu .sub-menu { position: static; box-shadow: none; padding-left: 16px; }

  .livs-hamburger { display: flex; }
  .livs-header-cta { display: none; }

  /* Hero */
  .livs-hero-slide { height: 65vh; min-height: 380px; }
  .livs-hero-content h1 { font-size: clamp(24px,7vw,38px); }

  /* About image */
  .livs-about-img-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 160px 160px;
  }
  .livs-about-img-lg { grid-row: auto; height: 160px; }

  /* Board */
  .livs-board-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .livs-member-photo { width: 130px; height: 130px; }

  /* Footer */
  .livs-footer-inner  { grid-template-columns: 1fr; gap: 32px; }
  .livs-footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* Small mobile ≤480px */
@media (max-width: 480px) {
  .livs-hero-slide { height: 56vh; }
  .livs-board-grid { grid-template-columns: 1fr; }
  .livs-about-img-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 160px);
  }
  .livs-about-img-lg { grid-row: auto; }
}
