/* ============================================================
   timhangeportfolio.com — shared stylesheet
   Style system carried over from Tim's existing personal site.
   ============================================================ */

:root {
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --deep-teal: #2D4A53;
    --deep-teal-light: #3A6070;
    --warm-red-brown: #8B4A3B;
    --warm-red-brown-dark: #6E3A2E;
    --charcoal: #2C2C2C;
    --charcoal-light: #555555;
    --soft-border: #DDD5C8;
    --white: #FFFFFF;
    --accent-rust: #A0523C;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Flex children with auto margins would otherwise shrink-wrap */
body > * {
    width: 100%;
}

/* ===== NAV ===== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    background: var(--deep-teal);
    height: 64px;
    position: relative;
    z-index: 100;
}

.nav-logo {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--cream);
    letter-spacing: 0.01em;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
}

.nav-links .nav-linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(245, 240, 232, 0.5);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.nav-links .nav-linkedin:hover {
    border-color: var(--cream);
}

.nav-links .nav-linkedin svg {
    width: 15px;
    height: 15px;
    fill: var(--cream);
}

/* Portfolio dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a .caret {
    display: inline-block;
    margin-left: 5px;
    font-size: 0.7em;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(45, 74, 83, 0.16);
    list-style: none;
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    width: 100%;
    height: 18px;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover > a .caret,
.nav-dropdown.open > a .caret {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--charcoal);
    font-size: 0.9rem;
    opacity: 1;
}

.dropdown-menu li a:hover {
    background: var(--cream-light);
    color: var(--deep-teal);
}

/* Teal accent line under nav */
.nav-accent {
    height: 3px;
    background: linear-gradient(90deg, var(--deep-teal), var(--deep-teal-light), var(--accent-rust));
}

/* ===== HERO (Home) ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 60px 36px 60px;
    gap: 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    max-width: 560px;
}

.hero-name {
    font-family: 'Lora', serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--deep-teal);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--warm-red-brown);
    border-radius: 2px;
    z-index: -1;
}

.hero-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--charcoal-light);
    margin-top: 10px;
    margin-bottom: 22px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-tagline {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--warm-red-brown);
    color: var(--cream-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.hero-cta:hover {
    background-color: var(--warm-red-brown-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 74, 59, 0.3);
}

.hero-cta.hero-cta-secondary {
    background-color: transparent;
    color: var(--deep-teal);
    border: 2px solid var(--deep-teal);
    padding: 14px 38px;
}

.hero-cta.hero-cta-secondary:hover {
    background-color: var(--deep-teal);
    color: var(--cream);
    box-shadow: 0 6px 20px rgba(45, 74, 83, 0.25);
}

.hero-note {
    margin-top: 24px;
    font-size: 0.92rem;
    color: var(--charcoal-light);
    line-height: 1.65;
    max-width: 520px;
}

.hero-note strong {
    color: var(--deep-teal);
    font-weight: 600;
}

/* ===== HEADSHOT ===== */
.hero-image {
    flex: 0 0 auto;
}

.headshot-container {
    width: 240px;
    height: 292px;
    position: relative;
}

.headshot-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 12px 48px rgba(45, 74, 83, 0.15);
}

/* ===== DIVIDER ===== */
.section-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.section-divider hr {
    border: none;
    height: 1px;
    background: var(--soft-border);
}

/* ===== SECTION BASICS ===== */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warm-red-brown);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
}

.section-heading {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 48px;
}

/* ===== WELCOME (Home) ===== */
.welcome {
    padding: 46px 60px 46px 60px;
}

.welcome-inner {
    max-width: 900px;
    margin: 0 auto;
}

.welcome-inner .section-label {
    margin-bottom: 16px;
}

.welcome-text {
    font-family: 'Lora', serif;
    font-size: 1.18rem;
    line-height: 1.85;
    color: var(--charcoal);
}

/* ===== FEATURED WORK (Home) ===== */
.featured-work {
    padding: 46px 60px 90px 60px;
}

.featured-work.home-tiles {
    padding: 40px 60px 60px 60px;
}

/* compact welcome variant (Home option 2) */
.welcome.welcome-compact {
    padding: 28px 60px;
}

.welcome-compact .welcome-text {
    font-size: 1.14rem;
    line-height: 1.75;
    max-width: 900px;
}

.featured-work-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-work .section-heading {
    margin-bottom: 40px;
}

