:root {
    --font-display: "Fraunces", serif;
    --font-body: "Manrope", sans-serif;
    --font-title: "Plus Jakarta Sans", "Manrope", sans-serif;
    --bg: #f2efe7;
    --bg-alt: #e8f4f1;
    --ink: #1f2933;
    --muted: #5f6c72;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-warm: #f97316;
    --card: #ffffff;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius-lg: 26px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, #ffffff 0%, rgba(255, 255, 255, 0.2) 45%, transparent 70%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 55%),
        linear-gradient(120deg, var(--bg) 0%, var(--bg-alt) 60%, #fef6e8 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.6rem);
    text-align: center;
    margin: 0 0 2.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 999px;
    display: block;
    margin: 0.75rem auto 0;
}

.hero {
    position: relative;
    padding: 6rem 0 6.5rem;
    min-height: 520px;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(248, 250, 252, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15, 118, 110, 0.22), rgba(249, 115, 22, 0.18));
    opacity: 0.12;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center calc(50% + var(--hero-shift, 0px));
    filter: saturate(1.1) contrast(1.02);
    transform: scale(1.04);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    z-index: -1;
}

.hero-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.85;
    animation: floaty 6s ease-in-out infinite;
}

.hero-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-icon-cap {
    top: 2.2rem;
    left: 2.4rem;
    color: #1d4ed8;
}

.hero-icon-book {
    left: 18%;
    top: 50%;
    color: #16a34a;
    animation-delay: 0.6s;
}

.hero-icon-clipboard {
    right: 2.8rem;
    top: 40%;
    color: #f97316;
    animation-delay: 1.2s;
}

.hero-icon-school {
    right: 22%;
    top: 2.5rem;
    color: #2563eb;
    animation-delay: 0.4s;
}

.hero-icon-presentation {
    right: 2.5rem;
    bottom: 2rem;
    color: #ec4899;
    animation-delay: 0.9s;
}

.hero-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.1;
    margin: 0;
    color: #1f2933;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.5);
}

.hero-title span {
    display: block;
    color: #1f2933;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.hero-panel {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    padding: 1rem 1.5rem 1.2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(8px);
    min-width: min(520px, 90vw);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    background: #ffffff;
    font-weight: 600;
    color: #1f2933;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.hero-cta-highlight {
    font-style: italic;
    font-weight: 700;
    color: var(--accent-strong);
}

.hero-social {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: transform 0.2s ease;
}

.hero-social-btn:hover {
    transform: translateY(-2px);
}

.hero-social-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    width: 34px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 51, 0.3);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    z-index: 2;
}

.scroll-cue span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1f2933;
    animation: scrollCue 1.8s ease infinite;
}

@keyframes scrollCue {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    60% {
        transform: translateY(18px);
        opacity: 1;
    }
    100% {
        transform: translateY(26px);
        opacity: 0;
    }
}

@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.video-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.video-card {
    background: var(--card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    border: none;
}

.video-meta {
    padding: 1rem 1.25rem 1.5rem;
    font-weight: 600;
}

.profile-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.teacher-link {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.teacher-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(31, 41, 51, 0.15);
    font-weight: 600;
    color: #1f2933;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(31, 41, 51, 0.12);
}

.teacher-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.teacher-dot span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111827;
}

.teacher-btn span.label {
    transition: text-decoration-color 0.2s ease;
}

.teacher-btn:hover span.label {
    text-decoration: underline;
    text-decoration-color: #111827;
}

.guru-body {
    background: #f5f5f5;
}

.guru-page {
    min-height: 100vh;
}

.guru-hero {
    background: #f8fafc;
    padding: 2.5rem 0 1.5rem;
}

.guru-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.guru-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1f2933;
}

.guru-back svg,
.guru-filter svg,
.guru-search svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guru-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guru-filter select {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(31, 41, 51, 0.2);
    font-size: 0.9rem;
    background: #fff;
}

.guru-search {
    position: relative;
    max-width: 420px;
}

.guru-search svg {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    stroke: #94a3b8;
}

.guru-search input {
    width: 100%;
    padding: 0.65rem 1rem 0.65rem 2.5rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 41, 51, 0.2);
    font-size: 0.95rem;
    background: #fff;
}

.guru-section {
    padding: 2.5rem 0 4rem;
}

.guru-title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
}

.guru-empty {
    text-align: center;
    color: #64748b;
    display: none;
}

.guru-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guru-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(31, 41, 51, 0.08);
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guru-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.guru-photo {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.guru-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}

.guru-card:hover .guru-photo img {
    transform: scale(1.05);
}

