/* Public home page — scoped to .sc-home so Bootstrap/footer are not overridden */
.sc-home {
    --navy: #0b1f3a;
    --blue: #12355b;
    --orange: #f26522;
    --gold: #f4a261;
    --page: #f4f7fb;
    --muted: #5b6b80;
    --line: rgba(18, 53, 91, 0.1);
    --radius: 20px;
    --shadow: 0 14px 32px rgba(11, 31, 58, 0.1);
    color: var(--navy);
}

.sc-home a { text-decoration: none; }

.sc-home-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.sc-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 15%, rgba(242, 101, 34, 0.22), transparent 32%),
        radial-gradient(circle at 10% 85%, rgba(244, 162, 97, 0.12), transparent 36%),
        linear-gradient(135deg, #0b1f3a 0%, #12355b 58%, #1a3a63 100%);
    color: #fff;
    padding: 56px 0 48px;
}

.sc-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 64px;
    background: linear-gradient(to bottom, transparent, var(--page));
    pointer-events: none;
}

.sc-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.sc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffd7bf;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.sc-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: #fff;
}

.sc-hero h1 span { color: #f4a261; }

.sc-hero-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    max-width: 520px;
    margin: 0 0 24px;
}

.sc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.sc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sc-btn:hover { transform: translateY(-2px); }

.sc-btn-primary {
    background: linear-gradient(135deg, #f26522, #e67e22);
    color: #fff;
    box-shadow: 0 10px 22px rgba(242, 101, 34, 0.28);
}

.sc-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.sc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sc-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 10px 14px;
    min-width: 92px;
}

.sc-stat b {
    display: block;
    font-size: 1.15rem;
    color: #f4a261;
}

.sc-stat span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
}

.sc-portal-stack {
    display: grid;
    gap: 12px;
}

.sc-portal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    color: var(--navy);
    border-radius: 18px;
    padding: 14px 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    color: var(--navy);
}

.sc-portal-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.sc-portal-icon.navy { background: linear-gradient(135deg, #0b1f3a, #1a3a63); }
.sc-portal-icon.orange { background: linear-gradient(135deg, #f26522, #e67e22); }

.sc-portal-card strong {
    display: block;
    font-size: 0.98rem;
}

.sc-portal-card small {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.sc-portal-card .fa-arrow-right {
    margin-left: auto;
    color: var(--orange);
}

.sc-jump {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 70px;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(11, 31, 58, 0.04);
}

.sc-jump-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

.sc-jump-row::-webkit-scrollbar { display: none; }

.sc-jump a {
    white-space: nowrap;
    background: var(--page);
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
}

.sc-jump a:hover,
.sc-jump a:focus {
    background: #fff3ea;
    border-color: #f4a261;
    color: var(--orange);
}

.sc-section {
    padding: 56px 0;
}

.sc-section.alt { background: #fff; }

.sc-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.sc-section-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.sc-section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.sc-section-head a {
    color: var(--orange);
    font-weight: 700;
    font-size: 0.9rem;
}

.sc-course-grid,
.sc-job-grid,
.sc-exam-grid,
.sc-blog-grid,
.sc-tool-grid {
    display: grid;
    gap: 18px;
}

.sc-course-grid,
.sc-job-grid,
.sc-exam-grid,
.sc-blog-grid {
    grid-template-columns: repeat(4, 1fr);
}

.sc-tool-grid {
    grid-template-columns: repeat(6, 1fr);
}

.sc-course-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    color: var(--navy);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s ease;
}

.sc-course-card:hover {
    transform: translateY(-4px);
    color: var(--navy);
}

.sc-course-card .img-placeholder,
.sc-course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #12355b;
    display: block;
}

.sc-course-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    padding: 14px 14px 16px;
    line-height: 1.4;
}

.sc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    align-items: center;
}

.sc-search {
    flex: 1 1 240px;
    position: relative;
}

.sc-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.sc-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 14px 11px 40px;
    font-size: 0.92rem;
    outline: none;
    background: #fff;
}

.sc-search input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.12);
}

.sc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-tab {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.sc-tab.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.sc-tool-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 12px 14px;
    text-align: center;
    color: var(--navy);
    min-height: 132px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sc-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 101, 34, 0.35);
    box-shadow: var(--shadow);
    color: var(--navy);
}

.sc-tool-card i {
    font-size: 1.35rem;
    color: var(--orange);
    margin-bottom: 8px;
    display: block;
}

.sc-tool-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.sc-tool-card p {
    margin: 0;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.35;
}

.sc-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 28px 12px;
}

.sc-job-card,
.sc-exam-card,
.sc-blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    color: var(--navy);
}

.sc-job-card,
.sc-exam-card {
    padding: 18px;
    display: flex;
    flex-direction: column;
}

.sc-job-card h3,
.sc-exam-card h3,
.sc-blog-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
}

.sc-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 6px;
}

.sc-meta.danger { color: #c0392b; font-weight: 700; }

.sc-card-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f26522, #e67e22);
    color: #fff !important;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
}

.sc-exam-card {
    text-align: center;
}

.sc-exam-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0b1f3a, #f26522);
    color: #fff;
    font-size: 1.2rem;
}

.sc-exam-card p {
    color: var(--muted);
    font-size: 0.82rem;
    margin: 0 0 14px;
}

.sc-exam-card .sc-card-cta {
    background: transparent;
    color: var(--orange) !important;
    border: 1.5px solid var(--orange);
}

.sc-blog-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #12355b;
}

.sc-blog-card .body { padding: 14px; }

.sc-blog-card p {
    color: var(--muted);
    font-size: 0.8rem;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-blog-card .sc-card-cta {
    background: transparent;
    color: var(--orange) !important;
    border: 1.5px solid var(--orange);
    width: 100%;
}

.skeleton-card {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    border-radius: 16px;
    height: 210px;
    animation: sc-shimmer 1.2s ease-in-out infinite;
}

.lazy-img { content-visibility: auto; opacity: 0; transition: opacity 0.3s; }
.lazy-img.loaded { opacity: 1; }
.img-placeholder {
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: sc-shimmer 1.2s ease-in-out infinite;
}

@keyframes sc-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.sc-loading {
    text-align: center;
    padding: 28px;
    color: var(--muted);
}

.page-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: sc-spin 0.7s linear infinite;
    margin: 0 auto 10px;
}

@keyframes sc-spin { to { transform: rotate(360deg); } }

[ng-cloak] { display: none !important; }

@media (max-width: 1100px) {
    .sc-tool-grid { grid-template-columns: repeat(4, 1fr); }
    .sc-course-grid,
    .sc-job-grid,
    .sc-exam-grid,
    .sc-blog-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .sc-hero { padding: 36px 0 28px; }
    .sc-hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .sc-hero::after { height: 36px; }
    .sc-jump { top: 64px; }
}

@media (max-width: 768px) {
    .sc-course-grid,
    .sc-job-grid,
    .sc-exam-grid,
    .sc-blog-grid,
    .sc-tool-grid { grid-template-columns: repeat(2, 1fr); }
    .sc-section { padding: 40px 0; }
    .sc-home-wrap { padding: 0 16px; }
}

@media (max-width: 480px) {
    .sc-exam-grid,
    .sc-blog-grid { grid-template-columns: 1fr; }
    .sc-stat { min-width: calc(50% - 6px); }
}

@media (prefers-reduced-motion: reduce) {
    .sc-home *,
    .sc-home *::before,
    .sc-home *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
