/* =====================================================================
   Dawale theme — public website
   Neutral base + logo red accent. Loaded after the base theme style.css.
   ===================================================================== */
:root {
  --brand: #b3261e;
  --brand-dark: #8c1d17;
  --brand-soft: #fdf1f0;
  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f6f7f9;
  --navy: #1e232b;
  --radius: 14px;
}
body.dw { font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--body); background: #fff; font-size: 15.5px; line-height: 1.65; }
.dw h1, .dw h2, .dw h3, .dw h4, .dw h5 { font-family: 'Poppins', 'Inter', Arial, sans-serif; color: var(--ink); font-weight: 700; }
.dw a { color: var(--brand); }
.dw a:hover, .dw a:focus { color: var(--brand-dark); text-decoration: none; }
.dw img { max-width: 100%; }
.dw .container { max-width: 1200px; width: 100%; }

/* ---------- buttons ---------- */
.dw .dw-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
              border: 2px solid transparent; transition: all .18s; text-decoration: none !important; line-height: 1.2; }
.dw .dw-btn-primary { background: var(--brand); color: #fff !important; }
.dw .dw-btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(179,38,30,.25); }
.dw .dw-btn-ghost { border-color: rgba(255,255,255,.6); color: #fff !important; }
.dw .dw-btn-ghost:hover { background: #fff; color: var(--ink) !important; }
.dw .dw-btn-outline { border-color: var(--line); color: var(--ink) !important; background: #fff; }
.dw .dw-btn-outline:hover { border-color: var(--brand); color: var(--brand) !important; }

/* ---------- top bar ---------- */
.dw-topbar { background: var(--navy); color: #cbd2dc; font-size: 13px; }
.dw-topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.dw-topbar a { color: #cbd2dc !important; }
.dw-topbar a:hover { color: #fff !important; }
.dw-topbar .info span { margin-right: 22px; white-space: nowrap; }
.dw-topbar .info i { color: #f87171; margin-right: 6px; }
.dw-topbar .right { display: flex; align-items: center; gap: 16px; }
.dw-topbar .right .logins a { margin-left: 14px; font-weight: 600; }
.dw-topbar .topicon { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.dw-topbar .topicon li { display: inline-block; }
.dw-topbar .topicon li a { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }

/* ticker */
.dw-ticker { background: var(--brand-soft); border-bottom: 1px solid #f6d5d2; font-size: 13.5px; }
.dw-ticker .container { display: flex; align-items: center; gap: 12px; min-height: 38px; }
.dw-ticker .tag { background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
                  padding: 4px 10px; border-radius: 6px; flex: none; }
.dw-ticker marquee { flex: 1; }
.dw-ticker marquee a { color: var(--ink) !important; margin-right: 40px; font-weight: 500; }
.dw-ticker marquee a b { color: var(--brand); font-weight: 700; margin-right: 6px; }

/* ---------- header / nav ---------- */
.dw-header { margin: 0 !important; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(17,24,39,.04); }
.dw-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 20px; }
.dw-header .dw-logo img { max-height: 58px; width: auto; display: block; }
.dw-nav { display: flex; align-items: center; gap: 4px; }
.dw-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.dw-nav > ul > li { position: relative; }
.dw-nav > ul > li > a { display: block; padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--body) !important; border-radius: 8px; }
.dw-nav > ul > li > a:hover, .dw-nav > ul > li.active > a { color: var(--brand) !important; background: var(--brand-soft); }
.dw-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line);
               border-radius: 12px; box-shadow: 0 14px 30px rgba(17,24,39,.12); list-style: none; padding: 8px; margin: 6px 0 0; z-index: 10; }
.dw-nav > ul > li:hover > .sub, .dw-nav > ul > li.open > .sub { display: block; }
.dw-nav .sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--body) !important; font-size: 14px; font-weight: 500; }
.dw-nav .sub a:hover { background: var(--bg-soft); color: var(--brand) !important; }
.dw-nav .caret-i { font-size: 11px; margin-left: 4px; opacity: .6; }
.dw-nav .cta { margin-left: 10px; padding: 10px 18px; }
.dw-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; font-size: 18px; color: var(--ink); }
.dw-header .header-extras { display: none; } /* old online-course widgets are kept but hidden unless used */

@media (max-width: 991px) {
  .dw-burger { display: inline-flex; align-items: center; justify-content: center; }
  .dw-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
            box-shadow: 0 14px 30px rgba(17,24,39,.10); padding: 10px 16px 18px; flex-direction: column; align-items: stretch; }
  .dw-nav.open { display: flex; }
  .dw-nav > ul { flex-direction: column; align-items: stretch; }
  .dw-nav .sub { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 0 12px; margin: 0; }
  .dw-nav > ul > li.open > .sub { display: block; }
  .dw-nav > ul > li:hover > .sub { display: none; }
  .dw-nav > ul > li.open:hover > .sub { display: block; }
  .dw-nav .cta { margin: 10px 0 0; justify-content: center; }
  .dw-topbar .info span.hide-sm { display: none; }
}

/* ---------- hero ---------- */
.dw-hero { position: relative; color: #fff; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.dw-hero .slides, .dw-hero .slide { position: absolute; inset: 0; }
.dw-hero .slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; transform: scale(1.03); }
.dw-hero .slide.on { opacity: 1; animation: dwZoom 9s ease-out forwards; }
@keyframes dwZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.dw-hero::after { content: ""; position: absolute; inset: 0;
                  background: linear-gradient(100deg, rgba(17,24,39,.90) 0%, rgba(17,24,39,.70) 45%, rgba(17,24,39,.25) 100%); }
.dw-hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 90px; }
.dw-hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
                   border-radius: 30px; padding: 6px 14px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.dw-hero .kicker i { color: #fca5a5; }
.dw-hero h1 { color: #fff; font-size: 50px; line-height: 1.12; margin: 0 0 18px; max-width: 720px; font-weight: 800; }
.dw-hero h1 span { color: #fca5a5; }
.dw-hero p.lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 30px; }
.dw-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dw-hero .dots { position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dw-hero .dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.45); padding: 0; transition: width .2s; }
.dw-hero .dots button.on { width: 28px; background: #fff; }

/* stats strip */
.dw-stats { position: relative; z-index: 5; margin-top: -54px; }
.dw-stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
                  box-shadow: 0 18px 40px rgba(17,24,39,.10); border: 1px solid var(--line); overflow: hidden; }
.dw-stats .cell { padding: 24px 22px; display: flex; gap: 14px; align-items: center; border-left: 1px solid var(--line); }
.dw-stats .cell:first-child { border-left: 0; }
.dw-stats .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex;
                align-items: center; justify-content: center; font-size: 21px; flex: none; }
