/* =========================================================
   Ehtesham Law — Modern Theme
   New header / footer / homepage / course & mock-test UI.
   Namespaced with `el-` so it never collides with the legacy
   styles.min.css / main.css still used by older content pages.
   ========================================================= */

:root{
    --el-navy: #123145;
    --el-navy-2: #1b4a6b;
    --el-red: #b01216;
    --el-red-2: #e2434a;
    --el-gold: #d4a017;
    --el-ink: #16232e;
    --el-muted: #667382;
    --el-bg: #f6f8fa;
    --el-border: #e7ebef;
    --el-radius: 16px;
    --el-shadow: 0 10px 30px rgba(18,49,69,.08);
}

.el-ff{font-family:'Inter',sans-serif;}

/* ---------- Navbar ---------- */
.el-navbar{
    position: sticky; top: 0; z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--el-border);
    transition: box-shadow .2s ease;
}
.el-navbar.el-scrolled{ box-shadow: 0 4px 20px rgba(18,49,69,.08); }
.el-navbar .el-topline{
    background: var(--el-navy); color: #cfe3f0; font-size: 12.5px;
}
.el-navbar .el-topline a{ color: #cfe3f0; text-decoration: none; }
.el-navbar .el-topline a:hover{ color: #fff; }
.el-navbar .el-topline .el-social a{
    display:inline-flex; align-items:center; justify-content:center;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.08); margin-left: 6px; color:#fff;
}
.el-navbar .el-topline .el-social a:hover{ background: var(--el-red); }

.el-navbar .navbar-brand img{ height: 46px; }
.el-navbar .nav-link{
    font-weight: 600; font-size: 15px; color: var(--el-ink) !important;
    padding: 10px 14px !important; border-radius: 8px;
}
.el-navbar .nav-link:hover, .el-navbar .nav-link.active{ color: var(--el-red) !important; }
.el-navbar .dropdown-menu{ border: 1px solid var(--el-border); border-radius: 12px; box-shadow: var(--el-shadow); padding: 8px; }
.el-navbar .dropdown-item{ border-radius: 8px; padding: 8px 12px; font-size: 14.5px; font-weight: 500; }
.el-navbar .dropdown-item:hover{ background: #fbeceb; color: var(--el-red); }
.el-navbar .el-cta{
    background: var(--el-red); color: #fff; font-weight: 700; padding: 10px 20px;
    border-radius: 30px; font-size: 14.5px; white-space: nowrap;
}
.el-navbar .el-cta:hover{ background: var(--el-red-2); color:#fff; }

/* ---------- Buttons ---------- */
.el-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:700; border-radius:30px; padding:12px 26px; font-size:15px; border:2px solid transparent; text-decoration:none; transition:.15s; }
.el-btn-primary{ background: var(--el-red); color:#fff; }
.el-btn-primary:hover{ background: var(--el-red-2); color:#fff; transform: translateY(-1px); }
.el-btn-dark{ background: var(--el-navy); color:#fff; }
.el-btn-dark:hover{ background: var(--el-navy-2); color:#fff; }
.el-btn-outline{ border-color: #fff; color:#fff; }
.el-btn-outline:hover{ background:#fff; color: var(--el-navy); }
.el-btn-outline-dark{ border-color: var(--el-navy); color: var(--el-navy); }
.el-btn-outline-dark:hover{ background: var(--el-navy); color:#fff; }
.el-btn-sm{ padding: 8px 18px; font-size: 13.5px; }
.el-btn-block{ width: 100%; }

/* ---------- Hero ---------- */
.el-hero{
    background: radial-gradient(1200px 500px at 15% -10%, rgba(255,255,255,.08), transparent),
                linear-gradient(120deg, var(--el-navy), #0c2233);
    color: #fff; padding: 90px 0 110px; position: relative; overflow: hidden;
}
.el-hero::after{
    content:''; position:absolute; right:-120px; bottom:-160px; width:420px; height:420px;
    background: radial-gradient(circle, rgba(176,18,22,.35), transparent 70%);
}
.el-hero .el-eyebrow{
    display:inline-flex; align-items:center; gap:8px; background: rgba(255,255,255,.1);
    padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight:600; margin-bottom:18px;
}
.el-hero h1{ font-family:'Outfit',sans-serif; font-weight:800; font-size: clamp(30px, 4.2vw, 50px); line-height:1.15; margin-bottom:18px;}
.el-hero h1 span{ color: #ff8a8d; }
.el-hero p.lead{ color: rgba(255,255,255,.82); font-size:17px; max-width:560px; }
.el-hero .el-stats{ display:flex; gap:34px; margin-top:34px; flex-wrap:wrap; }
.el-hero .el-stats div h3{ font-family:'Outfit',sans-serif; font-weight:800; font-size:30px; margin:0; }
.el-hero .el-stats div span{ font-size:12.5px; color: rgba(255,255,255,.7); text-transform:uppercase; letter-spacing:.05em; }
.el-hero .el-hero-media{ border-radius: 24px; overflow:hidden; box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 6px solid rgba(255,255,255,.08); }

/* ---------- Section heading ---------- */
.el-eyebrow-sm{ color: var(--el-red); font-weight:700; letter-spacing:.06em; text-transform:uppercase; font-size:13px; }
.el-sec-title{ font-family:'Outfit',sans-serif; font-weight:800; font-size: clamp(24px,3vw,34px); color: var(--el-navy); margin: 6px 0 10px; }
.el-sec-sub{ color: var(--el-muted); max-width: 640px; }
section.el-section{ padding: 70px 0; }
section.el-section.el-bg{ background: var(--el-bg); }

/* ---------- Cards: Courses & Mock Tests ---------- */
.el-card{
    background:#fff; border:1px solid var(--el-border); border-radius: var(--el-radius);
    overflow:hidden; transition:.2s; height:100%; display:flex; flex-direction:column;
}
.el-card:hover{ box-shadow: var(--el-shadow); transform: translateY(-4px); }
.el-card .el-card-img{ height:170px; background-size:cover; background-position:center; position:relative; }
.el-card .el-badge{
    position:absolute; top:12px; left:12px; padding:5px 12px; border-radius:20px;
    font-size:11.5px; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
}
.el-badge-free{ background:#0f8a4b; color:#fff; }
.el-badge-locked{ background: rgba(18,49,69,.85); color:#fff; }
.el-badge-discount{ background: var(--el-red); color:#fff; }
.el-card .el-card-body{ padding:20px; flex:1; display:flex; flex-direction:column; }
.el-card h5{ font-weight:700; font-size:17px; color:var(--el-ink); margin-bottom:8px; }
.el-card p{ color:var(--el-muted); font-size:13.8px; }
.el-card .el-meta{ display:flex; gap:14px; color:var(--el-muted); font-size:12.8px; margin: 10px 0; flex-wrap:wrap; }
.el-card .el-meta span{ display:flex; align-items:center; gap:5px; }
.el-card .el-price-row{ margin-top:auto; padding-top:14px; border-top:1px dashed var(--el-border); display:flex; align-items:center; justify-content:space-between; }
.el-card .el-price{ font-weight:800; font-size:19px; color:var(--el-navy); }
.el-card .el-price del{ color:var(--el-muted); font-weight:500; font-size:13px; margin-right:6px; }
.el-card .el-price .el-free{ color:#0f8a4b; }

/* ---------- Testimonials / Why us ---------- */
.el-feature{ display:flex; gap:16px; padding:20px; border-radius:16px; background:#fff; border:1px solid var(--el-border); height:100%; }
.el-feature .el-icon{ width:48px; height:48px; min-width:48px; border-radius:12px; background:#fbeceb; color:var(--el-red); display:flex; align-items:center; justify-content:center; font-size:20px; }

/* ---------- Pricing / checkout ---------- */
.el-checkout-box{ background:#fff; border:1px solid var(--el-border); border-radius: var(--el-radius); padding: 26px; box-shadow: var(--el-shadow); }
.el-gateway-btn{
    display:flex; align-items:center; justify-content:space-between; width:100%;
    border:2px solid var(--el-border); border-radius:12px; padding:14px 18px; margin-bottom:10px;
    background:#fff; cursor:pointer; font-weight:700; color: var(--el-ink);
}
.el-gateway-btn:hover, .el-gateway-btn.active{ border-color: var(--el-red); background:#fff6f6; }

/* ---------- Exam attempt UI ---------- */
.el-exam-shell{ background:#eef1f4; min-height:100vh; }
.el-exam-top{ background: var(--el-navy); color:#fff; padding:12px 0; position:sticky; top:0; z-index:50; }
.el-timer{ font-family:'Outfit',sans-serif; font-weight:800; font-size:20px; background: rgba(255,255,255,.1); padding:6px 16px; border-radius:10px; }
.el-timer.el-timer-low{ background: var(--el-red); animation: el-pulse 1s infinite; }
@keyframes el-pulse{ 0%,100%{opacity:1;} 50%{opacity:.6;} }
.el-qpalette button{
    width:38px; height:38px; border-radius:8px; border:1px solid var(--el-border); background:#fff;
    font-weight:700; font-size:13px; color: var(--el-ink);
}
.el-qpalette button.el-q-answered{ background:#0f8a4b; color:#fff; border-color:#0f8a4b; }
.el-qpalette button.el-q-review{ background:#d4a017; color:#fff; border-color:#d4a017; }
.el-qpalette button.el-q-visited{ background:#fdeaea; border-color:#e79ea0; }
.el-qpalette button.el-q-current{ outline:3px solid var(--el-navy); }
.el-option-row{ border:1px solid var(--el-border); border-radius:12px; padding:14px 16px; margin-bottom:10px; cursor:pointer; }
.el-option-row:hover{ border-color: var(--el-navy-2); }
.el-option-row.el-selected{ border-color: var(--el-red); background:#fff6f6; }

/* ---------- Footer ---------- */
.el-footer{ background: var(--el-navy); color: rgba(255,255,255,.78); }
.el-footer h6{ color:#fff; font-weight:700; font-size:14px; text-transform:uppercase; letter-spacing:.04em; margin-bottom:18px; }
.el-footer a{ color: rgba(255,255,255,.72); text-decoration:none; font-size:14px; }
.el-footer a:hover{ color:#fff; }
.el-footer ul{ list-style:none; padding:0; margin:0; }
.el-footer ul li{ margin-bottom:10px; }
.el-footer .el-social a{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08); margin-right:8px; }
.el-footer .el-social a:hover{ background: var(--el-red); }
.el-footer-bottom{ background:#0c2233; padding:16px 0; font-size:13px; color: rgba(255,255,255,.55); }

/* ---------- Floating buttons ---------- */
.el-float{ position:fixed; right:22px; z-index:1040; width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 24px rgba(0,0,0,.25); color:#fff; font-size:22px; text-decoration:none; }
.el-float-wa{ bottom:22px; background:#25D366; }
.el-float-top{ bottom:86px; background: var(--el-navy); opacity:0; visibility:hidden; transition:.2s; }
.el-float-top.el-show{ opacity:1; visibility:visible; }

/* ---------- Misc ---------- */
.el-mobile-offcanvas .offcanvas-body .nav-link{ color: var(--el-ink); font-weight:600; padding:12px 4px; border-bottom:1px solid var(--el-border); }
.el-breadcrumb-hero{ background: linear-gradient(120deg, var(--el-navy), #0c2233); color:#fff; padding: 46px 0; }
.el-breadcrumb-hero h1{ font-family:'Outfit',sans-serif; font-weight:800; font-size:30px; margin:0; }
.el-breadcrumb-hero a{ color: rgba(255,255,255,.7); text-decoration:none; }

@media (max-width: 991px){
    .el-hero{ padding: 60px 0 70px; text-align:center; }
    .el-hero .el-stats{ justify-content:center; }
    section.el-section{ padding: 46px 0; }
}
