/* ==========================================================================
   sm-public-portal.css — Public Portal & Enrollment (_PublicLayout, _TuyenSinhLayout)
   Uses Unified Design Tokens from sm-design-system.css
   ========================================================================== */

body.public-portal-body {
    font-family: var(--sm-font-body);
    background-color: var(--sm-bg);
    color: var(--sm-text);
    margin-bottom: 0 !important;
    overflow-x: hidden;
}

body.public-portal-body h1,
body.public-portal-body h2,
body.public-portal-body h3,
body.public-portal-body h4,
body.public-portal-body h5,
body.public-portal-body h6,
.font-heading,
.school-header .brand-title,
.public-navbar .nav-link,
.school-header .btn {
    font-family: var(--sm-font-heading);
}

/* --- 1. TOPBAR HÀNH CHÍNH (_PublicLayout) --- */
.academic-topbar {
    background: #071936;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.academic-topbar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.academic-topbar a:hover {
    color: #fbbf24;
}

.topbar-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 50rem;
    font-weight: 500;
    transition: all 0.2s;
}

.topbar-pill:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    color: #fbbf24 !important;
}

/* --- 2. HEADER THƯƠNG HIỆU NHÀ TRƯỜNG (_PublicLayout) --- */
.school-header {
    background:
        radial-gradient(circle at 92% 15%, rgba(251, 191, 36, 0.16) 0%, transparent 320px),
        radial-gradient(circle at 20% 90%, rgba(56, 189, 248, 0.14) 0%, transparent 280px),
        linear-gradient(125deg, var(--sm-primary-dark) 0%, var(--sm-primary) 55%, #1d4ed8 100%);
    color: #fff;
    position: relative;
    z-index: 1035;
    overflow: visible;
}

.school-header .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    padding: 0.5rem;
    min-width: 240px;
    z-index: 1055;
}

.school-header .dropdown-item {
    border-radius: 0.55rem;
    padding: 0.55rem 0.85rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.15s ease;
}

.school-header .dropdown-item:hover {
    background: rgba(15, 82, 186, 0.08);
    color: var(--sm-primary);
    transform: translateX(3px);
}

.school-header .brand-block {
    gap: 1rem;
    text-decoration: none;
    color: #fff;
    position: relative;
    z-index: 2;
}

.school-header .logo-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    padding: 5px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(251, 191, 36, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.school-header .brand-block:hover .logo-wrapper {
    transform: scale(1.05);
}

.school-header .brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.school-header .brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fde68a;
    font-weight: 700;
    margin-bottom: 2px;
}

.school-header .brand-title {
    margin: 0;
    line-height: 1.2;
    font-weight: 800;
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.school-header .brand-slogan {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 2px;
}

.header-search-form {
    position: relative;
    min-width: 230px;
}

.header-search-form .form-control {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50rem;
    padding-left: 1rem;
    padding-right: 2.5rem;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
}

.header-search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search-form .form-control:focus {
    background: #ffffff;
    color: var(--sm-text);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.35);
    border-color: #fbbf24;
}

.header-search-form .form-control:focus::placeholder {
    color: #94a3b8;
}

.header-search-form .btn-search {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 10px;
}

.header-search-form .form-control:focus + .btn-search {
    color: var(--sm-primary);
}

.btn-student-portal {
    background: linear-gradient(135deg, #fbbf24 0%, var(--sm-accent) 100%);
    color: var(--sm-text) !important;
    font-weight: 700;
    border: none;
    border-radius: 50rem;
    padding: 0.55rem 1.2rem;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
}

.btn-student-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, #fcd34d 0%, var(--sm-accent) 100%);
}

/* --- 3. STICKY NAVBAR (_PublicLayout) --- */
.public-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    z-index: 1030;
}

.public-navbar .navbar-nav .nav-link {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.65rem 0.95rem;
    border-radius: 0.65rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.public-navbar .navbar-nav .nav-link:hover {
    color: var(--sm-primary);
    background: rgba(15, 82, 186, 0.06);
}

.public-navbar .navbar-nav .nav-link.active {
    color: var(--sm-primary);
    background: rgba(15, 82, 186, 0.1);
    font-weight: 700;
}

.public-navbar .dropdown-menu {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    padding: 0.5rem;
    min-width: 230px;
}

.public-navbar .dropdown-item {
    border-radius: 0.55rem;
    padding: 0.55rem 0.85rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.15s ease;
}

.public-navbar .dropdown-item:hover {
    background: rgba(15, 82, 186, 0.08);
    color: var(--sm-primary);
    transform: translateX(3px);
}

/* --- 4. BREADCRUMB BAR & FOOTER (_PublicLayout) --- */
.page-head {
    background: var(--sm-surface);
    border-bottom: 1px solid var(--sm-border);
}

.school-footer {
    background: linear-gradient(180deg, #0b192c 0%, #06101e 100%);
    color: #cbd5e1;
    position: relative !important;
    bottom: auto !important;
    width: 100%;
    white-space: normal !important;
    line-height: 1.6 !important;
    border-top: 4px solid var(--sm-accent);
}

.school-footer h6 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 1.1rem;
    position: relative;
    padding-bottom: 0.6rem;
}

.school-footer h6::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: var(--sm-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover {
    color: #fbbf24;
    transform: translateX(4px);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--sm-primary);
    border-color: var(--sm-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.84rem;
    color: var(--sm-muted);
}

/* --- 5. CỔNG ĐĂNG KÝ TUYỂN SINH TRỰC TUYẾN (_TuyenSinhLayout) --- */
body.tuyensinh-portal-body {
    background: linear-gradient(180deg, #eef4fb 0%, #f8fafc 40%, #f1f5f9 100%);
    font-family: var(--sm-font-sans);
    color: var(--sm-text);
    line-height: 1.6;
}

.ts-header {
    background: linear-gradient(125deg, var(--sm-primary-dark) 0%, var(--sm-primary) 60%, #1d4ed8 100%);
    color: #ffffff;
    padding: 0.9rem 0;
    border-bottom: 3px solid var(--sm-accent);
}

.ts-header .logo-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ts-card {
    background: var(--sm-surface);
    border-radius: 18px;
    border: 1px solid rgba(15, 82, 186, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ts-section-box {
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.ts-section-title {
    font-family: var(--sm-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sm-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--sm-surface-muted);
}

.ts-section-title i {
    color: var(--sm-primary);
    font-size: 1.2rem;
}

.ts-footer {
    background-color: #0b192c;
    color: #cbd5e1;
    padding: 1.5rem 0;
    font-size: 0.875rem;
    border-top: 3px solid var(--sm-accent);
}
