/* AMLA Online — EU-inspired blue theme */
:root {
    --blue: #0e47cb;
    --blue-dark: #003399;
    --blue-darker: #002776;
    --blue-light: #e8effc;
    --yellow: #fc0;
    --ink: #1b1b1b;
    --muted: #5a6472;
    --line: #dfe3ee;
    --bg: #f4f6fb;
    --white: #fff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Top utility bar */
.topbar { background: var(--blue-darker); color: #cdd9f5; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px; gap: 12px; }
.topbar a { color: #fff; }
.topbar .sep { margin: 0 8px; opacity: .5; }
.topbar-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Header */
.site-header {
    background: var(--white); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 0 rgba(14,71,203,.05), 0 6px 18px rgba(0,39,118,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 20px; color: var(--blue-dark); letter-spacing: .2px; }
.brand-text small { font-size: 11.5px; color: var(--muted); max-width: 380px; }

/* Main navigation */
.main-nav { display: flex; align-items: stretch; gap: 2px; }
.main-nav .nav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 13px; border-radius: 6px; color: var(--ink); font-size: 15px; font-weight: 500;
    position: relative; white-space: nowrap;
}
.main-nav .nav-link:hover { background: var(--blue-light); text-decoration: none; color: var(--blue-dark); }
.main-nav .nav-link.active { color: var(--blue-dark); font-weight: 700; }
.main-nav .nav-link.active::after,
.nav-item.active > .nav-parent::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 3px;
    background: var(--yellow); border-radius: 2px;
}
.main-nav .caret { opacity: .6; margin-top: 1px; }
.main-nav .nav-item { position: relative; display: flex; }
.main-nav .nav-parent { cursor: pointer; }

/* Dropdown menus */
.dropdown {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
    background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 40px rgba(0,39,118,.14); padding: 8px; z-index: 200;
}
.dropdown a {
    display: block; padding: 10px 14px; border-radius: 7px; color: var(--ink);
    font-size: 14.5px; font-weight: 500; border-left: 3px solid transparent;
}
.dropdown a:hover { background: var(--blue-light); text-decoration: none; color: var(--blue-dark); }
.dropdown a.active { color: var(--blue-dark); font-weight: 700; border-left-color: var(--yellow); background: var(--blue-light); }
@media (hover: hover) and (min-width: 769px) {
    .nav-item:hover .dropdown { display: block; }
    .nav-item:hover > .nav-parent { background: var(--blue-light); color: var(--blue-dark); }
}

/* Verify button */
.main-nav .nav-verify {
    background: var(--blue); color: #fff; margin: 4px 0 4px 10px; align-self: center;
    padding: 9px 18px; border-radius: 7px; font-weight: 600;
}
.main-nav .nav-verify:hover { background: var(--blue-dark); color: #fff; }
.main-nav .nav-verify.active { color: #fff; }
.main-nav .nav-verify.active::after { left: 18px; right: 18px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); font-size: 22px; padding: 4px 12px; border-radius: 6px; cursor: pointer; color: var(--blue-dark); }

/* Breadcrumb bar */
.crumbs { background: var(--blue-light); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.crumbs .container { padding-top: 9px; padding-bottom: 9px; }
.crumbs a { color: var(--blue-dark); font-weight: 600; }
.crumbs .crumb-sep { color: #9aa7c4; margin: 0 8px; }
.crumbs span:last-child { color: var(--muted); }

/* Hero */
.hero {
    background: linear-gradient(120deg, var(--blue-darker) 0%, var(--blue) 55%, #2f6df0 100%);
    color: #fff; padding: 84px 0 92px;
    position: relative; overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); border-radius: 50%;
}
.hero h1 { font-size: 40px; line-height: 1.2; max-width: 760px; font-weight: 700; }
.hero p { font-size: 18px; max-width: 640px; margin: 18px 0 30px; color: #dbe6ff; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
    padding: 5px 14px; border-radius: 999px; font-size: 13px; letter-spacing: .4px; margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 6px; font-size: 16px; font-weight: 600;
    cursor: pointer; border: none; transition: background .15s, transform .1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--blue-darker); }
.btn-yellow:hover { background: #ffd633; }
.btn-white { background: #fff; color: var(--blue-dark); }
.btn-white:hover { background: #eef2fb; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; }
.btn-sm { padding: 7px 14px; font-size: 14px; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg); }
.section-title { font-size: 28px; color: var(--blue-dark); margin-bottom: 8px; }
.section-title::after {
    content: ""; display: block; width: 52px; height: 4px; border-radius: 2px;
    background: var(--yellow); margin-top: 10px;
}
.section-title[style*="text-align:center"], .center-title::after { margin-left: auto; margin-right: auto; }
.section-sub { color: var(--muted); max-width: 720px; margin-bottom: 36px; }
.one-line { white-space: nowrap; }
@media (max-width: 768px) { .one-line { white-space: normal; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.card {
    background: #fff; border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: 10px; padding: 26px;
    transition: box-shadow .15s, transform .15s, border-color .15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(14,71,203,.12); transform: translateY(-3px); border-top-color: var(--yellow); }
.card .icon {
    width: 46px; height: 46px; border-radius: 10px; background: var(--blue-light);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--blue-dark); margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* Verify page — certificate style */
.verify-panel {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 28px; margin-bottom: 30px; box-shadow: 0 4px 16px rgba(0,39,118,.08);
}
.verify-form { display: flex; gap: 12px; }
.verify-form input[type=text] {
    flex: 1; padding: 14px 18px; font-size: 17px; border: 2px solid var(--line); border-radius: 8px;
    letter-spacing: 1px; text-transform: uppercase; font-family: Consolas, "Courier New", monospace;
}
.verify-form input[type=text]:focus { outline: none; border-color: var(--blue); }
.verify-hint { color: var(--muted); font-size: 13.5px; margin-top: 14px; text-align: center; }

/* Certificate */
.certificate { margin-top: 30px; }
.cert-border {
    background: linear-gradient(135deg, #f8f6f0 0%, #fff 30%, #fff 70%, #f8f6f0 100%);
    border: 1px solid #d4c9a8; border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.8);
    position: relative;
}
.cert-border::before {
    content: ""; position: absolute; inset: 6px; border: 1px solid #c9b896; border-radius: 2px; pointer-events: none;
}
.cert-inner { padding: 40px 36px 32px; position: relative; }
.cert-header {
    display: flex; align-items: center; gap: 18px; padding-bottom: 22px;
    border-bottom: 2px solid var(--blue); margin-bottom: 28px;
}
.cert-logo { flex-shrink: 0; }
.cert-logo img { height: 48px; width: auto; }
.cert-title-block h2 {
    font-size: 18px; color: var(--blue-dark); font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase; margin: 0;
}
.cert-subtitle {
    display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 3px;
}
.cert-seal {
    position: absolute; top: 40px; right: 36px; text-align: center;
}
.seal-ring { filter: drop-shadow(0 3px 6px rgba(14,71,203,.2)); }
.seal-text {
    display: block; font-size: 11px; font-weight: 700; color: var(--blue-dark);
    text-transform: uppercase; letter-spacing: 1px; margin-top: 4px;
}
.cert-code-display {
    text-align: center; margin-bottom: 28px; padding: 18px 24px;
    background: linear-gradient(120deg, var(--blue-light), #fff); border-radius: 8px;
    border: 1px solid var(--line);
}
.cert-code-label {
    display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--muted); margin-bottom: 6px;
}
.cert-code-value {
    display: block; font-family: Consolas, "Courier New", monospace; font-size: 26px;
    font-weight: 700; color: var(--blue-dark); letter-spacing: 2px;
}
.cert-details { margin-bottom: 24px; }
.cert-row {
    display: flex; padding: 14px 0; border-bottom: 1px dashed #d4c9a8; align-items: baseline; gap: 16px;
}
.cert-row:last-child { border-bottom: none; }
.cert-label {
    min-width: 160px; color: var(--muted); font-size: 13px; text-transform: uppercase;
    letter-spacing: .8px; font-weight: 600;
}
.cert-value {
    flex: 1; font-size: 16px; color: var(--ink); font-weight: 500;
}
.cert-footer {
    text-align: center; padding-top: 20px; border-top: 1px solid var(--line);
}
.cert-footer p { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.cert-footer .cert-small { font-size: 12px; color: #9aa7c4; }

/* Verify error */
.verify-error {
    text-align: center; padding: 40px 20px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; margin-top: 30px;
    box-shadow: 0 4px 16px rgba(0,39,118,.08);
}
.verify-error h3 { color: #c0392b; font-size: 20px; margin: 14px 0 8px; }
.verify-error p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.verify-error-hint { font-size: 13.5px; color: var(--muted); }
.verify-error-hint a { font-weight: 600; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--blue-darker), var(--blue)); color: #fff; padding: 56px 0; }
.page-hero h1 { font-size: 34px; }
.page-hero p { color: #dbe6ff; margin-top: 8px; max-width: 720px; }

/* News */
.news-item {
    display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line);
}
.news-date { min-width: 92px; text-align: center; background: var(--blue-light); border-radius: 8px; padding: 10px 6px; height: fit-content; }
.news-date .day { font-size: 24px; font-weight: 700; color: var(--blue-dark); display: block; }
.news-date .mon { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; }
.news-item h3 { font-size: 19px; margin-bottom: 6px; }
.news-item h3 a { color: var(--blue-dark); }
.news-item p { color: var(--muted); font-size: 14.5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info .ci { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-info .ci .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .ci strong { display: block; color: var(--blue-dark); }
.contact-info .ci span { color: var(--muted); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--blue-dark); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 7px; font-size: 15px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Admin */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 230px; background: var(--blue-darker); color: #cdd9f5; flex-shrink: 0;
    display: flex; flex-direction: column;
}
.admin-side .side-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: 17px; }
.admin-side .side-brand small { display: block; font-weight: 400; font-size: 11.5px; color: #9db4e8; margin-top: 3px; }
.admin-side nav { padding: 14px 10px; flex: 1; }
.admin-side nav a {
    display: block; padding: 10px 14px; border-radius: 7px; color: #cdd9f5; font-size: 14.5px; margin-bottom: 3px;
}
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 28px 34px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-top h1 { font-size: 24px; color: var(--blue-dark); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px; margin-bottom: 24px; }
.panel h2 { font-size: 17px; color: var(--blue-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th { text-align: left; padding: 10px 12px; background: var(--blue-light); color: var(--blue-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
table.admin-table td { padding: 11px 12px; border-bottom: 1px solid #eef1f8; vertical-align: top; }
table.admin-table tr:hover td { background: #fafbff; }
.mono { font-family: Consolas, monospace; font-size: 13.5px; background: var(--blue-light); padding: 3px 8px; border-radius: 5px; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.stat .num { font-size: 30px; font-weight: 700; color: var(--blue-dark); }
.stat .lbl { color: var(--muted); font-size: 13.5px; }
.flash { padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14.5px; }
.flash-ok { background: #e6f6ee; border: 1px solid #9fd9ba; color: #17663d; }
.flash-err { background: #fdecea; border: 1px solid #f5b7b1; color: #94302a; }
.login-box { max-width: 400px; margin: 10vh auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: 0 10px 40px rgba(14,71,203,.12); }
.login-box h1 { font-size: 22px; color: var(--blue-dark); text-align: center; margin-bottom: 6px; }
.login-box .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
.logo-preview { max-height: 64px; display: block; margin-top: 8px; border: 1px dashed var(--line); border-radius: 8px; padding: 8px; background: #fafbff; }

/* Footer */
.site-footer { background: var(--blue-darker); color: #cdd9f5; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 36px; padding: 52px 20px 40px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.site-footer a { color: #cdd9f5; display: block; padding: 3px 0; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 14.5px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; }

/* Hero with background image */
.hero-img {
    background:
        linear-gradient(100deg, rgba(0,39,118,.94) 0%, rgba(14,71,203,.82) 55%, rgba(14,71,203,.55) 100%),
        url('../img/hero.png') center/cover no-repeat,
        linear-gradient(120deg, var(--blue-darker), var(--blue));
}

/* Feature split sections (image + text) */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-split.flip .feature-media { order: 2; }
.feature-media img {
    width: 100%; border-radius: 12px; display: block;
    box-shadow: 0 14px 36px rgba(0,39,118,.18);
}
.feature-text p { color: var(--muted); font-size: 15.5px; }
.check-list { list-style: none; margin: 18px 0 24px; }
.check-list li { padding: 7px 0 7px 32px; position: relative; color: var(--ink); font-size: 15px; }
.check-list li::before {
    content: "\2713"; position: absolute; left: 0; top: 7px;
    width: 21px; height: 21px; background: var(--blue-light); color: var(--blue-dark);
    border-radius: 50%; font-size: 13px; font-weight: 700; text-align: center; line-height: 21px;
}

/* Stats strip */
.stats-strip {
    background: linear-gradient(120deg, var(--blue-darker), var(--blue));
    padding: 44px 0; color: #fff;
}
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat-num { display: block; font-size: 34px; font-weight: 700; color: var(--yellow); }
.stat-lbl { font-size: 14px; color: #dbe6ff; }

/* Numbered step cards */
.step-num {
    width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
    font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 17px;
}

/* News thumbnails */
.news-thumb { position: relative; min-width: 220px; max-width: 220px; flex-shrink: 0; }
.news-thumb img { width: 100%; height: 130px; object-fit: cover; border-radius: 8px; display: block; }
.news-thumb .news-date { position: absolute; left: 10px; bottom: 10px; min-width: 74px; background: rgba(255,255,255,.95); box-shadow: 0 4px 12px rgba(0,0,0,.15); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq-item summary {
    padding: 17px 22px; font-weight: 600; font-size: 16px; color: var(--blue-dark);
    cursor: pointer; list-style: none; position: relative; padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: var(--blue-light); color: var(--blue-dark);
    font-size: 18px; font-weight: 700; text-align: center; line-height: 26px; transition: transform .15s;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-answer { padding: 18px 22px; color: var(--muted); font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
    .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .feature-split { grid-template-columns: 1fr; gap: 26px; }
    .feature-split.flip .feature-media { order: 0; }
    .news-thumb { max-width: 100%; min-width: 0; }
    .news-thumb img { height: 170px; }
    .brand-text small { display: none; }
    .hero h1 { font-size: 28px; }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
        flex-direction: column; align-items: stretch; padding: 10px; border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(0,0,0,.08); gap: 2px;
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-link { padding: 12px 14px; font-size: 15.5px; }
    .main-nav .nav-link.active::after, .nav-item.active > .nav-parent::after { display: none; }
    .main-nav .nav-item { flex-direction: column; }
    .main-nav .nav-parent { justify-content: space-between; }
    .main-nav .nav-parent::after { display: none; }
    .main-nav .dropdown {
        display: none; position: static; box-shadow: none; border: none; border-radius: 0;
        padding: 0 0 4px 18px; min-width: 0;
    }
    .main-nav .nav-item.open .dropdown { display: block; }
    .main-nav .dropdown a { padding: 10px 14px; font-size: 14.5px; }
    .main-nav .nav-verify { margin: 8px 0 4px; text-align: center; justify-content: center; }
    .topbar-tag { display: none; }
    .topbar-inner { justify-content: flex-end; }
    .verify-form { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    .detail-row { grid-template-columns: 1fr; gap: 2px; }
    .admin-shell { flex-direction: column; }
    .admin-side { width: 100%; }
    .admin-main { padding: 20px 16px; }
    .news-item { flex-direction: column; gap: 10px; }
    .cert-inner { padding: 24px 18px 20px; }
    .cert-header { flex-direction: column; text-align: center; gap: 10px; }
    .cert-seal { position: static; margin: 14px auto 0; }
    .cert-row { flex-direction: column; gap: 4px; }
    .cert-label { min-width: 0; }
    .cert-code-value { font-size: 20px; }
}
