﻿/* ===== CSS Variables ===== */
:root {
    --primary-color: #800000;
    --primary-dark: #5c0000;
    --accent-color: #ffc107;
    --text-color: #E62B2B;
    --light-bg: #f5f7fa;
    --card-bg: #fff;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --header-height: 70px;
    --max-width: 1200px;
}

/* ===== Reset & Base Styles ===== */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: #ece0c6;
    font-family: 'Nunito', 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    padding: 0 1rem 2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Header & Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin: 0 -1rem 0;
    padding: 0 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.5rem;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-block;
}

.nav-links a:hover,
.nav-links a:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.nav-links a:active {
    background: rgba(255, 255, 255, 0.25);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: var(--transition);
    line-height: 1;
    z-index: 10001;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle .fa-times {
    display: none;
}

.menu-toggle.active .fa-bars {
    display: none;
}

.menu-toggle.active .fa-times {
    display: inline-block;
}

/* ===== Header Inner (title area) ===== */
.headerInner {
    text-align: center;
    max-width: var(--max-width);
    margin: 1.5rem auto 1rem;
    padding: 0 0.5rem;
}

.headerInner h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(128, 0, 0, 0.08);
}

.headerInner h1 small {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    color: #6b5a4a;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

/* ===== Main Layout ===== */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    align-items: flex-start;
}

.main-content .left-column {
    flex: 1 1 35%;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-content .right-column {
    flex: 1 1 58%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== Video / Image Wrapper ===== */
.video-wrapper {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
}

.video-wrapper:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.video-wrapper img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--border-radius) - 4px);
    object-fit: cover;
}

/* ===== Content Note / Body ===== */
.cssNote {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.75rem 2rem;
    transition: var(--transition);
    /* inherit pink from body */
    color: var(--text-color);
}

.cssNote:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.cssNote p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
    /* removed hardcoded #2d2d2d, now inherits pink */
}

.cssNote p:last-child {
    margin-bottom: 0;
}

.cssNote p:first-of-type::first-letter {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    float: left;
    margin-right: 0.5rem;
    margin-top: 0.1rem;
    line-height: 1;
}

.cssNote blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8f4ec;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: #8a3a5c;
    /* darker pink for contrast */
}

.cssNote blockquote p {
    margin-bottom: 0;
}


/* ===== Responsive ===== */

@media (max-width: 992px) {
    .main-content {
        gap: 1.5rem;
    }
    .main-content .left-column {
        flex: 1 1 40%;
    }
    .main-content .right-column {
        flex: 1 1 55%;
    }
    .headerInner h1 {
        font-size: 1.9rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        padding: 0 0.75rem 1.5rem;
    }

    .site-header {
        margin: 0 -0.75rem 0;
        padding: 0 0.75rem;
    }

    .navbar {
        height: 60px;
        padding: 0 0.25rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }
    .navbar-brand i {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--primary-color);
        padding: 0 1rem 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        transform: scaleY(0);
        transform-origin: top center;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        z-index: 9999;
    }

    .main-nav.open {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0s;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.05rem;
        border-radius: 0;
        text-align: center;
        /* === visible separator color (pinkish) === */
        border-bottom: 1px solid rgba(255, 182, 193, 0.45);
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background: rgba(255, 255, 255, 0.12);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .headerInner {
        margin: 1rem auto 0.75rem;
        padding: 0 0.25rem;
    }

    .headerInner h1 {
        font-size: 1.5rem;
        letter-spacing: -0.3px;
    }

    .headerInner h1 small {
        font-size: 0.85rem;
    }

    .main-content {
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 1rem;
    }

    .main-content .left-column,
    .main-content .right-column {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }

    .video-wrapper {
        padding: 0.5rem;
    }

    .cssNote {
        padding: 1.25rem 1rem;
    }

    .cssNote p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .cssNote p:first-of-type::first-letter {
        font-size: 2.2rem;
        margin-right: 0.35rem;
    }

    .cssNote blockquote {
        padding: 0.5rem 1rem;
        margin: 1rem 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    body {
        padding: 0 0.5rem 1rem;
    }

    .site-header {
        margin: 0 -0.5rem 0;
        padding: 0 0.5rem;
    }

    .navbar {
        height: 54px;
    }

    .navbar-brand {
        font-size: 0.85rem;
    }
    .navbar-brand i {
        font-size: 1rem;
    }

    .menu-toggle {
        font-size: 1.3rem;
        padding: 0.25rem 0.5rem;
    }

    .main-nav {
        top: 54px;
        padding: 0 0.75rem 0.75rem;
    }

    .nav-links a {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
        border-bottom-color: rgba(255, 182, 193, 0.5);
        /* slightly more visible on very small screens */
    }

    .headerInner h1 {
        font-size: 1.25rem;
    }

    .headerInner h1 small {
        font-size: 0.75rem;
    }

    .cssNote {
        padding: 1rem 0.75rem;
    }

    .cssNote p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .cssNote p:first-of-type::first-letter {
        font-size: 1.8rem;
        margin-right: 0.25rem;
    }

    .video-wrapper {
        padding: 0.35rem;
    }
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}
.mt-1 {
    margin-top: 1rem;
}
.mb-1 {
    margin-bottom: 1rem;
}