.dw-stats b { display: block; font-family: 'Poppins', sans-serif; font-size: 19px; color: var(--ink); line-height: 1.2; }
.dw-stats small { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.dw-section { padding: 90px 0; }
.dw-section.soft { background: var(--bg-soft); }
.dw-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.dw-head .eyebrow, .dw .eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 10px; }
.dw-head h2 { font-size: 36px; margin: 0 0 12px; }
.dw-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* about */
.dw-about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.dw-about .pic { position: relative; }
.dw-about .pic img { border-radius: 20px; width: 100%; height: 440px; object-fit: cover; box-shadow: 0 24px 50px rgba(17,24,39,.15); }
.dw-about .pic .badge-card { position: absolute; left: -24px; bottom: 30px; background: #fff; border-radius: 14px; padding: 16px 20px;
                             box-shadow: 0 16px 36px rgba(17,24,39,.15); display: flex; gap: 12px; align-items: center; }
.dw-about .pic .badge-card i { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.dw-about .pic .badge-card b { display: block; color: var(--ink); font-family: 'Poppins', sans-serif; }
.dw-about .pic .badge-card small { color: var(--muted); }
.dw-about h2 { font-size: 34px; margin: 0 0 16px; }
.dw-about .cms p { margin-bottom: 14px; }
.dw-checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.dw-checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.dw-checks li i { color: #16a34a; margin-top: 4px; }

/* feature cards */
.dw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dw-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .2s, box-shadow .2s; }
.dw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(17,24,39,.08); }
.dw-card .ic { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 23px; margin-bottom: 18px; }
.dw-card h4 { font-size: 18.5px; margin: 0 0 8px; }
.dw-card p { color: var(--muted); margin: 0; font-size: 14.8px; }
.ic-red { background: #fdecea; color: #b3261e; } .ic-blue { background: #e0ecff; color: #2563eb; } .ic-green { background: #dcfce7; color: #16a34a; }
.ic-amber { background: #fef3c7; color: #d97706; } .ic-purple { background: #ede9fe; color: #7c3aed; } .ic-teal { background: #ccfbf1; color: #0d9488; }

/* schools */
.dw-schools { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dw-school { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; color: #fff; display: flex; align-items: flex-end;
             background: var(--navy) center/cover no-repeat; }
.dw-school::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.05) 20%, rgba(17,24,39,.92) 100%); }
.dw-school .body { position: relative; padding: 28px; }
.dw-school .tag { display: inline-block; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 10px; margin-bottom: 10px; }
.dw-school h3 { color: #fff; font-size: 23px; margin: 0 0 6px; }
.dw-school p { color: rgba(255,255,255,.82); margin: 0; font-size: 14.5px; }
.dw-school .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,.75); }
.dw-school .meta i { color: #fca5a5; margin-right: 5px; }

/* news & events */
.dw-news { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.dw-post-list { display: grid; gap: 16px; }
.dw-post { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .2s; color: inherit !important; }
.dw-post:hover { box-shadow: 0 14px 30px rgba(17,24,39,.08); }
.dw-post .thumb { width: 150px; height: 108px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-soft); }
.dw-post .date { font-size: 12.5px; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.dw-post h4 { font-size: 16.5px; margin: 4px 0 6px; line-height: 1.35; }
.dw-post p { margin: 0; color: var(--muted); font-size: 14px; }
.dw-events { background: var(--navy); border-radius: 18px; padding: 26px; color: #fff; }
.dw-events h3 { color: #fff; font-size: 20px; margin: 0 0 16px; }
.dw-event { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.1); color: #fff !important; }
.dw-event:first-of-type { border-top: 0; }
.dw-event .cal { width: 58px; flex: none; border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; padding: 8px 0; }
.dw-event .cal b { display: block; font-family: 'Poppins', sans-serif; font-size: 22px; line-height: 1; }
.dw-event .cal small { font-size: 11px; text-transform: uppercase; color: #fca5a5; font-weight: 700; }
.dw-event h5 { color: #fff; margin: 2px 0 4px; font-size: 15px; }
.dw-event span { font-size: 12.5px; color: rgba(255,255,255,.65); }
.dw-empty { color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.dw-events .dw-empty { background: transparent; color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.15); }

/* gallery */
.dw-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.dw-gallery a { position: relative; border-radius: 14px; overflow: hidden; display: block; }
.dw-gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.dw-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dw-gallery a:hover img { transform: scale(1.06); }
.dw-gallery a span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-weight: 600; font-size: 14px;
                     background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* CTA */
.dw-cta { background: linear-gradient(110deg, var(--navy) 0%, #2a303a 60%, var(--brand-dark) 140%); border-radius: 22px; padding: 50px 54px;
          color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.dw-cta h2 { color: #fff; font-size: 32px; margin: 0 0 8px; }
.dw-cta p { margin: 0; color: rgba(255,255,255,.8); font-size: 16px; }

/* contact */
.dw-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; }
.dw-contact .info { display: grid; gap: 14px; align-content: start; }
.dw-contact .row-i { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.dw-contact .row-i i { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.dw-contact .row-i b { display: block; color: var(--ink); }
.dw-contact .row-i span, .dw-contact .row-i a { color: var(--muted) !important; }
.dw-contact iframe { width: 100%; height: 100%; min-height: 360px; border: 0; border-radius: var(--radius); background: #eef0f3; }

/* ---------- inner pages ---------- */
.dw-pagehead { background: var(--navy) center/cover no-repeat; position: relative; color: #fff; padding: 64px 0 56px; }
.dw-pagehead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(17,24,39,.92), rgba(17,24,39,.65)); }
.dw-pagehead .container { position: relative; }
.dw-pagehead h1 { color: #fff; margin: 0 0 8px; font-size: 36px; }
.dw-pagehead .crumb { color: rgba(255,255,255,.7); font-size: 14px; }
.dw-pagehead .crumb a { color: #fff !important; }
.dw-page { padding: 60px 0 80px; }
.dw-page .sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dw-page .sidebar .catetab { background: var(--navy) !important; color: #fff; font-weight: 700; padding: 14px 18px; font-family: 'Poppins', sans-serif; }
.dw-page .newscontent ul { list-style: none; padding: 8px 16px; margin: 0; }
.dw-page .newscontent li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.dw-page .newscontent li a { color: var(--body) !important; font-weight: 500; font-size: 14px; display: block; }
.dw-page .newscontent .date { color: var(--brand); font-weight: 700; font-size: 12px; }
.dw-page .newscontent .date span { margin-left: 4px; }
/* make CMS / form pages match */
.dw .btn-primary, .dw .btn-info, .dw .onlineform .btn, .dw button[type=submit].btn { background: var(--brand) !important; border-color: var(--brand-dark) !important; color: #fff !important; border-radius: 8px; }
.dw .form-control { border-radius: 8px; box-shadow: none; border-color: #d1d5db; min-height: 40px; }
.dw .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.dw .panel, .dw .box { border-radius: 12px; }

/* ---------- footer ---------- */
.dw-footer { background: #13161b; color: #aab2bf; padding: 70px 0 0; font-size: 14.5px; }
.dw-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.dw-footer h4 { color: #fff; font-size: 16px; margin: 0 0 18px; }
.dw-footer .flogo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.dw-footer .flogo img { max-height: 48px; display: block; }
.dw-footer ul { list-style: none; margin: 0; padding: 0; }
.dw-footer li { margin-bottom: 9px; }
.dw-footer a { color: #aab2bf !important; }
.dw-footer a:hover { color: #fff !important; }
.dw-footer .ci { display: flex; gap: 10px; margin-bottom: 12px; }
.dw-footer .ci i { color: #f87171; margin-top: 4px; width: 16px; }
.dw-footer .social { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 8px; }
.dw-footer .social li a, .dw-footer .topicon li a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07);
                                                  align-items: center; justify-content: center; }
.dw-footer .topicon { list-style: none; padding: 0; display: flex; gap: 8px; margin: 14px 0 0; }
.dw-footer .bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 20px 0; display: flex; justify-content: space-between;
                     flex-wrap: wrap; gap: 10px; font-size: 13px; color: #7d8695; }

/* cookie consent (from base theme) */
.dw .cookieConsent { background: var(--navy); border-radius: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .dw-hero { min-height: 480px; }
  .dw-hero h1 { font-size: 36px; }
  .dw-stats .grid { grid-template-columns: 1fr 1fr; }
  .dw-stats .cell:nth-child(3) { border-left: 0; }
  .dw-stats .cell { border-top: 1px solid var(--line); }
  .dw-about, .dw-news, .dw-contact, .dw-schools { grid-template-columns: 1fr; }
  .dw-about .pic img { height: 320px; }
  .dw-about .pic .badge-card { left: 16px; }
  .dw-cards { grid-template-columns: 1fr 1fr; }
  .dw-gallery { grid-template-columns: repeat(2, 1fr); }
  .dw-footer .cols { grid-template-columns: 1fr 1fr; }
  .dw-section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .dw-hero h1 { font-size: 29px; }
  .dw-hero p.lead { font-size: 16px; }
  .dw-cards, .dw-checks { grid-template-columns: 1fr; }
  .dw-stats .grid { grid-template-columns: 1fr; }
  .dw-stats .cell { border-left: 0; }
  .dw-head h2, .dw-about h2 { font-size: 27px; }
  .dw-post .thumb { width: 96px; height: 84px; }
  .dw-cta { padding: 34px 26px; }
  .dw-footer .cols { grid-template-columns: 1fr; }
  .dw-topbar .info span:not(:first-child) { display: none; }
}
