/* style.css - Main stylesheet for clean, modern, and responsive design */

:root {
    --primary: #418BCA;
    --primary-hover: #3170A6;
    --secondary: #FAAC54;
    --bg-color: #F9FAFB;
    --text-main: #111F39;
    --text-muted: #6B7280;
    --card-bg: #FFFFFF;
    --hero-bg: #111F39;
    --font-family: 'Kantumruy Pro', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.75;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 180px; /* Adjusted height for balanced branding */
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.login-btn {
    background: #E5E7EB;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 6px;
}

.register-btn {
    background-color: #FAAC54; /* Logo orange/yellow */
    color: #111F39 !important; /* Dark text for contrast */
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700 !important;
    transition: transform 0.3s, background-color 0.3s !important;
}

.register-btn:hover {
    background-color: #F69361; /* Darker orange on hover */
    transform: translateY(-2px);
    color: #111F39 !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F3F4F6 100%);
    color: var(--text-main);
    padding-bottom: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 80px auto;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #111F39, #418BCA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-benefits span {
    background: #EEF2FF;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: var(--primary);
    color: #FFF;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
}

/* FAQs Section */
.faqs-section {
    background: #FFF;
    padding: 80px 0;
}

.faqs-section .section-title {
    margin-bottom: 40px;
    color: var(--text-main);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.faq-item.open {
    background: #FFF;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 24px 30px;
    color: #FFF;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-family);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item.open .faq-question {
    color: var(--text-main);
    border-color: var(--primary);
    background: #FFF;
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
    color: #FFF;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: transparent;
    color: #6B7280;
}

.faq-item.open .faq-answer {
    max-height: 800px;
}

.faq-answer p {
    padding: 20px 30px 30px 30px;
    font-size: 16px;
    line-height: 1.7;
}

/* Frontend Popup */
.site-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 31, 57, 0.72);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.site-popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

.site-popup {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr);
    width: min(760px, 100%);
    overflow: hidden;
    background: #FFF;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(17, 31, 57, 0.34);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.site-popup-overlay.open .site-popup {
    transform: translateY(0) scale(1);
}

.site-popup.no-media {
    grid-template-columns: minmax(280px, 520px);
}

.site-popup-media {
    min-height: 360px;
    background: #EEF6FF;
}

.site-popup-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.site-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 46px 40px 34px;
}

.site-popup-content h2 {
    color: var(--text-main);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.18;
}

.site-popup-content p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.75;
}

.site-popup-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    background: var(--primary);
    color: #FFF;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.site-popup-button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.site-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #EEF6FF;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 25px;
    line-height: 1;
}

/* Courses Section */
.courses-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 18px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #F3F4F6;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #F3F4F6;
}

.course-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.course-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
}

.course-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #F3F4F6;
}

.course-prices {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.course-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary);
}

