/* ===== CSS Variables ===== */
:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #0a192f;
    --accent: #64ffda;
    --text: #ccd6f6;
    --text-light: #8892b0;
    --bg: #0a192f;
    --bg-secondary: #112240;
    --card-bg: #1a2a4a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    --border: #233554;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --primary: #00b894;
    --primary-dark: #009975;
    --secondary: #f8fafc;
    --accent: #00b894;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --bg-secondary: #ffffff;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    color: var(--primary);
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(35, 53, 84, 0.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.logo i {
    font-size: 1.3rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.nav-menu > li > a {
    color: var(--text);
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.4rem 0.6rem;
    position: relative;
    white-space: nowrap;
    display: block;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.6rem;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: calc(100% - 1.2rem);
}

.nav-menu > li > a.active {
    color: var(--primary);
}

/* ===== Theme Toggle with Rotation ===== */
.theme-toggle {
    cursor: pointer;
    padding: 0.4rem;
    color: var(--text);
    transition: color 0.3s ease;
    background: none;
    border: none;
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.theme-toggle i {
    display: inline-block;
    transition: transform 0.5s ease;
}

.theme-toggle.rotating i {
    transform: rotate(360deg);
}

.theme-toggle:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ===== Dropdown Menu ===== */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex !important;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle i {
    font-size: 0.55rem;
    color: var(--text-light);
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
    list-style: none;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 0.5rem);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
    color: var(--text) !important;
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 136, 0.05);
    color: var(--primary) !important;
}

.dropdown-menu a::after {
    display: none !important;
}

/* ===== Sidebar Layout ===== */
.page-with-sidebar {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    gap: 2.5rem;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    padding-top: 2rem;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    border-left: 2px solid var(--border);
    padding-left: 0.75rem;
}

.sidebar-menu li {
    margin-bottom: 0.15rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.45rem 0.75rem;
    border-radius: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: rgba(0, 255, 136, 0.05);
    color: var(--text);
}

.sidebar-menu a.active {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    font-weight: 600;
    border-left: 2px solid var(--primary);
    margin-left: -0.75rem;
    padding-left: calc(0.75rem - 2px);
    border-radius: 0 6px 6px 0;
}

.content-area {
    flex: 1;
    min-width: 0;
    padding-top: 2rem;
}

/* ===== Hero Section ===== */
.hero {
    padding: 7rem 0 3rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Sidebar pages - hero is smaller, left-aligned */
.page-with-sidebar .hero {
    padding: 0 0 1.5rem;
    text-align: left;
}

.page-with-sidebar .hero h1 {
    font-size: 1.8rem;
}

.page-with-sidebar .hero p {
    margin: 0 0 1rem;
    font-size: 1rem;
}

/* ===== Cards Grid ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

/* Homepage 3-card row */
.cards-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    gap: 1.25rem;
}

.cards-grid.three-col .card {
    padding: 1.5rem;
}

.cards-grid.three-col .card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cards-grid.three-col .card h3 {
    font-size: 1.1rem;
}

.cards-grid.three-col .card p {
    font-size: 0.85rem;
}

.cards-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tag-beginner {
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary);
}