.guru-badge {
    position: absolute;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.guru-badge svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.guru-badge-name {
    top: 12px;
    left: 12px;
    background: #ffe4f1;
    color: #be185d;
}

.guru-badge-gender {
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #334155;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.guru-badge-nip {
    bottom: 12px;
    left: 12px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 10px;
}

.guru-info {
    padding: 1rem 1.25rem 1.5rem;
    display: grid;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.guru-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guru-row svg {
    width: 16px;
    height: 16px;
    stroke: #64748b;
    fill: none;
    stroke-width: 2;
}

.leader-card {
    background: var(--card);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: center;
}

.leader-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.leader-role {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.leader-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0.2rem 0;
}

.leader-edu {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.vision-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.vision-card h3 {
    margin-top: 0;
    text-align: center;
}

.vision-text {
    font-style: italic;
    color: var(--accent-strong);
    text-align: center;
}

.mission-list {
    margin: 1.5rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-card {
    background: var(--card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

a.media-card {
    display: block;
    color: inherit;
}

.media-card:hover {
    transform: translateY(-6px);
}

.media-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

.media-body {
    padding: 1rem 1.25rem 1.5rem;
}

.media-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.media-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

footer {
    text-align: center;
    color: var(--muted);
    padding: 2.5rem 1rem 3.5rem;
    font-size: 0.9rem;
}

.ekskul-detail-body {
    background:
        radial-gradient(circle at top left, #ffffff 0%, rgba(255, 255, 255, 0.2) 45%, transparent 70%),
        radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 55%),
        linear-gradient(120deg, var(--bg) 0%, var(--bg-alt) 60%, #fef6e8 100%);
}

.ekskul-hero {
    position: relative;
    padding: 4.5rem 0 4rem;
    overflow: hidden;
}

.ekskul-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--ekskul-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.04);
    z-index: -2;
}

.ekskul-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.6));
    z-index: -1;
}

.ekskul-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.ekskul-back svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.ekskul-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: center;
}

.ekskul-hero-copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin: 0 0 0.75rem;
}

.ekskul-hero-copy p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.ekskul-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    font-size: 0.95rem;
    color: var(--ink);
}

.ekskul-meta strong {
    color: var(--accent);
}

.ekskul-hero-media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    object-fit: cover;
    max-height: 360px;
}

.ekskul-gallery {
    padding: 4rem 0 5rem;
}

.ekskul-gallery h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    text-align: left;
    margin: 0 0 1.75rem;
}

.ekskul-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.ekskul-gallery-track.is-dragging {
    cursor: grabbing;
}

.ekskul-gallery-thumb {
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    padding: 0;
    cursor: pointer;
    scroll-snap-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ekskul-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ekskul-gallery-thumb.is-active {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.ekskul-gallery-empty {
    color: var(--muted);
    font-size: 0.95rem;
}

.ekskul-history {
    padding: 0 0 5rem;
}

.ekskul-history-subtitle {
    color: var(--muted);
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: 2.2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(15, 118, 110, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-dot {
    position: absolute;
    left: -2px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.15);
}

.timeline-card {
    background: var(--card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1rem 1.25rem;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.timeline-media {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.timeline-media img {
    width: 160px;
    height: 110px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.timeline-count {
    font-weight: 600;
    color: var(--accent-strong);
    font-size: 1rem;
}

.timeline-more {
    margin-top: 1rem;
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
}

.timeline-more:disabled {
    opacity: 0.6;
    cursor: default;
}

.timeline-empty {
    color: var(--muted);
}

@media (max-width: 680px) {
    .timeline {
        padding-left: 1.6rem;
    }
    .timeline::before {
        left: 8px;
    }
    .timeline-dot {
        left: -4px;
    }
    .timeline-media img {
        width: 100%;
        height: 180px;
    }
}

.reveal {
    opacity: 0;
    --reveal-x: 0px;
    --reveal-y: 24px;
    --reveal-scale: 1;
    --reveal-rotate: 0deg;
    --parallax-x: 0px;
    --parallax-y: 0px;
    transform: translate3d(calc(var(--reveal-x) + var(--parallax-x)), calc(var(--reveal-y) + var(--parallax-y)), 0)
        rotate(var(--reveal-rotate))
        scale(var(--reveal-scale));
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    --reveal-x: 0px;
    --reveal-y: 0px;
    --reveal-scale: 1;
    --reveal-rotate: 0deg;
}

.reveal-up {
    --reveal-y: 28px;
}

.reveal-down {
    --reveal-y: -28px;
}

.reveal-left {
    --reveal-x: -28px;
}

.reveal-right {
    --reveal-x: 28px;
}

.reveal-zoom {
    --reveal-scale: 0.94;
}

.reveal-rotate {
    --reveal-rotate: -2deg;
    --reveal-scale: 0.98;
}

@media (max-width: 768px) {
    .hero {
        padding: 4.5rem 0 5rem;
        min-height: 420px;
    }

    .hero-icon {
        width: 32px;
        height: 32px;
    }

    .hero-panel {
        padding: 0.85rem 1.1rem 1rem;
    }

    .leader-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .leader-photo {
        margin: 0 auto;
    }

    .scroll-cue {
        bottom: 1.1rem;
        width: 30px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-icon,
    .scroll-cue span {
        animation: none;
    }
}
