/* ============================================================
   MEEDHA HREEMKARI EDU TECH – Global Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Nunito:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #e8232a;
  --primary-dark: #c01a20;
  --secondary: #1a1a2e;
  --accent: #f97316;
  --blue: #2563eb;
  --bg: #f8f9fb;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── TOPBAR ── */
.topbar {
  background: var(--secondary); color: #9ca3af; font-size: 12px; padding: 7px 0;
}
.tb-inner {
  max-width: 1280px; margin: auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.tb-left { display: flex; gap: 18px; flex-wrap: wrap; }
.tb-left span { display: flex; align-items: center; gap: 5px; }
.topbar a { color: #9ca3af; transition: color .2s; }
.topbar a:hover { color: var(--primary); }
.tb-right { font-size: 11.5px; }
.tb-right a { color: var(--primary); font-weight: 700; }

/* ── LOGO ── */
.logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 16px; color: var(--primary);
}
.logo-sub { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* ── HEADER ── */
header {
  background: var(--white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1280px; margin: auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px;
}

/* ── NAV ── */
#main-nav { display: flex; gap: 2px; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
  padding: 8px 12px; border-radius: 8px;
  font-weight: 700; font-size: 13.5px; color: var(--text);
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-item > a:hover, .nav-item.active > a { background: #fef2f2; color: var(--primary); }
.arrow { font-size: 9px; transition: transform .2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }

/* Standard dropdown */
.dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 210px; z-index: 300; overflow: hidden;
  animation: fadeDrop .15s ease;
}
.nav-item:hover .dropdown { display: block; }
@keyframes fadeDrop { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
.dropdown a {
  display: block; padding: 9px 18px; font-size: 13.5px;
  font-weight: 500; color: var(--text); transition: background .15s;
  border-bottom: 1px solid #f3f4f6;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: #fef2f2; color: var(--primary); }
.drop-label {
  padding: 8px 18px 5px; font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  background: #f9fafb; border-bottom: 1px solid var(--border);
}

/* Mega dropdown */
.mega-drop {
  min-width: 580px; display: none !important; flex-direction: row; gap: 0; padding: 0;
}
.nav-item:hover .mega-drop { display: flex !important; }
.mega-col { flex: 1; border-right: 1px solid var(--border); }
.mega-col:last-child { border-right: none; }
.mega-col .drop-label { position: sticky; top: 0; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6;
  border: none; cursor: pointer; font-size: 15px; transition: background .2s;
}
.search-icon-btn:hover { background: #fee2e2; }
.btn-login {
  padding: 8px 18px; background: var(--primary); color: #fff;
  border-radius: 8px; font-weight: 800; font-size: 13px;
  transition: background .2s; white-space: nowrap;
}
.btn-login:hover { background: var(--primary-dark); }
.hamburger {
  display: none; background: none; border: none; font-size: 22px; cursor: pointer; padding: 4px;
}

/* Search bar */
.search-bar {
  display: none; background: #f8f9fb; border-top: 1px solid var(--border); padding: 12px 24px;
}
.search-bar.open { display: block; }
.search-inner { max-width: 680px; margin: auto; display: flex; gap: 8px; }
.search-inner input {
  flex: 1; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: 'Nunito', sans-serif; outline: none;
  transition: border-color .2s;
}
.search-inner input:focus { border-color: var(--primary); }
.search-inner button {
  padding: 10px 20px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 700;
  font-family: 'Nunito', sans-serif; cursor: pointer; transition: background .2s;
}
.search-inner button:hover { background: var(--primary-dark); }
.close-search { background: #f3f4f6 !important; color: var(--text) !important; }

/* ── COMMON SECTION STYLES ── */
section { padding: 56px 0; }
.sec-inner { max-width: 1280px; margin: auto; padding: 0 24px; }
.sec-head { margin-bottom: 32px; overflow: hidden; }
.sec-head h2 { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.sec-head p { color: var(--muted); font-size: 15px; }
.sec-head .view-all {
  float: right; margin-top: -46px;
  padding: 8px 18px; border: 1.5px solid var(--primary); color: var(--primary);
  border-radius: 8px; font-size: 13px; font-weight: 700; transition: all .2s;
}
.sec-head .view-all:hover { background: var(--primary); color: #fff; }

/* ── BUTTONS ── */
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s; border: none; font-family: 'Nunito', sans-serif; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-white-outline { border: 2px solid rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-white-outline:hover { background: rgba(255,255,255,.1); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: #f1f5f9; }

/* ── CARDS ── */
.card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── TAGS ── */
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.tag-blue { background: #eff6ff; color: #2563eb; }
.tag-red { background: #fef2f2; color: var(--primary); }
.tag-green { background: #f0fdf4; color: #16a34a; }
.tag-yellow { background: #fefce8; color: #a16207; }
.tag-purple { background: #f5f3ff; color: #7c3aed; }

/* ── STARS ── */
.stars { color: #f59e0b; }
.rating { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff; padding: 52px 24px;
}
.page-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(26px,4vw,44px); font-weight: 800; margin-bottom: 12px; }
.page-hero h1 span { color: var(--primary); }
.page-hero p { color: #94a3b8; font-size: 16px; max-width: 600px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 13px; color: #94a3b8; }
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: #64748b; }

/* ── FOOTER ── */
footer { background: var(--secondary); color: #94a3b8; padding: 56px 0 24px; }
.footer-inner { max-width: 1280px; margin: auto; padding: 0 24px; }
.footer-top {
  display: grid; grid-template-columns: 2.2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin: 14px 0 12px; }
.footer-contact p { font-size: 12.5px; margin-bottom: 5px; }
.footer-contact a { color: #94a3b8; }
.footer-contact a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 8px; margin-top: 14px; }
.social-btn {
  width: 34px; height: 34px; background: rgba(255,255,255,.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
  color: #94a3b8; transition: background .2s, color .2s;
}
.social-btn:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 13.5px; color: #94a3b8; transition: color .2s; }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #94a3b8; }
.footer-bottom-links a:hover { color: #fff; }

/* ── MOBILE ── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hamburger { display: block; }
  #main-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; border-bottom: 2px solid var(--border); padding: 12px 0; box-shadow: var(--shadow-lg); z-index:300; }
  #main-nav.open { display: flex; }
  .nav-item > a { border-radius: 0; padding: 12px 24px; border-bottom: 1px solid var(--border); }
  .dropdown, .mega-drop { position: static; display: none !important; box-shadow: none; border: none; border-radius: 0; }
  .nav-item > a .arrow { display: none; }
  .sec-head .view-all { float: none; margin-top: 10px; }
  .mega-drop { flex-direction: column !important; }
  .mega-col { border-right: none; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .tb-left { gap: 10px; }
  .tb-right { display: none; }
  .header-inner { padding: 0 12px; height: auto; min-height: 56px; flex-wrap: nowrap; }
  section { padding: 40px 0; }
  /* Hide search + whatsapp icons so they don't overlap logo */
  .wa-btn { display: none !important; }
  .search-icon-btn { display: none !important; }
  /* Shrink counselling button */
  .btn-login { font-size: 11px !important; padding: 6px 10px !important; white-space: nowrap; }
  /* Logo image smaller */
  .logo-wrap img { height: 36px !important; }
  .logo-name { font-size: 13px !important; }
  .logo-sub { font-size: 9px !important; }
}

/* ── LOGO IMAGE ── */
.site-logo-img { height:52px; width:auto; object-fit:contain; display:block; }
.footer-logo-img { height:60px; width:auto; object-fit:contain; display:block; margin-bottom:12px; filter:brightness(0) invert(1); }
.wa-btn { background:#25d366 !important; color:#fff !important; }
.wa-btn:hover { background:#1ea952 !important; }
@media(max-width:600px){ .site-logo-img{height:40px;} }

/* ── WHATSAPP HEADER BTN ── */
.wa-header-btn {
  width:36px;height:36px;border-radius:50%;background:#25d366;
  display:flex;align-items:center;justify-content:center;font-size:16px;
  color:#fff;text-decoration:none;transition:transform .2s;
}
.wa-header-btn:hover{transform:scale(1.1);}
.tb-hide-sm,.tb-hide-md{display:flex;align-items:center;gap:5px;}
@media(max-width:900px){.tb-hide-md{display:none;}}
@media(max-width:600px){.tb-hide-sm{display:none;}}
/* ── ADDITIONS v3 ── */
.wa-btn{width:36px;height:36px;border-radius:50%;background:#25d366;display:flex;align-items:center;justify-content:center;font-size:16px;color:#fff;text-decoration:none;transition:transform .2s;flex-shrink:0;}
.wa-btn:hover{transform:scale(1.1);}
.tb-hsm,.tb-hmd{display:flex;align-items:center;gap:5px;}
@media(max-width:900px){.tb-hmd{display:none!important;}}
@media(max-width:600px){.tb-hsm{display:none!important;}}

/* ── v5: Logo & footer fixes ── */
/* Header logo-name: maroon + light yellow gradient matching MH logo */
.logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, #800000 0%, #a0003a 40%, #d4a017 80%, #f5c842 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }

/* Footer logo link */
.footer-logo-link {
  display: inline-block;
  text-decoration: none;
}

/* WhatsApp header button */
.wa-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff; text-decoration: none;
  transition: transform .2s; flex-shrink: 0;
}
.wa-btn:hover { transform: scale(1.1); }

/* Topbar responsive hide */
.tb-hsm, .tb-hmd { display: flex; align-items: center; gap: 5px; }
@media(max-width: 900px) { .tb-hmd { display: none !important; } }
@media(max-width: 600px) { .tb-hsm { display: none !important; } }

/* ── MOBILE HEADER FIXES ── */
@media(max-width:600px){
  /* Hide search & whatsapp icons on very small screens — show only hamburger + counselling btn */
  .wa-btn{ display:none !important; }
  .search-icon-btn{ display:none !important; }
  .btn-login{ font-size:12px; padding:7px 12px; }
}

/* ── VIEW ALL / SHOW MORE BUTTON BORDERS ── */
.view-all, .sec-head .view-all{
  display:inline-block;
  padding:7px 16px;
  border:2px solid var(--primary);
  color:var(--primary);
  border-radius:8px;
  font-weight:700;
  font-size:13px;
  text-decoration:none;
  transition:all .2s;
  white-space:nowrap;
}
.view-all:hover{ background:var(--primary); color:#fff; }

/* ── MOBILE BUTTON / BORDER VISIBILITY ── */
@media(max-width:600px){
  .btn-outline{
    border:2px solid var(--primary) !important;
    color:var(--primary) !important;
    padding:8px 14px !important;
    font-size:12px !important;
    border-radius:8px !important;
  }
  .show-more-btn{
    width:100%;
    max-width:260px;
    border:2px solid var(--primary) !important;
  }
  .sec-head{ flex-wrap:wrap; gap:8px; }
  .sec-head .view-all{ margin-top:0; }
}

/* ── COMPREHENSIVE MOBILE FIXES ── */
@media(max-width:800px){
  /* All outline buttons fully visible */
  .btn-outline{
    border:2px solid var(--primary) !important;
    color:var(--primary) !important;
    padding:9px 18px !important;
  }
  /* Show-more / View-all always complete border */
  .show-more-btn{
    border:2px solid var(--primary) !important;
    padding:10px 24px !important;
    display:inline-block !important;
  }
  .view-all, .sec-head .view-all{
    border:2px solid var(--primary) !important;
    padding:7px 14px !important;
    display:inline-block !important;
  }
  /* Section headers wrap properly */
  .sec-head{ flex-wrap:wrap; gap:8px; align-items:center; }
  /* Cards don't overflow */
  .college-card, .exam-card, .news-card, .stream-card{
    min-width:0;
    width:100%;
  }
}
@media(max-width:600px){
  /* Hide chat + search icons in header — keep only logo, counselling, hamburger */
  .wa-btn{ display:none !important; }
  .search-icon-btn{ display:none !important; }
  .btn-login{ font-size:12px !important; padding:7px 14px !important; }
  /* Sections breathe less on mobile */
  section{ padding:32px 0 !important; }
}
