:root {
    /* Refined Brand Theme (Dual Blue + Yellow) */
    --bg-color: #f8f9fa;
    --brand-blue: #0077b5;
    /* Top Header Blue */
    --brand-blue-dark: #00507a;
    /* Sidebar/Nav Blue */
    --accent-color: #ffd400;
    /* Highlight Yellow */

    --main-color: var(--brand-blue);
    --caret-color: var(--brand-blue);
    --sub-color: #6c757d;
    --text-color: #1a202c;
    --error-color: #e53e3e;
    --error-extra-color: #c53030;

    /* Semantic Names */
    --bg: var(--bg-color);
    --primary: var(--main-color);
    --secondary: var(--sub-color);
    --text-main: var(--text-color);
    --text-muted: var(--sub-color);
    --surface: #ffffff;
    --border: #e2e8f0;
    --header-bg: var(--brand-blue);
    --sidebar-bg: var(--brand-blue-dark);

    /* Fonts */
    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Roboto Mono', monospace;

    /* Effects */
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(0, 0, 0, 0.05);
}

/* Global Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Exam Quick Links */
.exam-links-section {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.exam-header {
    margin-bottom: 2rem;
}

.exam-header h2 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.exam-header p {
    color: var(--sub-color);
}

.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.exam-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.exam-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 242, 255, 0.15);
}

.exam-card .exam-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.exam-card .exam-meta {
    font-size: 0.85rem;
    color: var(--sub-color);
}

/* Custom time icons and button tweaks */
.btn-icon-small {
    background: none;
    border: none;
    color: var(--sub-color);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
}

.btn-icon-small:hover {
    color: var(--text-main);
}

#custom-time-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.2rem;
    text-align: center;
    outline: none;
}

#custom-time-input:focus {
    border-color: var(--primary);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-main);
}

a {
    color: var(--sub-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-main);
}

/* --- Layout --- */
/* --- Layout (New Sidebar + Top Header) --- */
body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    /* Prevent body scroll, let specific areas scroll */
}

/* Dual-Bar Header Setup */
.layout-header-top {
    height: 60px;
    background-color: var(--sidebar-bg);
    /* Darker Blue */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    color: white;
    z-index: 1001;
}

.layout-header-nav {
    height: 50px;
    background-color: var(--header-bg);
    /* Lighter Blue */
    display: flex;
    align-items: center;
    padding: 0 4rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-area i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.subtitle {
    font-size: 0.85rem;
    color: var(--accent-color);
    /* Yellow for the subtitle */
    opacity: 0.8;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.top-nav {
    display: flex;
    gap: 2rem;
}

.top-nav a {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.top-nav a:hover {
    color: var(--accent-color);
}

/* Container for Sidebar + Main */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    flex: 1;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
}

.sidebar {
    background-color: var(--sidebar-bg);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    /* Chrome/Safari/Webkit */
}

/* Sidebar Nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    /* Tighter spacing */
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #000000;
    background-color: var(--accent-color);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 212, 0, 0.3);
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link.small {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
}

.nav-divider {
    height: 1px;
    background-color: var(--border);
    margin: 0.5rem 0;
    opacity: 0.5;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--sub-color);
    text-align: center;
    opacity: 0.5;
    padding-top: 1rem;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    padding: 0 4rem 2rem 4rem;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    /* Allow content to scroll independent of sidebar */
}

/* --- Header --- */
/* --- Header (Inside Main Content) --- */
header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    /* Space out breadcrumbs/empty and tools */
    align-items: center;
    margin-bottom: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
}

.logo-icon {
    color: var(--primary);
}

