/* =========================================
   Aegis Martin — Certificates Page Styles
   Brand-consistent, page-local CSS
   ========================================= */

/* ===== Brand palette & shared tokens ===== */
:root{
  --primary-purple:#8b5cf6;
  --secondary-purple:#a855f7;
  --light-purple:#c084fc;
  --dark-purple:#6d28d9;
  --accent-purple:#7c3aed;

  --gradient-purple: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple), var(--light-purple));

  --text-light:#ffffff;
  --text-dim:#cbd5e1;
  --text-gray:#9aa3b2;
  --text-dark:#0b1020;

  --bg-0:#0f0f23;     /* deep background */
  --bg-1:#131233;     /* section background */
  --bg-card:rgba(139,92,246,0.08);
  --bd-card:rgba(139,92,246,0.28);

  --shadow:0 20px 60px rgba(0,0,0,0.35);
  --ring: 0 0 0 3px rgba(139,92,246,0.2);

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-fast: 180ms;
  --dur-med: 360ms;
  --dur-slow: 600ms;
}

/* ===== Base ===== */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Euclid Circular A','Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text-light);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(139,92,246,0.12), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(168,85,247,0.10), transparent 60%),
    linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #0f0f23 100%);
  min-height:100vh;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
html, body {
  -webkit-text-size-adjust: 100% !important;
}

/* ===== Containers & Sections ===== */
.am-container{ width: min(1200px, 92vw); margin: 0 auto; }
.am-section{ padding: 88px 0; background: transparent; }
.am-section--alt{ background: linear-gradient(180deg, rgba(139,92,246,0.06) 0%, rgba(15,15,35,0.3) 100%); }
.am-section__head{ text-align:center; margin-bottom:32px; }

/* ===== Titles ===== */
.am-title{
  font-weight:800; letter-spacing:-0.02em;
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.2rem);
  background: linear-gradient(135deg, #fff, #d8c8ff 40%, #c084fc 70%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
  text-shadow: 0 4px 28px rgba(139,92,246,.18);
}
.am-title__underline{
  width:100px;height:4px;border-radius:2px;margin:10px auto 6px;
  background: var(--gradient-purple);
  box-shadow: 0 0 22px rgba(139,92,246,.4) inset, 0 2px 18px rgba(139,92,246,.28);
}
.am-subtitle{ color:var(--text-gray); font-size:0.98rem; }