.course-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.25s ease;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--deep-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 74, 83, 0.12);
}

.course-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--soft-border);
}

.course-card-body {
    padding: 24px 28px 28px 28px;
}

.course-card-body h3 {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-bottom: 8px;
    line-height: 1.35;
}

.tool-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--deep-teal);
    border: 1px solid var(--deep-teal);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 4px;
}

.course-card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--warm-red-brown);
    letter-spacing: 0.03em;
}

.course-card:hover .course-card-link {
    text-decoration: underline;
}

/* ===== PAGE HEADER (interior pages) ===== */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 60px 80px 60px;
}

.page-content h1 {
    font-family: 'Lora', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 8px;
}

.page-content h2 {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-top: 40px;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 1.05rem;
    color: var(--charcoal-light);
    margin-bottom: 32px;
    max-width: 720px;
    line-height: 1.7;
}

.page-content p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--charcoal);
    margin-bottom: 16px;
}

/* ===== PROJECT ROWS (eLearning) ===== */
.projects {
    display: grid;
    gap: 56px;
    margin-top: 24px;
}

.project {
    display: grid;
    grid-template-columns: minmax(0, 460px) 1fr;
    gap: 48px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 12px;
    padding: 36px;
}

.project-media {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--soft-border);
    box-shadow: 0 8px 28px rgba(45, 74, 83, 0.12);
    transition: all 0.25s ease;
}

.project-media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-media:hover img {
    transform: scale(1.02);
}

.project-media .media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 74, 83, 0);
    transition: background 0.25s ease;
}

