/* DMH Institute of Higher Education — Layout 2 brand layer */
:root {
    --primary: #ed1c2e !important;
    --primary-hover: #bd1021 !important;
    --accent: #ffd900 !important;
    --dmh-navy: #100663;
    --dmh-blue: #0877bd;
    --dmh-cyan: #08a9e6;
    --bg-main: #fffef9 !important;
    --bg-section: #f6f8fc !important;
    --text-dark: #15172f !important;
    --text-muted: #667085 !important;
    --border: #e5e9f2 !important;
    --shadow-sm: 0 8px 24px rgba(16, 6, 99, .07) !important;
    --shadow-md: 0 22px 55px rgba(16, 6, 99, .14) !important;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background:
        radial-gradient(circle at 5% 12%, rgba(255, 217, 0, .11), transparent 24rem),
        var(--bg-main) !important;
    color: var(--text-dark) !important;
}

::selection { background: var(--accent); color: var(--dmh-navy); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--primary-hover)) !important; }

/* Brand navigation */
.navbar {
    min-height: 96px;
    padding: 10px clamp(20px, 4vw, 64px) !important;
    border: 0 !important;
    border-top: 5px solid var(--accent) !important;
    border-bottom: 1px solid rgba(16, 6, 99, .10) !important;
    box-shadow: 0 10px 35px rgba(16, 6, 99, .08) !important;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, .96) !important;
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: min(31vw, 390px);
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0 48%, var(--accent) 48% 72%, var(--dmh-cyan) 72%);
}

.logo-area {
    gap: 13px !important;
    min-width: 240px;
    color: var(--dmh-navy) !important;
    text-transform: none !important;
}

.dmh-logo {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
    flex: 0 0 74px;
    border-radius: 14px;
    background: #fff;
}

.dmh-brand-copy { display: grid; gap: 2px; line-height: 1; }
.dmh-brand-copy strong { font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--dmh-navy); }
.dmh-brand-copy small { font-size: 9px; font-weight: 700; letter-spacing: .9px; color: var(--primary); text-transform: uppercase; white-space: nowrap; }
.dmh-brand-copy em { color: var(--dmh-blue); font-style: normal; }

.nav-wrapper { gap: clamp(12px, 2vw, 28px) !important; }
.nav-menu { gap: 2px !important; }
.nav-menu a {
    border-radius: 999px !important;
    color: #30334e !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .25px;
    padding: 10px 14px !important;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--primary) !important; background: rgba(237, 28, 46, .07) !important; }

