/* Shared styles for the DigiLocker pages (digilocker.html, IRL.html, MOHESR.html) */

:root {
    --navy: #051a51;
    --gold: #f4b519;
    --accent: #e64817;
    --green: #91b725;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f3f6f9;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 4px 18px rgba(5, 26, 81, 0.08);
    --shadow-hover: 0 14px 34px rgba(5, 26, 81, 0.18);
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

a { text-decoration: none; transition: color .2s ease, background .2s ease; }

[ng\:cloak], [ng-cloak], .ng-cloak { display: none !important; }

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

/* ---------- Header ---------- */
.dl-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s ease;
    width: 100%;
}

.dl-header.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); }

.dl-header .dl-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 84px;
}

.dl-logo img { height: 62px; width: auto; display: block; }

.dl-header-right { display: flex; align-items: center; gap: 24px; }

.dl-nav { display: flex; align-items: center; gap: 8px; }

.dl-nav a {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--navy);
    padding: 10px 18px;
    border-radius: 999px;
}

.dl-nav a:hover { color: var(--accent); background: #fff4ef; }

.dl-nav a.dl-btn-primary { background: var(--navy); color: #fff; }

.dl-nav a.dl-btn-primary:hover { background: var(--accent); color: #fff; }

.dl-partner {
    display: block;
    padding-left: 24px;
    border-left: 1px solid var(--border);
}

.dl-partner img { height: 52px; width: auto; display: block; }

/* ---------- Hero ---------- */
.dl-hero {
    background:
        linear-gradient(120deg, rgba(11, 34, 51, 0.94), rgba(5, 26, 81, 0.88)),
        url(../images/how-it-works-banner.png) center/cover no-repeat;
    color: #fff;
    padding: 48px 0 56px;
}

.dl-hero .dl-container { display: flex; align-items: center; gap: 32px; }

.dl-hero-badge {
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    background: url(../images/verified.png) center/contain no-repeat;
    filter: drop-shadow(0 6px 18px rgba(244, 181, 25, 0.35));
}

.dl-hero-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(244, 181, 25, 0.14);
    border: 1px solid rgba(244, 181, 25, 0.35);
}

.dl-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--gold);
}

.dl-hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
}

/* ---------- Sections ---------- */
.dl-section { padding: 52px 0 8px; }

.dl-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.dl-title-bar {
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    margin-bottom: 12px;
}

.dl-section-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

.dl-section-sub { margin: 0; color: var(--muted); font-size: 15px; }

.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(230, 72, 23, 0.25);
}

.dl-btn:hover { background: #c93a0f; color: #fff; }

.dl-btn.outline {
    background: #fff;
    color: var(--navy);
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.dl-btn.outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Steps ---------- */
.dl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dl-step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 24px 26px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dl-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--green);
}

.dl-step img {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

.dl-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    color: #374151;
}

.dl-step strong { color: var(--navy); font-weight: 600; }

.dl-step a.dl-inline-link { color: var(--navy); font-weight: 600; text-decoration: underline; }

.dl-step a.dl-inline-link:hover { color: var(--accent); }

/* "?" help link on a step */
.dl-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    color: var(--accent);
    background: #fff4ef;
    border: 1px solid #f6c9b8;
}

.dl-help:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Stats strip ---------- */
.dl-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.dl-stat {
    background: var(--card);
    padding: 22px 24px;
    text-align: center;
}

.dl-stat-value {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

.dl-stat-value.accent { color: var(--accent); }

.dl-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Search + table panel ---------- */
.dl-panel {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 56px;
}

.dl-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

.dl-panel-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
}

.dl-search {
    display: flex;
    align-items: stretch;
    flex: 1 1 360px;
    max-width: 480px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dl-search:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(5, 26, 81, 0.1);
}

.dl-search input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 12px 20px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: transparent;
    margin: 0;
    height: auto;
    box-shadow: none;
}

.dl-search input::placeholder { color: #9ca3af; }

.dl-search button {
    border: 0;
    cursor: pointer;
    padding: 0 24px;
    background: var(--navy);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background .2s ease;
}

.dl-search button:hover { background: var(--accent); }

.dl-table-wrap { overflow-x: auto; }

.dl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

.dl-table th {
    background: var(--navy);
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 14px;
    font-size: 12.5px;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.4;
}

.dl-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.dl-table th.num,
.dl-table td.num { text-align: center; }

.dl-table td.num { font-variant-numeric: tabular-nums; }

.dl-table td.inst { color: var(--navy); font-weight: 500; }

.dl-table td.years { font-size: 13px; color: #4b5563; }

.dl-table tbody tr:nth-child(even) td { background: #f9fafb; }

.dl-table tbody tr:hover td { background: #fff8e6; }

.dl-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #eef2ff;
    color: var(--navy);
}

.dl-empty {
    text-align: center;
    padding: 36px 16px !important;
    color: var(--muted);
}

/* ---------- Footer ---------- */
.dl-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    color: #4b5563;
    font-size: 14px;
}

.dl-footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    padding: 40px 0 28px;
}

.dl-footer-logo { width: 220px; max-width: 100%; margin-bottom: 18px; display: block; }

.dl-footer p { margin: 0 0 4px; line-height: 1.6; }

.dl-footer .dl-mail {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--navy);
    font-weight: 600;
}

.dl-footer .dl-mail:hover { color: var(--accent); }

.dl-footer-label { color: var(--muted); font-size: 13px; margin-bottom: 4px; }

.dl-footer-links { list-style: none; margin: 0; padding: 0; justify-self: end; }

.dl-footer-links li { margin-bottom: 10px; }

.dl-footer-links a { color: #4b5563; }

.dl-footer-links a:hover { color: var(--accent); }

.dl-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .dl-steps { grid-template-columns: repeat(2, 1fr); }
    .dl-partner { display: none; }
}

@media (max-width: 768px) {
    .dl-container { padding: 0 16px; }
    .dl-header .dl-container { min-height: 70px; }
    .dl-logo img { height: 46px; }
    .dl-nav a { padding: 8px 12px; font-size: 12px; }
    .dl-hero { padding: 36px 0 40px; }
    .dl-hero .dl-container { flex-direction: column; text-align: center; gap: 16px; }
    .dl-hero-badge { width: 80px; height: 80px; }
    .dl-hero h1 { font-size: 22px; }
    .dl-section { padding: 40px 0 8px; }
    .dl-section-title { font-size: 22px; }
    .dl-steps { grid-template-columns: 1fr; }
    .dl-stats { grid-template-columns: 1fr; }
    .dl-panel-head { padding: 20px 16px; }
    .dl-search { max-width: none; }
    .dl-table { table-layout: auto; min-width: 900px; }
    .dl-footer-top { grid-template-columns: 1fr; }
    .dl-footer-links { justify-self: start; }
}

@media (max-width: 480px) {
    .dl-nav a:not(.dl-btn-primary) { display: none; }
}