.project-media .media-overlay span {
    padding: 12px 28px;
    background: var(--warm-red-brown);
    color: var(--cream-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
}

.project-media:hover .media-overlay {
    background: rgba(45, 74, 83, 0.35);
}

.project-media:hover .media-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.project-body h2 {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 12px;
}

.project-body .tool-tag {
    margin-bottom: 16px;
}

.project-body > p {
    font-size: 1rem;
    line-height: 1.7;
}

.project-highlights {
    list-style: none;
    margin: 6px 0 20px 0;
}

.project-highlights li {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background-color: var(--warm-red-brown);
    border-radius: 50%;
}

.project-docs {
    border-top: 1px solid var(--soft-border);
    padding-top: 18px;
    margin-top: 4px;
}

.project-docs .docs-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.doc-link {
    display: inline-block;
    color: var(--warm-red-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin-right: 6px;
}

.doc-link:hover {
    text-decoration: underline;
}

.doc-sep {
    color: var(--soft-border);
    margin-right: 6px;
}

.project-launch {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 36px;
    background-color: var(--warm-red-brown);
    color: var(--cream-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.project-launch:hover {
    background-color: var(--warm-red-brown-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 74, 59, 0.3);
}

/* ===== PROJECT WRITEUPS (eLearning, AIDA sections) ===== */
.project.project-writeup {
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}

.rail-launch {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 14px 20px;
}

.rail-block {
    border-top: 1px solid var(--soft-border);
    padding-top: 16px;
    margin-top: 20px;
}

.rail-block .docs-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--charcoal-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.tools-list {
    list-style: none;
    margin: 0;
}

.tools-list li {
    font-size: 0.92rem;
    color: var(--charcoal);
    line-height: 1.55;
    padding-left: 18px;
    position: relative;
    margin-bottom: 7px;
}

.tools-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    background-color: var(--warm-red-brown);
    border-radius: 50%;
}

.rail-links {
    list-style: none;
    margin: 0;
}

.rail-links li {
    margin-bottom: 7px;
}

.rail-links .doc-link {
    font-size: 0.92rem;
}

.project-writeup .project-body h2 {
    margin-bottom: 20px;
}

.writeup-section {
    margin-bottom: 18px;
}

.writeup-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--warm-red-brown);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.writeup-section p {
    font-size: 0.98rem;
    line-height: 1.58;
    color: var(--charcoal);
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
    background: var(--deep-teal);
    color: var(--cream);
    padding: 36px 60px;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 0.88rem;
    opacity: 0.7;
}

footer a {
    color: var(--cream);
    text-decoration: none;
    opacity: 0.9;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text > * {
    animation: fadeInUp 0.6s ease both;
}

.hero-name { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-tagline { animation-delay: 0.35s; }
.hero-ctas { animation-delay: 0.5s; }

.hero-image {
    animation: fadeInUp 0.7s ease 0.15s both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    nav {
        padding: 0 24px;
    }

    .nav-links {
        gap: 18px;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
        transform: translateY(-6px);
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.open .dropdown-menu {
        transform: translateY(0);
    }

    .hero {
        flex-direction: column-reverse;
        padding: 48px 32px;
        gap: 40px;
        text-align: center;
    }

    .hero-name {
        font-size: 2.6rem;
    }

    .hero-name::after {
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .headshot-container {
        width: 260px;
        height: 320px;
    }

    .welcome {
        padding: 36px 24px;
    }

    .featured-work {
        padding: 36px 24px 70px 24px;
    }

    .course-cards {
        grid-template-columns: 1fr;
    }

    .section-divider {
        padding: 0 32px;
    }

    .page-content {
        padding: 40px 24px 60px;
    }

    .project {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .project.project-writeup {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================================
   Additional components: hub tiles, doc cards, microlearning,
   about, contact, course pages, lightbox
   ============================================================ */

/* ===== PORTFOLIO HUB TILES ===== */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 24px;
}

.tile-desc {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.65;
    margin-top: 6px;
}

/* ===== DOC CARDS (Instructional Design) ===== */
.doc-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 24px;
}

.doc-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--soft-border);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.25s ease;
    position: relative;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--deep-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.doc-card:hover::before {
    transform: scaleX(1);
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 74, 83, 0.12);
}

.doc-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-bottom: 1px solid var(--soft-border);
    background: var(--cream-light);
}

.doc-card-body {
    padding: 22px 26px 18px 26px;
}

.doc-card-body h3 {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-bottom: 8px;
    line-height: 1.4;
}

.doc-card-body p {
    font-size: 0.95rem;
    color: var(--charcoal-light);
    line-height: 1.65;
    margin-bottom: 0;
}

.doc-card-open {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--warm-red-brown);
    letter-spacing: 0.03em;
}

.doc-card:hover .doc-card-open {
    text-decoration: underline;
}

.doc-card-main {
    display: block;
    text-decoration: none;
    color: inherit;
}

.doc-card-foot {
    margin: 0 26px;
    padding: 12px 0 18px;
    border-top: 1px solid var(--soft-border);
}

.page-content .doc-card-foot .doc-card-context {
    font-size: 0.86rem;
    font-style: italic;
    color: var(--charcoal-light);
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.page-content .doc-card-foot .doc-card-context a {
    color: var(--warm-red-brown);
    font-weight: 600;
    font-style: normal;
    text-decoration: none;
}

.page-content .doc-card-foot .doc-card-context a:hover {
    text-decoration: underline;
}

.course-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--deep-teal);
    text-decoration: none;
}

.course-link:hover {
    text-decoration: underline;
    color: var(--deep-teal-light);
}

/* ===== MICROLEARNING ===== */
.micro-video {
    width: 100%;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--soft-border);
    box-shadow: 0 8px 28px rgba(45, 74, 83, 0.12);
    background: #000;
}

.jobaid-thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--white);
    box-shadow: 0 8px 28px rgba(45, 74, 83, 0.12);
    position: relative;
}

.jobaid-thumb-btn img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jobaid-thumb-btn:hover img {
    transform: scale(1.02);
}

.jobaid-thumb-btn .media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 74, 83, 0);
    transition: background 0.25s ease;
    pointer-events: none;
}

.jobaid-thumb-btn .media-overlay span {
    padding: 12px 28px;
    background: var(--warm-red-brown);
    color: var(--cream-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 50px;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
}

.jobaid-thumb-btn:hover .media-overlay {
    background: rgba(45, 74, 83, 0.35);
}

.jobaid-thumb-btn:hover .media-overlay span {
    opacity: 1;
    transform: translateY(0);
}

.micro-links {
    margin-top: 4px;
}

.micro-links .doc-link {
    font-size: 0.95rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(44, 44, 44, 0.88);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 40px 20px;
    overflow-y: auto;
}

.lightbox.open {
    display: flex;
}

.lightbox-inner {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.lightbox-inner img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.lightbox-download {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1.5px solid rgba(245, 240, 232, 0.6);
    border-radius: 50px;
    padding: 10px 24px;
    transition: all 0.2s ease;
}

.lightbox-download:hover {
    border-color: var(--cream);
    background: rgba(245, 240, 232, 0.1);
}

.lightbox-close {
    background: none;
    border: none;
    color: var(--cream);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ===== ABOUT ===== */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 60px;
    align-items: start;
}

.about-headshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(45, 74, 83, 0.15);
    display: block;
}

.page-content.about-top {
    padding-bottom: 30px;
}

.page-content.about-section {
    padding: 30px 60px;
}

.about-section > .section-label,
.about-section > h2,
.about-section > p {
    max-width: 820px;
}

.about-section .section-label {
    margin-bottom: 8px;
}

.about-section h2 {
    margin-top: 0;
}

.conviction-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 8px 0 24px 0;
}

