/* About Page Styles */
.about-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(246, 220, 255, 0.9) 0%, rgba(255, 235, 214, 0.85) 100%);
    overflow: hidden;
}

.about-hero::before,
.about-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(0px);
    z-index: 0;
}

.about-hero::before {
    top: -180px;
    right: -120px;
}

.about-hero::after {
    bottom: -200px;
    left: -160px;
}

.about-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 500px);
    align-items: center;
    gap: 3rem;
}

.about-hero-text {
    color: var(--color-text);
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(131, 108, 10, 0.12);
    color: rgba(92, 65, 7, 0.85);
    border: 1px solid rgba(131, 108, 10, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.about-hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.4rem);
    margin: 1rem 0 1.25rem;
    color: var(--color-text);
}

.about-hero-text p.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-text-soft);
    margin-bottom: 1.5rem;
}

.about-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.9rem;
}

.about-highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.about-highlight-list i {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-top: 0.15rem;
}

.about-hero-photo {
    position: relative;
    width: min(420px, 100%);
    margin-left: auto;
}

.about-photo-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px -18px rgba(47, 25, 4, 0.28);
}

.about-photo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.about-photo-glow {
    position: absolute;
    inset: -10%;
    border-radius: 32px;
    /*  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%); */
    opacity: 0.8;
    pointer-events: none;
}

.about-story {
    padding: 80px 0 60px;
    background: var(--color-background);
}

.about-story .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-story-card {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: clamp(1.8rem, 3vw, 2.8rem);
    box-shadow: var(--shadow-strong);
}

.about-story-card h2 {
    color: var(--color-text);
    margin-bottom: 1rem;
}

.about-story-card p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.about-story-grid {
    display: grid;
    gap: 1.5rem;
}

.about-story-grid .quote {
    border-left: 4px solid rgba(131, 108, 10, 0.35);
    padding-left: 1.2rem;
    font-style: italic;
    color: rgba(47, 25, 4, 0.68);
}

.certificate-gallery {
    padding: 80px 0 120px;
    background: linear-gradient(180deg, rgba(247, 229, 255, 0.65) 0%, rgba(229, 220, 255, 0.55) 100%);
}

.certificate-gallery .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-headline {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-headline .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(92, 65, 7, 0.18);
    color: rgba(92, 65, 7, 0.8);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.section-headline h2 {
    margin: 1rem auto 0.75rem;
    color: var(--color-text);
}

.section-headline p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.cert-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(131, 108, 10, 0.18);
    box-shadow: 0 30px 60px -35px rgba(47, 25, 4, 0.4);
}

.cert-marquee::before,
.cert-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.cert-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
}

.cert-marquee::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
}

.cert-marquee-track {
    display: flex;
    gap: 24px;
    padding: 24px 32px;
    will-change: transform;
}

.cert-card {
    flex: 0 0 auto;
    width: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 45px -22px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cert-card img {
    display: block;
    width: 100%;
    height: auto;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 55px -28px rgba(47, 25, 4, 0.45);
}

.cert-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.cert-controls button {
    border: none;
    background: rgba(92, 65, 7, 0.16);
    color: rgba(92, 65, 7, 0.8);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.cert-controls button:hover {
    transform: translateY(-3px);
    background: rgba(92, 65, 7, 0.24);
}

.cert-marquee[aria-busy="true"]::after,
.cert-marquee[aria-busy="true"]::before {
    display: none;
}

/* Lightbox for certificate preview */
.cert-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.cert-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cert-lightbox-inner {
    max-width: 92vw;
    max-height: 92vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #fff;
}

.cert-lightbox-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .cert-lightbox-img {
        border-radius: 4px;
    }

    .cert-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-hero-photo {
        margin: 0 auto;
    }

    .about-highlight-list li {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .cert-marquee-track {
        padding: 20px;
        gap: 18px;
    }

    .cert-card {
        width: 220px;
    }

    .about-story-card {
        border-radius: 18px;
    }
}

@media (max-width: 768px) {
    .nav-link--about {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }
}