/* Root + Colors */
:root {
    --orange: #ffb77c;
    --blue-dark: #5a96d6;
    --card-bg: rgba(255,255,255,0.8);
    --radius: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --text-color: #333;
    --heading-color: #f97316;
}

/* Global Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffe8d6, #d9ecff);
    color: var(--text-color);
    line-height: 1.6;
}

main.content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* -----------------------------
    NAVBAR / HEADER
------------------------------*/
/* Header */
.main-header {
    position: sticky;               /* stays at the top */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;

    background: rgba(255, 255, 255, 0.4);  /* semi-transparent for glass effect */
    backdrop-filter: blur(10px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */

    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);         /* gentle shadow */
    
    z-index: 100; /* stays above content */
}
.logo {
    height: 65px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}
.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

.navbar a:hover,
.navbar a.active {
    color: #007bff;
    background-color: rgba(0, 119, 255, 0.1);
}
/* ================= HAMBURGER - HIDDEN ON DESKTOP ================= */
.hamburger {
    display: none;          /* Hidden on desktop by default */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    margin-left: auto;      /* Push to right when shown */
}

/* =========================
   FULL MOBILE FIX
   ========================= */
@media (max-width: 700px) {

    /* Hamburger */
    .hamburger {
        display: block;
        margin-left: auto;
        font-size: 28px;
        cursor: pointer;
    }

    /* Navbar */
    .navbar ul {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100%; /* dropdown directly under header */
        right: 0;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 0 0 12px 12px;
        z-index: 99;
    }

    .navbar ul.show {
        display: flex;
    }

    /* Header adjustments */
    .main-header {
        flex-direction: row;
        align-items: center;
        padding: 12px 15px; /* tighter padding */
    }

    /* Remove default section + heading spacing */
    main section,
    main section h1,
    main section h2,
    main section h3,
    main section p {
        margin-top: 0;
        margin-bottom: 0.5rem;
    }

    /* Essay/workshop card */
    .essay-workshop {
        margin: 0.25rem 10px; /* hug header closely */
        padding: 1rem;
        max-width: 100%;
    }

    /* Title + video container */
    .title-video-container {
        flex-direction: column; /* stack title + video */
        gap: 0.25rem;           /* minimal gap */
        margin-bottom: 0.5rem;
    }

    .title-video-container h1 {
        font-size: 1.5rem;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Video wrapper */
    .video-wrapper {
        margin-top: 0;
    }

    .video-wrapper video {
        width: 100%;
        max-width: 100%;
        border-radius: 12px;
    }

    /* Tables, lists, and other content */
    table,
    ul,
    ol {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
}


/* Sections */
section {
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

section h1,
section h2 {
    color: var(--heading-color);
    margin-top: 0;
}

/* Lists and tables */
ul {
    padding-left: 1.5rem;
}

ul li {
    margin-bottom: 0.8rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: var(--blue-dark);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    main.content {
        padding: 0 15px;
    }
    table, th, td {
        font-size: 0.9rem;
    }
}
