/* ==========================================================================
1. CSS RESET & DESIGN VARIABLES
========================================================================== */
:root {
--bg-white: #ffffff;
--bg-soft: #f1f5f9;
--bg-alt: #f8fafc;
--primary: #2563eb;
--primary-hover: #1d4ed8;
--secondary: #0ea5e9;
--accent: #f59e0b;
--accent-hover: #d97706;
--text-main: #111827;
--text-muted: #4b5563;
--text-light: #6b7280;
--border-color: #e2e8f0;
--border-card: #e5e7eb;
--footer-bg: #1f2937;
--footer-text: #9ca3af;
--footer-heading: #ffffff;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-full: 9999px;
--header-height: 70px;
--transition-speed: 250ms;
--transition-ease: ease-in-out;
--max-width: 1280px;
}
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
font-size: 16px;
-webkit-text-size-adjust: 100%;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-alt);
color: var(--text-main);
line-height: 1.5;
overflow-x: hidden;
min-height: 100vh;
display: flex;
flex-direction: column;
width: 100%;
}
a {
color: inherit;
text-decoration: none;
}
button {
font-family: inherit;
cursor: pointer;
border: none;
background: none;
}
.skip-link {
position: absolute;
top: -100px;
left: 1rem;
background: var(--primary);
color: #fff;
padding: 0.75rem 1.25rem;
border-radius: var(--radius-md);
z-index: 9999;
font-weight: 600;
transition: top var(--transition-speed) var(--transition-ease);
}
.skip-link:focus {
top: 1rem;
}

