/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Chat widget styles: Ask Karla */

#ask-karla-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(99, 172, 211, 0.1);
    color: #062535;
    border: 2px solid #63acd3; /* match .btn.secondary */
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(6,37,53,0.06);
    font-weight: 700;
}

#ask-karla-btn img {
    height: 24px;
    width: 24px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    padding: 2px;
}

#ask-karla-btn span { display: inline-block; }

#back-to-top {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 37, 53, 0.88);
    border: 2px solid rgba(99, 172, 211, 0.35);
    color: #63acd3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, background 0.2s;
    box-shadow: 0 4px 16px rgba(6, 37, 53, 0.18);
    backdrop-filter: blur(6px);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #062535;
    border-color: rgba(99, 172, 211, 0.75);
}

.ask-karla {
    position: fixed;
    right: 24px;
    bottom: 84px;
    width: 360px;
    max-width: calc(100% - 48px);
    height: 520px;
    max-height: calc(100% - 140px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 40px 120px rgba(6,37,53,0.16);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: all 260ms cubic-bezier(.2,.9,.3,1);
    z-index: 1250;
}

.ask-karla[aria-hidden="false"] {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.ask-karla.expanded {
    width: 720px;
    height: 1040px;
}

.ask-karla-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(180deg, rgba(99,172,211,0.06), rgba(99,172,211,0.02));
}

.ask-karla-avatar img { height: 44px; width: 44px; border-radius: 10px; object-fit: cover; }
.ask-karla-title { font-weight: 700; color: #062535; font-size: 16px; }
.ask-karla-sub { font-size: 13px; color: #556; }
.ask-karla-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ask-karla-close { background: transparent; border: none; font-size: 18px; cursor: pointer; color: #666; padding: 4px; }
.ask-karla-expand { background: transparent; border: none; font-size: 15px; cursor: pointer; color: #666; padding: 4px; line-height: 1; }
.ask-karla-expand:hover, .ask-karla-close:hover { color: #062535; }
.ask-karla-close:focus-visible, .ask-karla-expand:focus-visible, #ask-karla-btn:focus-visible, .quick-opt:focus-visible, .ask-karla-send:focus-visible, #ask-karla-input:focus-visible, .ask-karla-footer-link:focus-visible { outline: 3px solid #63acd3; outline-offset: 2px; }

.ask-karla-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; overflow: hidden; }
.ask-karla-messages { flex: 1; overflow-y: auto; padding-right: 6px; display: flex; flex-direction: column; gap: 12px; }
.ask-karla-messages::-webkit-scrollbar { width: 8px; }
.ask-karla-messages::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#d7e7f2,#c6e0ee); border-radius: 8px; }

.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg.assistant { align-self: flex-start; }
.msg.user { align-self: flex-end; justify-content: flex-end; }
.msg .bubble { max-width: 78%; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.4; white-space: pre-line; }
.msg.assistant .bubble { background: #f5fbff; color: #062535; position: relative; }
.msg.user .bubble { background: #eef2f6; color: #062535; border-radius: 14px 14px 12px 14px; }
.msg.assistant img { height: 34px; width: 34px; border-radius: 8px; }
.msg .bubble a { color: #0f5d82; text-decoration: underline; }

.ask-karla-quick { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.ask-karla-option-group { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ask-karla-quick button, .ask-karla-send { background: #fff; border: 1px solid #e8eef6; padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight:600; }
.ask-karla-quick button:hover, .ask-karla-send:hover { background: #eef7ff; border-color: #d6ecfb; }

.ask-karla-footer { padding: 12px; border-top: 1px solid #f0f0f0; display:flex; flex-direction:column; gap:8px; align-items:stretch; background: linear-gradient(180deg, rgba(99,172,211,0.02), rgba(99,172,211,0.06)); }
.ask-karla-footer-link { font-size: 12px; color: #0f5d82; text-decoration: underline; margin-right: 8px; }
#ask-karla-form { display:flex; gap:8px; flex:1; width:100%; }
#ask-karla-input { flex:1; min-width:0; padding:10px 12px; border-radius:999px; border:1px solid #e6eef6; font-size:14px; background: #f3f4f6; }
.ask-karla-send { background: #63acd3; color: #fff; border-color: #63acd3; }
.ask-karla-send:hover { background: #4f8fb2; border-color: #4f8fb2; }
.typing-dot { display:inline-block; width:8px; height:8px; margin:0 2px; border-radius:50%; background:#63acd3; animation: ask-karla-bounce 1.2s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ask-karla-bounce { 0%, 80%, 100% { transform: scale(0.8); opacity: 0.6; } 40% { transform: scale(1); opacity: 1; } }

@media (max-width: 520px) {
    #ask-karla-btn {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    #ask-karla-btn span { display: none; }
    #ask-karla-btn img { height: 28px; width: 28px; }

    .ask-karla {
        width: auto;
        right: 12px;
        left: 12px;
        bottom: 76px;
        height: min(72vh, 560px);
        max-height: calc(100% - 96px);
    }
    .ask-karla.expanded { width: auto; height: min(72vh, 560px); }
    .ask-karla-expand { display: none; }
    .ask-karla-header { padding: 12px; gap: 10px; }
    .ask-karla-avatar img { height: 36px; width: 36px; }
    .ask-karla-title { font-size: 15px; }
    .ask-karla-sub { font-size: 12px; }
    .ask-karla-body { padding: 12px; }
    .ask-karla-quick button, .ask-karla-send { width: 100%; justify-content: center; }
    .ask-karla-option-group { flex-direction: column; }
    .ask-karla-footer { flex-direction: column; align-items: stretch; }
    #ask-karla-form { flex-direction: column; }
    #ask-karla-input { font-size: 16px; }
    .ask-karla-footer-link { margin-right: 0; }
    #back-to-top { left: 16px; bottom: 16px; }
}

/* Resources page */
.resources-page {
    padding: 60px 0 100px;
    background: #ffffff;
}

.resources-intro {
    max-width: 816px;
    margin: 0 auto 52px;
    text-align: center;
}

.resources-intro p {
    font-size: 1rem;
    line-height: 1.85;
    color: #4a6070;
    margin-bottom: 16px;
    text-align: left;
}

.resources-closing {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: #062535 !important;
    margin-bottom: 28px !important;
    text-align: center !important;
}

.resources-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.resources-nav-btn {
    display: inline-block;
    text-align: center;
}

.resources-nav-break {
    display: none;
}

@media (min-width: 769px) {
    .resources-nav-break {
        display: block;
        flex-basis: 100%;
        height: 0;
    }
}

.books-section {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 28px;
    padding: 32px;
    max-width: 816px;
    margin: 0 auto 40px;
    box-shadow: 0 18px 35px rgba(6, 37, 53, 0.04);
}

.books-section {
    scroll-margin-top: 100px;
}

.books-section.resources-section-hidden {
    display: none;
}

.books-section::before {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 999px;
    margin-bottom: 24px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
}

.book-card {
    background: #ffffff;
    border: 1px solid rgba(99, 172, 211, 0.14);
    border-radius: 18px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(6, 37, 53, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(6, 37, 53, 0.1);
}

.book-cover-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.book-cover-img {
    height: 160px;
    width: auto;
    max-width: 110px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.book-cover-placeholder {
    width: 110px;
    height: 160px;
    background: linear-gradient(135deg, #4a8fb0 0%, #63acd3 100%);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Yeseva One', serif;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.book-card h3 {
    font-family: 'Yeseva One', serif;
    font-size: 0.95rem;
    color: #062535;
    line-height: 1.3;
    margin: 0;
}

.book-subtitle {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #7a92a3;
    margin-top: 3px;
}

.book-author {
    font-size: 0.8rem;
    color: #63acd3;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.book-recommendation {
    font-size: 0.83rem;
    color: #526a7e;
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

.book-buy-link {
    align-self: flex-start;
    margin-top: 4px;
}

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

.video-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.video-title {
    font-family: 'Yeseva One', serif;
    font-size: 1rem;
    color: #062535;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(6, 37, 53, 0.1);
}

.video-embed-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .book-cover-img,
    .book-cover-placeholder {
        height: 130px;
        max-width: 90px;
        width: 90px;
    }
}

/* Certifications page */
.cert-group-title {
    font-family: 'Yeseva One', serif;
    font-size: 0.95rem;
    color: #062535;
    margin: 24px 0 16px;
}

.cert-group-title:first-of-type {
    margin-top: 0;
}

.cert-badge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.cert-badge-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.cert-badge-cell img {
    height: 90px;
    width: 100%;
    object-fit: contain;
}

.cert-badge-grid-double {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.cert-badge-grid-double .cert-badge-cell img {
    height: 180px;
}

.cert-badge-cell-large {
    grid-column: 1 / -1;
    max-width: 620px;
    margin: 0 auto;
}

.cert-badge-cell-large img {
    height: auto;
    width: 100%;
}

.cert-badge-name {
    font-size: 0.78rem;
    color: #526a7e;
    line-height: 1.35;
    margin: 0;
}

.cert-links-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-links-list li {
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    padding-left: 16px;
}

.cert-links-list li::before {
    content: "·";
    position: absolute;
    left: 2px;
    color: #526a7e;
}

.cert-links-list a {
    color: #0f5d82;
    text-decoration: underline;
}

.cert-links-list a:hover {
    color: #062535;
}

.cert-composite-row {
    width: 100%;
    margin-bottom: 24px;
}

.cert-composite-row img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.cert-composite-contains {
    font-size: 0.82rem;
    color: #526a7e;
    line-height: 1.6;
    margin: 12px 0 0;
}

.cert-footnote {
    font-size: 0.82rem;
    color: #7a92a3;
    margin: 8px 0 0;
}

.cert-footnote a {
    color: #7a92a3;
    text-decoration: underline;
}

.cert-footnote a:hover {
    color: #526a7e;
}

.cert-footnote-pending {
    font-style: italic;
}

.cert-closing {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 28px;
    padding: 32px;
    max-width: 816px;
    margin: 40px auto 0;
    text-align: center;
    box-shadow: 0 18px 35px rgba(6, 37, 53, 0.04);
}

.cert-closing p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4a6070;
    margin: 0 0 12px;
}

.cert-closing-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cert-closing-note {
    font-size: 0.9rem !important;
    color: #7a92a3 !important;
    max-width: 480px;
}

.courses-inline-message {
    margin-top: 12px;
    max-width: 480px;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a6070;
    white-space: pre-line;
}

.courses-inline-message a {
    color: #0f5d82;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cert-badge-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 16px;
    }

    .cert-badge-cell img {
        height: 72px;
    }

    .cert-badge-grid-double {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .cert-badge-grid-double .cert-badge-cell img {
        height: 144px;
    }
}

/* About Me page */
.about-page {
    padding: 60px 0 100px;
    background: #ffffff;
}

.about-page-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-page-photo {
    flex: 0 0 340px;
    position: sticky;
    top: 100px;
}

.about-page-photo > img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(6, 37, 53, 0.13), 0 4px 18px rgba(99, 172, 211, 0.1);
}

.about-page-content {
    flex: 1;
}

.about-page-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #062535;
    margin-bottom: 12px;
    text-align: center;
}

.about-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d6070;
    letter-spacing: 0.04em;
    line-height: 2;
    margin-bottom: 28px;
    text-align: center;
}

.about-page-content p:not(.about-tagline) {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #4a6070;
    margin-bottom: 20px;
}

.about-fun-facts {
    margin: 36px 0 32px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 35px rgba(6,37,53,0.04);
}

.about-fun-facts::before {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 999px;
    margin-bottom: 24px;
}

.about-fun-facts .section-subhead {
    margin-bottom: 24px;
}

.about-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.fun-facts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fun-facts-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a6070;
}

.fun-fact-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 1px;
}

@media (max-width: 768px) {
    .about-page-inner {
        flex-direction: column;
    }

    .about-page-photo {
        flex: none;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        position: static;
    }
}

/* Certification detail pages */
.cert-page { min-height: 100vh; background: #f7fafc; padding: 60px 24px 80px; font-family: 'Open Sans', sans-serif; }
.cert-page .page-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 40px; color: #062535; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 1px solid #c9dce8; padding: 8px 16px; border-radius: 999px; background: #fff; cursor: pointer; transition: background 0.2s; }
.cert-page .page-back:hover { background: #eef7ff; }
.cert-page h1 { font-family: 'Yeseva One', serif; color: #062535; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.cert-page .subtitle { color: #4a6a80; font-size: 1rem; margin-bottom: 48px; max-width: 560px; }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; max-width: 900px; }
.cert-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 20px rgba(6,37,53,0.08); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.cert-card:hover { box-shadow: 0 8px 32px rgba(6,37,53,0.14); transform: translateY(-2px); }
.cert-card a { display: block; flex: 1; text-decoration: none; color: inherit; }
.cert-card-images { background: #f0f6fa; display: flex; justify-content: center; gap: 8px; padding: 20px 16px; flex-wrap: wrap; min-height: 130px; align-items: center; }
.cert-card-images img { height: 90px; width: auto; object-fit: contain; border-radius: 6px; }
.cert-card-body { padding: 16px 20px 20px; }
.cert-card-body h3 { font-size: 0.95rem; font-weight: 700; color: #062535; margin-bottom: 8px; }
.cert-card-body .explore-link { font-size: 0.85rem; color: #63acd3; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* Carousel styles */
.carousel { display:flex; align-items:center; gap:8px; width:100%; }
.carousel-viewport { overflow:hidden; flex:1; height:240px; }
.carousel-track { display:flex; transition:transform .28s ease; }
.carousel-track img { width:100%; height:240px; object-fit:contain; display:block; }
.carousel-btn { background: rgba(6,37,53,0.06); border:none; padding:6px 8px; border-radius:8px; cursor:pointer; }
.carousel-dots { display:flex; gap:6px; margin-top:8px; justify-content:center; }
.carousel-dot { width:8px; height:8px; border-radius:50%; background:#e6eef6; }
.carousel-dot.active { background:#63acd3; }

@media (max-width: 420px) {
    .carousel-btn { padding:6px; }
}


body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #062535;
    background-color: #ffffff;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Yeseva One', serif;
    font-weight: 400;
    line-height: 1.2;
}

a {
    color: #63acd3;
    text-decoration: none;
}

a:hover {
    color: #4a8fb0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #062535;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #63acd3;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #062535;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main content */
main {
    margin-top: 80px;
}

/* Sections */
section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn.primary {
    background-color: #4a8fb0;
    color: #fff;
}

.btn.primary:hover {
    background-color: #3a7a95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 143, 176, 0.3);
}

.btn.secondary {
    background-color: rgba(99, 172, 211, 0.1);
    color: #062535;
    border: 2px solid #63acd3;
}

.btn.secondary:hover {
    background-color: #63acd3;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 172, 211, 0.3);
}

/* Hero */
.hero {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0 80px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

.hero-name {
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #062535;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #063d78;
    font-weight: 300;
}

.hero-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d6070;
    letter-spacing: 0.04em;
    line-height: 2;
    margin-bottom: 20px;
    text-align: center;
}

.hero-certifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(99, 172, 211, 0.2);
}

.cert-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8aabb8;
}

.cert-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cert-badge-link {
    display: inline-flex;
}

.cert-badges img {
    height: 72px;
    width: 72px;
    object-fit: contain;
    opacity: 0.88;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.cert-badges img:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.services-block {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 28px;
    padding: 32px;
    margin-top: 20px;
    box-shadow: 0 18px 35px rgba(6, 37, 53, 0.04);
}

.services-block::before {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #666;
}

.hero-content > p:not(.hero-tagline):not(.hero-statement) {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a6070;
    margin-bottom: 20px;
}

.hero-content > p.hero-statement {
    font-size: 1.18rem;
    font-weight: 600;
    color: #062535;
    text-align: center;
    line-height: 1.55;
    margin-bottom: 20px;
}

.muted-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(74, 96, 112, 0.4);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}

/* ── Service detail panel ── */
.services-detail-wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s ease;
}

.services-detail-wrapper.open {
    max-height: 1000px;
    transition: max-height 0.55s ease;
}

.services-detail {
    background: #ffffff;
    padding: 0 0 40px;
}

.service-detail-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 18px 35px rgba(6,37,53,0.04);
    margin-top: 20px;
}

.service-detail-card::before {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background: #63acd3;
    border-radius: 999px;
    margin-bottom: 24px;
}

.service-close-btn {
    flex-shrink: 0;
}

.service-detail-body {
    transition: opacity 0.2s ease;
}

.service-detail-body.fading {
    opacity: 0;
}

.service-detail-desc {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4a6070;
    margin-bottom: 32px;
}

.service-detail-desc p {
    margin: 0 0 16px;
}

.service-detail-desc p:last-child {
    margin-bottom: 0;
}

.service-detail-desc ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.service-detail-desc li {
    margin-bottom: 8px;
}

.service-detail-desc li:last-child {
    margin-bottom: 0;
}

.service-detail-desc a {
    color: #2f7ba6;
    text-decoration: underline;
}

.service-detail-desc a:hover {
    color: #1d5e82;
}

.feedback-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feedback-track {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: opacity 0.2s ease;
}

.feedback-track.fading {
    opacity: 0;
}

.feedback-cloud {
    width: 100%;
    background: #f0f7fc;
    border: 1px solid rgba(99,172,211,0.3);
    border-radius: 20px;
    padding: 24px 28px;
    position: relative;
    text-align: center;
}

.feedback-cloud::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 50%;
    transform: translateX(-50%);
    border: 13px solid transparent;
    border-top-color: #f0f7fc;
    border-bottom: 0;
}

.feedback-cloud::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border: 15px solid transparent;
    border-top-color: rgba(99,172,211,0.3);
    border-bottom: 0;
}

#feedback-quote {
    font-size: 1rem;
    color: #062535;
    font-style: italic;
    line-height: 1.75;
    margin: 0;
}

.feedback-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d6070;
    letter-spacing: 0.01em;
    margin: 0;
}

.carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e6e6e6;
    background: #fff;
    color: #63acd3;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.carousel-btn:hover {
    border-color: #63acd3;
    background: rgba(99,172,211,0.08);
}

.feedback-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.feedback-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d0dde6;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.feedback-dot.active {
    background: #63acd3;
    transform: scale(1.25);
}

.cta-buttons .btn.secondary.service-active,
.resources-nav .btn.secondary.service-active {
    background: #63acd3;
    border-color: #63acd3;
    color: #fff;
}

.events-empty {
    color: #8aabb8;
    font-size: 0.95rem;
    font-style: italic;
    padding: 12px 0 4px;
}

.muted-link:hover {
    text-decoration-color: rgba(74, 96, 112, 0.8);
}

.learn-more-link {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #63acd3;
    text-decoration: none;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.learn-more-link:hover {
    color: #4a8fb0;
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-image > img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(6, 37, 53, 0.13), 0 4px 18px rgba(99, 172, 211, 0.1);
}

.hero-decor {
    margin-top: 40px;
    text-align: center;
}

/* About */
.about {
    background-color: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* Events */
.events {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    overflow-anchor: none;
}

.events h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.events h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.event-card .date, .event-card .location, .event-card .status {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.event-card .status.open {
    color: #28a745;
}

.event-card p {
    margin-bottom: 20px;
    color: #666;
}

.event-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-history-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-history-card:hover {
    transform: translateY(-5px);
}

.event-history-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-history-content {
    padding: 20px;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.event-year {
    background: #2c2c2c;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.event-location {
    font-weight: 500;
}

.event-tag {
    background: #f0f0f0;
    color: #062535;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.event-history-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.event-history-card p {
    color: #666;
    font-size: 1rem;
}

/* Resources */
.resources {
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding-top: 100px;
    padding-bottom: 80px;
}

.resources h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
    color: #062535;
    position: relative;
}

.resources h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 999px;
    margin: 20px auto 0;
}

.resources h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 20px 50px rgba(6, 37, 53, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: #d7e7f2;
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.resource-card .category {
    display: inline-block;
    background: #63acd3;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.resource-card p {
    margin-bottom: 20px;
    color: #666;
}

/* Work with me */
.work-with-me {
    background-color: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.work-with-me .container {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 32px;
    box-shadow: 0 24px 80px rgba(6, 37, 53, 0.06);
}

.work-with-me h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.work-with-me h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 999px;
    margin: 20px auto 0;
}

.work-with-me p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto 40px;
    color: #555;
}

.work-with-me .btn {
    margin: 0 10px;
}
/* Assistant */
.assistant {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.assistant h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.assistant p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
}

.assistant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.assistant-btn {
    background: #ffffff;
    border: 1px solid #e8eef6;
    color: #062535;
    padding: 16px 22px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(6, 37, 53, 0.06);
    transition: all 0.25s ease;
}

.assistant-btn:hover {
    background: #63acd3;
    color: #ffffff;
    border-color: #63acd3;
    transform: translateY(-2px);
}

.assistant-response {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Newsletter */
.newsletter {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.newsletter form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter input:focus {
    outline: none;
    border-color: #63acd3;
}

/* Footer */
footer {
    background-color: #062535;
    padding: 44px 0 28px;
    color: rgba(255,255,255,0.65);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 28px;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-company-name {
    font-family: 'Yeseva One', serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 6px;
}

.footer-company p:not(.footer-company-name) {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin: 0;
}

.footer-center {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-info-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info-link:hover {
    color: rgba(255,255,255,0.8);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-badge-img {
    height: 38px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-badge-img:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .footer-center {
        align-items: flex-start;
        text-align: left;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .events-grid, .event-history-grid, .resource-grid {
        grid-template-columns: 1fr;
    }

    .event-card, .resource-card {
        padding: 20px;
    }

    .assistant-options {
        grid-template-columns: 1fr;
    }

    .newsletter form {
        flex-direction: column;
    }
}

.btn.secondary:hover {
    background-color: #63acd3;
    color: #fff;
}

/* Header and Navigation */
header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 48px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #63acd3;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.current-page {
    color: #4a8fb0;
}

.nav-links a:hover::after,
.nav-links a.current-page::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c2c2c;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Menu */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-links.active li {
    margin: 10px 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 40px 0 80px;
    background: #ffffff;
}

.hero .container {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #062535;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #063d78;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta-buttons .btn {
    display: block;
    text-align: center;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -48px;
    background: radial-gradient(ellipse at 50% 42%, rgba(99, 172, 211, 0.1) 0%, transparent 66%);
    pointer-events: none;
    z-index: 0;
}

.hero-image > img,
.hero-image .hero-certifications {
    position: relative;
    z-index: 1;
}

.hero-image > img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 28px 64px rgba(6, 37, 53, 0.13), 0 4px 18px rgba(99, 172, 211, 0.1);
}

.section-intro {
    display: grid;
    gap: 18px;
    align-items: start;
    margin-bottom: 36px;
}

.events-intro {
    grid-template-columns: 1fr;
}

.events-intro h2 {
    margin-bottom: 16px;
}

.section-subhead {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.section-subhead h3 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #062535;
    position: relative;
}

.section-subhead h3::after {
    content: '';
    display: block;
    width: 90px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 2px;
    margin-top: 16px;
}

.section-subhead p {
    color: #4a4a4a;
    line-height: 1.8;
    max-width: 420px;
}

.btn.small {
    padding: 10px 18px;
    font-size: 14px;
}

.event-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.upcoming-events,
.past-events {
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 28px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 18px 35px rgba(6, 37, 53, 0.04);
}

.upcoming-events::before,
.past-events::before {
    content: '';
    display: block;
    width: 64px;
    height: 4px;
    background-color: #63acd3;
    border-radius: 999px;
    margin-bottom: 24px;
}

.event-history-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(99, 172, 211, 0.22);
    box-shadow: 0 20px 40px rgba(6, 37, 53, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(6, 37, 53, 0.14);
}

.event-history-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.event-history-content {
    padding: 24px;
}

.event-history-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #062535;
}

.event-history-card .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.event-history-card .event-year,
.event-history-card .event-location,
.event-history-card .event-tag {
    color: #63acd3;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(99, 172, 211, 0.1);
    padding: 6px 10px;
    border-radius: 999px;
}

.event-history-card p {
    color: #526a7e;
    line-height: 1.8;
}

.event-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(6, 37, 53, 0.18);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #062535;
}

/* About */
.about {
    background-color: #fff;
}

.about p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.about-videos {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.about-videos iframe {
    width: 100%;
    max-width: 560px;
}

/* Events */
.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.event-card {
    background-color: #fff;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(99, 172, 211, 0.22);
    box-shadow: 0 14px 30px rgba(6, 37, 53, 0.08);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.event-card .date {
    color: #063d78;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-card .location {
    color: #666;
    margin-bottom: 20px;
}

.event-card .status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.status.open {
    background-color: #d4f4dd;
    color: #2d5a2d;
}

.status.coming-soon {
    background-color: #fff3cd;
    color: #856404;
}

.event-card p {
    margin-bottom: 24px;
    color: #4a4a4a;
    line-height: 1.75;
}

.event-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.event-card h3 {
    font-size: 1.55rem;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.event-card .event-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    background-color: #63acd3;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 35px rgba(99, 172, 211, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.event-card .event-link:hover {
    background-color: #4a8fb0;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(74, 143, 176, 0.25);
}

/* Resources */
.resources {
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding-top: 100px;
    padding-bottom: 80px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 22px;
    border: 1px solid #dde8f1;
    background-color: #ffffff;
    color: #062535;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background-color: #eef7ff;
}

.filter-btn.active {
    background-color: #63acd3;
    color: #fff;
    border-color: #63acd3;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 20px 56px rgba(6, 37, 53, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: #d7e7f2;
}

.resource-card h3 {
    font-size: 1.55rem;
    margin-bottom: 14px;
}

.resource-card .category {
    display: inline-block;
    padding: 7px 18px;
    background-color: #63acd3;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.resource-card p {
    margin-bottom: 24px;
    color: #4a4a4a;
}

.resource-card a {
    color: #63acd3;
    text-decoration: none;
    font-weight: 700;
}

/* Assistant */
.assistant {
    background-color: #ffffff;
}

.assistant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.assistant-btn {
    background: #ffffff;
    border: 1px solid #e8eef6;
    color: #062535;
    padding: 16px 24px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(6, 37, 53, 0.06);
    transition: all 0.25s ease;
}

.assistant-btn:hover {
    background: #63acd3;
    color: #ffffff;
    border-color: #63acd3;
    transform: translateY(-2px);
}

.assistant-response {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

/* Work With Me */
.work-with-me {
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
}

.work-with-me .container {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
    padding: 64px 44px;
    border-radius: 32px;
    border: 1px solid #e8e8e8;
    box-shadow: none;
}

.work-with-me p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto 40px;
    color: #525252;
}

/* Newsletter */
.newsletter {
    background-color: #fff;
    text-align: center;
}

.newsletter p {
    font-size: 18px;
    margin-bottom: 40px;
}

#newsletter-form {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 16px;
}

#newsletter-form input:focus {
    outline: none;
    border-color: #63acd3;
}

/* Contact */
.contact {
    background-color: #ffffff;
    color: #062535;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.contact .container {
    max-width: 760px;
    margin: 0 auto;
    background: transparent;
    padding: 64px 44px;
    border-radius: 32px;
    border: 1px solid #e8e8e8;
    box-shadow: none;
}

.contact p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #555;
}

.contact a {
    color: #63acd3;
    text-decoration: none;
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
#contact-form .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#contact-form input,
#contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #062535;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #999;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #63acd3;
    box-shadow: 0 0 0 3px rgba(99, 172, 211, 0.1);
}

#contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer — handled by the main footer block above */

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-videos {
        flex-direction: column;
        align-items: center;
    }

    .event-gallery {
        grid-template-columns: 1fr;
    }

    .section-intro.events-intro {
        grid-template-columns: 1fr;
    }

    .events-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .assistant-options {
        flex-direction: column;
        align-items: center;
    }

    #newsletter-form {
        flex-direction: column;
    }

    #contact-form {
        max-width: 100%;
    }
}

/* ── Mobile optimization pass ── */

/* Header lost its horizontal padding when it was redefined further up
   the file; without this the logo/hamburger sit flush against the
   screen edge on every viewport, worst on mobile. */
.nav-container {
    padding: 20px 20px;
}

@media (max-width: 768px) {
    /* .hamburger has no visible box, so padding + matching negative
       margin grows the tap target without shifting anything on screen. */
    .hamburger {
        padding: 10px;
        margin: -10px;
    }

    /* Title + action button pairs need to wrap instead of squeezing
       on narrow screens. */
    .section-subhead,
    .event-header {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    /* Card padding tuned for desktop wastes too much width on phones. */
    .services-block,
    .service-detail-card,
    .about-fun-facts,
    .books-section,
    .event-card {
        padding: 20px;
    }

    .contact .container {
        padding: 48px 24px;
    }

    .contact {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .about-page,
    .resources-page {
        padding: 40px 0 60px;
    }

    .resources-intro {
        margin-bottom: 36px;
    }

    .resources-intro p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 14px;
    }

    .resources-intro p:first-of-type {
        font-size: 1.1rem;
        font-weight: 600;
        color: #062535;
        text-align: center;
        margin-bottom: 18px;
    }

    .cert-page {
        padding: 40px 20px 60px;
    }

    /* Switching these containers to a column direction leaves the old
       row's align-items: flex-start in place, which shrinks each child
       to its content width and left-aligns it — so text-align: center
       only centers text inside an already off-center box. Re-centering
       the children fixes the whole block. */
    .hero .container,
    .about-page-inner {
        align-items: center;
    }

    /* The whole "Past events" card (heading + grid) is collapsed by
       default on mobile; "See past events" reveals it instead of just
       scrolling to an already-visible list. */
    .past-events {
        display: none;
    }

    .past-events.expanded {
        display: block;
    }
}

@media (max-width: 400px) {
    .cert-badges {
        gap: 6px;
    }

    .cert-badges img {
        height: 56px;
        width: 56px;
    }
}

/* The sticky header now takes up real space in normal flow, so the old
   margin-top compensation (left over from when it was position: fixed)
   just adds a redundant gap before the hero — which then pushes the
   full-viewport-height hero past the bottom of the screen. In-page
   anchors get their offset back via scroll-margin-top instead. */
main {
    margin-top: 0;
}

#home,
#events,
#contact {
    scroll-margin-top: 100px;
}

/* Mobile nav dropdown: links previously sat flush against the screen
   edges with only vertical spacing between them — give each option
   its own padded, full-width tap target with breathing room on the
   sides and a visible separator between items. */
@media (max-width: 768px) {
    .nav-links.active {
        padding: 4px 0;
        gap: 0;
    }

    .nav-links.active li {
        margin: 0;
        width: 100%;
    }

    .nav-links.active li + li {
        border-top: 1px solid #f0f0f0;
    }

    .nav-links.active a {
        display: block;
        padding: 10px 24px;
        box-sizing: border-box;
    }

    .nav-links.active a:active {
        background-color: #f5fbff;
    }
}

/* Photo is a tall portrait crop; capping its height (instead of just
   width) keeps the image + certification badges from running taller
   than the services card on the left, so the two columns end closer
   to the same line. */
.hero-image > img {
    max-height: 560px;
    width: auto;
}

/* WPForms renders its own markup/CSS for the contact form — restyle it to
   match the site's original custom contact form look instead of WPForms'
   default theme. */
.wpforms-container {
    max-width: 600px !important;
    margin: 0 auto !important;
}

.wpforms-container .wpforms-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.wpforms-container .wpforms-field-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.wpforms-container .wpforms-field {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpforms-container .wpforms-field-label {
    display: block !important;
    margin-bottom: 8px !important;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #062535 !important;
    text-align: left !important;
}

.wpforms-container .wpforms-required-label {
    color: #63acd3 !important;
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="url"],
.wpforms-container input[type="tel"],
.wpforms-container textarea {
    padding: 15px 20px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-family: 'Open Sans', sans-serif !important;
    background: #ffffff !important;
    color: #062535 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.wpforms-container input[type="text"]::placeholder,
.wpforms-container input[type="email"]::placeholder,
.wpforms-container input[type="url"]::placeholder,
.wpforms-container textarea::placeholder {
    color: #999 !important;
}

.wpforms-container input[type="text"]:focus,
.wpforms-container input[type="email"]:focus,
.wpforms-container input[type="url"]:focus,
.wpforms-container textarea:focus {
    outline: none !important;
    border-color: #63acd3 !important;
    box-shadow: 0 0 0 3px rgba(99, 172, 211, 0.1) !important;
}

.wpforms-container textarea {
    resize: vertical !important;
    min-height: 150px !important;
}

.wpforms-container .wpforms-submit-container {
    margin: 0 !important;
}

.wpforms-container .wpforms-submit {
    display: inline-block !important;
    padding: 15px 30px !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-family: 'Open Sans', sans-serif !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    background-color: #4a8fb0 !important;
    background-image: none !important;
    color: #fff !important;
}

.wpforms-container .wpforms-submit:hover {
    background-color: #3a7a95 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(74, 143, 176, 0.3) !important;
}

.wpforms-container .wpforms-field-description,
.wpforms-container .wpforms-error {
    font-family: 'Open Sans', sans-serif;
}

/* Upcoming event card with an optional photo — the no-photo case is
   untouched (still plain .event-card with its own padding); this variant
   moves padding onto a body wrapper and lays the photo out beside the
   text rather than above it. */
.event-card.event-card-with-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.event-card-with-image img {
    display: block;
    width: 240px;
    flex-shrink: 0;
    height: auto;
    object-fit: cover;
}

.event-card-with-image .event-card-body {
    padding: 30px;
}

@media (max-width: 768px) {
    .event-card.event-card-with-image {
        flex-direction: column;
    }

    .event-card-with-image img {
        width: 100%;
        height: 200px;
    }
}

/* Past event with no photo falls back to the logo — object-fit: contain
   (instead of cover) plus padding and a tinted background keep the mark
   centered and legible instead of being cropped like a photo would be. */
.event-history-card img.event-history-fallback-image {
    object-fit: contain;
    padding: 40px;
    background: rgba(99, 172, 211, 0.06);
    box-sizing: border-box;
}