.course-original-price {
    color: #767B91;
    font-size: 18px;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.course-duration {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 12px;
}

.enroll-btn {
    display: block;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    background-color: #111827;
    color: #FFF;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.enroll-btn:hover {
    background-color: #374151;
}

.certifications-section {
    background: #FFF;
    padding: 72px 0;
}

.certifications-section .section-title {
    max-width: 760px;
    margin: 0 auto 12px;
}

.section-mark {
    width: 42px;
    height: 3px;
    margin: 0 auto 32px;
    border-radius: 999px;
    background: rgba(65, 139, 202, 0.28);
}

.certifications-carousel {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 18px;
}

.certification-track {
    display: flex;
    align-items: center;
    gap: 46px;
    min-height: 132px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 8px;
}

.certification-track::-webkit-scrollbar {
    display: none;
}

.certification-item {
    flex: 0 0 170px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.certification-logo {
    display: block;
    max-width: 160px;
    max-height: 96px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.certification-nav {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(65, 139, 202, 0.45);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    transition: color 0.2s, background 0.2s;
}

.certification-nav:hover {
    background: #EEF6FF;
    color: var(--primary);
}

.certification-nav[hidden] {
    display: block;
    visibility: hidden;
}

.loading {
    text-align: center;
    grid-column: 1 / -1;
    font-size: 18px;
    color: var(--text-muted);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.page-btn {
    background: #111827;
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    font-weight: 600;
    color: var(--text-main);
}

/* Footer */
footer {
    background: var(--bg-color);
    background-color: var(--bg-color);
    color: var(--text-muted);
    padding: 60px 0 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 280px;
    text-align: left;
}

.footer-info h3 {
    color: var(--text-main);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-socials {
    text-align: left;
}

.footer-socials h4 {
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(17, 31, 57, 0.08);
    color: var(--text-main);
    transition: transform 0.3s, background 0.3s;
}

.social-icons a svg {
    width: 20px;
    height: 20px;
}

.social-icons a:hover {
    background: var(--primary);
    color: #FFF;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 31, 57, 0.12);
    font-size: 14px;
}

/* Admin UI */
.admin-shell {
    background:
        linear-gradient(180deg, #EFF6FF 0, rgba(239, 246, 255, 0) 320px),
        var(--bg-color);
    font-family: var(--font-family);
    min-height: 100vh;
}

.admin-shell *,
.admin-shell input,
.admin-shell button,
.admin-shell select,
.admin-shell textarea {
    font-family: var(--font-family);
}

.admin-shell input::file-selector-button {
    font-family: var(--font-family);
}

.admin-layout {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-kicker {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.admin-topbar h1,
.admin-form-header h1,
.admin-auth-brand h1 {
    color: var(--text-main);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.admin-topbar p,
.admin-panel-header p,
.admin-form-header p {
    color: var(--text-muted);
    margin-top: 6px;
}

.admin-actions,
.admin-row-actions,
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #FFF;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.admin-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: 0 10px 22px rgba(65, 139, 202, 0.2);
    transform: translateY(-1px);
}

.admin-button-secondary {
    background: #FFF;
    border-color: #D7E0EA;
    color: var(--text-main);
}

.admin-button-secondary:hover {
    background: #F8FAFC;
    border-color: #BAC6D4;
    box-shadow: 0 8px 18px rgba(17, 31, 57, 0.08);
}

.admin-button-danger {
    background: #B42318;
    border-color: #B42318;
}

.admin-button-danger:hover {
    background: #912018;
    border-color: #912018;
    box-shadow: 0 10px 22px rgba(180, 35, 24, 0.18);
}

.admin-button-full {
    width: 100%;
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.admin-stat-card,
.admin-panel,
.admin-auth-card,
.admin-form-card {
    background: #FFF;
    border: 1px solid #E5EAF0;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(17, 31, 57, 0.06);
}

.admin-stat-card {
    padding: 18px;
}

.admin-stat-card span {
    color: var(--text-muted);
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    color: var(--text-main);
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

.admin-panel {
    margin-top: 18px;
    overflow: hidden;
}

.admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid #EAF0F6;
}

.admin-panel-header h2 {
    color: var(--text-main);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.admin-notice {
    margin-bottom: 18px;
}

.admin-settings-form,
.admin-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 20px 24px 24px;
}

.admin-field-compact {
    width: min(320px, 100%);
}

.admin-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-field-compact label,
.admin-filter-form label,
.form-group label {
    color: var(--text-main);
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.admin-filter-form label {
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #CFD8E3;
    border-radius: 8px;
    background: #FFF;
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(65, 139, 202, 0.14);
    outline: none;
}

.admin-select {
    min-width: 92px;
    padding: 8px 34px 8px 12px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 700;
}

.alert-error {
    background: #FEE2E2;
    color: #B91C1C;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid #EAF0F6;
    vertical-align: middle;
}

.admin-table th {
    background: #F8FAFC;
    color: #526173;
    font-size: 13px;
    font-weight: 700;
}

.admin-table tbody tr:hover {
    background: #FBFDFF;
}

.admin-id {
    color: #526173;
    font-weight: 700;
}

.admin-table-title {
    color: var(--text-main);
    font-weight: 700;
    max-width: 420px;
}

.admin-table-description {
    color: var(--text-main);
    max-width: 440px;
}

.admin-price {
    color: var(--secondary);
    font-weight: 700;
}

.admin-price-stack {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.admin-old-price {
    color: #767B91;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
}

.admin-duration-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #F3F7FB;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #EAF0F6;
}

.admin-logo-thumb {
    width: 86px;
    object-fit: contain;
    background: #FFF;
}

.admin-muted,
.admin-empty {
    color: var(--text-muted);
}

.admin-empty {
    text-align: center;
}

.action-links a,
.admin-link-action {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    background: #EEF6FF;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.action-links a:hover,
.admin-link-action:hover {
    background: #DCEEFF;
    color: var(--primary-hover);
}

.admin-inline-form {
    margin: 0;
}

.admin-delete-btn {
    background: #FFF5F5;
    border: none;
    color: #B42318;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.admin-delete-btn:hover {
    background: #FEE2E2;
}

.admin-switch {
    display: inline-flex;
    align-items: center;
    column-gap: 12px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.admin-switch-control {
    position: relative;
    display: block;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
}

.admin-switch input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 46px;
    height: 26px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.admin-switch-track {
    display: block;
    position: relative;
    width: 46px;
    min-width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #CBD5E1;
    box-shadow: inset 0 0 0 1px rgba(17, 31, 57, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}

.admin-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #FFF;
    box-shadow: 0 2px 5px rgba(17, 31, 57, 0.22);
    transition: transform 0.2s;
}

.admin-switch input:checked + .admin-switch-track {
    background: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(49, 112, 166, 0.28);
}

.admin-switch input:checked + .admin-switch-track::after {
    transform: translateX(20px);
}

.admin-switch input:focus-visible + .admin-switch-track {
    box-shadow: 0 0 0 4px rgba(65, 139, 202, 0.18);
}

.admin-switch-text {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    min-width: 32px;
}

.admin-switch-form {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    column-gap: 14px;
    justify-content: start;
    min-height: 48px;
    max-width: 100%;
    width: 100%;
}

.admin-switch-form .admin-switch-control {
    grid-column: 2;
    grid-row: 1;
}

.admin-switch-form .admin-switch-text {
    color: var(--text-main);
    display: block;
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    white-space: normal;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 22px 24px;
}

.page-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.admin-auth-page,
.admin-form-page {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0;
}

.admin-form-page-narrow {
    width: min(760px, calc(100% - 40px));
}

.admin-auth-page {
    width: min(460px, calc(100% - 40px));
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.admin-auth-card,
.admin-form-card {
    width: 100%;
    padding: 28px;
}

.admin-auth-brand,
.admin-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.admin-auth-brand {
    align-items: center;
    justify-content: flex-start;
}

.admin-auth-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 8px;
    background: #F8FAFC;
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.admin-form {
    margin: 0;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-help-text {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.admin-file-drop {
    background: #F8FAFC;
    border: 1px dashed #BAC6D4;
    border-radius: 8px;
    padding: 16px;
}

.admin-current-image {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
}

.admin-current-image img {
    height: 72px;
    max-width: 160px;
    border-radius: 8px;
    margin-top: 6px;
    object-fit: cover;
    border: 1px solid #EAF0F6;
}

.admin-form-actions {
    justify-content: flex-end;
    padding-top: 6px;
}

.admin-back-link {
    display: block;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
}

.admin-back-link:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .site-popup-overlay {
        padding: 16px;
    }
    .site-popup {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }
    .site-popup-media {
        min-height: 220px;
    }
    .site-popup-content {
        padding: 30px 24px 26px;
    }
    .site-popup-content h2 {
        font-size: 28px;
    }
    .certifications-section {
        padding: 56px 0;
    }
    .certifications-section .section-title {
        font-size: 28px;
    }
    .certifications-carousel {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
        gap: 8px;
    }
    .certification-nav {
        width: 34px;
        height: 34px;
        font-size: 34px;
    }
    .certification-track {
        gap: 24px;
        min-height: 112px;
    }
    .certification-item {
        flex-basis: 138px;
        height: 96px;
    }
    .certification-logo {
        max-width: 132px;
        max-height: 82px;
    }
    .admin-layout,
    .admin-auth-page,
    .admin-form-page,
    .admin-form-page-narrow {
        width: min(100% - 28px, 100%);
        padding: 24px 0;
    }
    .admin-topbar,
    .admin-panel-header,
    .admin-form-header {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-actions,
    .admin-form-actions,
    .admin-settings-form,
    .admin-toolbar,
    .admin-filter-form {
        align-items: stretch;
        flex-direction: column;
    }
    .admin-button {
        width: 100%;
    }
    .admin-stat-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }
    .admin-panel-header,
    .admin-settings-form,
    .admin-toolbar,
    .admin-pagination {
        padding-left: 18px;
        padding-right: 18px;
    }
    .admin-auth-card,
    .admin-form-card {
        padding: 22px;
    }
    .admin-table th,
    .admin-table td {
        padding: 13px 14px;
    }
    .admin-pagination {
        flex-wrap: wrap;
    }
}
