/* ======================================================
   NXTutors City Area - Premium Override CSS (No Clash)
   Put this in: public/frount/assets/css/city-area.css
   Must be loaded AFTER styles.css and newstyle.css
   ====================================================== */

:root{
  --nx-bg:#0b1020;
  --nx-bg2:#0b1226;
  --nx-cardA:rgba(255,255,255,.065);
  --nx-cardB:rgba(255,255,255,.035);
  --nx-border:rgba(255,255,255,.12);
  --nx-border2:rgba(255,255,255,.18);
  --nx-text:rgba(255,255,255,.92);
  --nx-muted:rgba(255,255,255,.72);
  --nx-muted2:rgba(255,255,255,.55);
  --nx-accent:#4c8dff;
  --nx-accent2:rgba(76,141,255,.22);
  --nx-shadow1:0 18px 46px rgba(0,0,0,.50);
  --nx-shadow2:0 10px 22px rgba(0,0,0,.35);
  --r14:14px;
  --r16:16px;
  --r18:18px;
}

/* reset-ish but safe */
.page *{box-sizing:border-box}
.page a{color:inherit}
.page img{max-width:100%;height:auto}
.page .container{max-width:1100px;margin:auto;padding:18px}

/* background (only for this page) */
body.page{
  background:
    radial-gradient(1200px 900px at 15% 10%, rgba(76,141,255,.22), transparent 55%),
    radial-gradient(900px 700px at 85% 20%, rgba(46,204,113,.10), transparent 55%),
    linear-gradient(180deg, var(--nx-bg), var(--nx-bg2));
  color:var(--nx-text);
}

/* ======================================================
   CARD BASE
   ====================================================== */
.cardx{
  background: linear-gradient(180deg, var(--nx-cardA), var(--nx-cardB));
  border: 1px solid var(--nx-border);
  border-radius: var(--r18);
  box-shadow: var(--nx-shadow2);
}

/* spacing for sections */
.section{margin-top:14px}

/* ======================================================
   HERO
   ====================================================== */
.hero{
  display:flex;
  gap:16px;
  align-items:center;
  padding:16px;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  right:-70px; top:-70px;
  width:320px;height:320px;
  background: radial-gradient(circle, rgba(76,141,255,.28), transparent 60%);
  pointer-events:none;
}
.hero-img img{
  width:160px;
  height:110px;
  object-fit:cover;
  border-radius: var(--r16);
  border:1px solid rgba(255,255,255,.14);
}
.hero-body{flex:1;min-width:0}

.crumb{
  font-size:12px;
  color:var(--nx-muted2);
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}
.crumb a{opacity:.9;text-decoration:none}
.crumb a:hover{color:#fff}
.crumb span{opacity:.6}

.hero-title{
  margin:0;
  font-size:22px;
  font-weight:900;
  line-height:1.25;
  letter-spacing:.2px;
}
.hero-sub{
  margin:8px 0 0;
  color:var(--nx-muted);
  line-height:1.7;
  font-size:13.5px;
  max-width:820px;
}

.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

/* IMPORTANT: topbar already uses .badge class
   So scope badge inside hero only */
.hero-badges .badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(76,141,255,.22);
  background: rgba(76,141,255,.14);
  color: rgba(188,208,255,.95);
}

.hero-cta{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* buttons - do not break existing .btn from topbar */
.btnx{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:999px;
  font-weight:900;
  text-decoration:none;
  cursor:pointer;
  border:1px solid var(--nx-border2);
  background: rgba(255,255,255,.06);
  color:var(--nx-text);
  transition:.22s ease;
}
.btnx:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}
.btnx.primary{
  border-color: rgba(76,141,255,.35);
  background: rgba(76,141,255,.18);
  box-shadow: 0 14px 35px rgba(76,141,255,.18);
}
.btnx.primary:hover{
  background: rgba(76,141,255,.26);
}

/* ======================================================
   GRID LAYOUT
   ====================================================== */
.grid2{
  display:grid;
  grid-template-columns: 1fr 330px;
  gap:14px;
}
@media(max-width:980px){
  .grid2{grid-template-columns:1fr}
}

.block{padding:18px}

