/* =====================================================================
   IELTS Expert - Home page
   Values taken from the original site:
   - xts-theme_settings_default.css  (fonts, primary, heading color)
   - elementor/css/post-3435.css     (home page sections)
   - elementor/css/post-7321.css     (footer)
   ===================================================================== */

/* Heading font used by the original theme (Metropolis 600).
   Best: download these 2 files into /public/fonts and change the src.        */
@font-face {
  font-family: "Metropolis";
  src: url("../fonts/Metropolis-Bold.woff2") format("woff2"),
       url("../fonts/Metropolis-Bold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colours - exact values from the live site */
  --primary: #0d21a1;
  --primary-hover: #0c1f96;
  --heading: #04426f;          /* was #0d21a1 in your file - wrong */
  --text: #686868;             /* body text */
  --list-text: #3b3a3a;        /* "How our platform helps" list */
  --check: #ebd517;            /* tick icon = yellow, not green */
  --card: #ffffff;
  --line: rgba(255, 255, 255, .19);   /* #FFFFFF30 */
  --line-strong: rgba(255, 255, 255, .53); /* #FFFFFF87 */

  /* score badges */
  --badge: #5c6cff;
  --badge-orange: #ff9f43;
  --badge-blue: #4bcffa;
  --badge-green: #2ed573;

  /* backgrounds */
  --bg-02: url("../images/home-side.webp");
  --bg-03: url("../images/why-student-chos-us.webp");
  --bg-new: url("../images/testimonial-background.webp");
  --bg-1: url("../images/footer.webp");

  --radius: 10px;              /* original cards are 10px, not 14px */
  --shadow-card: 0 2px 4px 1px rgba(193, 193, 193, .82);
  --shadow-btn: 1px 2px 13px rgba(13, 33, 161, .5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Jost", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #f5f5f5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Metropolis", "Jost", Arial, Helvetica, sans-serif;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.25;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

h2.section-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 40px;
}

/* =========================== HEADER =========================== */
header.site-header {
 position: sticky;
  top: 0;
  z-index: 999;
  background-color: #3A4ED5;              /* fallback jab tak image load ho */
  background-image: var(--bg-new);        /* same image jo site ke baaqi sections mein hai */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}

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

.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }

.main-nav > ul > li > a {
  color: #fff;
  font-family: "Jost", Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;                 /* original nav size */
  padding: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

/* xts-style-underline */
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 10px;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.is-active > a::after { transform: scaleX(1); }

.has-children > a .caret { font-size: 11px; transition: transform .25s; }
.has-children:hover > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  min-width: 250px;
  background-color: var(--primary);
  background-image: var(--bg-new);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 10px 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease;
}
.has-children:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown li a {
  display: block;
  color: #fff;
  padding: 10px 22px;
  font-size: 14.5px;
  white-space: nowrap;
  transition: background .2s;
}
.dropdown li a:hover { background: rgba(255, 255, 255, .14); }

.login-btn {
  background: var(--primary);   /* #0d21a1 */
  color: #fff;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 30px;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .25s;
}
.login-btn:hover {  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.burger span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: .3s; }

/* ================== SECTION 1 : WHY CHOOSE ==================== */
.light-section {
  background-image: var(--bg-02);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 80px 0;                 /* original padding */
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;                       /* elementor default column gap */
  align-items: stretch;
  margin-bottom: 50px;
}

/* second row = 2 cards, same width as the middle 2 columns (33% + 33%) */
.feature-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 790px;
  margin-inline: auto;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(13, 33, 161, .14); }

/* icon left + title, bottom aligned (elementor-vertical-align-bottom) */
.feature-head {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}
.feature-head img { width: 64px; height: 64px; flex: none; object-fit: contain; }
.feature-head h3 { font-size: 20px; }

.feature-card p { font-size: 16px; color: var(--text); }