.btn-login,
.btn-slider,
.btn-submit {
    border: 0 !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--primary), #ff3544) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(237, 28, 46, .22);
    letter-spacing: .3px;
}
.btn-login:hover,
.btn-slider:hover,
.btn-submit:hover {
    background: var(--dmh-navy) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.menu-toggle { color: var(--dmh-navy) !important; }

/* SFT King-inspired DMH.lk entry experience */
.dmh-topbar { background: #09002e; color: #fff; min-height: 38px; position: relative; z-index: 1002; }
.dmh-topbar-inner { width: min(92%, 1380px); min-height: 38px; margin: auto; display: flex; align-items: center; gap: 9px; }
.dmh-topbar a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; transition: .25s; }
.dmh-topbar a:hover { background: rgba(255,255,255,.12); color: var(--accent); }
.dmh-topbar-spacer { flex: 1; }
.dmh-topbar-call { background: var(--primary); }
.dmh-brand-copy strong span { color: var(--primary); }
.dmh-entry-hero { min-height: calc(100vh - 134px); position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: 60px 20px 36px; color: #fff; background: radial-gradient(circle at 50% 42%, #28177c 0, #100663 43%, #080026 100%); }
.dmh-entry-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.dmh-entry-hero::after { content: ''; position: absolute; left: 50%; bottom: -42%; width: 110%; aspect-ratio: 1; transform: translateX(-50%); z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(237,28,46,.26), transparent 64%); }
.dmh-entry-orb { position: absolute; border-radius: 50%; filter: blur(1px); z-index: -1; animation: dmhFloat 8s ease-in-out infinite; }
.dmh-entry-orb-one { width: 320px; height: 320px; left: -130px; top: 12%; background: rgba(237,28,46,.18); }
.dmh-entry-orb-two { width: 250px; height: 250px; right: -80px; bottom: 8%; background: rgba(255,217,0,.12); animation-delay: -4s; }
.dmh-entry-content { width: min(100%, 1050px); margin: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.dmh-entry-logo { width: clamp(92px, 10vw, 140px); aspect-ratio: 1; object-fit: contain; border-radius: 50%; margin-bottom: 12px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.3)); animation: dmhLogoIn .9s cubic-bezier(.2,.8,.2,1) both; }
.dmh-entry-kicker { color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: 3px; font-weight: 800; margin: 0 0 4px; }
.dmh-entry-content h1 { margin: 0; line-height: .94; font-size: clamp(64px, 10vw, 132px); font-weight: 900; letter-spacing: -6px; text-shadow: 0 16px 35px rgba(0,0,0,.24); }
.dmh-entry-content h1 span { color: #fff; }
.dmh-entry-content h1 strong { color: var(--primary); font-weight: 900; }
.dmh-entry-tagline { max-width: 810px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 24px); line-height: 1.65; font-weight: 600; }
.dmh-entry-tagline b { white-space: nowrap; color: #fff; }
.dmh-entry-tagline b i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; background: #ff263a; box-shadow: 0 0 0 rgba(255,38,58,.6); animation: dmhLive 1.5s infinite; }
.dmh-entry-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 13px; width: min(100%, 820px); margin-top: 31px; }
.dmh-entry-btn { min-height: 58px; border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font: 700 15px/1.45 'Poppins','Noto Sans Sinhala',sans-serif; transition: transform .25s, box-shadow .25s, background .25s; }
.dmh-entry-btn:hover { transform: translateY(-4px); }
.dmh-entry-btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #ff4050); box-shadow: 0 13px 30px rgba(237,28,46,.4); animation: dmhAttention 2.2s infinite; }
.dmh-entry-btn-light { color: var(--dmh-navy); background: #fff; box-shadow: 0 13px 30px rgba(0,0,0,.2); }
.dmh-entry-btn-guide { grid-column: 1 / -1; color: #fff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.23); backdrop-filter: blur(10px); }
.dmh-entry-btn-guide i { color: #ff3044; font-size: 20px; }
.dmh-scroll-cue { margin-top: 28px; color: #fff; text-decoration: none; display: grid; place-items: center; gap: 0; }
.dmh-scroll-cue span { color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.dmh-scroll-cue i { height: 9px; color: var(--accent); font-size: 16px; opacity: .2; animation: dmhArrow 1.5s infinite; }
.dmh-scroll-cue i:nth-of-type(2) { animation-delay: .16s; }
.dmh-scroll-cue i:nth-of-type(3) { animation-delay: .32s; }
.dmh-video-modal { display: none; position: fixed; inset: 0; z-index: 3000; padding: 22px; background: rgba(3,0,20,.9); backdrop-filter: blur(14px); place-items: center; }
.dmh-video-modal.open { display: grid; }
.dmh-video-frame { width: min(100%, 1000px); aspect-ratio: 16 / 9; border: 4px solid #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.dmh-video-frame iframe { width: 100%; height: 100%; border: 0; }
.dmh-video-close { position: fixed; right: 24px; top: 24px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: #fff; background: var(--primary); font-size: 20px; cursor: pointer; }
.dmh-teachers-section { position: relative; overflow: hidden; background: linear-gradient(180deg, #fffef9, #f6f8fc) !important; }
.dmh-teachers-section::before { content: 'DMH.lk'; position: absolute; right: -20px; top: 40px; color: rgba(16,6,99,.025); font-size: clamp(90px, 16vw, 230px); line-height: 1; font-weight: 900; pointer-events: none; }
.dmh-teacher-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.dmh-teacher-card { min-height: 330px; position: relative; overflow: hidden; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 34px 24px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-sm); transition: .35s; }
.dmh-teacher-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--dmh-cyan)); }
.dmh-teacher-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-md); }
.dmh-teacher-photo { width: 144px; height: 144px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent), var(--dmh-cyan)); margin-bottom: 17px; }
.dmh-teacher-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border: 5px solid #fff; border-radius: 50%; }
.dmh-teacher-subject { color: #a41020; background: rgba(237,28,46,.08); padding: 6px 15px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 10px; }
.dmh-teacher-card h3 { margin: 0 0 12px; color: var(--dmh-navy); font-size: 20px; font-weight: 800; text-transform: capitalize; }
.dmh-teacher-link { margin-top: auto; color: var(--primary); font-size: 13px; font-weight: 800; }
.dmh-teacher-link i { transition: transform .25s; }
.dmh-teacher-card:hover .dmh-teacher-link i { transform: translateX(5px); }
@keyframes dmhFloat { 50% { transform: translateY(-24px) scale(1.06); } }
@keyframes dmhLogoIn { from { opacity: 0; transform: translateY(-22px) scale(.8); } }
@keyframes dmhLive { 70% { box-shadow: 0 0 0 10px rgba(255,38,58,0); } }
@keyframes dmhAttention { 50% { box-shadow: 0 13px 30px rgba(237,28,46,.4), 0 0 0 8px rgba(237,28,46,0); } }
@keyframes dmhArrow { 0%,100% { opacity: .18; transform: translateY(-3px); } 50% { opacity: 1; transform: translateY(3px); } }

/* Exact landing hierarchy used by the reference UI */
.dmh-home { background: #020617 !important; }
.dmh-home > .navbar, .dmh-home > .news-ticker-wrap { display: none; }
.dmh-home .dmh-topbar,
.dmh-profile-page .dmh-topbar,
.dmh-sft-page .dmh-topbar { position: absolute; inset: 0 0 auto; z-index: 20; height: 0; min-height: 0; background: transparent; }
.dmh-home .dmh-topbar-inner,
.dmh-profile-page .dmh-topbar-inner,
.dmh-sft-page .dmh-topbar-inner { position: relative; width: 100%; height: 0; min-height: 0; }
.dmh-payment-pill { position: absolute; top: 24px; left: 24px; color: #f87171 !important; background: rgba(15,23,42,.86); border: 1px solid rgba(239,68,68,.3); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.28); text-transform: uppercase; letter-spacing: 1px; }
.dmh-social-stack { position: absolute; top: 24px; right: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.dmh-social-icons { display: flex; align-items: center; gap: 10px; }
.dmh-home .dmh-social-icons a,
.dmh-profile-page .dmh-social-icons a,
.dmh-sft-page .dmh-social-icons a { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; color: #94a3b8; background: rgba(15,23,42,.9); border: 1px solid rgba(127,29,29,.45); }
.dmh-home .dmh-social-icons a:hover,
.dmh-profile-page .dmh-social-icons a:hover,
.dmh-sft-page .dmh-social-icons a:hover { color: #f87171; transform: scale(1.1); }
.dmh-home .dmh-social-icons .dmh-call-circle,
.dmh-profile-page .dmh-social-icons .dmh-call-circle,
.dmh-sft-page .dmh-social-icons .dmh-call-circle { color: #f87171; background: rgba(69,10,10,.88); }
.dmh-home .dmh-phone-label,
.dmh-profile-page .dmh-phone-label,
.dmh-sft-page .dmh-phone-label { padding: 4px 10px; color: #94a3b8; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.05); font-size: 11px; letter-spacing: 2px; }
.dmh-floating-home { position: absolute; top: 24px; left: 185px; width: 42px; height: 42px; padding: 0 !important; justify-content: center; color: #94a3b8 !important; background: rgba(15,23,42,.86); border: 1px solid rgba(127,29,29,.3); border-radius: 50% !important; backdrop-filter: blur(12px); }

/* Shared inner-page UI for Teachers, Contact and authentication pages. */
.dmh-sft-page { min-height: 100vh; color: #e2e8f0 !important; background: #020617 !important; }
.dmh-sft-page::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 90% 0,rgba(220,38,38,.18),transparent 35rem),linear-gradient(rgba(71,85,105,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(71,85,105,.05) 1px,transparent 1px); background-size: auto,64px 64px,64px 64px; }
.dmh-sft-page > .navbar { display: none; }
.dmh-sft-page > .section-wrapper { padding-top: 125px !important; background: transparent !important; }
.dmh-sft-page .section-title { color: #fff !important; font-size: clamp(32px,5vw,54px); text-transform: none; letter-spacing: -1px; }
.dmh-sft-page .section-title::after { height: 4px; background: linear-gradient(90deg,#7f1d1d,#ef4444) !important; box-shadow: 0 0 18px rgba(220,38,38,.4); }
.dmh-sft-page .section-desc { color: #94a3b8; }

.dmh-teachers-page .grid { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 24px; }
.dmh-teachers-page .card { min-height: 350px; padding: 38px 24px 28px; overflow: hidden; color: #e2e8f0 !important; background: rgba(15,23,42,.62) !important; border: 1px solid rgba(127,29,29,.3) !important; border-radius: 24px !important; box-shadow: 0 18px 45px rgba(0,0,0,.24) !important; backdrop-filter: blur(12px); }
.dmh-teachers-page .card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,#7f1d1d,#ef4444,#7f1d1d); }
.dmh-teachers-page .card:hover { transform: translateY(-8px); border-color: rgba(239,68,68,.62) !important; background: rgba(15,23,42,.86) !important; box-shadow: 0 26px 65px rgba(0,0,0,.38),0 0 30px rgba(220,38,38,.09) !important; }
.dmh-teachers-page .teacher-img-wrapper { width: 160px; height: 160px; padding: 6px; border: 0; background: linear-gradient(135deg,#7f1d1d,#ef4444,#450a0a); box-shadow: 0 16px 45px rgba(0,0,0,.35); }
.dmh-teachers-page .teacher-img-wrapper img { border: 5px solid #0f172a; }
.dmh-teachers-page .teacher-subject { color: #fca5a5; background: rgba(127,29,29,.35); border: 1px solid rgba(239,68,68,.2); }
.dmh-teachers-page .teacher-name { color: #fff; text-transform: capitalize; }
.dmh-teachers-page .teacher-contact { color: #cbd5e1; background: rgba(2,6,23,.55); border-color: rgba(127,29,29,.3); border-radius: 999px; }
.dmh-teachers-page .teacher-contact i { color: #f87171; }
.dmh-teachers-page .card > span:last-child { color: #f87171 !important; }
.dmh-teachers-page > footer,
.dmh-contact-page > footer { background: #000 !important; border-top: 1px solid rgba(127,29,29,.3) !important; }

.dmh-contact-page .page-header { padding-top: 125px !important; background: transparent !important; border: 0 !important; }
.dmh-contact-page .page-header::before { color: rgba(248,113,113,.08); }
.dmh-contact-page .page-header h1 { color: #fff !important; font-size: clamp(36px,6vw,64px); text-transform: none; }
.dmh-contact-page .page-header p { color: #94a3b8; }
.dmh-contact-page .info-card,
.dmh-contact-page .form-card { color: #e2e8f0; background: rgba(15,23,42,.64) !important; border: 1px solid rgba(127,29,29,.3) !important; border-radius: 24px !important; box-shadow: 0 18px 45px rgba(0,0,0,.23) !important; backdrop-filter: blur(12px); }
.dmh-contact-page .info-card:hover { border-color: rgba(239,68,68,.6) !important; transform: translateY(-6px); }
.dmh-contact-page .info-icon { color: #f87171; background: rgba(127,29,29,.32); border-radius: 16px; }
.dmh-contact-page .info-details h3,
.dmh-contact-page .form-card h2,
.dmh-contact-page .form-group label { color: #fff; }
.dmh-contact-page .info-details p,
.dmh-contact-page .info-details a,
.dmh-contact-page .form-card p { color: #94a3b8; }
.dmh-contact-page .form-group input,
.dmh-contact-page .form-group textarea { color: #fff; background: rgba(2,6,23,.7); border-color: rgba(127,29,29,.32); border-radius: 14px; }
.dmh-contact-page .form-group input:focus,
.dmh-contact-page .form-group textarea:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(220,38,38,.14); }

.dmh-auth-page .layout-wrapper { min-height: 100svh; padding: 95px 24px 45px; gap: 24px; background: transparent !important; }
.dmh-auth-page .brand-section { overflow: hidden; border: 1px solid rgba(127,29,29,.3); border-radius: 32px; background: radial-gradient(circle at 30% 30%,rgba(220,38,38,.25),transparent 42%),#020617 !important; box-shadow: 0 28px 75px rgba(0,0,0,.34); }
.dmh-auth-page .brand-section::before { opacity: .11; }
.dmh-auth-page .brand-header-top h2,
.dmh-auth-page .brand-content-bottom h1 { color: #fff !important; }
.dmh-auth-page .brand-title-mini,
.dmh-auth-page .brand-content-bottom h1 span { color: #f87171 !important; }
.dmh-auth-page .brand-content-bottom p { color: #94a3b8 !important; }
.dmh-auth-page .login-section { background: transparent !important; }
.dmh-auth-page .login-box { color: #e2e8f0; background: rgba(15,23,42,.68) !important; border: 1px solid rgba(127,29,29,.32) !important; border-radius: 28px !important; box-shadow: 0 24px 65px rgba(0,0,0,.32) !important; backdrop-filter: blur(14px); }
.dmh-auth-page .login-box::before { background: linear-gradient(90deg,#7f1d1d,#ef4444,#7f1d1d) !important; }
.dmh-auth-page .login-header h2,
.dmh-auth-page .form-group label { color: #fff !important; }
.dmh-auth-page .login-header p,
.dmh-auth-page .register-link { color: #94a3b8 !important; }
.dmh-auth-page .form-group input,
.dmh-auth-page .form-group select { color: #fff !important; background: rgba(2,6,23,.72) !important; border-color: rgba(127,29,29,.34) !important; }
.dmh-auth-page .form-group input:focus,
.dmh-auth-page .form-group select:focus { border-color: #ef4444 !important; box-shadow: 0 0 0 3px rgba(220,38,38,.14) !important; }
.dmh-auth-page .login-btn { background: linear-gradient(90deg,#b91c1c,#dc2626,#e11d48) !important; border: 0 !important; box-shadow: 0 12px 30px rgba(127,29,29,.32) !important; }
.dmh-auth-page .register-link a { color: #f87171 !important; }
.dmh-auth-page .theme-toggle-wrapper { top: 105px; right: 42px; }
.dmh-home .dmh-entry-hero { min-height: 100svh; padding: 70px 20px 42px; background: #020617; }
.dmh-home .dmh-entry-hero::before { opacity: .1; background-size: 64px 64px; mask-image: none; }
.dmh-home .dmh-entry-hero::after { left: auto; right: -20%; bottom: auto; top: -35%; transform: none; width: 72%; background: radial-gradient(circle, rgba(220,38,38,.26), transparent 65%); }
.dmh-home .dmh-entry-content { max-width: 1180px; }
.dmh-entry-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 34px; padding: 9px 22px; border-radius: 999px; color: #fca5a5; background: rgba(127,29,29,.24); border: 1px solid rgba(239,68,68,.3); letter-spacing: 1.7px; backdrop-filter: blur(10px); }
.dmh-entry-kicker > i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px #ef4444; animation: dmhLive 1.5s infinite; }
.dmh-entry-brand { display: flex; align-items: center; justify-content: center; gap: clamp(15px,3vw,34px); }
.dmh-entry-brand .dmh-entry-logo { width: clamp(82px, 10vw, 138px); margin: 0; border-radius: 50%; }
.dmh-home .dmh-entry-content h1 { font-size: clamp(64px, 10vw, 140px); letter-spacing: -7px; }
.dmh-home .dmh-entry-content h1 strong { background: linear-gradient(#ef4444,#dc2626,#7f1d1d); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 25px rgba(220,38,38,.58)); }
.dmh-home .dmh-entry-tagline { color: #cbd5e1; max-width: 760px; margin-top: 28px; font-size: clamp(15px,1.7vw,21px); }
.dmh-enter-btn { position: relative; isolation: isolate; overflow: hidden; margin-top: 40px; min-width: 182px; min-height: 58px; padding: 12px 18px 12px 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; color: #fff; text-decoration: none; text-transform: uppercase; letter-spacing: 2px; font-weight: 900; background: linear-gradient(90deg,#b91c1c,#dc2626,#e11d48); border: 1px solid rgba(252,165,165,.34); box-shadow: 0 12px 35px rgba(220,38,38,.34); transition: .3s; }
.dmh-enter-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 20% 15%,rgba(255,255,255,.4),transparent 42%); }
.dmh-enter-btn::after { content: ''; position: absolute; inset-block: 0; left: -55%; width: 45%; transform: skewX(-22deg); background: linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent); animation: dmhShine 2.5s infinite; }
.dmh-enter-btn i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); }
.dmh-enter-btn:hover { transform: translateY(-4px) scale(1.03); }
.dmh-home .dmh-scroll-cue { margin-top: 24px; color: #64748b; }
.dmh-home .dmh-scroll-cue i { height: 20px; margin-bottom: -11px; color: #64748b; font-size: 34px; }
.dmh-enter-panel { padding: 80px 20px; background: #020617; border-top: 1px solid rgba(127,29,29,.2); }
.dmh-enter-panel-inner { width: min(100%, 1000px); min-height: 500px; margin: auto; padding: 70px 40px; border-radius: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; background: radial-gradient(circle at center,rgba(127,29,29,.35),transparent 68%), #000; border: 1px solid rgba(127,29,29,.35); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.dmh-enter-label { padding: 7px 16px; border-radius: 999px; color: #e2e8f0; background: rgba(30,41,59,.8); border: 1px solid #334155; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.dmh-enter-panel h2 { max-width: 780px; margin: 22px 0 10px; font-size: clamp(30px,5vw,58px); line-height: 1.2; }
.dmh-enter-panel h2 b { color: #dc2626; }
.dmh-enter-panel p { color: #cbd5e1; font-size: 18px; }
@keyframes dmhShine { 0%,45% { left:-55%; } 75%,100% { left:125%; } }

/* Carry the same slate/red visual system through every home-page section. */
.dmh-home .section-wrapper,
.dmh-home .section-wrapper.bg-alt,
.dmh-home .dmh-about-section,
.dmh-home .dmh-classes-section,
.dmh-home .dmh-teachers-section {
    position: relative;
    background: #020617 !important;
    color: #fff;
    border-top: 1px solid rgba(127,29,29,.16);
}
.dmh-home .section-wrapper:nth-of-type(even) { background: #050816 !important; }
.dmh-home .section-wrapper::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .055; background-image: linear-gradient(#475569 1px,transparent 1px),linear-gradient(90deg,#475569 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom,transparent,#000 20%,#000 80%,transparent); }
.dmh-home .section-wrapper > .container { position: relative; z-index: 1; }
.dmh-home .section-header { border-bottom-color: rgba(148,163,184,.17) !important; }
.dmh-home .section-title { color: #fff !important; font-size: clamp(28px,4vw,48px) !important; font-weight: 800 !important; letter-spacing: -.8px !important; }
.dmh-home .section-title::after { background: linear-gradient(90deg,#dc2626 0 72%,#7f1d1d 72%) !important; box-shadow: 0 0 18px rgba(220,38,38,.45); }
.dmh-home .view-all-btn { color: #f87171 !important; }
.dmh-home .view-all-btn:hover { color: #fff !important; }

.dmh-home .dmh-about-grid { padding: 34px; border: 1px solid rgba(127,29,29,.28); border-radius: 32px; background: rgba(15,23,42,.42); box-shadow: 0 28px 70px rgba(0,0,0,.28); }
.dmh-home .dmh-about-visual { background: radial-gradient(circle at 50% 35%,rgba(220,38,38,.3),transparent 42%),linear-gradient(145deg,#111827,#020617); border-color: rgba(127,29,29,.35); }
.dmh-home .dmh-about-visual::before { background: rgba(220,38,38,.18); }
.dmh-home .dmh-about-visual::after { background: rgba(127,29,29,.2); }
.dmh-home .dmh-about-logo { background: #fff; border: 1px solid rgba(248,113,113,.24); box-shadow: 0 28px 65px rgba(0,0,0,.45); }
.dmh-home .dmh-since-card { background: linear-gradient(135deg,#991b1b,#dc2626); box-shadow: 0 18px 35px rgba(127,29,29,.35); }
.dmh-home .dmh-since-card strong { color: #fff; }
.dmh-home .dmh-kicker { color: #f87171; }
.dmh-home .dmh-about-copy h2 { color: #fff; }
.dmh-home .dmh-about-copy > p { color: #94a3b8; }
.dmh-home .dmh-about-points { color: #cbd5e1; }
.dmh-home .dmh-about-points i { color: #ef4444; }
.dmh-home .dmh-text-link { color: #fca5a5; }
.dmh-home .dmh-home-stats { background: linear-gradient(90deg,#0f172a,#111827); border: 1px solid rgba(127,29,29,.28); box-shadow: 0 24px 50px rgba(0,0,0,.42); }
.dmh-home .dmh-home-stats strong { color: #f87171; }

.dmh-home .card,
.dmh-home .dmh-feature-card,
.dmh-home .dmh-testimonial,
.dmh-home .dmh-faq,
.dmh-home .dmh-teacher-card {
    color: #e2e8f0;
    background: rgba(15,23,42,.62) !important;
    border: 1px solid rgba(127,29,29,.28) !important;
    border-radius: 24px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.2) !important;
    backdrop-filter: blur(12px);
}
.dmh-home .card:hover,
.dmh-home .dmh-feature-card:hover,
.dmh-home .dmh-testimonial:hover,
.dmh-home .dmh-teacher-card:hover { transform: translateY(-7px); border-color: rgba(239,68,68,.58) !important; background: rgba(15,23,42,.85) !important; box-shadow: 0 24px 60px rgba(0,0,0,.36),0 0 32px rgba(220,38,38,.09) !important; }
.dmh-home .dmh-class-image { background-color: #0f172a; }
.dmh-home .dmh-class-image::after { background: linear-gradient(0deg,rgba(2,6,23,.9),transparent 70%); }
.dmh-home .dmh-class-image span { color: #fff; background: #b91c1c; }
.dmh-home .dmh-class-body h3,
.dmh-home .dmh-class-action strong { color: #fff; }
.dmh-home .dmh-class-body > p,
.dmh-home .dmh-class-meta { color: #94a3b8; }
.dmh-home .dmh-class-meta { border-color: rgba(148,163,184,.13); }
.dmh-home .dmh-class-action a { background: linear-gradient(90deg,#b91c1c,#dc2626); }

.dmh-home .dmh-teachers-section::before { color: rgba(220,38,38,.035); }
.dmh-home .dmh-teacher-card::before { height: 4px; background: linear-gradient(90deg,#7f1d1d,#ef4444,#7f1d1d); }
.dmh-home .dmh-teacher-photo { background: linear-gradient(135deg,#7f1d1d,#ef4444,#450a0a); }
.dmh-home .dmh-teacher-photo img { border-color: #0f172a; }
.dmh-home .dmh-teacher-subject { color: #fca5a5; background: rgba(127,29,29,.3); border: 1px solid rgba(239,68,68,.18); }
.dmh-home .dmh-teacher-card h3 { color: #fff; }
.dmh-home .dmh-teacher-link { color: #f87171; }

.dmh-home .event-img-wrapper { background-color: #111827; }
.dmh-home .event-content h3 { color: #fff; }
.dmh-home .event-content p,
.dmh-home .event-meta { color: #94a3b8; }
.dmh-home .event-date-badge { color: #fff !important; background: #b91c1c !important; }
.dmh-home .btn-read-more { color: #f87171 !important; }

.dmh-home .dmh-feature-card { text-align: center; padding: 34px 28px; transition: .35s; }
.dmh-home .dmh-feature-card > i { margin-inline: auto; color: #f87171; background: rgba(127,29,29,.3); border: 1px solid rgba(239,68,68,.2); }
.dmh-home .dmh-feature-card h3 { color: #fff; }
.dmh-home .dmh-feature-card p { color: #94a3b8; }

.dmh-home .dmh-gallery-preview a { border: 1px solid rgba(127,29,29,.35); background: #0f172a; box-shadow: 0 18px 40px rgba(0,0,0,.24); }
.dmh-home .dmh-gallery-preview span { background: linear-gradient(transparent,rgba(2,6,23,.96)); }
.dmh-home .dmh-testimonial > i { color: #f87171; }
.dmh-home .dmh-testimonial > p { color: #94a3b8; }
.dmh-home .dmh-testimonial footer { color: #fff !important; }
.dmh-home .dmh-testimonial footer span { color: #f87171; }
.dmh-home .dmh-faq summary { color: #fff; }
.dmh-home .dmh-faq summary i { color: #f87171; }
.dmh-home .dmh-faq > p { color: #94a3b8; border-top: 1px solid rgba(148,163,184,.1); padding-top: 18px; }

.dmh-home > footer { background: #000 !important; border-top: 1px solid rgba(127,29,29,.28) !important; }
.dmh-home .footer-logo { background: linear-gradient(90deg,#ef4444,#be123c); background-clip: text; -webkit-background-clip: text; color: transparent !important; font-weight: 900; }
.dmh-home .footer-logo::before { border-radius: 50%; background-color: #fff; }
.dmh-home .footer-logo::after { color: #64748b; }
.dmh-home .footer-contacts i { color: #f87171 !important; }
.dmh-home .footer-bottom { border-color: #111827; color: #475569; }

/* Teacher profile — same SFT-inspired dark/glass visual language. */
.dmh-profile-page { background: #020617 !important; color: #e2e8f0 !important; }
.dmh-profile-page > .navbar { display: none; }
.dmh-profile-page::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 90% 0,rgba(220,38,38,.18),transparent 35rem),linear-gradient(rgba(71,85,105,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(71,85,105,.045) 1px,transparent 1px); background-size: auto,64px 64px,64px 64px; }
.dmh-profile-page .navbar { min-height: 82px; padding-block: 7px !important; border-top: 0 !important; border-bottom: 1px solid rgba(127,29,29,.28) !important; background: rgba(2,6,23,.88) !important; box-shadow: 0 14px 40px rgba(0,0,0,.26) !important; }
.dmh-profile-page .navbar::after { background: linear-gradient(90deg,#7f1d1d,#ef4444,#7f1d1d); }
.dmh-profile-page .dmh-logo { width: 62px; height: 62px; flex-basis: 62px; border-radius: 50%; }
.dmh-profile-page .dmh-brand-copy strong { color: #fff; }
.dmh-profile-page .dmh-brand-copy strong span { color: #ef4444; }
.dmh-profile-page .dmh-brand-copy small { color: #f87171; }
.dmh-profile-page .nav-menu a { color: #cbd5e1 !important; }
.dmh-profile-page .nav-menu a:hover,
.dmh-profile-page .nav-menu a.active { color: #fff !important; background: rgba(127,29,29,.35) !important; }
.dmh-profile-page .menu-toggle { color: #fff !important; }
.dmh-profile-page .section-wrapper { padding-top: 118px !important; background: transparent !important; }
.dmh-profile-page .crumb { color: #94a3b8; }
.dmh-profile-page .crumb:hover { color: #f87171; }
.dmh-profile-page .profile-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(34px,5vw,68px); border: 1px solid rgba(127,29,29,.35); border-top: 0; border-radius: 32px; color: #fff; background: radial-gradient(circle at 15% 20%,rgba(220,38,38,.23),transparent 36%),rgba(15,23,42,.65); box-shadow: 0 30px 80px rgba(0,0,0,.36); backdrop-filter: blur(14px); }
.dmh-profile-page .profile-hero::before { content: 'DMH.lk'; position: absolute; z-index: -1; right: -14px; bottom: -22px; color: rgba(248,113,113,.035); font-size: clamp(80px,15vw,190px); line-height: 1; font-weight: 900; }
.dmh-profile-page .profile-photo { width: clamp(170px,18vw,230px); height: clamp(170px,18vw,230px); padding: 6px; border: 0; background: linear-gradient(135deg,#7f1d1d,#ef4444,#450a0a); box-shadow: 0 18px 55px rgba(0,0,0,.42),0 0 35px rgba(220,38,38,.16); }
.dmh-profile-page .profile-photo img { border: 6px solid #0f172a; }
.dmh-profile-page .teacher-subject { color: #fca5a5; background: rgba(127,29,29,.35); border: 1px solid rgba(239,68,68,.24); }
.dmh-profile-page .profile-info h1 { color: #fff; font-size: clamp(34px,5vw,62px); letter-spacing: -1.5px; text-transform: capitalize; }
.dmh-profile-page .profile-info .bio { color: #94a3b8; }
.dmh-profile-page .profile-contacts a,
.dmh-profile-page .profile-contacts span { color: #cbd5e1; background: rgba(15,23,42,.72); border-color: rgba(127,29,29,.36); border-radius: 999px; }
.dmh-profile-page .profile-contacts i { color: #f87171; }
.dmh-profile-page .profile-contacts a:hover { color: #fff; background: #b91c1c; border-color: #ef4444; }
.dmh-profile-page .section-block { position: relative; padding: 52px 0 10px; }
.dmh-profile-page .section-block + .section-block { border-top: 1px solid rgba(127,29,29,.18); }
.dmh-profile-page .section-title { color: #fff !important; font-size: clamp(28px,4vw,45px); text-transform: none; letter-spacing: -.7px; }
.dmh-profile-page .section-title::after { height: 4px; background: linear-gradient(90deg,#7f1d1d,#ef4444) !important; box-shadow: 0 0 16px rgba(220,38,38,.38); }
.dmh-profile-page .section-desc { color: #94a3b8; }
.dmh-profile-page .card,
.dmh-profile-page .empty-state { overflow: hidden; color: #e2e8f0; background: rgba(15,23,42,.62); border: 1px solid rgba(127,29,29,.3); border-top: 1px solid rgba(127,29,29,.3); border-radius: 24px; box-shadow: 0 18px 45px rgba(0,0,0,.22); backdrop-filter: blur(12px); }
.dmh-profile-page .card:hover { transform: translateY(-8px); border-color: rgba(239,68,68,.6); box-shadow: 0 26px 65px rgba(0,0,0,.38),0 0 30px rgba(220,38,38,.08); }
.dmh-profile-page .card-img { color: #f87171; background-color: #0f172a; border-color: rgba(148,163,184,.1); }
.dmh-profile-page .card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(2,6,23,.66),transparent 68%); pointer-events: none; }
.dmh-profile-page .card-img { position: relative; }
.dmh-profile-page .card-head h3 { color: #fff; }
.dmh-profile-page .card-meta,
.dmh-profile-page .card-body p { color: #94a3b8; }
.dmh-profile-page .badge-free { color: #fff; background: #b91c1c; }
.dmh-profile-page .badge-price { background: #7f1d1d; }
.dmh-profile-page .card-btn { border: 0; border-radius: 999px; background: linear-gradient(90deg,#b91c1c,#dc2626); box-shadow: 0 10px 24px rgba(127,29,29,.3); }
.dmh-profile-page .card-btn:hover { color: #fff; background: linear-gradient(90deg,#dc2626,#e11d48); transform: translateY(-2px); }
.dmh-profile-page .empty-state i { color: #7f1d1d; }
.dmh-profile-page > footer { background: #000 !important; border-top: 1px solid rgba(127,29,29,.3) !important; }
.dmh-profile-page .footer-logo { background: linear-gradient(90deg,#ef4444,#be123c); background-clip: text; -webkit-background-clip: text; color: transparent !important; font-weight: 900; }
.dmh-profile-page .footer-logo::before { border-radius: 50%; }
.dmh-profile-page .footer-logo::after { color: #64748b; }
.dmh-profile-page .footer-contacts i { color: #f87171 !important; }

/* Branded page loader. */
.dmh-page-loader { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; background: #020617; opacity: 1; visibility: visible; transition: opacity .6s ease,visibility .6s ease; }
.dmh-page-loader::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center,rgba(127,29,29,.28),transparent 35%),linear-gradient(rgba(71,85,105,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(71,85,105,.07) 1px,transparent 1px); background-size: auto,48px 48px,48px 48px; }
.dmh-page-ready .dmh-page-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.dmh-loader-mark { position: relative; width: 122px; height: 122px; display: grid; place-items: center; }
.dmh-loader-mark img { position: relative; z-index: 1; width: 88px; height: 88px; object-fit: contain; border-radius: 50%; animation: dmhLoaderPulse 1.6s ease-in-out infinite; }
.dmh-loader-ring { position: absolute; inset: 0; border: 3px solid rgba(127,29,29,.28); border-top-color: #ef4444; border-right-color: #ef4444; border-radius: 50%; box-shadow: 0 0 26px rgba(220,38,38,.2); animation: dmhLoaderSpin 1s linear infinite; }
.dmh-page-loader > strong { position: relative; margin-top: 18px; font-size: 34px; line-height: 1; letter-spacing: -1.5px; }
.dmh-page-loader > strong span { color: #ef4444; }
.dmh-page-loader > p { position: relative; margin-top: 10px; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.dmh-loader-dots { position: relative; display: flex; gap: 6px; margin-top: 15px; }
.dmh-loader-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; animation: dmhLoaderDots .9s ease-in-out infinite alternate; }
.dmh-loader-dots i:nth-child(2) { animation-delay: .2s; }
.dmh-loader-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes dmhLoaderSpin { to { transform: rotate(360deg); } }
@keyframes dmhLoaderPulse { 50% { transform: scale(.92); filter: brightness(.82); } }
@keyframes dmhLoaderDots { to { transform: translateY(-7px); opacity: .35; } }

/* Home hero */
.news-ticker-wrap {
    background: var(--dmh-navy) !important;
    border-bottom-color: var(--accent) !important;
    min-height: 42px;
}
.news-badge { background: var(--accent) !important; color: var(--dmh-navy) !important; border-radius: 999px !important; }
.hero-section { position: relative; }
.swiper { min-height: 590px !important; height: min(76vh, 760px) !important; }
.slide-overlay {
    background:
        linear-gradient(90deg, rgba(10, 5, 63, .94) 0%, rgba(16, 6, 99, .76) 43%, rgba(16, 6, 99, .22) 100%) !important;
}
.slide-content { padding: 0 clamp(24px, 6vw, 96px) !important; max-width: 820px !important; }
.slide-badge {
    background: rgba(255, 217, 0, .14) !important;
    border: 1px solid rgba(255, 217, 0, .55);
    color: var(--accent) !important;
    border-radius: 999px !important;
    padding: 8px 15px !important;
    letter-spacing: .8px;
}
.slide-content h2 {
    border: 0 !important;
    padding-left: 0 !important;
    text-transform: none !important;
    font-size: clamp(38px, 5vw, 68px) !important;
    line-height: 1.04 !important;
    letter-spacing: -1.8px;
    max-width: 700px;
}
.slide-content h2::after {
    content: '';
    display: block;
    width: 92px;
    height: 6px;
    margin-top: 22px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary) 0 55%, var(--accent) 55%);
}
.slide-content p { max-width: 620px; color: rgba(255, 255, 255, .84); }

.hero-brand-panel {
    position: absolute;
    z-index: 5;
    right: clamp(28px, 6vw, 92px);
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    padding: 19px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 28px;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 30px 70px rgba(4, 2, 40, .3);
    text-align: center;
    backdrop-filter: blur(16px);
}
.hero-brand-panel img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; }
.hero-brand-panel strong { display: block; margin-top: 12px; color: var(--dmh-navy); font-size: 12px; letter-spacing: 2.2px; text-transform: uppercase; }
.hero-brand-panel span { display: inline-block; margin-top: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--dmh-navy); font-size: 11px; font-weight: 800; letter-spacing: 1px; }

/* Inner pages */
.page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 64px !important;
    padding: 74px 5% 76px !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 82% 18%, rgba(8, 169, 230, .25), transparent 18rem),
        radial-gradient(circle at 16% 105%, rgba(237, 28, 46, .26), transparent 22rem),
        var(--dmh-navy) !important;
}
.page-header::before {
    content: 'DMH  •  INSTITUTE OF HIGHER EDUCATION  •  SINCE 1983';
    display: block;
    margin-bottom: 15px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
}
.page-header h1 { color: #fff !important; text-transform: none !important; font-size: clamp(36px, 5vw, 58px) !important; letter-spacing: -1px; }
.page-header p { color: rgba(255, 255, 255, .72) !important; }

.section-wrapper { padding: 88px 5% !important; }
.section-wrapper.bg-alt { background: linear-gradient(180deg, #f5f7fb, #fff) !important; }
.section-header { border-bottom-color: rgba(16, 6, 99, .11) !important; }
.section-title { text-transform: none !important; color: var(--dmh-navy) !important; letter-spacing: -.6px; }
.section-title::after { height: 5px !important; border-radius: 5px; background: linear-gradient(90deg, var(--primary) 0 58%, var(--accent) 58%) !important; }
.view-all-btn { color: var(--primary) !important; }

.card,
.form-card,
.filter-wrapper,
.info-item,
.teacher-card,
.gallery-item,
.community-card,
.event-modal-content {
    border-radius: 18px !important;
    border-color: rgba(16, 6, 99, .09) !important;
    box-shadow: var(--shadow-sm) !important;
}
.card { border-top: 0 !important; }
.card:hover,
.teacher-card:hover,
.gallery-item:hover,
.community-card:hover { box-shadow: var(--shadow-md) !important; transform: translateY(-7px); }
.event-img-wrapper,
.video-img-wrapper,
.video-img-box { background: var(--dmh-navy) !important; }
.event-date-badge,
.class-badge { border-radius: 12px !important; background: var(--primary) !important; }
.btn-join,
.btn-watch,
.filter-tab-btn {
    border-radius: 999px !important;
    border-color: rgba(237, 28, 46, .28) !important;
    color: var(--primary) !important;
}
.btn-join:hover,
.btn-watch:hover,
.filter-tab-btn.active,
.filter-tab-btn:hover { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }
.search-form input,
.form-group input,
.form-group textarea { border-radius: 12px !important; background: #fbfcfe !important; }

/* Home introduction */
.dmh-about-section { padding-bottom: 0 !important; background: #fffef9 !important; }
.dmh-about-grid { display: grid; grid-template-columns: minmax(320px, .82fr) 1.18fr; gap: clamp(45px, 7vw, 100px); align-items: center; }
.dmh-about-visual { position: relative; min-height: 430px; display: grid; place-items: center; border-radius: 34px; background: radial-gradient(circle at 50% 35%, rgba(255,217,0,.36), transparent 35%), linear-gradient(145deg, #f4f7ff, #fff); border: 1px solid rgba(16,6,99,.08); overflow: hidden; }
.dmh-about-visual::before, .dmh-about-visual::after { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; filter: blur(1px); }
.dmh-about-visual::before { left: -80px; top: -80px; background: rgba(237,28,46,.12); }
.dmh-about-visual::after { right: -70px; bottom: -70px; background: rgba(8,169,230,.16); }
.dmh-about-logo { position: relative; z-index: 1; width: min(68%, 285px); padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 28px 65px rgba(16,6,99,.17); transform: rotate(-2deg); }
.dmh-about-logo img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.dmh-since-card { position: absolute; z-index: 2; right: 25px; bottom: 28px; padding: 16px 20px; border-radius: 18px; background: var(--dmh-navy); color: #fff; box-shadow: 0 18px 35px rgba(16,6,99,.25); }
.dmh-since-card strong, .dmh-since-card span { display: block; }
.dmh-since-card strong { color: var(--accent); font-size: 25px; }
.dmh-since-card span { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; }
.dmh-kicker { display: inline-block; margin-bottom: 16px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 2.3px; text-transform: uppercase; }
.dmh-about-copy h2 { max-width: 680px; margin-bottom: 22px; color: var(--dmh-navy); font-size: clamp(32px, 4vw, 52px); line-height: 1.12; letter-spacing: -1.5px; }
.dmh-about-copy > p { max-width: 680px; color: var(--text-muted); font-size: 16px; line-height: 1.9; }
.dmh-about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 20px; margin: 28px 0 30px; color: #343750; font-size: 14px; font-weight: 600; }
.dmh-about-points i { margin-right: 8px; color: var(--primary); }
.dmh-about-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dmh-text-link { color: var(--dmh-navy); font-size: 14px; font-weight: 700; text-decoration: none; }
.dmh-text-link i { margin-left: 7px; color: var(--primary); }
.dmh-home-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 75px; transform: translateY(42px); border-radius: 22px; overflow: hidden; background: var(--dmh-navy); box-shadow: 0 24px 50px rgba(16,6,99,.2); }
.dmh-home-stats > div { padding: 25px 22px; border-right: 1px solid rgba(255,255,255,.12); text-align: center; }
.dmh-home-stats > div:last-child { border: 0; }
.dmh-home-stats strong, .dmh-home-stats span { display: block; }
.dmh-home-stats strong { color: var(--accent); font-size: 17px; }
.dmh-home-stats span { margin-top: 5px; color: rgba(255,255,255,.65); font-size: 11px; }
.dmh-about-section + .section-wrapper { padding-top: 125px !important; }

/* Admin-managed home content */
.dmh-classes-section { background: linear-gradient(180deg, #fffef9, #f7f9fd) !important; }
.dmh-class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dmh-class-card { min-width: 0; }
.dmh-class-image { height: 210px; position: relative; display: grid; place-items: center; background: linear-gradient(135deg, var(--dmh-navy), var(--dmh-blue)); background-size: cover; background-position: center; color: rgba(255,255,255,.8); font-size: 48px; }
.dmh-class-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,6,99,.55), transparent 65%); }
.dmh-class-image span { position: absolute; z-index: 1; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--dmh-navy); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dmh-class-body { padding: 24px; }
.dmh-class-body h3 { color: var(--dmh-navy); font-size: 20px; margin-bottom: 10px; }
.dmh-class-body > p { min-height: 46px; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.dmh-class-meta { display: flex; justify-content: space-between; gap: 12px; margin: 19px 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 12px; }
.dmh-class-meta i { color: var(--primary); }
.dmh-class-action { display: flex; align-items: center; justify-content: space-between; }
.dmh-class-action strong { color: var(--dmh-navy); font-size: 19px; }
.dmh-class-action a { padding: 9px 15px; border-radius: 999px; background: var(--primary); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }

.dmh-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dmh-feature-card { padding: 30px; border-radius: 18px; background: #fff; border: 1px solid rgba(16,6,99,.08); box-shadow: var(--shadow-sm); }
.dmh-feature-card > i { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 20px; background: rgba(237,28,46,.09); color: var(--primary); font-size: 21px; }
.dmh-feature-card h3 { color: var(--dmh-navy); margin-bottom: 9px; font-size: 17px; }
.dmh-feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

.dmh-gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 14px; }
.dmh-gallery-preview a { position: relative; overflow: hidden; border-radius: 18px; background: var(--dmh-navy); }
.dmh-gallery-preview a:first-child, .dmh-gallery-preview a:nth-child(4) { grid-row: span 2; }
.dmh-gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.dmh-gallery-preview a:hover img { transform: scale(1.07); }
.dmh-gallery-preview span { position: absolute; inset: auto 0 0; padding: 35px 16px 14px; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(transparent, rgba(16,6,99,.9)); }

.dmh-testimonial { margin: 0; padding: 30px; border-radius: 18px; background: #fff; border: 1px solid rgba(16,6,99,.08); box-shadow: var(--shadow-sm); }
.dmh-testimonial > i { color: var(--accent); font-size: 28px; }
.dmh-testimonial > p { min-height: 80px; margin: 16px 0 24px; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.dmh-testimonial footer { display: flex; flex-direction: column; gap: 3px; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; color: var(--dmh-navy) !important; }
.dmh-testimonial footer span { color: var(--primary); font-size: 12px; }

.dmh-faq-wrap { max-width: 900px !important; }
.dmh-faq { margin-bottom: 12px; border: 1px solid rgba(16,6,99,.1); border-radius: 15px; background: #fff; overflow: hidden; box-shadow: 0 5px 16px rgba(16,6,99,.04); }
.dmh-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; cursor: pointer; list-style: none; color: var(--dmh-navy); font-weight: 700; }
.dmh-faq summary::-webkit-details-marker { display: none; }
.dmh-faq[open] summary i { transform: rotate(45deg); }
.dmh-faq summary i { color: var(--primary); transition: .25s; }
.dmh-faq > p { padding: 0 22px 22px; color: var(--text-muted); font-size: 14px; line-height: 1.75; }

footer {
    position: relative;
    overflow: hidden;
    padding-top: 72px !important;
    border-top: 6px solid var(--accent) !important;
    background:
        radial-gradient(circle at 15% 0%, rgba(8, 169, 230, .16), transparent 24rem),
        #0b0647 !important;
}
.footer-contacts,
.footer-contacts-bottom { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.footer-logo { color: #fff !important; text-transform: none !important; letter-spacing: -.5px; }
.footer-logo::before {
    content: '';
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: #fff url('../../uploads/dmh-lk-logo.png') center / contain no-repeat;
}
.footer-logo::after { content: '  •  Institute of Higher Education  •  Since 1983'; color: var(--accent); font-size: 12px; letter-spacing: 1.3px; }
.footer-contacts i,
.footer-contacts-bottom i { color: var(--accent) !important; }

@media (max-width: 1180px) {
    .dmh-brand-copy small { display: none; }
    .logo-area { min-width: auto; }
    .nav-menu a { padding-inline: 8px !important; font-size: 11px !important; }
    .hero-brand-panel { width: 184px; right: 28px; }
    .slide-content { max-width: 74% !important; }
}

@media (max-width: 992px) {
    .navbar { min-height: 82px; padding: 7px 20px !important; }
    .dmh-logo { width: 62px; height: 62px; flex-basis: 62px; }
    .dmh-brand-copy small { display: block; }
    .nav-wrapper { background: #fff !important; padding-top: 105px !important; border-left: 4px solid var(--accent); }
    .dmh-profile-page .nav-wrapper { background: #020617 !important; border-left-color: #b91c1c; }
    .nav-menu a { border-radius: 12px !important; padding: 13px !important; }
    .hero-brand-panel { display: none; }
    .slide-content { max-width: 850px !important; }
    .dmh-class-grid, .dmh-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dmh-gallery-preview { grid-template-columns: repeat(2, 1fr); }
    .dmh-about-grid { grid-template-columns: 1fr; }
    .dmh-about-visual { min-height: 390px; }
    .dmh-home-stats { grid-template-columns: repeat(2, 1fr); }
    .dmh-home-stats > div:nth-child(2) { border-right: 0; }
    .dmh-home-stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 600px) {
    .dmh-payment-pill { top: 16px; left: 16px; }
    .dmh-floating-home { top: 16px; left: 61px; width: 36px; height: 36px; }
    .dmh-social-stack { top: 16px; right: 16px; }
    .dmh-home .dmh-social-icons a,
    .dmh-profile-page .dmh-social-icons a { width: 36px; height: 36px; }
    .dmh-home .dmh-phone-label,
    .dmh-profile-page .dmh-phone-label { font-size: 9px; }
    .dmh-entry-kicker { margin-top: 70px; margin-bottom: 26px; padding: 8px 13px; font-size: 9px; }
    .dmh-entry-brand { gap: 11px; }
    .dmh-entry-brand .dmh-entry-logo { width: 72px; }
    .dmh-home .dmh-entry-content h1 { font-size: clamp(53px,18vw,78px); letter-spacing: -4px; }
    .dmh-home .dmh-entry-tagline { max-width: 340px; margin-top: 22px; font-size: 14px; }
    .dmh-enter-btn { margin-top: 30px; min-height: 52px; }
    .dmh-enter-panel { padding: 48px 16px; }
    .dmh-enter-panel-inner { min-height: 470px; padding: 48px 18px; border-radius: 24px; }
    .dmh-topbar-inner { width: 94%; }
    .dmh-topbar a { padding: 7px 8px; }
    .dmh-topbar a span { display: none; }
    .dmh-topbar-call span { display: inline !important; }
    .dmh-entry-hero { min-height: calc(100svh - 113px); padding-top: 36px; }
    .dmh-entry-content h1 { letter-spacing: -3px; }
    .dmh-entry-actions { grid-template-columns: 1fr; }
    .dmh-entry-btn-guide { grid-column: auto; }
    .dmh-entry-btn { width: 100%; min-height: 54px; padding-inline: 18px; font-size: 13px; }
    .dmh-entry-logo { width: 92px; }
    .dmh-scroll-cue { margin-top: 22px; }
    .dmh-teacher-card { min-height: 310px; }
    .dmh-profile-page .section-wrapper { padding-top: 105px !important; }
    .dmh-profile-page .profile-hero { padding: 36px 22px; }
    .dmh-profile-page .profile-photo { width: 170px; height: 170px; }
    .dmh-profile-page .section-block { padding-top: 40px; }
    .dmh-sft-page > .section-wrapper { padding-top: 105px !important; }
    .dmh-contact-page .page-header { padding-top: 105px !important; }
    .dmh-contact-page .contact-grid { grid-template-columns: 1fr; }
    .dmh-auth-page .layout-wrapper { padding: 95px 16px 30px; }
    .dmh-auth-page .login-section { padding: 0 !important; min-height: auto !important; }
    .dmh-auth-page .login-box { padding: 34px 22px !important; border: 1px solid rgba(127,29,29,.32) !important; background: rgba(15,23,42,.72) !important; }
    .dmh-auth-page .theme-toggle-wrapper { top: 73px; right: 17px; }
    .navbar { min-height: 75px; }
    .dmh-logo { width: 54px; height: 54px; flex-basis: 54px; border-radius: 11px; }
    .dmh-brand-copy strong { font-size: 17px; }
    .dmh-brand-copy small { max-width: 148px; overflow: hidden; text-overflow: ellipsis; font-size: 7px; }
    .swiper { min-height: 540px !important; height: 68vh !important; }
    .slide-content h2 { font-size: clamp(34px, 11vw, 48px) !important; letter-spacing: -1px; }
    .page-header { padding: 60px 22px 62px !important; }
    .page-header::before { font-size: 8px; letter-spacing: 1.3px; line-height: 1.7; }
    .section-wrapper { padding: 64px 20px !important; }
    .footer-logo::after { display: block; margin-top: 8px; line-height: 1.8; }
    .dmh-class-grid, .dmh-feature-grid { grid-template-columns: 1fr; }
    .dmh-gallery-preview { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .dmh-gallery-preview a:first-child, .dmh-gallery-preview a:nth-child(4) { grid-row: span 1; }
    .dmh-class-meta { flex-direction: column; }
    .dmh-about-grid { gap: 38px; }
    .dmh-about-visual { min-height: 330px; border-radius: 24px; }
    .dmh-about-points { grid-template-columns: 1fr; }
    .dmh-about-copy h2 { font-size: 34px; }
    .dmh-home-stats { grid-template-columns: 1fr 1fr; margin-top: 55px; }
    .dmh-home-stats > div { padding: 20px 10px; }
    .dmh-home-stats strong { font-size: 14px; }
}