.logo-text {
    color: #ffffff;
    font-family: var(--font-mono);
    /* Looks techy */
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.header-nav a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-nav a i {
    font-size: 1rem;
}

.header-utilities {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* --- AdSense Placeholders --- */
.ad-unit {
    background-color: transparent;
    /* Or a slight placeholder color for dev */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    min-height: 90px;
    /* Standard Leaderboard */
    border-radius: 4px;
    overflow: hidden;
}

.ad-unit.top-banner {
    width: 100%;
    max-width: 728px;
    margin: 0 auto 2rem auto;
}

.ad-unit.bottom-banner {
    width: 100%;
    max-width: 728px;
    margin: 2rem auto 0 auto;
}

.ad-unit .placeholder-text {
    color: var(--sub-color);
    font-size: 0.8rem;
    border: 1px dashed var(--sub-color);
    padding: 1rem;
    width: 100%;
    text-align: center;
}


/* --- Main Content Area (Test Center) --- */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Removed center to prevent top clipping */
    min-height: 60vh;
    padding-top: 2rem;
    /* Ensure spacing from top */
}

/* Hero / Configuration */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: opacity 0.2s;
    opacity: 1;
    /* Explicit default */
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-wrapper.faded {
    opacity: 0;
    pointer-events: none;
}

.test-header {
    margin-bottom: 0.5rem;
}

.test-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.test-header p {
    color: var(--sub-color);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.8;
}

.settings-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.config-bar {
    display: flex;
    background-color: var(--surface);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.config-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.config-label {
    font-size: 0.65rem;
    color: var(--sub-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    opacity: 0.6;
    margin-left: 0.25rem;
}

/* FAQ Accordion Styles */
.faq-accordion {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    font-size: 1rem;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    font-size: 0.8rem;
    color: var(--sub-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--sub-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem 1.5rem;
}

.config-group {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg);
    padding: 0.25rem;
    border-radius: 4px;
    height: 32px;
    align-items: center;
}

.config-btn {
    background: none;
    border: none;
    color: var(--sub-color);
    padding: 0 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    height: 100%;
}

.config-btn:hover,
.config-select:hover {
    color: var(--text-main);
}

.config-btn.active {
    color: var(--primary);
}

.config-select {
    background: none;
    border: none;
    color: var(--sub-color);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    /* Hide default arrow to style better if needed, or keep for simplicity */
}

.config-select option {
    background-color: var(--surface);
    color: var(--text-main);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--glass-border);
}

.close-button {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    color: var(--sub-color);
    cursor: pointer;
    transition: color 0.2s;
}

.close-button:hover {
    color: var(--text-main);
    /* Changed from --main-color to --text-main */
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    /* Changed from --main-color to --text-main */
}

.modal-content p {
    color: var(--sub-color);
    margin-bottom: 1.5rem;
}

#custom-text-input {
    width: 100%;
    height: 200px;
    padding: 1rem;
    background-color: var(--bg);
    /* Changed from --bg-color to --bg */
    color: var(--text-main);
    /* Changed from --text-color to --text-main */
    border: 2px solid var(--border);
    /* Changed from --border-color to --border */
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    margin-bottom: 1.5rem;
    outline: none;
    transition: border-color 0.2s;
}

#custom-text-input:focus {
    border-color: var(--primary);
    /* Changed from --main-color to --primary */
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

.primary-button {
    background-color: var(--primary);
    /* Changed from --main-color to --primary */
    color: var(--bg);
    /* Changed from --bg-color to --bg */
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.primary-button:hover {
    opacity: 0.9;
}

.primary-button:active {
    transform: scale(0.98);
}

.config-group {
    display: flex;
    gap: 0.25rem;
    background-color: var(--bg);
    padding: 0.25rem;
    border-radius: 4px;
    height: 32px;
    align-items: center;
}

.config-btn {
    background: none;
    border: none;
    color: var(--sub-color);
    padding: 0 0.75rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s;
    height: 100%;
}

.config-btn:hover,
.config-select:hover {
    color: var(--text-main);
}

.config-btn.active {
    color: var(--primary);
}

.config-select {
    background: none;
    border: none;
    color: var(--sub-color);
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    /* Hide default arrow to style better if needed, or keep for simplicity */
}

.config-select option {
    background-color: var(--surface);
    color: var(--text-main);
}

/* Typing Area */
.typing-area-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    /* Wider for professional feel */
}

#hidden-input {
    opacity: 0;
    position: absolute;
    z-index: -999;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* Floating Stats (Live WPM/Timer) */
.live-stats {
    position: absolute;
    top: -45px;
    left: 0;
    font-size: 1.4rem;
    color: var(--primary);
    font-family: var(--font-mono);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-weight: 700;
}

.live-stats.visible {
    opacity: 1;
    transform: translateY(-5px);
}

.typing-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    /* Large font */
    line-height: 1.6;
    color: var(--sub-color);
    text-align: left;
    /* Or justify if preferred */
    outline: none;
    user-select: none;
    min-height: 150px;
    word-break: break-word;
    cursor: text;
}