/* ==========================================================================
2. SITE HEADER (90% WHITE / 10% DARK ACCENT WITH LIGHT BORDER & SHADOW)
========================================================================== */
.site-header {
position: sticky;
top: 0;
left: 0;
right: 0;
height: var(--header-height);
background-color: rgba(255, 255, 255, 0.90);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(226, 232, 240, 0.85);
box-shadow: 0 1px 3px 0 rgba(17, 24, 39, 0.04);
z-index: 1000;
display: flex;
align-items: center;
}
.header-container {
width: 100%;
max-width: var(--max-width);
margin: 0 auto;
padding: 0 1rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.header-left {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.brand-logo {
display: flex;
flex-direction: column;
text-decoration: none;
flex-shrink: 0;
}
.brand-text {
font-size: clamp(1.1rem, 2.5vw, 1.35rem);
font-weight: 800;
letter-spacing: -0.02em;
line-height: 1.2;
}
.brand-sd { color: var(--primary); }
.brand-learning { color: var(--text-main); margin: 0 2px; }
.brand-center { color: var(--accent); }
.brand-sdlc-desktop { display: inline-block; }
.brand-sdlc-mobile { display: none; }
.portal-badge-title {
display: inline-flex;
align-items: center;
padding: 0.2rem 0.65rem;
background-color: var(--bg-soft);
color: #1f2937;
font-size: 0.775rem;
font-weight: 700;
border-radius: var(--radius-sm);
border: 1px solid var(--border-color);
letter-spacing: 0.01em;
white-space: nowrap;
}
.header-right {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.45rem;
padding: 0.52rem 1.05rem;
font-size: 0.875rem;
font-weight: 600;
border-radius: var(--radius-md);
transition: all var(--transition-speed) var(--transition-ease);
white-space: nowrap;
cursor: pointer;
}
.btn-header-back {
border: 1px solid var(--border-color);
color: #374151;
background-color: #ffffff;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.btn-header-back:hover {
background-color: var(--bg-soft);
border-color: #cbd5e1;
color: var(--primary);
}
.btn-header-back svg {
transition: transform var(--transition-speed) var(--transition-ease);
}
.btn-header-back:hover svg {
transform: translateX(-2px);
}
.btn-text-desktop { display: inline; }
.btn-text-mobile { display: none; }

/* ==========================================================================
3. PAGE LAYOUT & SOFT CHARCOAL HERO SECTION
========================================================================== */
main {
flex: 1;
width: 100%;
}
.page-section {
padding: 2rem 1rem 4rem 1rem;
width: 100%;
}
.page-container {
max-width: var(--max-width);
margin: 0 auto;
width: 100%;
}

/* Elegant Soft Charcoal Hero Banner */
.hero-banner {
background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
color: #ffffff;
border-radius: var(--radius-xl);
padding: 2.25rem 2rem;
margin-bottom: 2.25rem;
position: relative;
overflow: hidden;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-banner::after {
content: '';
position: absolute;
top: -30%;
right: -10%;
width: 280px;
height: 280px;
background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
border-radius: 50%;
pointer-events: none;
}
.hero-tag {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.22rem 0.7rem;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: var(--radius-full);
font-size: 0.75rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: #f1f5f9;
margin-bottom: 0.75rem;
}
.hero-title {
font-size: clamp(1.4rem, 3.5vw, 2rem);
font-weight: 800;
letter-spacing: -0.02em;
margin-bottom: 0.5rem;
color: #ffffff;
}
.hero-subtitle {
font-size: 0.975rem;
color: #cbd5e1;
max-width: 680px;
line-height: 1.55;
}

/* ==========================================================================
4. RESPONSIVE 1x2 SUBJECT CARDS GRID & CARD DESIGN
========================================================================== */
.subjects-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.25rem;
}

.subject-card {
background-color: var(--bg-white);
border: 1px solid var(--border-card);
border-radius: var(--radius-xl);
padding: 1.35rem 1.4rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
box-shadow: var(--shadow-sm);
transition: transform var(--transition-speed) var(--transition-ease),
box-shadow var(--transition-speed) var(--transition-ease),
border-color var(--transition-speed) var(--transition-ease);
cursor: pointer;
text-decoration: none;
position: relative;
min-height: 94px;
}
.subject-card:hover, .subject-card:focus-visible {
transform: translateY(-3px);
box-shadow: var(--shadow-md);
border-color: #cbd5e1;
outline: none;
}
.subject-card-left {
display: flex;
align-items: center;
gap: 1.1rem;
min-width: 0;
}
.subject-icon-box {
width: 50px;
height: 50px;
border-radius: var(--radius-lg);
background-color: #f8fafc;
border: 1px solid var(--border-card);
color: #334155;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all var(--transition-speed) var(--transition-ease);
}
.subject-card:hover .subject-icon-box {
background-color: #1e293b;
color: #ffffff;
border-color: #1e293b;
}
.subject-info {
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.subject-title {
font-size: 1.15rem;
font-weight: 800;
color: var(--text-main);
line-height: 1.3;
letter-spacing: -0.01em;
word-break: break-word;
}
.subject-action-label {
font-size: 0.8rem;
font-weight: 600;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 0.25rem;
transition: color var(--transition-speed) var(--transition-ease);
}
.subject-card:hover .subject-action-label {
color: var(--primary);
}
.subject-arrow-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background-color: #f8fafc;
color: #475569;
border: 1px solid var(--border-card);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
transition: all var(--transition-speed) var(--transition-ease);
}
.subject-card:hover .subject-arrow-btn {
background-color: #1e293b;
color: #ffffff;
border-color: #1e293b;
transform: translateX(3px);
}

/* ==========================================================================
5. SKELETON, EMPTY & NOTICE STATES
========================================================================== */
.skeleton {
background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite ease-in-out;
border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.skeleton-card {
pointer-events: none;
border-color: var(--border-color);
}

.notice-card {
text-align: center;
padding: 3.5rem 1.5rem;
background: var(--bg-white);
border: 1px solid var(--border-card);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-sm);
max-width: 540px;
margin: 2rem auto;
}
.notice-icon-box {
width: 60px;
height: 60px;
background: var(--bg-soft);
color: #334155;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.25rem auto;
border: 1px solid var(--border-color);
}
.notice-icon-warning {
background: #fffbeb;
color: var(--accent-hover);
border: 1px solid #fde68a;
}
.notice-title {
font-size: 1.25rem;
font-weight: 800;
color: var(--text-main);
margin-bottom: 0.6rem;
line-height: 1.3;
letter-spacing: -0.01em;
}
.notice-text {
font-size: 0.95rem;
color: var(--text-muted);
line-height: 1.55;
margin-bottom: 1.75rem;
}
.btn-primary {
background-color: var(--primary);
color: #ffffff;
border: 1px solid var(--primary);
}
.btn-primary:hover {
background-color: var(--primary-hover);
border-color: var(--primary-hover);
color: #ffffff;
}

.loading-state-box {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 3rem 1rem;
gap: 1rem;
}
.loading-spinner {
width: 38px;
height: 38px;
border: 3px solid #e2e8f0;
border-top-color: #334155;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.loading-text {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-muted);
}

.fade-slide-up {
animation: fadeSlideUp 0.4s ease-out forwards;
}
@keyframes fadeSlideUp {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
6. RESPONSIVE BREAKPOINTS
========================================================================== */
@media (max-width: 640px) {
.brand-sdlc-desktop { display: none; }
.brand-sdlc-mobile { display: inline-block; }
.site-header { height: 62px; }
.page-section { padding: 1.25rem 0.75rem 3rem 0.75rem; }
.hero-banner { padding: 1.5rem 1.25rem; margin-bottom: 1.5rem; }
.hero-title { font-size: 1.35rem; }
.hero-subtitle { font-size: 0.875rem; }

/* 1 Column on small mobile screens */
.subjects-grid {
grid-template-columns: 1fr;
gap: 0.85rem;
}
.subject-card {
padding: 1.1rem 1.15rem;
}
.notice-card {
padding: 2.25rem 1.25rem;
margin: 1.5rem auto;
}
}
@media (max-width: 480px) {
.btn-text-desktop { display: none; }
.btn-text-mobile { display: inline; }
.btn-header-back { padding: 0.48rem 0.75rem; }
}

/* Footer */
.site-footer {
background-color: var(--footer-bg);
color: var(--footer-text);
padding: 3.5rem 1rem 2rem 1rem;
border-top: 1px solid #374151;
margin-top: auto;
}