/* ---------- How Our Platform Helps You Improve ---------- */
.platform-box {
  background-image: var(--bg-02);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.platform-box h2 { font-size: 34px; margin-bottom: 22px; }

.help-list li {
  display: flex;
  align-items: flex-start;         /* tick stays on the first line */
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--list-text);
}
.help-list li .check {
  flex: none;
  width: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--check);             /* yellow, like the original */
  font-weight: 700;
}
.help-list li b { color: var(--list-text); font-weight: 700; }

.primary-btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 30px;
  margin-top: 14px;
  box-shadow: var(--shadow-btn);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.primary-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 1px 2px 13px rgba(12, 31, 150, .7);
}

.platform-img img { border-radius: 10px; width: 100%; }

/* ============== SECTION 2 : WHY STUDENTS CHOOSE US ============ */
.blue-section {
  background-image: var(--bg-03);   /* Background-03, no colour overlay */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 50px 0 80px;
}

.blue-section .feature-grid { margin-bottom: 19px; }
.blue-section .feature-grid.two { margin-bottom: 0; }

.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 20px 24px;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .16); }

/* smaller icon here - original uses 12% instead of 20% */
.why-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.why-head img { width: 44px; height: 44px; flex: none; object-fit: contain; }
.why-head h3 { font-size: 20px; }
.why-card p { font-size: 16px; }

/* ==================== SECTION 3 : TESTIMONIALS ================ */
.testi-section {
  background-image: var(--bg-new);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  padding: 50px 0;
}

/* wrapper holds the arrows so .swiper's overflow:hidden can't clip them */
.testi-slider {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 62px;
}

.mySwiper { max-width: 1000px; margin: 0 auto; padding: 10px 4px 20px; }
.mySwiper .swiper-wrapper { align-items: stretch; }
.mySwiper .swiper-slide { height: auto; }

/* original card = transparent base + photo background, no blur */
.testi-card {
  background-color: transparent;
  background-image: var(--bg-1);
  background-size: cover;
  background-position: top center;
  border-radius: 18px;
  padding: 26px 24px;
  color: #fff;
  height: 100%;
   display: flex;
  flex-direction: column;
}