/* Section title */
.h2{
  margin:0 0 12px;
  font-size:15px;
  font-weight:900;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.h2 > span{
  width:8px;height:8px;border-radius:50%;
  background: rgba(76,141,255,.95);
  box-shadow: 0 0 0 4px rgba(76,141,255,.12);
  display:inline-block;
}

/* Typography for CMS HTML */
.content{
  color:var(--nx-muted);
  font-size:14.5px;
  line-height:1.85;
}
.content p{margin:10px 0}
.content h3,.content h4{
  margin:14px 0 8px;
  font-weight:900;
  color:rgba(255,255,255,.92);
}
.content strong{color:rgba(255,255,255,.92)}
.content ul{margin:10px 0 12px 18px}
.content li{margin:6px 0}
.content a{color:#bcd0ff;text-decoration:none}
.content a:hover{color:#fff;text-decoration:underline}

/* Map iframe */
.content iframe{
  width:100% !important;
  height:280px !important;
  border-radius: var(--r14);
  border:1px solid rgba(255,255,255,.14);
  overflow:hidden;
}

/* Sticky right */
.sticky{
  position:sticky;
  top:18px;
  align-self:start;
}
@media(max-width:980px){
  .sticky{position:static}
}

/* CTA Card */
.cta{padding:16px}
.cta p{
  margin:10px 0 12px;
  color:var(--nx-muted2);
  font-size:12.8px;
  line-height:1.65;
}
.cta .btnx{width:100%;margin-top:10px}

/* ======================================================
   REVIEWS SLIDER
   ====================================================== */
.slider-wrap{position:relative;margin-top:12px}

.slider{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-behavior:smooth;
  padding-bottom:6px;
  scrollbar-width:none;
}
.slider::-webkit-scrollbar{display:none}

.review{
  flex:0 0 320px;
  min-height:165px;
  padding:14px;
  border-radius: var(--r16);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.035));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--nx-shadow2);
  display:flex;
  flex-direction:column;
}
@media(max-width:560px){
  .review{flex-basis:88%}
}

.review-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
}
.review-name{
  margin:0;
  font-weight:900;
  font-size:13px;
}
.review-loc{
  margin-top:3px;
  font-size:12px;
  color:var(--nx-muted2);
}
.stars{
  font-size:12px;
  letter-spacing:1px;
  color:#ffd36b;
  white-space:nowrap;
}
.review-msg{
  margin-top:10px;
  color:var(--nx-muted);
  font-size:12.8px;
  line-height:1.7;
  flex:1;
}

/* arrows bottom-right */
.slider-nav{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:12px;
}
.navbtn{
  width:44px;height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:var(--nx-text);
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow: var(--nx-shadow2);
  transition:.18s ease;
  user-select:none;
}
.navbtn:hover{background:rgba(255,255,255,.10);transform:translateY(-1px)}
.navbtn:active{transform:translateY(1px)}

/* ======================================================
   FAQ ACCORDION
   ====================================================== */
#faqWrap{margin-top:10px}
.faq{border-top:1px solid rgba(255,255,255,.08)}
.faq:first-child{border-top:0}

.faq-btn{
  width:100%;
  background:transparent;
  border:0;
  padding:14px 6px;
  color:var(--nx-text);
  display:flex;
  justify-content:space-between;
  align-items:center;
  text-align:left;
  font-weight:900;
  font-size:13px;
  cursor:pointer;
}
.faq-q{color:rgba(255,255,255,.90)}
.faq-icon{
  width:26px;height:26px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  display:grid;
  place-items:center;
  background: rgba(255,255,255,.05);
  color:rgba(255,255,255,.85);
  font-weight:900;
  flex:0 0 auto;
}

/* answer animation */
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height .28s ease;
  padding:0 6px;
}
.faq-a-inner{
  padding:0 0 14px;
  color:var(--nx-muted);
  font-size:12.8px;
  line-height:1.75;
}

/* open */
.faq.open .faq-a{max-height:900px}
.faq.open .faq-icon{
  border-color: rgba(76,141,255,.35);
  background: rgba(76,141,255,.16);
}

/* ======================================================
   EMPTY TEXT
   ====================================================== */
.empty{
  color:var(--nx-muted2);
  font-size:13px;
  padding:10px 0;
}

/* ======================================================
   RESPONSIVE HERO
   ====================================================== */
