:root {
    /* LIGHT MODE */
    --bg: #f5f5f7;
    --hfbg: #EDE9EB;
    --text-main: #043A3E;
    --text-muted: #4a5568;
    --accent-gold: #b5892e;
    --btn-bg: #2a0a1f;
    --icon: #0D3437;
    /* Dark Plum */
    --btn-text: #ffffff;
    --border: #CEC5CB;
    --detail-bg: transparent;
}

[data-theme="dark"] {
    /* DARK MODE */
    --bg: #0a1f23;
    --hfbg: #0D3437;
    /* Deep Teal */
    --text-main: #E2E0DA;
    --text-muted: #a0aec0;
    --accent-gold: #d4af37;
    --icon: #d4af37;
    --btn-bg: #3fc7d1;
    /* Cyan */
    --btn-text: #0a1f23;
    --border: #135458;
}

* {
    box-sizing: border-box;
    transition: all 0.25s ease;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Arial', sans-serif;
    letter-spacing: 1.1px;
    line-height: 1.618;

}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 21px;
}

/* Header & Logo */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 21px;
    display: none;
}

.nav-brand {
    display: flex;
    align-items: center;
}

/* Add/Update these in style.css */
/* style.css updates */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--hfbg);
    opacity: 0;
    /* JS will handle this */
    transition: opacity 0.2s ease;
    padding: 10px 0;
}

#header-logo {
    height: 35px;
    /* Final small size */
    transition: transform 0.5s ease;
}

#hero-logo {
    width: 120px;
    /* Initial big size */
    transition: all 0.3s linear;
}

.header-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.knight-icon-wrapper {
    transition: opacity 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 21px;
}

.logo {
    height: 32px;
    margin-left: 30px;
}

#theme-toggle {
    width: 32px;
    height: 32px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

h2 {
    color: var(--text-main);
    font-size: 2rem;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-top: 40px;
    font-family: 'Times New Roman', Times, serif;
}

.knight-icon-wrapper {
    width: max-content;
    text-align: center;

    & p {
        margin-top: 0;
        color: var(--icon);
    }
}

.brand-name {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0;
    margin-bottom: 0;
    font-family: 'Times New Roman', Times, serif;
}

.brand-text {
    font-size: 0.8rem;
    letter-spacing: 0.8px;
}

.tagline {
    font-size: 1.5rem;
    margin-top: 5px;
    letter-spacing: 0;
}

/* Hero & CTA */
.hero {
    padding: 40px 0;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.hero-icon {
    width: 100px;
}


#trigger-wrap {
    text-align: center;
    margin: 40px 0 30px 0px;
}

.hero-content {
    margin-top: 3em;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--btn-bg);
    color: var(--btn-text);
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
}

#course-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
    font-size: 1.1rem;
    color: var(--btn-bg);
}


/* Accordion Design */
details {
    /* border-bottom: 1px solid var(--border); */
    padding: 20px 0;
}

summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    cursor: pointer;
    gap: 20px;
    letter-spacing: 0px;
}

.details-content {
    padding: 15px 0;
    color: var(--text-muted);
}

.know-more {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.arrow-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

/* Rotate when open */
details[open] .arrow-icon {
    transform: rotate(180deg);
    transition: 0.3s;
}

details[open] summary {
    color: var(--accent-gold);
}

details[open] summary svg,
details[open] summary svg path {
    stroke: var(--accent-gold);
}

/* Footer */
footer {
    color: var(--text-muted);
    padding: 40px 0;
    background-color: var(--hfbg);
    min-height: 100vh;
    justify-content: space-between;
    display: flex;
    flex-direction: column;

    & nav {
        padding: 0;
        align-items: start;
    }

    & .description {
        margin-top: 30px;
    }

    & .footer-border {
        height: 1px;
        background-color: #125458;

    }

    & .footer-links {
        line-height: 1;
        padding-bottom: 30px;
    }

    & .knight-icon-wrapper {
        padding-top: 16px;
    }
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.courses-section {
    animation: fadeIn 0.5s ease;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
}

.mission {
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.move {
    padding-bottom: 30px;

    & .btn-whatsapp {
        margin-top: 20px;
    }
}



@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 20px;

    & h3 {
        font-weight: 700;
        margin-bottom: 5px;
    }

    & .nav-link:hover {
        opacity: 0.6;
    }
}

.cta-link {
    font-weight: 700;
    color: var(--btn-bg);
    margin-top: 10px;
}