/* ===== Header ===== */
.am-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(30, 27, 75, 0.55);
  border-bottom:1px solid rgba(139,92,246,0.22);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.am-header__inner{
  width:min(1200px,92vw); margin:0 auto; height:72px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.am-header__brand{display:flex;align-items:center;gap:12px}
.am-header__logo{width:42px;height:42px;object-fit:contain}
.am-header__name{font-weight:700;letter-spacing:.4px}
.am-header__nav{display:flex;gap:22px;align-items:center}
.am-link{opacity:.9; transition: color .2s var(--ease), opacity .2s var(--ease), text-shadow .2s var(--ease)}
.am-link:hover{opacity:1;color:#efe8ff;text-shadow:0 0 18px rgba(139,92,246,.35)}
.am-link--active{color:#efe8ff;text-shadow:0 0 16px rgba(139,92,246,.3)}

.am-btn{
  display:inline-flex;align-items:center;gap:10px;justify-content:center;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:28px;padding:10px 18px;font-weight:600;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  position:relative; overflow:hidden; isolation:isolate;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.am-btn i{font-size:.95em}
.am-btn--sm{padding:8px 14px;font-size:.95rem}
.am-btn--block{display:flex;width:100%}
.am-btn--primary{
  background: var(--gradient-purple);
  border-color:transparent;
  box-shadow:0 10px 30px rgba(139,92,246,0.35);
}
.am-btn--primary:hover{transform:translateY(-1px);box-shadow:0 14px 36px rgba(139,92,246,0.5)}
.am-btn--ghost{
  background:rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
}
.am-btn--ghost:hover{border-color: var(--light-purple);box-shadow:0 10px 26px rgba(139,92,246,0.28)}
/* subtle sweep */
.am-btn::after{
  content:""; position:absolute; inset:0; transform:translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  filter: blur(2px); transition: transform .55s var(--ease); z-index:-1;
}
.am-btn:hover::after{ transform:translateX(120%); }

/* Burger / Mobile nav */
.am-burger{ display:none; width:44px;height:44px;border:none;background:transparent;position:relative; }
.am-burger span{position:absolute;left:8px;right:8px;height:3px;background:#fff;border-radius:2px;transition:.25s; box-shadow:0 0 10px rgba(139,92,246,.25)}
.am-burger span:nth-child(1){top:12px}
.am-burger span:nth-child(2){top:20px}
.am-burger span:nth-child(3){top:28px}
.am-burger.open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.am-burger.open span:nth-child(2){opacity:0}
.am-burger.open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
.am-burger:hover span{background:#efe8ff}

.am-mobile{
  display:none; flex-direction:column; gap:10px;
  padding:10px 4vw 18px; border-top:1px solid rgba(139,92,246,0.22);
  background: rgba(30, 27, 75, 0.85);
}
.am-mobile.open{display:flex}
.am-mobile__link{padding:10px 8px;border-radius:8px}
.am-mobile__link--active{color:#e9ddff}


/* ===== Hero ===== */
.am-hero{
  position:relative; overflow:hidden; padding: 96px 0 64px;
  background: linear-gradient(135deg, rgba(139,92,246,.10), rgba(23,21,54,.75));
  border-bottom:1px solid rgba(139,92,246,0.18);
  box-shadow: inset 0 -1px 0 rgba(139,92,246,.2);
}
.am-hero__content{ text-align:center }
.am-hero__title{
  font-weight:900; letter-spacing:-.03em;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.3rem);
  margin: 0 0 12px;
  background: linear-gradient(135deg, #fff 0%, #e8ddff 35%, #c084fc 70%, #ffffff 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.am-hero__subtitle{ color:var(--text-dim); max-width:800px; margin:0 auto; text-shadow: 0 1px 18px rgba(139,92,246,.20) }

.am-orbs{position:absolute; inset:0; pointer-events:none}
.am-orb{ position:absolute; border-radius:50%; filter:blur(32px); opacity:.45;
  background: radial-gradient(circle, rgba(139,92,246,0.45), transparent 70%); animation: am-pulse 3.2s var(--ease) infinite;
}
.am-orb--1{width:260px;height:260px; top:-40px; left:8%;}
.am-orb--2{width:300px;height:300px; bottom:-80px; right:10%; background: radial-gradient(circle, rgba(168,85,247,0.35), transparent 70%);}
.am-orb--3{width:200px;height:200px; top:20%; right:30%; background: radial-gradient(circle, rgba(192,132,252,0.30), transparent 70%);}

/* ===== Verification ===== */
.verify-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap:32px; align-items:start; }
@media (max-width: 980px){ .verify-grid{ grid-template-columns: 1fr; } }

.verify-card, .preview-card{
  background: rgba(255,255,255,.05);
  border:1px solid var(--bd-card);
  border-radius:16px;
  padding:22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  height: 100%;
}
.verify-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.4fr; /* smaller left, larger right */
  gap:32px;
  align-items:start;
}
@media (max-width: 980px){ .verify-grid{ grid-template-columns: 1fr; } }
.verify-card:hover, .preview-card:hover{
  transform: translateY(-3px);
  border-color: rgba(139,92,246,.45);
  box-shadow: 0 16px 38px rgba(139,92,246,.25);
}

.verify-form{display:flex;flex-direction:column;gap:12px}
.am-label{font-size:.95rem;color:#e9e9ff}

.am-input{
  width:100%; padding:14px 16px; border-radius:12px;
  background: rgba(255,255,255,0.07);
  border:1px solid rgba(255,255,255,0.14);
  color:#fff; font-size:1rem; outline:none;
  transition: border var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.am-input:hover{ border-color: rgba(139,92,246,.35) }
.am-input:focus{ background: rgba(255,255,255,.10); border-color: var(--light-purple); box-shadow: 0 0 0 3px rgba(139,92,246,.22), 0 8px 28px rgba(139,92,246,.22); }
.am-help{color:var(--text-gray); font-size:.85rem}
.verify-btn{margin-top:6px; align-self:flex-start}
.am-error{
  margin:6px 0 0; color:#f87171; font-size:.95rem;
  background: rgba(248,113,113,.08);
  border:1px solid rgba(248,113,113,.35);
  padding:8px 10px; border-radius:8px;
  display:none;
}
.am-error.is-active{ display:block; }

.verify-notes{
  margin-top:16px; display:flex; gap:12px; align-items:flex-start;
  color:var(--text-gray); font-size:.95rem; text-shadow: 0 1px 12px rgba(139,92,246,.12);
}
.verify-notes i{color:var(--light-purple); margin-top:3px}

/* ===== Preview ===== */
.preview-frame{
  position:relative; overflow:hidden; border-radius:12px;
  border:1px solid rgba(139,92,246,0.25);
  aspect-ratio: 5 / 3.5; /* certificate-ish */
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.05));
  box-shadow: 0 14px 40px rgba(0,0,0,.35), inset 0 0 0 1px rgba(139,92,246,.22);
  transition: box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.preview-frame:hover{ box-shadow: 0 18px 52px rgba(139,92,246,.28), inset 0 0 0 1px rgba(139,92,246,.38); }
.preview-image{ width:120%; height:100%; object-fit:contain; object-position:center; position:relative; z-index:2; border-radius: 15px;
  background: radial-gradient(600px 300px at 50% 10%, rgba(139,92,246,0.08), transparent 60%);
}
.preview-image.am-float{ animation: am-float 7.5s ease-in-out infinite; }

.preview-skeleton{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  background-size: 180% 100%;
  animation: ske 1.1s linear infinite;
  visibility:hidden; opacity:0; transition:opacity .18s ease, visibility .18s ease;
}
.preview-frame.is-loading .preview-skeleton{ opacity:1; visibility:visible; }

@keyframes ske{ 0%{ background-position: 0% 0 } 100%{ background-position: 180% 0 } }

/* ===== Modules (Accordion) ===== */
.modules{ display:grid; gap:18px; margin-top:8px }
.module-card{
  background: var(--bg-card);
  border:1px solid var(--bd-card);
  border-radius:16px; overflow:hidden; box-shadow: var(--shadow);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  backdrop-filter: blur(12px);
}
.module-card:hover{ transform: translateY(-3px); border-color: rgba(139,92,246,.45); box-shadow: 0 16px 38px rgba(139,92,246,.25); }

.module-header{
  width:100%; text-align:left; display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px; background: rgba(255,255,255,0.03); color:#fff;
  border:none; outline:none; cursor:pointer; font-weight:600; letter-spacing:.2px;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  border-bottom: 1px solid rgba(139,92,246,.15);
}
.module-header:hover{ background: rgba(255,255,255,.06); }
.module-chevron{ transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease) }
.module-header[aria-expanded="true"] .module-chevron{ transform: rotate(180deg); filter: drop-shadow(0 0 6px rgba(139,92,246,.6)) }

.module-content{
  padding: 6px 18px 18px;   /* always present */
  overflow: visible;        /* inner handles overflow */
  background: rgba(255,255,255,0.03);
}
.module-inner{
  height: 0; overflow: hidden; opacity: 0;
  transition: height var(--dur-slow) var(--ease), opacity var(--dur-med) var(--ease);
  will-change: height, opacity;
}
.module-card.open .module-inner{ opacity: 1; } /* height set via JS to scrollHeight */

.module-list{
  margin:0; padding:0; list-style:none;
  display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:10px;
}
.module-list li{
  padding:10px 12px; border:1px dashed rgba(139,92,246,0.35); border-radius:10px;
  background: rgba(139,92,246,0.08); color:#f1ecff; font-size:.97rem;
  position:relative; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.module-list li:hover{ transform: translateY(-2px); border-color: rgba(139,92,246,.55); box-shadow: 0 10px 24px rgba(139,92,246,.22); }

/* ===== Terms ===== */
.terms{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-top:10px; }
@media (max-width: 980px){ .terms{ grid-template-columns:1fr } }

.terms__group{
  background: var(--bg-card);
  border:1px solid var(--bd-card);
  border-radius:16px; padding:18px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.terms__title{
  margin:0 0 8px; font-size:1.1rem; font-weight:700; letter-spacing:.2px; display:flex; align-items:center; gap:10px;
}
.terms__title i{ color: var(--light-purple) }
.terms__list{ margin:0; padding-left:18px; color:#e8e8ff; line-height:1.7 }
.terms__list li strong{ color:#fff }
.terms__list li::marker{ color: var(--light-purple) }

.terms-note{ margin-top:16px; color:var(--text-gray); text-align:center }

/* ===== CTA strip ===== */
.am-cta{
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(15,15,35,0.85));
  border-top:1px solid rgba(139,92,246,0.22);
  border-bottom:1px solid rgba(139,92,246,0.22);
  padding:18px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 -8px 28px rgba(0,0,0,.25);
}
.am-cta__inner{ display:flex; align-items:center; justify-content:center; gap:14px; text-align:center }
.am-cta__inner .am-btn{ box-shadow: 0 10px 28px rgba(139,92,246,.30) }

/* ===== Footer ===== */
.am-footer{ padding:32px 0; color:var(--text-gray); text-align:center; text-shadow: 0 1px 10px rgba(139,92,246,.16) }

/* ===== Utilities ===== */
code{
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:.92em; background:rgba(255,255,255,0.06); padding:2px 6px; border-radius:6px; border:1px solid rgba(255,255,255,0.08)
}
.am-hover{
  transform: translateY(0) scale(1);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.am-hover:hover{
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(139,92,246,.28);
  border-color: rgba(139,92,246,.5);
}
.am-focus:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(139,92,246,.32), 0 10px 26px rgba(139,92,246,.22);
  border-color: rgba(139,92,246,.55);
}

/* ===== Motion System ===== */
@keyframes am-pulse { 0%,100% { opacity: .38; filter: blur(30px); } 50% { opacity: .55; filter: blur(40px); } }
@keyframes am-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ===== Layout & headings (generic, used by sections) ===== */
.container {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 20px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-title{
  font-size: 3rem; font-weight: 800; color: var(--text-light); margin-bottom: 20px;
  background: var(--gradient-purple); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.title-underline{
  width: 100px; height: 4px; background: var(--gradient-purple); margin: 0 auto; border-radius: 2px; position: relative;
}
.title-underline::before{
  content: ''; position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 8px; background: var(--light-purple); border-radius: 4px;
}

/* ===== CONTACT SECTION (Enhanced Shiny Version) — kept as provided ===== */
.contact-section {
  padding: 120px 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(15, 15, 35, 0.95) 100%);
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139,92,246,0.08) 0%, transparent 70%);
  animation: rotate-bg 30s linear infinite;
  z-index: 0;
}
@keyframes rotate-bg { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.contact-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-info { display: flex; flex-direction: column; gap: 30px; }
.contact-item {
  display: flex; align-items: center; gap: 20px; padding: 20px 25px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px; backdrop-filter: blur(15px);
  transition: all 0.35s ease; position: relative; overflow: hidden;
}
.contact-item::before{
  content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
  background: linear-gradient(120deg, transparent, rgba(139,92,246,0.25), transparent);
  transition: 0.6s;
}
.contact-item:hover::before { left: 100%; }
.contact-item:hover { border-color: var(--primary-purple); box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25); transform: translateY(-5px); }
.contact-icon{
  display:flex; align-items:center; justify-content:center; width:60px; height:60px;
  background: linear-gradient(145deg, var(--primary-purple), var(--secondary-purple));
  border-radius: 15px; box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: all 0.4s ease;
}
.contact-icon i { font-size: 1.3rem; color: white; transition: transform 0.4s ease; }
.contact-item:hover .contact-icon { transform: scale(1.15) rotate(8deg); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6); }
.contact-item:hover .contact-icon i { transform: scale(1.15); }
.contact-details h4{
  font-size: 1.2rem; font-weight: 700; color: var(--text-light); margin-bottom: 5px; letter-spacing: 0.5px;
}
.contact-details p{ color: var(--text-gray); }
.contact-form-element{
  background: rgba(255,255,255,0.05); border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 25px; padding: 40px; backdrop-filter: blur(15px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25); transition: all 0.4s ease;
}
.contact-form-element:hover{ border-color: var(--primary-purple); box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3); }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group{ margin-bottom: 25px; }
.form-group input, .form-group select, .form-group textarea{
  width: 100%; padding: 15px 20px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 15px; color: var(--text-light);
  font-size: 1rem; transition: all 0.3s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none; border-color: var(--primary-purple);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35); background: rgba(255,255,255,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder{ color: var(--text-gray); }
.contact-submit-btn{
  width: 100%; background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
  color: white; border: none; padding: 15px 30px; border-radius: 15px;
  font-size: 1.1rem; font-weight: 600; transition: all 0.4s ease; margin-top: 20px;
  position: relative; overflow: hidden; z-index: 1;
}
.contact-submit-btn::after{
  content: ""; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.5s; z-index: 0;
}
.contact-submit-btn:hover::after{ left: 100%; }
.contact-submit-btn:hover{ transform: translateY(-3px); box-shadow: 0 12px 30px rgba(139, 92, 246, 0.45); }

/* ===== Responsive niceties ===== */
@media (max-width: 1024px){
  .am-section{ padding:72px 0 }
}
@media (max-width: 980px){
  .verify-grid{ grid-template-columns: 1fr; }
  .terms{ grid-template-columns:1fr; }
}
@media (max-width: 768px){
  .form-row{ grid-template-columns: 1fr; }
  .contact-content{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .am-header__inner{ height:64px }
  .am-btn--sm{ padding:7px 12px }
}
@media (max-width: 480px){
  .am-container, .container{ padding: 0 15px; }
  .am-title{ font-size: clamp(1.5rem, 1.2rem + 2vw, 2rem); }
}



/* ===== Language Switcher (imported from demo) ===== */
.language-switcher {
  position: relative;
  display: inline-block;

}

.language-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 120px;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.language-btn:hover { border-color: var(--light-purple); box-shadow: 0 10px 26px rgba(139,92,246,0.28) }
.language-btn i { transition: transform 0.3s ease; }
.language-switcher.active .language-btn i, .language-switcher:hover .language-btn i { transform: rotate(180deg); }

.language-dropdown {
  position: absolute;
  top: calc(100%);
  right: 0;
  background: #1a1a2e;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  padding: 5px 0;
  min-width: 170px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.language-switcher.active .language-dropdown,
.language-switcher:hover .language-dropdown,
.language-switcher .language-dropdown:hover,
.language-switcher:focus-within .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.language-option {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.language-option:before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%; width: 3px;
  background: var(--gradient-purple);
  opacity: 0; transform: translateX(-6px);
  transition: all 0.25s var(--ease);
}
.language-option:hover { background: rgba(139,92,246,0.10); }
.language-option:hover:before, .language-option.active:before {
  opacity: 1; transform: translateX(0);
}
.language-option.active { background: rgba(139, 92, 246, 0.16); }
.language-flag { margin-right: 8px; }
@media (max-width: 600px) {
  .am-header__name {
    display: none;
  }
}
/* Only open when toggled or focused — remove hover-open */
.language-switcher.active .language-dropdown,
.language-switcher:focus-within .language-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Rotate chevron only when active (not on hover) */
.language-switcher.active .language-btn i {
  transform: rotate(180deg);
}

/* Performance tweaks for touch devices */
@media (hover: none) and (pointer: coarse){
  .module-card{ backdrop-filter: none; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
  .module-card:hover{ transform:none; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
  .module-list li{ box-shadow:none; } /* avoid hover shadows on touch */
  .module-inner{
    transition: height 260ms var(--ease), opacity 160ms var(--ease);
    transform: translateZ(0); backface-visibility:hidden; /* promote to GPU */
  }
}

/* Desktop-only hover effects (don’t simulate on mobile) */
@media (hover: hover) and (pointer: fine){
  .module-card:hover{ transform: translateY(-3px); }
  .module-list li:hover{ transform: translateY(-2px); }
}

/* Containment to limit repaints */
.module-card{ contain: layout paint style; }
/* Desktop niceties only */
@media (hover: hover) and (pointer: fine){

  /* Card lift + subtle focus */
  .module-card{
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), outline-color .18s var(--ease);
    outline: 1px solid rgba(139,92,246,.15);
    border-radius: 16px;
  }
  .module-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,.20);
    outline-color: rgba(139,92,246,.35);
  }
  .module-card.open{
    box-shadow: 0 18px 44px rgba(139,92,246,.25);
    outline-color: rgba(139,92,246,.45);
  }

  /* Header feel + chevron spin */
  .module-header{
    padding: 14px 18px;
    gap: 10px;
    transition: background-color .18s var(--ease);
  }
  .module-header:hover{ background-color: rgba(139,92,246,.06); }
  .module-header:focus-visible{ outline: 2px solid rgba(139,92,246,.65); border-radius: 12px; }

  .module-header .module-chevron{
    transition: transform .25s var(--ease), opacity .25s var(--ease);
    opacity: .8;
  }
  .module-card.open .module-header .module-chevron{ transform: rotate(180deg); opacity: 1; }

  /* Smoother open/close on desktop */
  .module-inner{
    transition: height 320ms var(--ease), opacity 240ms var(--ease);
    will-change: height, opacity;
  }

  /* Stagger list items for a cleaner reveal */
  .module-list{ margin-top: 6px; }
  .module-list li{
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), background-color .18s var(--ease);
    border-radius: 10px;
    padding: 8px 10px;
  }
  .module-list li:hover{ background: rgba(139,92,246,.07); }
  .module-card.open .module-list li{ opacity: 1; transform: translateY(0); }

  /* Stagger timings (first 12 items) */
  .module-card.open .module-list li:nth-child(1){ transition-delay: 20ms; }
  .module-card.open .module-list li:nth-child(2){ transition-delay: 40ms; }
  .module-card.open .module-list li:nth-child(3){ transition-delay: 60ms; }
  .module-card.open .module-list li:nth-child(4){ transition-delay: 80ms; }
  .module-card.open .module-list li:nth-child(5){ transition-delay: 100ms; }
  .module-card.open .module-list li:nth-child(6){ transition-delay: 120ms; }
  .module-card.open .module-list li:nth-child(7){ transition-delay: 140ms; }
  .module-card.open .module-list li:nth-child(8){ transition-delay: 160ms; }
  .module-card.open .module-list li:nth-child(9){ transition-delay: 180ms; }
  .module-card.open .module-list li:nth-child(10){ transition-delay: 200ms; }
  .module-card.open .module-list li:nth-child(11){ transition-delay: 220ms; }
  .module-card.open .module-list li:nth-child(12){ transition-delay: 240ms; }
}

/* Respect reduced motion on desktop too */
@media (prefers-reduced-motion: reduce) and (hover: hover) and (pointer: fine){
  .module-card, .module-header, .module-inner, .module-list li{
    transition: none !important;
  }
  .module-list li{ transform: none !important; opacity: 1 !important; }
}
.cert-info{
  margin-top:16px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:12px;
  background:rgba(255,255,255,0.06);
  color:#e9e9ff;
  font-size:.95rem;
  line-height:1.55;
}
.cert-info strong{ color:#fff; }
/* ===== iPhone / small-touch optimizations ===== */
@media only screen and (max-width: 430px) and (pointer: coarse) {
  /* performance & visuals */
  :root{
    --dur-fast: 140ms;
    --dur-med: 220ms;
    --shadow: 0 6px 18px rgba(0,0,0,0.22);
  }

  /* remove expensive effects */
  .am-orbs,
  .preview-image.am-float { display: none !important; animation: none !important; }
  .verify-card, .preview-card, .module-card, .terms__group, .contact-form-element {
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 12px;
    transition: none !important;
  }

  /* lighter transitions for accordion */
  .module-inner{
    transition: height 220ms var(--ease), opacity 160ms var(--ease);
    will-change: opacity; /* avoid will-change:height on mobile */
    backface-visibility: hidden;
  }
  .module-card:hover{ transform: none; }

  /* larger, easier tap targets */
  .module-header{ padding: 18px 18px; font-size: 1rem; }
  .module-list li{ box-shadow: none; }

  /* language dropdown: full-width, easy tap area */
  .language-dropdown{
    left: 8px;
    right: 8px;
    width: calc(100% - 16px);
    min-width: unset;
    border-radius: 12px;
    transform: translateY(6px);
    padding: 6px 0;
  }
  .language-btn{ padding: 12px 16px; min-width: 0; font-size: .98rem; }

  /* touch scrolling niceties */
  .module-inner{ -webkit-overflow-scrolling: touch; }

  /* reduce animated floats and heavy btn sweeps */
  .am-btn::after{ transition: none !important; }
  .preview-skeleton{ display: none !important; }

  /* make verify notes hug bottom of left card */
  .verify-card{ display: flex; flex-direction: column; }
  .verify-notes{ margin-top: auto; }

  /* inputs slightly bigger for thumbs */
  .am-input{ padding: 16px 18px; font-size: 1.02rem; }

  /* contact form tweaks */
  .contact-form-element{ padding: 22px; }
  .contact-submit-btn{ padding: 12px 18px; font-size: 1rem; }

  /* avoid expensive paint on small devices */
  .module-card, .verify-card, .preview-card { contain: paint; }
}

/* Extra narrow phones (iPhone SE and similar) */
@media only screen and (max-width: 360px) and (pointer: coarse) {
  .am-title{ font-size: clamp(1.3rem, 1.1rem + 1.6vw, 1.8rem); }
  .am-container, .container { padding: 0 14px; }
  .language-btn { padding: 10px 12px; }
  .module-header{ font-size: .95rem; padding: 14px 14px; }
}

@media only screen and (max-width: 400px) {
  .am-container, .container { padding: 0 12px; }

  /* Single column contact area and smaller gaps */
  .contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
/* Make the left info boxes wrap and reduce padding */
  .contact-item {
    padding: 12px 14px;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: unset;
  }
  .contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex: 0 0 48px;
  }
  .contact-icon i { font-size: 1.05rem; }

  .contact-details h4 { font-size: 1rem; margin-bottom:6px; }
  .contact-details p, .contact-details a {
    font-size: .93rem;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
  }

  /* Form column: reduce padding and make inputs comfortable for thumbs */
  .contact-form-element {
    padding: 16px;
    border-radius: 14px;
  }
  .form-row { gap: 10px; }
  .form-group input, .form-group select, .form-group textarea {
    padding: 12px 14px;
    font-size: 0.98rem;
  }

  /* Make the submit button text smaller and avoid stacking */
  .contact-submit-btn {
    font-size: 0.94rem;
    padding: 10px 14px;
    border-radius: 12px;
    white-space: normal;       /* allow wrapping if necessary */
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Avoid horizontal overflow from long inline elements */
  .verify-notes, .cert-info, .module-list li, .language-dropdown {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Optional: reduce or hide heavy visuals that cause layout shifts */
  .am-orbs, .preview-image.am-float { display: none !important; }

  /* Preserve accessible tap targets */
  .language-btn { padding: 10px 12px; min-width: 0; }
}
/* small phones: keep top "CONTACT US" button from stacking */
@media (max-width: 400px) {
  .am-header__nav { gap: 8px; }

  .am-header__nav .am-btn {
    font-size: 0.85rem;
    padding: 8px 10px;
    min-width: 0;
    white-space: nowrap;       /* avoid line-break */
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* slightly smaller primary variant if used standalone */
  .am-header__nav .am-btn--primary {
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  .am-header__nav { gap: 8px; }

  .am-header__nav .am-btn {
    font-size: 0.85rem;
    padding: 8px 10px;
    min-width: 0;
    white-space: nowrap;       /* avoid line-break */
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  /* slightly smaller primary variant if used standalone */
  .am-header__nav .am-btn--primary {
    padding: 8px 12px;
  }
}

@media only screen and (max-width: 430px) and (pointer: coarse) {
  #certImage { display: block !important; }
}

.am-hero__subtitle strong {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
/* ===== About Me Card ===== */
.about-card {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 32px;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--bd-card);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.about-card__photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  border: 2px solid var(--primary-purple);
  box-shadow: 0 14px 40px rgba(139,92,246,.35);
}

.about-card__text h2 {
  margin-top: 0;
}

.about-card__text p {
  margin: 14px 0 20px;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  color: var(--text-gray);
  font-size: .95rem;
}
.about-highlights li {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-highlights i {
  color: var(--light-purple);
}

@media (max-width: 980px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px;
  }
  .about-card__photo img {
    margin: 0 auto 20px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
  }
}
/* ===== About Mentor Showcase ===== */
.about-card {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bd-card);
  border-radius: 24px;
  padding: 60px;
  box-shadow: 0 28px 70px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.about-card__photo-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card__photo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 320px;
  max-height: 320px;
  border-radius: 20px;
  background: var(--gradient-purple);
  filter: blur(60px);
  opacity: .35;
  z-index: 0;
}
.about-card__photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  border: 3px solid var(--primary-purple);
  box-shadow: 0 20px 60px rgba(139,92,246,.5);
  position: relative;
  z-index: 1;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.about-card__photo:hover {
  transform: scale(1.05);
  box-shadow: 0 28px 80px rgba(139,92,246,.65);
}

.about-card__content h2 { margin: 0; }
.about-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 14px 0 8px;
  color: var(--text-light);
}
.about-tagline {
  font-size: 1.1rem;
  color: var(--light-purple);
  margin-bottom: 20px;
}
.about-desc {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 26px;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  font-size: 1rem;
  color: var(--text-gray);
}
.about-highlights li {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.about-highlights i {
  color: var(--light-purple);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px;
  }
  .about-card__photo {
    margin: 0 auto 28px;
    border-radius: 22px;
    width: 240px;
    height: 240px;
  }
  .about-card__photo-glow {
    max-width: 240px;
    max-height: 240px;
  }
}
/* ===== Featured Mentor Card (dark premium) ===== */
.featured-mentor-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 50px;
  background: linear-gradient(
    135deg,
    rgba(28,28,38,0.95),
    rgba(20,20,30,0.95)
  );
  border: 1px solid rgba(160,32,240,.3);
  border-radius: 22px;
  padding: 60px;
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* Subtle purple glow inside card */
.featured-mentor-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at top left, rgba(160,32,240,.18), transparent 70%),
              radial-gradient(circle at bottom right, rgba(214,51,255,.15), transparent 70%);
  z-index: 0;
}
.featured-mentor-card > * {
  position: relative;
  z-index: 1;
}

/* Left side */
.featured-mentor-media {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
}
.mentor-media-frame {
  position: relative;
}
.mentor-image {
  width: 100%;
  border-radius: 20px;
  border: 3px solid var(--primary-purple, #a020f0);
  box-shadow: 0 20px 60px rgba(139,92,246,.55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.mentor-image:hover {
  transform: scale(1.05);
  box-shadow: 0 30px 90px rgba(139,92,246,.7);
}
.mentor-media-glow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border-radius: 20px;
  background: linear-gradient(45deg,#a020f0,#d633ff);
  filter: blur(50px);
  opacity: 0.4;
  z-index: -1;
}
.mentor-ribbon {
  position: absolute;
  top: 14px; left: 14px;
  background: linear-gradient(90deg,#a020f0,#d633ff);
  color: #fff;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* Meta items */
.mentor-meta {
  margin-top: 22px;
}
.mentor-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-dim, #aaa);
  font-size: 0.95rem;
}
.mentor-meta i {
  color: var(--light-purple, #d633ff);
}

/* Right side */
.featured-mentor-details {
  flex: 2;
  min-width: 300px;
}
.featured-mentor-details .featured-title {
  font-size: 2rem;
  margin: 0 0 10px;
  color: #fff;
}
.featured-mentor-details .certificate-issuer {
  font-size: 1rem;
  color: var(--light-purple, #d633ff);
  margin-bottom: 20px;
}
.featured-mentor-details .certificate-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #ccc;
  margin-bottom: 26px;
}

.certificate-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.certificate-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #bbb;
}
.certificate-highlights i {
  color: var(--light-purple, #d633ff);
}

.certificate-tags {
  margin-bottom: 28px;
}
.certificate-tags .tag {
  display: inline-block;
  background: rgba(139,92,246,.25);
  color: var(--light-purple, #d633ff);
  padding: 5px 14px;
  margin: 4px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}

/* CTA */
.cta-row .verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg,#a020f0,#d633ff);
  padding: 12px 22px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .3s ease, transform .2s ease;
}
.cta-row .verify-btn:hover {
  background: linear-gradient(90deg,#d633ff,#a020f0);
  transform: translateY(-2px);
}


/* Limit Featured Mentor Card width + spacing */
.featured-mentor-section {
  display: flex;
  justify-content: center;
  padding-top: 1%;
  padding-bottom: 10%;
  background: linear-gradient(
    135deg,
    rgba(139,92,246,0.08),   /* subtle purple haze */
    rgba(26,26,46,0.85)      /* deep but lighter than #0f0f23 */
  );
  border-top: 1px solid rgba(139,92,246,0.18);
  border-bottom: 1px solid rgba(139,92,246,0.18);
}


.featured-mentor-card {
  max-width: 100%;
  width: 100%;
  max-height: 80%;
  height: 100%;
}
.featured-mentor-card {
  opacity: 1;
  transform: translateY(40px);
  transition: all 0.7s ease;
}
.featured-mentor-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.featured-mentor-card {
  transition: transform .4s ease, box-shadow .4s ease;
}
.featured-mentor-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 100px rgba(160,32,240,.6);
}
.featured-mentor-card {
  position: relative;
  overflow: hidden;
}
.featured-mentor-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(120deg,#a020f0,#d633ff,#a020f0);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity .3s ease, background-position 1s ease;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.featured-mentor-card:hover::after {
  opacity: 1;
  background-position: 100% 0;
}
.cta-row .verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg,#a020f0,#d633ff);
  padding: 12px 26px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(160,32,240,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-row .verify-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(214,51,255,.9), 0 0 50px rgba(160,32,240,.6);
}
/* ================================
   Featured Mentor — Responsive Card
   ================================ */

/* ===== Base Section ===== */
.featured-mentor-section {
  display: flex;
  justify-content: center;
  padding: 6% 2%;
  background: linear-gradient(
    135deg,
    rgba(139,92,246,0.08),
    rgba(26,26,46,0.85)
  );
  border-top: 1px solid rgba(139,92,246,0.18);
  border-bottom: 1px solid rgba(139,92,246,0.18);
}

/* ===== Card ===== */
.featured-mentor-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px;
  gap: 50px;

  background: linear-gradient(135deg, rgba(28,28,38,0.95), rgba(20,20,30,0.95));
  border: 1px solid var(--bd-card);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(0,0,0,.65);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

/* Glow */
.featured-mentor-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at top left, rgba(139,92,246,.18), transparent 70%),
              radial-gradient(circle at bottom right, rgba(168,85,247,.15), transparent 70%);
  z-index: 0;
}
.featured-mentor-card > * { position: relative; z-index: 1; }

/* ===== Media ===== */
.featured-mentor-media { flex: 0 0 auto; max-width: 40%; position: relative; }
.mentor-image {
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  border: 3px solid var(--primary-purple);
  box-shadow: 0 20px 60px rgba(139,92,246,.55);
  transition: transform .4s ease, box-shadow .4s ease;
}
.mentor-image:hover { transform: scale(1.05); box-shadow: 0 30px 90px rgba(139,92,246,.7); }
.mentor-media-glow {
  position: absolute; inset: 0;
  border-radius: 20px;
  background: var(--gradient-purple);
  filter: blur(50px);
  opacity: 0.35;
  z-index: -1;
}
.mentor-ribbon {
  position: absolute; top: 14px; left: 14px;
  background: var(--gradient-purple); color: #fff;
  padding: 7px 16px; font-size: 0.85rem; font-weight: 700;
  border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.4);
}

/* ===== Text ===== */
.featured-mentor-details .featured-title { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.featured-mentor-details .certificate-issuer { color: var(--light-purple); margin-bottom: 16px; }
.certificate-description { font-size: 1rem; line-height: 1.6; margin-bottom: 18px; }
.certificate-highlights li { margin: 6px 0; }
.certificate-tags .tag {
  background: rgba(139,92,246,.25); color: var(--light-purple);
  font-size: 0.85rem; padding: 5px 12px; border-radius: 8px; margin-right: 6px;
}

/* ===== CTA ===== */
.cta-row .verify-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-purple);
  padding: 12px 26px; border-radius: 10px; color: #fff;
  font-weight: 700; text-decoration: none;
  box-shadow: 0 0 12px rgba(139,92,246,.6);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta-row .verify-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 25px rgba(139,92,246,.9), 0 0 50px rgba(139,92,246,.6);
}
/* ================================
   Featured Mentor — Responsive overrides
   Paste AFTER all existing styles
   ================================ */

/* Large screens shrinking a bit */
@media (max-width: 1200px){
  .featured-mentor-card{ gap: 40px; padding: 48px; }
  .featured-mentor-media{ max-width: 42%; }
}

/* Tablets (≤1024px): stack, center, lighter visuals */
@media (max-width: 1024px){
  .featured-mentor-card{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
    padding: 42px;
    max-height: none;       /* kill any height caps */
    height: auto;
  }
  .featured-mentor-media{ max-width: 560px; width: 100%; }
  .featured-mentor-details{ min-width: 0; width: 100%; }
  .certificate-tags, .cta-row{ text-align: center; }
}

/* Mid tablets / big phones (≤840px) */
@media (max-width: 840px){
  .featured-mentor-card{ padding: 36px; gap: 28px; border-radius: 18px; }
  .mentor-image{ max-width: 520px; margin: 0 auto; }
  .featured-mentor-details .featured-title{ font-size: 1.7rem; }
  .certificate-description{ font-size: .98rem; }
  .certificate-tags .tag{ padding: 5px 10px; font-size: .82rem; }
}

/* Phones (≤640px) */
@media (max-width: 640px){
  .am-container{ width: min(100%, 92vw); }
  .featured-mentor-section{ padding: 8% 3%; }
  .featured-mentor-card{
    padding: 28px;
    gap: 22px;
    box-shadow: 0 16px 46px rgba(0,0,0,.5);
    backdrop-filter: blur(14px);
  }
  .mentor-image{ max-width: 92vw; border-radius: 16px; }
  .mentor-ribbon{ font-size: .75rem; padding: 6px 10px; }
  .featured-mentor-details .featured-title{ font-size: 1.55rem; margin-bottom: 10px; }
  .featured-mentor-details .certificate-issuer{ margin-bottom: 12px; }
  .certificate-highlights li{ margin: 6px 0; }
  .cta-row .verify-btn{ padding: 11px 18px; border-radius: 9px; }
}

/* Small phones (≤430px) — iPhone class */
@media (max-width: 430px){
  .featured-mentor-section{ padding: 9% 4%; }
  .featured-mentor-card{
    padding: 22px;
    gap: 18px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
  }
  .mentor-ribbon{ display: none; }       /* save space */
  .mentor-image{ max-width: 100%; }
  .featured-mentor-details .featured-title{ font-size: 1.4rem; }
  .certificate-description{ font-size: .95rem; line-height: 1.6; }
  .certificate-tags .tag{
    margin: 3px 4px; padding: 4px 10px; border-radius: 8px; font-size: .8rem;
  }
  .cta-row .verify-btn{ width: 100%; justify-content: center; }
}

/* Extra-narrow phones (≤360px) */
@media (max-width: 360px){
  .featured-mentor-card{ padding: 18px; }
  .featured-mentor-details .featured-title{ font-size: 1.28rem; }
  .certificate-description{ font-size: .92rem; }
}

/* Touch devices: disable hover jumps & heavy blur */
@media (hover: none) and (pointer: coarse){
  .featured-mentor-card:hover{ transform: none !important; box-shadow: 0 16px 46px rgba(0,0,0,.5); }
  .mentor-image:hover{ transform: none !important; box-shadow: 0 20px 60px rgba(139,92,246,.45); }
  .featured-mentor-card::before{ filter: blur(30px); opacity: .28; }
}

@media (max-width: 1024px) {
  .featured-mentor-media {
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .mentor-image {
    display: block !important;
    margin: 0 auto !important;
  }
}