@media(max-width:720px){
  .page .container{padding:14px}
  .hero{flex-direction:column;align-items:flex-start}
  .hero-img{width:100%}
  .hero-img img{width:100%;height:170px}
  .hero-title{font-size:20px}
}

/* ======================================================
   SMALL FIXES FOR YOUR CURRENT HTML
   ====================================================== */

/* you have duplicate <body> in pasted HTML.
   safe: prevent weird margins */
.page .shell{width:100%}

/* ensure footer not overlap */
.footer-modern{margin-top:18px}
/* ================================
   FINAL PREMIUM HERO FIX
================================ */

/* HERO CONTAINER */
.hero{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 26px 28px;
}

/* IMAGE */
.hero-img{
  width: 220px;
}
.hero-img img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

/* TEXT AREA */
.hero-body{
  display: flex;
  flex-direction: column;
}

/* TITLE */
.hero-title{
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 10px;
}

/* DESCRIPTION */
.hero-sub{
  font-size: 14px;
  line-height: 1.7;
  opacity: .85;
  max-width: 760px;
}

/* BADGES ROW */
.hero-badges{
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* INDIVIDUAL BADGE */
.hero-badges .badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  width: auto;
}


/* CTA BUTTONS */
.hero-cta{
  margin-top: 18px;
  display: flex;
  gap: 12px;
}
.hero-cta .btnx{
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
}

/* ================================
   MOBILE PERFECT
================================ */
@media(max-width: 768px){
  .hero{
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-img{
    width: 100%;
  }

  .hero-img img{
    height: 180px;
  }

  .hero-title{
    font-size: 22px;
  }

  .hero-cta{
    flex-wrap: wrap;
  }
}

/* ================================
   RELATED AREAS
================================ */
.rel-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media(max-width: 980px){
  .rel-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 580px){
  .rel-grid{ grid-template-columns: 1fr; }
}

.rel-card{
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.12);
  transition: .25s ease;
}
.rel-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 16px 40px rgba(0,0,0,.40);
}

.rel-title{
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}
.rel-meta{
  font-size: 12px;
  opacity: .85;
  margin-bottom: 8px;
}
.rel-desc{
  font-size: 13px;
  opacity: .82;
  line-height: 1.6;
  min-height: 44px;
}

.rel-btn{
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(76,141,255,0.18);
  border: 1px solid rgba(76,141,255,0.22);
  color: #cfd9ff;
}
.tutors-grid{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media(max-width: 980px){ .tutors-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width: 580px){ .tutors-grid{ grid-template-columns: 1fr; } }

/* your tutor card css */
.tutor-card{
  background:linear-gradient(180deg,#1c2330,#151b26);
  border:1px solid #2a3242;
  border-radius:16px;
  padding:16px;
  transition:.25s ease;
}
.tutor-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 30px rgba(0,0,0,.4);
}
.tutor-top{ display:flex; gap:14px; }
.tutor-avatar{ position:relative; }
.tutor-avatar img{
  width:92px; height:92px; object-fit:cover; border-radius:14px;
}
.badge-verified{
  position:absolute; bottom:-6px; right:-6px;
  background:#2ecc71; color:#000;
  font-size:12px; padding:4px 6px; border-radius:50%;
  font-weight:700;
}
.tutor-info{ flex:1; }
.tutor-name{ margin:0; font-size:18px; font-weight:700; color:#fff; }
.tutor-rating{ font-size:14px; opacity:.85; margin:4px 0; }
.tutor-rating span{ opacity:.7; }
.tutor-chip{
  display:inline-block; font-size:12px;
  padding:4px 10px; border-radius:999px;
  background:#24314d; color:#9fb4ff;
}
.tutor-location{ margin-top:10px; font-size:13px; opacity:.8; }
.tutor-actions{ display:flex; gap:10px; margin-top:14px; }

.btn-accent{
  flex:1; text-decoration:none; text-align:center;
  padding:10px; border-radius:10px; font-weight:600;
}
.btn-outline{
  flex:1; text-decoration:none; text-align:center;
  border:1px solid #4c8dff; color:#4c8dff;
  padding:10px; border-radius:10px;
}
.btn-outline:hover{ background:#4c8dff; color:#fff; }