.conviction-card {
    background: var(--white);
    border-radius: 10px;
    padding: 24px 28px 28px 28px;
    border: 1px solid var(--soft-border);
    border-left: 3px solid var(--deep-teal);
}

.conviction-number {
    font-family: 'Lora', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--deep-teal);
    opacity: 0.16;
    line-height: 1;
    margin-bottom: 10px;
}

.conviction-card p {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.65;
    margin-bottom: 0;
}

/* ===== SERVICES (About) ===== */
.services-list {
    list-style: none;
    margin: 4px 0 8px 0;
    max-width: 820px;
}

.services-list li {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
    margin-bottom: 14px;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--warm-red-brown);
    border-radius: 50%;
}

.services-list li strong {
    color: var(--deep-teal);
    font-weight: 600;
}

.page-content.about-closer {
    padding: 40px 60px 70px 60px;
}

.about-closing {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--deep-teal);
    line-height: 1.7;
    border-left: 3px solid var(--warm-red-brown);
    padding-left: 20px;
}

/* ===== CERTIFICATIONS (About) ===== */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 900px;
    margin-top: 28px;
}

.badge-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    gap: 10px;
    padding: 16px 8px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.badge-card img {
    width: 110px;
    height: 110px;
    display: block;
    transition: transform 0.25s ease;
}

.badge-card span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--deep-teal);
    line-height: 1.35;
}

.badge-card:hover {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(45, 74, 83, 0.1);
}

.badge-card:hover img {
    transform: translateY(-2px);
}

.badge-card:hover span {
    text-decoration: underline;
}

/* ===== CONTACT ===== */
.contact-cta {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-teal);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 560px;
}

.contact-intro {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 480px);
    gap: 70px;
    align-items: center;
}

.contact-illustration {
    width: 100%;
    display: block;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
    max-width: 520px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--soft-border);
    border-radius: 10px;
    padding: 36px 32px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--deep-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45, 74, 83, 0.12);
}

.contact-card svg {
    width: 34px;
    height: 34px;
    fill: var(--deep-teal);
    margin-bottom: 14px;
}

.contact-card h3 {
    font-family: 'Lora', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--deep-teal);
    margin-bottom: 6px;
}

.contact-card span {
    font-size: 0.95rem;
    color: var(--warm-red-brown);
    font-weight: 600;
    word-break: break-all;
}

/* ===== COURSE PAGES ===== */
.course-page-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.course-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.course-topbar h1 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-teal);
    line-height: 1.3;
}

.course-back {
    color: var(--warm-red-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.course-back:hover {
    opacity: 0.7;
}

.course-frame-wrap {
    flex: 1;
    padding: 0 60px 24px 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.course-frame {
    width: 100%;
    height: calc(100vh - 150px);
    min-height: 480px;
    border: 1px solid var(--soft-border);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 8px 28px rgba(45, 74, 83, 0.12);
}

/* ===== RESPONSIVE (new components) ===== */
@media (max-width: 900px) {
    .tiles {
        grid-template-columns: 1fr;
    }

    .doc-cards {
        grid-template-columns: 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-headshot {
        max-width: 240px;
        margin: 0 auto;
    }

    .contact-intro {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-illustration {
        max-width: 420px;
        margin: 0 auto;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .page-content.about-top {
        padding-bottom: 24px;
    }

    .page-content.about-section {
        padding: 24px 24px;
    }

    .page-content.about-closer {
        padding: 32px 24px 56px 24px;
    }

    .conviction-cards {
        grid-template-columns: 1fr;
    }

    .badge-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .course-topbar {
        padding: 12px 24px;
        flex-wrap: wrap;
    }

    .course-frame-wrap {
        padding: 0 12px 16px 12px;
    }

    .course-frame {
        height: calc(100vh - 170px);
    }
}