.tag-intermediate {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.tag-advanced {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.tag-free {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

/* ===== Resource Cards ===== */
.resource-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow);
}

.resource-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resource-header h3 {
    font-size: 1.1rem;
}

.rating {
    color: var(--warning);
    font-size: 0.85rem;
    white-space: nowrap;
}

.resource-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.resource-meta i {
    color: var(--text-light);
    font-size: 0.8rem;
    width: 14px;
    text-align: center;
}

.resource-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.resource-note {
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.85rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.resource-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.resource-links .btn i {
    margin-right: 0.3rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
}

/* ===== Comparison Table ===== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-secondary);
    color: var(--primary);
    font-weight: 600;
}

.comparison-table tr:hover td {
    background: rgba(0, 255, 136, 0.03);
}

/* ===== Quiz Styles ===== */
.quiz-container {
    max-width: 650px;
    margin: 1.5rem auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.quiz-question {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quiz-option {
    padding: 0.85rem 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-size: 0.95rem;
    color: var(--text);
}

.quiz-option:hover {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
}

.quiz-option.correct {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.quiz-option.wrong {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.quiz-feedback {
    margin-top: 1.25rem;
    padding: 0.85rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.quiz-score {
    text-align: center;
    padding: 2rem;
}

.quiz-score h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

/* ===== Progress Tracking ===== */
.progress-bar-container {
    background: var(--bg);
    border-radius: 10px;
    height: 6px;
    margin: 0.4rem 0 0.85rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* ===== Search ===== */
.search-container {
    position: relative;
    max-width: 450px;
    margin: 1.5rem auto;
}

.search-input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.3rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 650px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--card-bg);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 1.25rem;
    transform: translateX(-50%);
    border: 3px solid var(--bg);
}

.timeline-date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
}

.timeline-content h3 {
    font-size: 1rem;
    margin: 0.25rem 0 0.5rem;
}

.timeline-content p {
    font-size: 0.85rem;
}

/* ===== Interactive Tools ===== */
.tool-container {
    max-width: 550px;
    margin: 1.5rem auto;
    background: var(--card-bg);
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.tool-container h3 {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
}

.tool-input {
    width: 100%;
    padding: 0.7rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
}

.tool-input:focus {
    outline: none;
    border-color: var(--primary);
}

.tool-output {
    background: var(--bg);
    padding: 0.85rem;
    border-radius: 6px;
    min-height: 40px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* ===== Stats Section ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin: 2rem auto;
    max-width: 700px;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-light);
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

/* ===== Cross-Skill Section ===== */
.cross-skill {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin: 2.5rem 0;
}

.cross-skill h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cross-skill-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.skill-node {
    padding: 0.85rem 1.5rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.skill-node i {
    color: var(--primary);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.4rem;
}

.skill-connector {
    padding: 0.4rem 0.85rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-secondary);
    padding: 2.5rem 1.5rem 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

/* ===== Footer Link Hover Animation ===== */
.footer-section a {
    color: var(--text-light);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(6px);
}

.footer-section a::after {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.8rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    padding: 3rem 0 1.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.section-header p {
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* ===== Tabs ===== */
.tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab {
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    border: 2px solid var(--border);
    background: transparent;
    color: var(--text);
    transition: var(--transition);
    font-size: 0.8rem;
}

.tab.active,
.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Phishing Email Preview ===== */
.email-preview {
    max-width: 600px;
    margin: 1rem auto;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    color: #333;
}

.email-header {
    background: #f1f3f4;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #ddd;
}

.email-subject {
    font-weight: 600;
    font-size: 1rem;
    color: #202124;
}

.email-from {
    color: #5f6368;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.email-body {
    padding: 1.25rem;
}

.email-body p {
    margin-bottom: 0.85rem;
    color: #333;
    font-size: 0.9rem;
}

.email-link {
    color: #1a73e8;
    text-decoration: underline;
    word-break: break-all;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .cards-grid.three-col {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        transition: 0.3s;
        box-shadow: var(--shadow);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu > li > a {
        padding: 0.75rem 0;
        font-size: 0.9rem;
    }

    /* Mobile dropdown */
    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
        text-align: center;
    }

    /* Sidebar to horizontal */
    .page-with-sidebar {
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        width: 100%;
        position: static;
        padding-top: 1.5rem;
        max-height: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 0.5rem;
    }

    .sidebar-menu {
        display: flex;
        gap: 0.25rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        border-left: none;
    }

    .sidebar-menu a {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .sidebar-menu a.active {
        border-left: none;
        margin-left: 0;
        padding-left: 0.75rem;
        border-bottom: 2px solid var(--primary);
        border-radius: 0;
    }

    .content-area {
        padding-top: 1.5rem;
    }

    .hero {
        padding: 6rem 0 2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards-grid,
    .cards-grid.three-col,
    .cards-grid.two-col {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .comparison-table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.75rem;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }

    .timeline-content {
        width: calc(100% - 45px);
        margin-left: 45px;
    }

    .timeline-dot {
        left: 18px;
    }

    .cross-skill-diagram {
        flex-direction: column;
        gap: 0.4rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .resource-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1.25rem;
    }

    .quiz-container,
    .tool-container {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== Utility ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }
.hidden { display: none; }

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}