@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
    --primary-color: #ffd700; /* Bright Yellow Accent */
    --dark-bg: #1d1d1b;
    --light-text: #e0e0e0;
    --dark-card-bg: #1d1d1b;
    --font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    background-color: #333; /* Background for the 'outside' area */
    display: flex;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 2em;
}
.book {
    width: 210mm;
    background-color: var(--dark-bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.page {
    width: 100%;
    min-height: 297mm; /* A4 Height, but can grow */
    height: auto; /* Let content define height for screen */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 15mm;
    color: var(--light-text);
    background-color: var(--dark-bg);
}
.cover {
    justify-content: center;
    align-items: center;
    text-align: center;
}
.cover h1 {
    font-size: 52pt;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    color: white;
}
.cover h2 {
    font-size: 24pt;
    font-weight: 400;
    margin: 10px 0 0;
    color: var(--primary-color);
}
.cover .brand-line {
    width: 80%;
    height: 3px;
    background: var(--primary-color);
    margin-top: 20mm;
    margin-bottom: -10mm;
}

.course-page {
    display: flex;
    flex-direction: column;
}
.course-page img {
    width: 100%;
    margin-bottom: 10mm;
    border: 2px solid var(--primary-color);
}
.course-title {
    font-size: 32pt;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8mm;
    text-transform: uppercase;
}
.course-details {
    font-size: 12pt;
    line-height: 1.7;
    color: var(--light-text);
}
.course-details .section-title {
    font-size: 16pt;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2mm;
    margin-top: 5mm;
    margin-bottom: 5mm;
}
.course-details ul {
    list-style: none;
    padding: 0;
}
.course-details li {
    margin-bottom: 0.8em;
    padding-left: 1.5em;
    position: relative;
}
.course-details li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}
.course-details .info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5mm 8mm;
}
.course-details .info-grid strong {
    color: white;
    font-weight: 700;
}


.final-page {
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--dark-card-bg);
}
.final-page h2 {
    font-size: 36pt;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
}
.final-page p {
    font-size: 14pt;
    color: var(--light-text);
    max-width: 70%;
    margin: 10mm auto 15mm;
}
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #1a1a1a;
    padding: 18px 40px;
    font-size: 18pt;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.2s ease, background-color 0.3s;
    text-transform: uppercase;
}
.cta-button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 25px;
    background-color: rgba(29, 29, 27, 0.8);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Hamburger Menu */
.hamburger-menu {
    margin-left: auto; /* Pushes the menu to the right */
    cursor: pointer;
    display: flex;
    align-items: center;
}
.hamburger-menu .menu-text {
    color: var(--primary-color);
    font-size: 16pt;
    font-weight: 700;
    margin-right: 15px;
}
.hamburger-icon .bar {
    width: 35px;
    height: 5px;
    background-color: var(--primary-color);
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 2px;
}
.hamburger-menu.active .hamburger-icon .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 6px);
}
.hamburger-menu.active .hamburger-icon .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .hamburger-icon .bar:nth-child(3) {
    transform: rotate(45deg) translate(-9px, -8px);
}

/* Menu Panel */
.menu-panel {
    position: fixed;
    top: 0;
    right: -320px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background-color: var(--dark-bg);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    z-index: 1001;
    transition: right 0.5s ease;
    overflow-y: auto;
    padding: 20px;
}
.menu-panel.active {
    right: 0;
}
.menu-panel ul {
    list-style: none;
    padding: 60px 0 0 0;
    margin: 0;
}
.menu-panel ul li a {
    display: block;
    padding: 15px 25px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 14pt;
    transition: background-color 0.3s, color 0.3s;
    border-bottom: 1px solid #444;
}
.menu-panel ul li a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Back Button */
.back-button {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 16pt;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.back-button .arrow {
    margin-right: 10px;
    font-size: 24pt;
    line-height: 1;
}

@media (max-width: 800px) {
    .book {
        width: 100%;
    }
    body {
        padding: 80px 0 0 0;
    }
}

@media print {
    body {
        background-color: white;
        padding: 0;
    }
    .book {
        box-shadow: none;
    }
    .page {
        page-break-after: always;
    }
    .hamburger-menu, .menu-panel, .site-header {
        display: none !important;
    }
}