.testi-top {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #fff;    /* slide-block border-bottom-color: #FFFFFF */
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.testi-top img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid rgba(255, 255, 255, .35);
}
.testi-name { font-family: "Metropolis", "Jost", sans-serif; font-weight: 600; font-size: 18px; color: #fff; line-height: 1.25; }
.testi-role { font-size: 13px; color: #fff; opacity: .8; }
.stars { color: #ffb400; letter-spacing: 2px; font-size: 15px; margin-top: 4px; }
.stars .empty { color: rgba(255, 255, 255, .35); }

.testi-text { font-size: 16px; line-height: 1.6; color: #fffefe; }

.score-title {
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  opacity: .7;
  margin: 18px 0 10px;
  margin-top: auto; 
}

.score-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 9px;
  font-size: 14px;
}
.score-item .lbl { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.score-item.total { background: rgba(255, 255, 255, .2); font-weight: 700; }

.badge {
  flex: none;
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: var(--badge);
  min-width: 46px;
  text-align: center;
}
.badge.orange { background: var(--badge-orange); }
.badge.blue   { background: var(--badge-blue); }
.badge.green  { background: var(--badge-green); }

/* kill Swiper's default font icon - we use our own SVG */
.testi-slider .swiper-button-next::after,
.testi-slider .swiper-button-prev::after { content: none; display: none; }

.testi-slider .swiper-button-next,
.testi-slider .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  transition: background .25s, transform .2s, box-shadow .25s;
}

.testi-slider .swiper-button-prev { left: 0; }
.testi-slider .swiper-button-next { right: 0; }

.testi-slider .swiper-button-next svg,
.testi-slider .swiper-button-prev svg { width: 20px; height: 20px; display: block; }

.testi-slider .swiper-button-next:hover,
.testi-slider .swiper-button-prev:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26);
}
.testi-slider .swiper-button-next:focus-visible,
.testi-slider .swiper-button-prev:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* looped slider is never disabled, but keep this just in case */
.testi-slider .swiper-button-disabled { opacity: .4; pointer-events: none; }

.testimonial-form-card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 24px;
  margin: 0 auto 28px;
  max-width: 980px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.testimonial-cta {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.testimonial-cta .testimonial-form-card {
  max-width: 720px;
  text-align: center;
  padding: 32px 28px;
  margin: 0 auto 24px;
}
.testimonial-cta .testimonial-form-card h3 { margin-bottom: 12px; }
.testimonial-cta .testimonial-form-card p { margin-bottom: 20px; }
.testimonial-form-card h3 { color: #16213e; margin-bottom: 8px; }
.testimonial-form-card p { color: #5b6472; margin-bottom: 16px; }
.testimonial-form .testimonial-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.testimonial-form .testimonial-grid .full-width { grid-column: 1/-1; }
.testimonial-form label { display:block; font-weight:600; color:#243b53; margin-bottom:6px; }
.testimonial-form input,
.testimonial-form textarea {
  width:100%; border:1px solid #d8e2f0; border-radius:10px; padding:10px 12px; font:inherit; color:#16213e; background:#fff;
}
.testimonial-form textarea { min-height:105px; resize:vertical; }
.testimonial-form input[type="range"] { -webkit-appearance:none; width:100%; height:10px; border-radius:999px; background:#d8e2f0; outline:none; margin-top:10px; }
.testimonial-form input[type="range"]::-webkit-slider-thumb { -webkit-appearance:none; width:22px; height:22px; border-radius:50%; background:#0d21a1; box-shadow:0 4px 12px rgba(13,33,161,.3); cursor:pointer; }
.testimonial-form input[type="range"]::-moz-range-thumb { width:22px; height:22px; border-radius:50%; background:#0d21a1; box-shadow:0 4px 12px rgba(13,33,161,.3); cursor:pointer; }
.testimonial-form .score-card { background:#f8fbff; border:1px solid #dce7f7; border-radius:18px; padding:18px; margin-bottom:16px; box-shadow:0 10px 24px rgba(13,33,161,.08); }
.testimonial-form .score-card-header { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:14px; }
.testimonial-form .score-card-header strong { font-size:16px; color:#152540; }
.testimonial-form .score-note { color:#6b7a99; font-size:13px; margin-top:4px; }
.testimonial-form .score-value { font-weight:700; color:#0d21a1; font-size:18px; min-width:48px; text-align:right; }
.testimonial-form .score-scale { display:flex; justify-content:space-between; color:#7b8aac; font-size:13px; margin-top:10px; }
.testimonial-form .score-placeholder { pointer-events:none; color:#7b8aac; background:#f5f8ff; }
.testimonial-alert { border-radius:14px; padding:18px 18px 16px; margin-bottom:20px; font-size:15px; line-height:1.5; }
.testimonial-alert.success { background:#ecfdf5; border:1px solid #a7f3d0; color:#064e3b; }
.testimonial-alert.error { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }
.testimonial-alert.error ul { margin: 0; padding-left: 1.2rem; }
.testimonial-form .primary-btn { margin-top: 8px; border: 0; }
.testimonial-empty {
  text-align:center; color:#fff; padding:24px; background:rgba(255,255,255,0.12); border-radius:16px; max-width:760px; margin:0 auto;
}

@media (max-width: 1130px) {
  .testi-slider { padding: 0 8px; }
  .testi-slider .swiper-button-prev { left: 2px; }
  .testi-slider .swiper-button-next { right: 2px; }
}

@media (max-width: 720px) {
  .testimonial-form .testimonial-grid { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .testi-slider .swiper-button-next,
  .testi-slider .swiper-button-prev { width: 38px; height: 38px; }
  .testi-slider .swiper-button-next svg,
  .testi-slider .swiper-button-prev svg { width: 17px; height: 17px; }
}

/* ========================== FOOTER ============================ */
footer.site-footer {
  background-image: var(--bg-1);    /* image bg, not flat blue */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding-top: 50px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr .95fr;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.footer-cols > div { position: relative; padding-right: 45px; }
.footer-cols > div + div { padding-left: 45px; }
.footer-cols > div:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 1px;
  background: var(--line);
}

.footer-cols h3 {
  font-family: "Metropolis", "Jost", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}
.footer-cols li { margin-bottom: 5px; }
.footer-cols li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #fff;
  transition: transform .2s, opacity .2s;
}
.footer-cols li a:hover { opacity: .8; transform: translateX(4px); }
.footer-cols li a .arw { font-size: 14px; line-height: 1; }

.footer-brand { text-align: center; padding: 20px; border-bottom: 1px solid var(--line); }
.footer-brand img { height: 56px; width: auto; margin: 0 auto 14px; }
.footer-brand p { max-width: 560px; margin: 0 auto; font-size: 16px; color: #fff; }

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 27px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.footer-policies a { position: relative; padding: 4px 16px; color: #fff; }
.footer-policies a:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 59%;
  min-height: 14px;
  background: var(--line-strong);
}
.footer-policies a:hover { text-decoration: underline; }

/* copyright sits on the same background in the original - no dark bar */
.footer-bottom {
  text-align: center;
  color: #fff;
  font-size: 16px;
  padding: 20px 20px 50px;
}

/* ===================== SCROLL TO TOP ========================== */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: .3s;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.to-top:hover { background: var(--primary); color: #fff; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===================== SCROLL REVEAL ========================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.main-color{
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ======================= RESPONSIVE =========================== */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.two { grid-template-columns: 1fr; max-width: 520px; }
  .platform-box { grid-template-columns: 1fr; padding: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .footer-cols > div:nth-child(2)::after { display: none; }
  .footer-cols > div:nth-child(odd) { padding-left: 0; }
}

@media (max-width: 768px) {
  h2.section-title { font-size: 30px; }
  .light-section { padding: 50px 0; }
  .blue-section  { padding: 40px 0 50px; }

  .burger { display: flex; }

  .main-nav {
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 700px; padding: 10px 0 20px; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li > a { padding: 14px 24px; }
  .main-nav > ul > li > a::after { display: none; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background-image: none;
    background-color: rgba(0, 0, 0, .15);
    border-radius: 0;
    display: none;
    min-width: 0;
  }
  .has-children.open-sub .dropdown { display: block; }

  .login-btn { display: none; }

  .footer-cols { grid-template-columns: 1fr; text-align: center; }
  .footer-cols > div { padding: 4px 0 18px; }
  .footer-cols > div::after { display: none !important; }
  .footer-cols li a { justify-content: center; }
}
/* ================= PROFILE PHOTO UPLOAD ================= */

.profile-photo-upload {
    width: 100%;
}

.file-upload-box {
    position: relative;
    width: 100%;
}

/* File input */
.file-upload-box input[type="file"] {
    width: 100%;
    height: 42px;
    padding: 7px 55px 7px 8px;
    cursor: pointer;
}

/* Image preview inside the input area */
.file-upload-box .image-preview {
    position: absolute;
    top: 4px;
    right: 5px;

    width: 34px;
    height: 34px;

    border-radius: 50%;
    overflow: hidden;

    background: #f5f8ff;
    border: 1px solid #d8e2f0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7b8aac;
    font-size: 8px;

    pointer-events: none;
}

/* Preview image */
.file-upload-box .image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 520px) {
    .file-upload-box .image-preview {
        width: 32px;
        height: 32px;
    }
}

.testimonial-form-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.back-home-btn{
  background-color: var(--primary);
  color: white;
  height: 50px;
  width: 150px;
  border-radius: 40px;
display: flex;
justify-content: center;
align-items: center;
    font-weight: 500;
    font-size: 15px
}
.back-home-btn:hover{
  color: white;
}
  /* ===== Full Image Lightbox ===== */
.image-preview {
    cursor: pointer;                 /* clickable lagay */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px #0d21a1;
}

.image-preview.has-image {
    pointer-events: auto;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2;
    animation: lightboxIn 0.25s ease;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: #fff;
    color: #0d21a1;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
}

.lightbox-close:hover {
    background: #0d21a1;
    color: #fff;
    transform: scale(1.1);
}

@keyframes lightboxIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Mobile */
@media (max-width: 520px) {
    .lightbox-close {
        top: -40px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}