/* Product image card background — matches school logo card style */
.product-media-card {
    background: #ffffff;
    border: 1px solid #e8edf8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 31, 61, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.product-media-card img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Why Choose Us Section */

:root {
    --navy: #0f1f3d;
    --blue: #2563eb;
    --accent: #f37427;
    --card-border: #e8edf8;
  }

  /* Keep top header utility links readable on hover (orange bar background). */
  .header-top .header-right a,
  .header-top .header-right a i {
    color: #ffffff;
  }

  .header-top .header-right a:hover,
  .header-top .header-right a:hover i,
  .header-top .header-right a:focus,
  .header-top .header-right a:focus i {
    color: #ffffff;
  }

  /* ── OUTER WRAPPER: plain page bg, no section fill ── */
  .why-section {
    padding: 0;
    background: transparent;
  }

  /* ── THE BOXED BLOCK ── */
  .why-box {
    background: linear-gradient(160deg, #f8faff 0%, #fff7ed 60%, #f8faff 100%);
    border: 1.5px solid #c7d7f5;
    border-radius: 28px;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.07);
  }

  /* Subtle corner blobs inside the box */
  .why-box::before,
  .why-box::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.28;
    pointer-events: none;
  }
  .why-box::before {
    width: 380px; height: 380px;
    background: #bfdbfe;
    top: -120px; left: -120px;
  }
  .why-box::after {
    width: 320px; height: 320px;
    background: #d9f99d;
    bottom: -100px; right: -80px;
  }

  /* ── BADGE ── */
  .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    color: var(--blue);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
  }

  /* ── HEADING ── */
  .why-title {
    font-weight: 900;
    color: var(--navy);
    line-height: 1.15;
  }
  .why-title .highlight {
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .why-sub {
    color: #64748b;
    line-height: 1.75;
    max-width: 560px;
  }

  /* ── STATS ROW ── */
  .stat-row {
    background: #fff;
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    padding: 28px 24px;
    position: relative; z-index: 1;
  }
  .stat-item { text-align: center; padding: 8px 12px; }
  .stat-num {
    font-size: 2rem;
    font-weight: 900;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
  }
  .stat-label {
    font-size: 0.75rem; color: #94a3b8; font-weight: 600;
    margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px;
  }
  .stat-divider { width: 1px; background: #e2e8f0; align-self: stretch; }

  /* ── FEATURE CARDS ── */
  .feat-card {
    background: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
  }
  .feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--card-grad-a), var(--card-grad-b));
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 20px;
  }
  .feat-card:hover { transform: translateY(-7px); box-shadow: 0 20px 50px rgba(37,99,235,0.13); border-color: transparent; }
  .feat-card:hover::before { opacity: 1; }
  .feat-card:hover .feat-icon-wrap,
  .feat-card:hover .feat-title,
  .feat-card:hover .feat-desc,
  .feat-card:hover .feat-tag { color: #fff !important; }
  .feat-card:hover .feat-icon-wrap { background: rgba(255,255,255,0.2) !important; }
  .feat-card:hover .feat-tag { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.35); }

  .c-blue   { --card-grad-a: #2563eb; --card-grad-b: #1d4ed8; }
  .c-green  { --card-grad-a: #059669; --card-grad-b: #047857; }
  .c-amber  { --card-grad-a: #d97706; --card-grad-b: #b45309; }
  .c-purple { --card-grad-a: #7c3aed; --card-grad-b: #6d28d9; }
  .c-pink   { --card-grad-a: #db2777; --card-grad-b: #be185d; }
  .c-teal   { --card-grad-a: #0891b2; --card-grad-b: #0e7490; }

  .feat-card > * { position: relative; z-index: 1; }

  .feat-icon-wrap {
    width: 54px; height: 54px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 18px; transition: background 0.3s;
  }
  .ic-blue   { background: #dbeafe; color: var(--blue); }
  .ic-green  { background: #d1fae5; color: #059669; }
  .ic-amber  { background: #fef3c7; color: #d97706; }
  .ic-purple { background: #ede9fe; color: #7c3aed; }
  .ic-pink   { background: #fce7f3; color: #db2777; }
  .ic-teal   { background: #cffafe; color: #0891b2; }

  .feat-title { font-weight: 600; color: var(--navy); margin-bottom: 8px; transition: color 0.3s; }
  .feat-desc  { color: #64748b; line-height: 1.7; margin-bottom: 16px; transition: color 0.3s; }

  /* ── HIGHLIGHT CARD ── */
  .highlight-card {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
    border-radius: 24px;
    padding: 40px 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
  }
  .highlight-card::after {
    content: '⭐';
    position: absolute;
    font-size: 140px;
    right: -16px; bottom: -28px;
    opacity: 0.06; line-height: 1;
  }
  .badge-pill {
    background: rgba(243,116,39,0.2);
    border: 1px solid rgba(243,116,39,0.5);
    color: var(--accent);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 1px;
    padding: 5px 14px; border-radius: 50px;
    display: inline-block; margin-bottom: 18px;
  }
  .highlight-card h3 { font-size: 1.5rem; font-weight: 900; line-height: 1.25; margin-bottom: 14px; }
  .highlight-card p  { font-size: 0.87rem; opacity: 0.75; line-height: 1.75; margin-bottom: 22px; }

  .check-list { list-style: none; padding: 0; margin-bottom: 28px; }
  .check-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.85rem; line-height: 1.6; margin-bottom: 10px; opacity: 0.9;
  }
  .check-list li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

  .btn-glow {
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: #fff; font-weight: 700; font-size: 0.88rem;
    border: none; padding: 12px 24px; border-radius: 12px;
    box-shadow: 0 8px 24px rgba(243,116,39,0.38);
    transition: all 0.3s;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .btn-glow:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(243,116,39,0.5); color: #fff; }

  /* ── PROCESS STRIP ── */
  .process-strip {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
    border-radius: 20px;
    padding: 36px 32px;
    color: #fff;
    position: relative; z-index: 1;
  }
  .process-strip h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
  .process-strip p  { font-size: 0.85rem; opacity: 0.75; margin-bottom: 0; }

  .step-pill {
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px; padding: 14px 16px;
    backdrop-filter: blur(6px);
  }
  .step-circle {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.22);
    font-weight: 800; font-size: 0.82rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .step-pill .st  { font-size: 1.1rem; }
  .step-pill .stl { font-size: 0.78rem; font-weight: 700; opacity: 0.9; margin-bottom: 2px; }
  .step-pill .std { font-size: 0.7rem; opacity: 0.6; }
  .arrow-icon { color: rgba(255,255,255,0.35); font-size: 1rem; }

  @media (max-width: 767px) {
    .why-box { padding: 36px 22px; }
  }

/* ── SECTION ── */
  .request-section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
  }

/* ── BADGE ── */
  .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    color: #f37427;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
  }

  /* ── TITLE ── */
  .req-title {
    font-weight: 900;
    color: #f37427;
    line-height: 1.15;
  }
  .req-title .highlight {
    background: linear-gradient(135deg, #f37427, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* ── CARD ── */
  .req-card {
    background: #fff;
    border: 1px solid #f1e8df;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
  }
  .req-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(249,115,22,0.15);
    border-color: #fed7aa;
  }

  /* Image wrapper */
  .req-img-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
  }
  .req-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .req-card:hover .req-img-wrap img {
    transform: scale(1.07);
  }

  /* Gradient overlay on image */
  .req-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15,31,61,0.55) 100%);
    transition: opacity 0.3s;
  }

  /* Icon badge on image */
  .req-icon-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.35);
  }
  .badge-orange  { background: rgba(249,115,22,0.85); color: #fff; }
  .badge-blue    { background: rgba(37,99,235,0.85);  color: #fff; }
  .badge-emerald { background: rgba(5,150,105,0.85);  color: #fff; }

  /* Card body */
  .req-body {
    padding: 26px 26px 28px;
  }
  .req-card-title {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
  }
  .req-card-desc {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
  }

  /* Tag chips */
  .req-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
  }
  .req-tag {
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 50px;
    background: var(--orange-light);
    color: var(--orange-dark);
    border: 1px solid #fed7aa;
  }

  /* CTA Button */
  .btn-req {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
  }
  .btn-req-orange {
    background: #f37427;
    color: #fff;
    box-shadow: 0 6px 20px rgba(249,115,22,0.3);
  }
  .btn-req-orange:hover {
      background: #f37427;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249,115,22,0.45);
    color: #fff;
  }
  .btn-req-blue {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37,99,235,0.28);
  }
  .btn-req-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37,99,235,0.4);
    color: #fff;
  }
  .btn-req-emerald {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    box-shadow: 0 6px 20px rgba(5,150,105,0.28);
  }
  .btn-req-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(5,150,105,0.4);
    color: #fff;
  }

  /* Accent line at top on hover */
  .req-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .req-card:hover::before { opacity: 1; }
  .line-orange::before  { background: linear-gradient(90deg, #f37427, #f59e0b); }
  .line-blue::before    { background: linear-gradient(90deg, #2563eb, #7c3aed); }
  .line-emerald::before { background: linear-gradient(90deg, #059669, #0891b2); }
  .req-card.line-orange:hover::before,
  .req-card.line-blue:hover::before,
  .req-card.line-emerald:hover::before { opacity: 1; }

  /* ── BOTTOM BANNER ── */
  .req-bottom-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a6e 100%);
    border-radius: 24px;
    padding: 40px 44px;
    color: #fff;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
  }
  .req-bottom-banner::after {
    content: '📬';
    position: absolute;
    right: 40px;
    bottom: -20px;
    opacity: 0.07;
    line-height: 1;
  }
  .req-bottom-banner h4 {
    font-weight: 800;
    margin-bottom: 8px;
  }
  .req-bottom-banner p {
    opacity: 0.75;
    margin-bottom: 0;
  }
  .btn-glow {
    background: linear-gradient(135deg, #f37427, #f59e0b);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 13px 28px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  .btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(249,115,22,0.55);
    color: #fff;
  }
  .btn-outline-white {
    background: transparent;
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.4);
    padding: 11px 24px;
    border-radius: 12px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  .btn-outline-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
    color: #fff;
  }

  /* Testimonials */

  :root {
    --brand-navy: #10243e; /* Matches the template/screenshot navy */
    --star-orange: #ff9800;
  }

  .testimonial-pill {
    border-radius: 100px; /* Force the pill shape */
    padding: 10px;
    max-width: 450px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f37427;
  }

  /* Thick Border Wrapper for Avatar */
  .avatar-wrapper {
    padding-left: 5px;
  }

  .avatar-border {
    width: 90px;
    height: 90px;
    background: white;
    border: 2px solid var(--brand-navy); /* The thick border from your image */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px 0 0;
  }

  .avatar-border img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Typography & Stars */
  .star {
    color: var(--star-orange);
    font-size: 1.1rem;
    margin-right: 2px;
  }

  .reviewer-name {
    letter-spacing: 1px;
    color: #333;
  }

  .reviewer-title {
    letter-spacing: 2px;
    font-size: 0.75rem;
  }

  /* The Overlay (Tooltip replacement) */
  .review-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
    z-index: 5;
  }

  .testimonial-pill.active .review-overlay {
    opacity: 1;
    transform: scale(1);
  }

  /* Backdrop Blur */

/* BACKDROP */

#testimonialBackdrop{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(6px);
  opacity:0;
  visibility:hidden;
  transition:opacity .35s ease, visibility .35s ease;
  z-index:1000;
}

#testimonialBackdrop.active{
opacity:1;
visibility:visible;
}

/* CARD EXPANSION */
.testimonial-pill{
transition:all .35s cubic-bezier(.19,1,.22,1);
}

/* hidden start state */
.testimonial-pill.expanded{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%) scale(.85);
  opacity:0;
  width:520px;
  border-radius:30px;
  padding:40px;
  z-index:1100;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  transition:all .35s cubic-bezier(.19,1,.22,1);
}
/* visible animation */
.testimonial-pill.show{
transform:translate(-50%,-50%) scale(1);
opacity:1;
}


/* CLOSE BUTTON */

.close-overlay{
  position:absolute;
  top:10px;
  right:15px;
  border:none;
  background:none;
  color:white;
  font-size:28px;
  cursor:pointer;
  z-index:10;
}

/* Comment Hidden by default */

.testimonial-popup{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:.3s;
  z-index:2000;
}

.testimonial-popup.show{
opacity:1;
visibility:visible;
}

.popup-card{
  background:white;
  padding:40px;
  border-radius:20px;
  max-width:500px;
  animation:popupAppear .35s ease;
}

#closePopup{
  position:absolute;
  top:20px;
  right:25px;
  font-size:28px;
  border:none;
  background:none;
  cursor:pointer;
}

@keyframes popupAppear{
  from{
    transform:scale(.85);
    opacity:0;
  }

  to{
    transform:scale(1);
    opacity:1;
  }
}
