/* =================================================================
   EduPlus Public Frontend
   Loads BEFORE theme.css/custom.css in the cascade, so Appearance
   colors/fonts and admin Custom CSS both override these defaults.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--eduplus-bg, #ffffff);
    color: var(--eduplus-text, #111827);
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--eduplus-link, #4f46e5); }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.site-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Top bar ---- */
.site-topbar { background: #14162b; color: #cbd0e6; font-size: 12.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 8px; }
.topbar-contact { display: flex; gap: 18px; }
.topbar-contact i { margin-right: 6px; opacity: 0.8; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social a { color: #cbd0e6; font-size: 12px; }
.topbar-social a:hover { color: #fff; }

/* ---- Header ---- */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-brand img { max-height: 46px; }
.site-brand-text { font-size: 20px; font-weight: 800; color: #111; letter-spacing: -0.02em; }
.site-tagline { font-size: 12px; color: #6b7280; display: block; }

.site-nav ul { display: flex; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 600; color: #374151; }
.site-nav a:hover { color: var(--eduplus-link, #4f46e5); }

.nav-toggle { display: none; background: none; border: 1px solid #e5e7eb; border-radius: 8px; width: 40px; height: 40px; font-size: 16px; cursor: pointer; }

/* Layout column variants only shift header spacing subtly — kept simple by design */
.site-header.layout-cols-2 .header-inner { justify-content: space-between; }
.site-header.layout-cols-4 .header-inner { gap: 40px; }

/* ---- Banner slider ---- */
.site-banner-slider { position: relative; overflow: hidden; background: #111; }
.banner-slide { display: none; position: relative; width: 100%; }
.banner-slide.active { display: block; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-text-layer { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 40px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.6); }
.banner-text-en { font-size: 32px; font-weight: 800; }
.banner-text-ur { font-size: 22px; font-family: 'Noto Nastaliq Urdu', serif; margin-top: 8px; }

.pos-top-left { justify-content: flex-start; align-items: flex-start; }
.pos-top-center { justify-content: flex-start; align-items: center; text-align: center; }
.pos-top-right { justify-content: flex-start; align-items: flex-end; }
.pos-middle-left { justify-content: center; align-items: flex-start; }
.pos-middle-center { justify-content: center; align-items: center; text-align: center; }
.pos-middle-right { justify-content: center; align-items: flex-end; }
.pos-bottom-left { justify-content: flex-end; align-items: flex-start; }
.pos-bottom-center { justify-content: flex-end; align-items: center; text-align: center; }
.pos-bottom-right { justify-content: flex-end; align-items: flex-end; }
.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }

.banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; border-radius: 50%; border: none;
    background: rgba(0,0,0,0.4); color: #fff; cursor: pointer; z-index: 5;
}
.banner-nav:hover { background: rgba(0,0,0,0.65); }
.banner-nav.prev { left: 16px; }
.banner-nav.next { right: 16px; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,0.5); cursor: pointer; }
.banner-dot.active { background: #fff; }

/* ---- Main layout ---- */
.main-layout { display: grid; gap: 36px; padding: 40px 24px; }
.main-layout.with-sidebar { grid-template-columns: 1fr 300px; }
.main-layout.full-width { grid-template-columns: 1fr; }

.page-title, .post-title, .course-title { font-size: 30px; font-weight: 800; margin: 0 0 20px; letter-spacing: -0.02em; }
.page-content { font-size: 15px; line-height: 1.75; color: #374151; }
.single-thumb { width: 100%; border-radius: 14px; margin-bottom: 20px; max-height: 380px; object-fit: cover; }
.course-meta-row { display: flex; gap: 24px; margin: 16px 0; font-size: 14px; color: #6b7280; }

.no-homepage-notice { text-align: center; padding: 60px 20px; color: #6b7280; }
.no-homepage-notice i { font-size: 40px; margin-bottom: 16px; color: #d1d5db; }
.landing-widgets { display: flex; flex-direction: column; gap: 40px; margin-top: 30px; }
.landing-widget-block { width: 100%; }

/* ---- Course curriculum (public) ---- */
.course-curriculum { margin-top: 20px; }
.curriculum-section-public { border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.curriculum-section-public h3 { margin: 0; padding: 14px 18px; background: #f9fafb; font-size: 15px; }
.curriculum-section-public ul { list-style: none; margin: 0; padding: 0; }
.curriculum-section-public li { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid #f1f5f9; font-size: 13.5px; }
.curriculum-section-public li span { flex: 1; }
.curriculum-section-public li i.fa-play-circle { color: var(--eduplus-link, #4f46e5); }
.curriculum-section-public li small { color: #9ca3af; }
.pill-tag { display: inline-block; background: var(--eduplus-link, #4f46e5); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; margin-right: 6px; }

/* ---- Sidebar ---- */
.site-sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px; }

/* ---- Footer ---- */
.site-footer { background: #14162b; color: #cbd0e6; margin-top: 40px; }
.footer-inner { display: grid; gap: 28px; padding: 44px 24px; }
.site-footer.layout-cols-2 .footer-inner { grid-template-columns: repeat(2, 1fr); }
.site-footer.layout-cols-3 .footer-inner { grid-template-columns: repeat(3, 1fr); }
.site-footer.layout-cols-4 .footer-inner { grid-template-columns: repeat(4, 1fr); }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-col p { font-size: 13px; line-height: 1.7; color: #9ca3af; margin: 0; }
.footer-logo { max-height: 40px; margin-bottom: 10px; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: #9ca3af; font-size: 13px; }
.footer-menu a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 16px 0; text-align: center; font-size: 12px; color: #9ca3af; }

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 900px) {
    .main-layout.with-sidebar { grid-template-columns: 1fr; }
    .site-footer .footer-inner { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 24px;
    }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 4px; }
    .site-nav a { display: block; padding: 10px 0; }
    .header-inner { position: relative; }
    .banner-text-en { font-size: 22px; }
    .banner-text-ur { font-size: 16px; }
    .banner-text-layer { padding: 20px; }
    .page-title, .post-title, .course-title { font-size: 24px; }
}

@media (max-width: 560px) {
    .site-footer .footer-inner { grid-template-columns: 1fr !important; }
    .main-layout { padding: 24px 16px; }
    .site-container { padding: 0 16px; }
    .widget-course-grid, .widget-post-grid { grid-template-columns: 1fr; }
}