.typing-text span {
    border-bottom: 2px solid transparent;
    /* Prepare for border */
}

.typing-text span.curr {
    border-left: 2px solid var(--caret-color);
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--caret-color);
    }
}

.typing-text span.correct {
    color: var(--text-main);
}

.typing-text span.incorrect {
    color: var(--error-color);
}

/* --- Results / Modal --- */
.result-screen {
    display: none;
    /* Hidden by default */
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.result-screen.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.result-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.big-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.big-stat .label {
    font-size: 2rem;
    color: var(--sub-color);
}

.big-stat .value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.secondary-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.sec-stat .label {
    display: block;
    font-size: 0.8rem;
    color: var(--sub-color);
}

.sec-stat .value {
    font-size: 1.2rem;
    color: var(--text-main);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- Buttons & Interactives --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary) 0%, #d4a010 100%);
    color: #111;
    /* Dark text for contrast on yellow */
    box-shadow: 0 4px 15px rgba(226, 183, 20, 0.3);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 183, 20, 0.4);
    filter: brightness(1.1);
}

.btn.primary:active {
    transform: translateY(0);
}

.btn.secondary {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn.secondary:hover {
    border-color: var(--text-muted);
    background: #3c3e42;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--sub-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
    padding: 0.5rem;
    border-radius: 50%;
}

.btn-icon:hover {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}

/* --- Cards --- */
.game-card,
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover,
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--sub-color);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* --- Utility / Focus Mode --- */
/* COMMENTED OUT: User prefers to keep navigation visible during typing
.focus-active header,
.focus-active footer,
.focus-active .ad-unit,
.focus-active .sidebar {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
*/

/* Mobile Tweaks */
@media (max-width: 850px) {
    body {
        height: auto;
        overflow: auto;
    }

    .layout-header {
        padding: 0 1rem;
        position: sticky;
        top: 0;
        z-index: 1001;
    }

    .app-container {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        display: block;
        /* Stack */
    }

    .sidebar {
        width: 100%;
        height: auto;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        border-bottom: 1px solid var(--border);
        overflow-y: hidden;
        overflow-x: auto;
        /* Scroll horizontal if needed */
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        margin-top: 0;
        gap: 1rem;
    }

    .sidebar-nav::-webkit-scrollbar {
        height: 4px;
        /* Tiny scrollbar for horizontal */
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        padding: 1rem;
        height: auto;
        overflow: visible;
    }

    .big-stat .value {
        font-size: 3rem;
    }
}

/* --- Result Chart & Premium Layout --- */
.result-chart-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-screen.active {
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Certificate Feature --- */
.certificate-action {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.cert-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.cert-input-wrapper label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.cert-name-input {
    background: var(--bg-color);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cert-name-input:focus {
    outline: none;
    border-color: var(--primary);
}

.download-cert-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 80, 122, 0.2);
}

.download-cert-btn:hover {
    background: #004062;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 80, 122, 0.3);
}

.download-cert-btn:active {
    transform: translateY(0);
}

.download-cert-btn i {
    font-size: 1.1rem;
}

/* --- Informational Sections (How to Use, FAQ, SEO) --- */
.info-sections {
    max-width: 1000px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.info-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s, border-color 0.2s;
}

.info-card:hover {
    border-color: var(--primary);
}

.info-card h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card h3 {
    color: var(--text-main);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1.05rem;
}

.faq-item:first-of-type h3 {
    margin-top: 0;
}

.info-card p,
.info-card li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.info-card ol {
    padding-left: 1.2rem;
}

.info-card ol li {
    margin-bottom: 0.8rem;
}

.seo-content {
    grid-column: 1 / -1;
    text-align: center;
    border: none;
    background: transparent;
}

.seo-content h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.seo-content p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.1rem;
}

/* Informational sections removed or moved wrapping if needed */

/* Mobile Responsiveness for Informational Sections */
@media (max-width: 768px) {
    .info-sections {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 1.5rem;
    }

    .seo-content h1 {
        font-size: 1.5rem;
    }
}