/* ============================================================
   IGNOU Info - homepage & header styles (layout modelled on
   ignouinfo.com). Colours come from the theme variables, plus
   the two fixed highlight colours below.
   ============================================================ */
:root{
  --ig-navy:#0b2b46;
  --ig-yellow:#f1ba00;
  --ig-yellow-dark:#d9a700;
  --ig-orange:#fe6600;
  --ig-grey:#f1f1f1;
}

/* ---------- Header ---------- */
.site-navbar{box-shadow:0 1px 0 #e6ebf0;}
.primary-nav ul{gap:30px;}
.primary-nav > ul > li > a{font-size:16px; font-weight:500; color:#222;}
.nav-explore-btn{background:var(--brand); font-size:16px; padding:11px 22px; border-radius:12px; box-shadow:none;}
.nav-explore-btn:hover{background:var(--brand-dark);}
.has-drop{position:relative;}
.has-drop > a{padding-right:16px !important;}
.has-drop > a::before{content:""; position:absolute; right:2px; top:50%; width:6px; height:6px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:translateY(-70%) rotate(45deg);}
.nav-drop{position:absolute; top:100%; left:-14px; min-width:220px; display:block !important; background:#fff; border:1px solid #e6ebf0; border-radius:10px; box-shadow:0 12px 30px rgba(11,43,70,.12); padding:8px 0 !important; opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .15s, transform .15s, visibility .15s; z-index:50;}
.has-drop:hover > .nav-drop,.has-drop:focus-within > .nav-drop{opacity:1; visibility:visible; transform:none;}
.nav-drop a{padding:9px 18px !important; font-size:14.5px !important;}
.nav-drop a:hover{background:var(--brand-soft);}

/* ---------- Buttons ---------- */
.ig-btn-yellow,.ig-btn-orange,.ig-btn-white{display:inline-flex; align-items:center; gap:8px; border:0; cursor:pointer; font:inherit; font-weight:600; font-size:16px; padding:12px 24px; border-radius:10px; text-decoration:none; transition:transform .15s, background .15s;}
.ig-btn-yellow{background:var(--ig-yellow); color:#111;}
.ig-btn-yellow:hover{background:var(--ig-yellow-dark); transform:translateY(-1px);}
.ig-btn-orange{background:var(--ig-orange); color:#fff; margin-top:8px;}
.ig-btn-orange:hover{background:#e55c00; transform:translateY(-1px);}
.ig-btn-white{background:#fff; color:var(--ig-navy);}
.ig-btn-white:hover{background:#eaf4fb;}

/* ---------- Hero ---------- */
.ig-hero{background:var(--ig-navy); color:#fff; padding:72px 0;}
.ig-hero-grid{display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center;}
.ig-hero-media iframe{width:100%; aspect-ratio:16/9; border:0; border-radius:6px; display:block;}
.ig-facts{background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:26px;}
.ig-facts-title{display:flex; align-items:center; gap:8px; font-weight:700; font-size:17px; margin:0 0 18px; color:var(--ig-yellow);}
.ig-facts ul{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:14px;}
.ig-facts li{background:rgba(255,255,255,.07); border-radius:10px; padding:16px;}
.ig-facts strong{display:block; font-size:24px; line-height:1.2;}
.ig-facts span{font-size:14px; color:#c9d6e2;}
.ig-hero h1{color:#fff; font-size:32px; line-height:1.3; font-weight:700; margin:0 0 18px;}
.ig-hero-copy p{font-size:16.5px; line-height:1.7; color:#e7eef5; margin:0 0 22px;}
.ig-badges{list-style:none; display:flex; flex-wrap:wrap; gap:10px; margin:0 0 26px; padding:0;}
.ig-badges li{background:#fff; color:var(--ig-navy); font-weight:700; font-size:13px; padding:10px 14px; border-radius:10px; border-bottom:4px solid var(--ig-yellow); box-shadow:0 2px 6px rgba(0,0,0,.2);}

/* ---------- Sections ---------- */
.ig-section{padding:64px 0;}
.ig-grey{background:var(--ig-grey);}
.ig-center{text-align:center;}
.ig-section h2{color:#111; font-size:26px; line-height:1.35; margin:0 0 18px;}
.ig-head{text-align:center; max-width:900px; margin:0 auto 28px;}
.ig-head p{color:#444; line-height:1.7;}

/* About + news */
.ig-about-grid{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:40px; align-items:start;}
.ig-about h2{font-size:23px;}
.ig-about p{color:#333; line-height:1.75; margin:0 0 14px;}
.ig-news{border:1px solid #dfe5ea; border-radius:10px; overflow:hidden; background:#fff; position:sticky; top:calc(var(--nav-h, 80px) + 16px);}
.ig-news h3{margin:0; background:var(--ig-navy); color:#fff; font-size:16px; padding:14px 18px;}
.ig-news-window{height:300px; overflow:hidden;}
.ig-news-list{list-style:none; margin:0; padding:0; animation:ig-ticker 22s linear infinite;}
.ig-news:hover .ig-news-list,.ig-news:focus-within .ig-news-list{animation-play-state:paused;}
.ig-news-list a{display:flex; align-items:center; gap:8px; padding:13px 18px; border-bottom:1px solid #eef1f4; color:#07365c; font-weight:600; font-size:15px; text-decoration:none;}
.ig-news-list a:hover{background:#f5f9fc; color:var(--brand);}
@keyframes ig-ticker{from{transform:translateY(0)} to{transform:translateY(-50%)}}

/* Programme tabs & cards */
.ig-tabs{display:flex; justify-content:center; gap:12px; margin-bottom:30px;}
.ig-tabs button{border:2px solid var(--ig-navy); background:#fff; color:var(--ig-navy); font:inherit; font-weight:600; padding:10px 26px; border-radius:30px; cursor:pointer;}
.ig-tabs button[aria-selected="true"]{background:var(--ig-navy); color:#fff;}
.ig-cards{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px;}
.ig-card{position:relative; background:#fff; border-radius:12px; padding:26px 24px 24px; box-shadow:0 4px 16px rgba(11,43,70,.07); display:flex; flex-direction:column; border-top:4px solid var(--brand); transition:transform .15s, box-shadow .15s;}
.ig-card:hover{transform:translateY(-3px); box-shadow:0 10px 26px rgba(11,43,70,.12);}
.ig-dur{position:absolute; top:18px; right:18px; display:inline-flex; align-items:center; gap:4px; font-size:12.5px; font-weight:600; color:#555; background:#f3f5f7; padding:4px 10px; border-radius:20px;}
.ig-card h3{font-family:Arial, sans-serif; font-size:36px; font-weight:800; color:#080808; margin:6px 0 4px;}
.ig-card h4{font-size:16px; color:#111; margin:0 0 10px;}
.ig-card p{color:#555; font-size:14.5px; line-height:1.6; margin:0 0 18px; flex:1;}
.ig-more{align-self:flex-start; color:var(--brand); font-weight:700; text-decoration:none; border-bottom:2px solid currentColor; padding-bottom:2px;}

/* Eligibility table */
.ig-table-wrap{overflow-x:auto; max-width:980px; margin:0 auto;}
.ig-table{width:100%; border-collapse:collapse; background:#fff; box-shadow:0 2px 10px rgba(0,0,0,.05);}
.ig-table th,.ig-table td{text-align:left; padding:14px 18px; border:1px solid #dfe5ea; font-size:15px; line-height:1.55;}
.ig-table thead th{background:var(--ig-navy); color:#fff; text-transform:uppercase; letter-spacing:.03em; font-size:14px;}
.ig-table tbody th{width:32%; color:var(--ig-navy);}
.ig-table tbody tr:nth-child(even){background:#f7f9fb;}
.ig-note{text-align:center; color:#666; font-size:14px; margin:14px 0 18px;}

/* Doubt band */
.ig-doubt{background:var(--brand); color:#fff; padding:34px 0;}
.ig-doubt-inner{display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;}
.ig-doubt h2{color:#fff; margin:0; font-size:24px;}

.ig-faq-wrap{max-width:860px;}

/* Still confused card */
.ig-confused{display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; background:var(--ig-navy); color:#fff; border-radius:16px; padding:34px 40px;}
.ig-confused h2{color:#fff; margin:0 0 6px;}
.ig-confused p{margin:0; color:#d4e0ea;}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .ig-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ig-about-grid{grid-template-columns:1fr;}
  .ig-news{position:static;}
}
@media (max-width:900px){
  .ig-hero{padding:44px 0;}
  .ig-hero-grid{grid-template-columns:1fr; gap:28px;}
  .ig-hero-copy{order:-1;}
  .ig-hero h1{font-size:26px;}
  .nav-drop{position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:0; padding:0 0 0 14px !important; min-width:0;}
  .has-drop > a::before{display:none;}
}
@media (max-width:640px){
  .ig-cards{grid-template-columns:1fr;}
  .ig-section{padding:44px 0;}
  .ig-section h2{font-size:22px;}
  .ig-facts ul{grid-template-columns:1fr 1fr;}
  .ig-confused{padding:26px 22px;}
  .ig-tabs button{padding:9px 16px; font-size:14px;}
}
@media (prefers-reduced-motion:reduce){ .ig-news-list{animation:none;} .ig-news-window{height:auto;} .ig-news-list li[aria-hidden]{display:none;} }

/* ============================================================
   Course pages (course-single.php)
   ============================================================ */
.cx-hero{background:var(--ig-navy); color:#fff; padding:22px 0 46px;}
.cx-hero .breadcrumbs,.cx-hero .breadcrumbs a,.cx-hero nav[aria-label="Breadcrumb"] a{color:#b9cbdb;}
.cx-hero nav[aria-label="Breadcrumb"],.cx-hero .breadcrumbs{color:#8fa6bb; margin-bottom:18px;}
.cx-hero-grid{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:40px; align-items:center;}
.cx-mode{display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); color:var(--ig-yellow); font-size:13px; font-weight:600; padding:5px 12px; border-radius:20px; margin-bottom:14px;}
.cx-hero h1{color:#fff; font-size:34px; line-height:1.25; margin:0 0 8px;}
.cx-full{color:#d5e1ec; font-size:17px; margin:0 0 14px;}
.cx-full span{color:#8fa6bb;}
.cx-lead{color:#e7eef5; line-height:1.7; margin:0 0 22px; max-width:640px;}
.cx-actions{display:flex; flex-wrap:wrap; gap:12px;}
.cx-btn-ghost{display:inline-flex; align-items:center; gap:8px; border:1.5px solid rgba(255,255,255,.6); background:transparent; color:#fff; font:inherit; font-weight:600; font-size:16px; padding:11px 22px; border-radius:10px; cursor:pointer;}
.cx-btn-ghost:hover{background:rgba(255,255,255,.08);}
.cx-facts{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.cx-facts li{display:flex; gap:10px; align-items:flex-start; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:14px; color:var(--ig-yellow);}
.cx-facts small{display:block; color:#9fb3c6; font-size:12px;}
.cx-facts strong{color:#fff; font-size:15px; line-height:1.35;}

.cx-tabs{position:sticky; top:var(--nav-h, 72px); z-index:20; background:#fff; border-bottom:1px solid #e3e8ee; box-shadow:0 2px 8px rgba(11,43,70,.05);}
.cx-tabs ul{list-style:none; display:flex; gap:4px; margin:0; padding:0; overflow-x:auto; scrollbar-width:none;}
.cx-tabs a{display:block; white-space:nowrap; padding:14px 14px; font-weight:600; font-size:14.5px; color:#344; text-decoration:none; border-bottom:3px solid transparent;}
.cx-tabs a:hover{color:var(--brand); border-bottom-color:var(--brand);}
.cx-body section{scroll-margin-top:140px; margin-bottom:34px;}
.cx-body h2{font-size:24px; color:var(--ig-navy); margin:0 0 14px;}
.cx-body h3{font-size:18px; color:#111; margin:22px 0 10px;}
.cx-table{font-size:14.5px;}
.cx-table td,.cx-table th{padding:11px 14px;}
.cx-badges{list-style:none; display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 0; padding:0;}
.cx-badges li{display:inline-flex; align-items:center; gap:6px; background:#eef7fd; color:#07365c; border:1px solid #cfe6f5; font-size:13.5px; font-weight:600; padding:7px 12px; border-radius:20px;}
.cx-elig{display:grid; grid-template-columns:2fr 1fr; gap:14px; margin-bottom:14px;}
.cx-elig > div{background:#f6f9fb; border-left:4px solid var(--brand); border-radius:8px; padding:14px 16px;}
.cx-elig small{color:#5b6b7a; font-weight:600; text-transform:uppercase; letter-spacing:.04em; font-size:12px;}
.cx-elig p{margin:6px 0 0; color:#111; line-height:1.6;}
.cx-chips{list-style:none; display:flex; flex-wrap:wrap; gap:8px; padding:0; margin:0;}
.cx-chips li,.cx-chips a{background:#fff; border:1px solid #d9e2ea; border-radius:20px; padding:7px 14px; font-size:14px; color:#07365c; text-decoration:none;}
.cx-chips a:hover{border-color:var(--brand); color:var(--brand);}
.cx-note{display:flex; gap:8px; align-items:flex-start; background:#fff8e6; border:1px solid #f6dfa0; color:#5c4500; border-radius:8px; padding:10px 14px; font-size:14px; margin-top:12px;}
.cx-cta{display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; background:#eaf4fb; border:1px solid #cfe6f5; border-radius:12px; padding:18px 22px; margin:6px 0 34px;}
.cx-cta strong{display:block; color:var(--ig-navy); font-size:17px;}
.cx-cta span{color:#3d4f60; font-size:14.5px;}
.cx-cta .ig-btn-orange{margin:0;}
.cx-steps{counter-reset:s; list-style:none; padding:0; margin:0;}
.cx-steps li{counter-increment:s; position:relative; padding:10px 0 10px 48px; border-bottom:1px dashed #dde4ea; line-height:1.6;}
.cx-steps li::before{content:counter(s); position:absolute; left:0; top:9px; width:32px; height:32px; border-radius:50%; background:var(--ig-navy); color:#fff; font-weight:700; display:grid; place-items:center; font-size:14px;}
.cx-docs{list-style:none; padding:0; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:8px;}
.cx-docs li{display:flex; gap:8px; align-items:center; background:#f6f9fb; border-radius:8px; padding:9px 12px; font-size:14.5px;}
.cx-confused{margin:10px 0 34px;}
.cx-related{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;}
.cx-related a{display:block; border:1px solid #dfe5ea; border-top:3px solid var(--brand); border-radius:10px; padding:14px; text-decoration:none; background:#fff;}
.cx-related a:hover{box-shadow:0 6px 18px rgba(11,43,70,.1);}
.cx-related strong{display:block; color:#111;}
.cx-related small{color:#667;}
.cx-sources{font-size:13.5px; color:#556; line-height:1.7;}
.cx-sources a{color:var(--brand);}
@media (max-width:900px){
  .cx-hero-grid{grid-template-columns:1fr; gap:24px;}
  .cx-hero h1{font-size:27px;}
  .cx-related{grid-template-columns:1fr 1fr;}
}
@media (max-width:640px){
  .cx-elig,.cx-docs{grid-template-columns:1fr;}
  .cx-related{grid-template-columns:1fr;}
  .cx-facts{grid-template-columns:1fr 1fr;}
}

/* Course list (courses.php) */
.cx-hero-list{padding-bottom:36px;}
.cl-filters{display:flex; flex-wrap:wrap; gap:14px; justify-content:space-between; align-items:center; margin-bottom:24px;}
.cl-tabs{justify-content:flex-start; margin:0;}
.cl-tabs a{border:2px solid var(--ig-navy); background:#fff; color:var(--ig-navy); font-weight:600; padding:8px 18px; border-radius:30px; text-decoration:none; font-size:14.5px;}
.cl-tabs a.on{background:var(--ig-navy); color:#fff;}
.cl-cards .ig-card h3{font-size:28px; padding-right:70px;}
.cl-mode{position:absolute; top:50px; right:18px; font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding:3px 9px; border-radius:20px;}
.cl-distance{background:#eaf4fb; color:#07365c;}
.cl-online{background:#fff4d6; color:#7a5300;}
.cl-fee{display:flex; align-items:center; gap:6px; font-weight:600; color:#0b2b46 !important; flex:0 !important; margin:-6px 0 14px !important;}

/* Fixes: let grid columns shrink so wide tables scroll instead of widening the page */
.detail-layout-grid > *,.cx-hero-grid > *,.ig-about-grid > *{min-width:0;}
.cx-body .ig-table-wrap{max-width:100%; overflow-x:auto;}
.cx-hero-grid{grid-template-columns:minmax(0,1fr) 380px;}
.cx-facts strong{font-size:14px;}
.cl-cards .ig-card h3.cl-long{font-size:21px; line-height:1.25;}
@media (max-width:900px){ .cx-hero-grid{grid-template-columns:1fr;} }
@media (max-width:640px){ .cx-actions > *{flex:1 1 100%; justify-content:center;} .cx-hero h1{font-size:24px;} }
