.inner-jasa {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-detail-page {
    --service-accent: #2c5a7a;
    --service-accent-2: #3498db;
    --service-soft: rgba(52, 152, 219, 0.12);
}

.service-aplikasi-page {
    --service-accent: #2c3e50;
    --service-accent-2: #3498db;
    --service-soft: rgba(52, 152, 219, 0.12);
}

.service-design-page {
    --service-accent: #2d6a4f;
    --service-accent-2: #3ba276;
    --service-soft: rgba(45, 106, 79, 0.12);
}

.service-instruktur-page {
    --service-accent: #4f4964;
    --service-accent-2: #7f7199;
    --service-soft: rgba(108, 91, 123, 0.14);
}

.service-content-creator-page {
    --service-accent: #735534;
    --service-accent-2: #b47a2b;
    --service-soft: rgba(183, 123, 37, 0.14);
}

.service-rakit-pc-page {
    --service-accent: #1f5565;
    --service-accent-2: #3498a5;
    --service-soft: rgba(52, 152, 165, 0.12);
}

.service-detail-page .hero-section {
    background: linear-gradient(135deg, #1a3e50 0%, #2c3e50 100%);
}

.service-detail-page .hero-container::before,
.service-detail-page .hero-content::before,
.service-detail-page .hero-content::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.service-detail-page .hero-container::before {
    inset: 66px 0 0;
    z-index: 1;
    opacity: 0.14;
    background-image:
        linear-gradient(128deg, transparent 0 22%, rgba(255, 255, 255, 0.08) 22.1% 22.35%, transparent 22.45% 100%),
        linear-gradient(144deg, transparent 0 36%, rgba(255, 255, 255, 0.07) 36.1% 36.3%, transparent 36.4% 100%),
        linear-gradient(23deg, transparent 0 70%, rgba(255, 255, 255, 0.045) 70.1% 70.25%, transparent 70.35% 100%);
}

.service-detail-page .hero-content {
    min-height: 560px;
    padding: 76px 100px 92px;
}

.service-detail-page .hero-content::before {
    inset: 0 calc(50% - 50vw);
    z-index: 1;
    opacity: 0.26;
    background:
        radial-gradient(36% 10% at 16% 64%, rgba(226, 32, 82, 0.24), transparent 58%),
        radial-gradient(44% 12% at 36% 47%, rgba(132, 62, 226, 0.18), transparent 62%),
        radial-gradient(35% 10% at 52% 37%, rgba(246, 196, 55, 0.16), transparent 60%),
        radial-gradient(38% 10% at 69% 43%, rgba(0, 205, 186, 0.14), transparent 64%),
        radial-gradient(34% 10% at 86% 31%, rgba(82, 70, 220, 0.14), transparent 62%);
    mix-blend-mode: screen;
}

.service-detail-page .hero-content::after {
    inset: 0 calc(50% - 50vw);
    z-index: 1;
    opacity: 0.24;
    background-image:
        url("data:image/svg+xml,%3Csvg width='2400' height='620' viewBox='0 0 2400 620' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M-120 420 C 160 350 300 406 520 326 S 840 168 1140 230 S 1620 378 2520 148' stroke='%23f02655' stroke-width='9' stroke-opacity='.22'/%3E%3Cpath d='M-90 470 C 218 394 408 462 650 344 S 958 232 1285 282 S 1695 402 2530 204' stroke='%238342e2' stroke-width='6' stroke-opacity='.2'/%3E%3Cpath d='M-70 516 C 260 456 530 500 792 390 S 1135 320 1510 332 S 1950 314 2520 245' stroke='%2300d0bd' stroke-width='4.5' stroke-opacity='.18'/%3E%3Cpath d='M180 428 C 520 285 682 296 920 198 S 1230 128 1540 250' stroke='%23f6c43b' stroke-width='3.5' stroke-opacity='.24'/%3E%3Cpath d='M760 168 C 1040 88 1268 96 1558 195 S 1830 266 2220 155' stroke='%23ffffff' stroke-width='1.4' stroke-opacity='.11'/%3E%3Cpath d='M40 548 C 410 466 680 532 1010 438 S 1460 392 1850 430' stroke='%23ffffff' stroke-width='1.2' stroke-opacity='.1'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center 20%;
    background-size: max(2400px, 142vw) auto;
    mix-blend-mode: screen;
}

.service-detail-page .hero-bg-overlay {
    top: -66px;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(26, 62, 80, 0.94) 0%, rgba(44, 62, 80, 0.9) 100%),
        radial-gradient(circle at 82% 38%, var(--service-soft), transparent 34%);
}

.service-detail-page .hero-text::before {
    content: 'Layanan inspirasea';
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(145, 220, 245, 0.58);
    border-radius: 999px;
    background: rgba(9, 47, 64, 0.88);
    color: #dff5ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.service-detail-page .hero-title {
    max-width: 720px;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
}

.service-detail-page .hero-description {
    max-width: 720px;
}

.service-detail-page .hero-logo {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    animation: float 3s ease-in-out infinite;
}

.service-detail-page .hero-logo::before {
    content: '';
    position: absolute;
    inset: -14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
}

.service-detail-page .hero-logo img {
    width: 190px;
    height: 190px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.service-detail-page .waves-container {
    display: block;
}

.service-fish-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.service-fish {
    position: absolute;
    left: 0;
    top: var(--fish-y-start, 50%);
    width: var(--fish-size, 52px);
    height: auto;
    opacity: var(--fish-opacity, 0.12);
    filter: blur(var(--fish-blur, 0.5px)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
    color: rgba(2, 13, 22, 0.94);
    transform: translate3d(var(--fish-start, -14vw), 0, 0) scale(var(--fish-scale, 1)) scaleX(var(--fish-dir, 1));
    animation: service-fish-drift var(--fish-duration, 30s) linear var(--fish-delay, -8s) infinite;
    will-change: transform;
}

.service-fish img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes service-fish-drift {
    0% {
        top: var(--fish-y-start, 50%);
        transform: translate3d(var(--fish-start, -14vw), 0, 0) rotate(var(--fish-tilt, 0deg)) scale(var(--fish-scale, 1)) scaleX(var(--fish-dir, 1));
    }

    50% {
        top: var(--fish-y-mid, 50%);
        transform: translate3d(var(--fish-mid, 42vw), 0, 0) rotate(var(--fish-tilt-mid, 0deg)) scale(var(--fish-scale, 1)) scaleX(var(--fish-dir, 1));
    }

    100% {
        top: var(--fish-y-end, 50%);
        transform: translate3d(var(--fish-end, 112vw), 0, 0) rotate(var(--fish-tilt, 0deg)) scale(var(--fish-scale, 1)) scaleX(var(--fish-dir, 1));
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-fish {
        animation: none;
    }
}

@media (max-width: 968px) {
    .service-detail-page .hero-content::after {
        background-position: center 13%;
        background-size: 2100px auto;
        opacity: 0.2;
    }

    .service-detail-page .hero-content {
        min-height: 540px;
        padding: 52px 20px 78px;
    }

    .service-detail-page .hero-bg-overlay {
        top: -66px;
        background:
            linear-gradient(135deg, rgba(26, 62, 80, 0.95) 0%, rgba(44, 62, 80, 0.92) 100%),
            radial-gradient(circle at 50% 82%, var(--service-soft), transparent 40%);
    }

    .service-detail-page .hero-logo {
        width: 150px;
        height: 150px;
        margin-top: 0;
    }

    .service-detail-page .hero-logo img {
        width: 138px;
        height: 138px;
    }
}

@media (max-width: 480px) {
    .service-detail-page .hero-content::before {
        opacity: 0.2;
    }

    .service-detail-page .hero-content::after {
        background-position: center 8%;
        background-size: 1700px auto;
        opacity: 0.18;
    }

    .service-detail-page .hero-content {
        padding: 44px 15px 74px;
    }

    .service-detail-page .hero-logo {
        width: 122px;
        height: 122px;
    }

    .service-detail-page .hero-logo img {
        width: 112px;
        height: 112px;
    }
}

@media (max-width: 767px) {
    .service-detail-page .hero-logo {
        display: none;
    }

    .service-detail-page .hero-content {
        min-height: 0;
        padding: clamp(38px, 8vw, 52px) 18px 66px;
    }

    .service-detail-page .hero-text {
        margin-bottom: 0;
    }
}

.jasa-hero-section {
    background: linear-gradient(135deg, #1a3e50 0%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    margin-bottom: 60px;
}

.jasa-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path fill="white" d="M20,20 L30,20 L25,30 Z M70,70 L80,70 L75,80 Z M40,80 L50,80 L45,90 Z M80,30 L90,30 L85,40 Z"/><circle cx="50" cy="50" r="8"/></svg>');
    background-repeat: repeat;
    background-size: 40px;
    pointer-events: none;
}

.jasa-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

.jasa-hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.jasa-hero-text {
    flex: 1;
    color: #fff;
}

.jasa-hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.jasa-hero-title .highlight-text {
    color: #ffd966;
    position: relative;
    display: inline-block;
}

.jasa-hero-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.jasa-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    gap: 15px;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.jasa-hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-illustration {
    max-width: 100%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 968px) {
    .jasa-hero-content { flex-direction: column; text-align: center; }
    .jasa-hero-buttons { justify-content: center; }
}

.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-center h2 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header-center h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #c0392b, #2c3e50);
    border-radius: 2px;
}

.section-header-center .highlight-red { color: #c0392b; }
.section-header-center p { color: #666; font-size: 1rem; max-width: 600px; margin: 0 auto; }

.website-packages {
    padding: 20px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.package-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid #eef2f5;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.package-card.featured {
    border: 2px solid #c0392b;
    transform: scale(1.02);
}

.package-card.featured:hover { transform: scale(1.02) translateY(-8px); }

.package-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #c0392b, #2c3e50);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.package-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c0392b20, #2c3e5010);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.package-icon i { font-size: 32px; color: #c0392b; }
.package-card h3 { font-size: 1.4rem; color: #2c3e50; margin-bottom: 15px; }

.package-price {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e0e0e0;
}

.package-price .price { font-size: 1.6rem; font-weight: 700; color: #c0392b; }
.package-price .price-note { font-size: 0.8rem; color: #888; }

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #555;
}

@media (max-width: 768px) {
    .package-features li {
        margin-bottom: 9px;
    }
}

.package-features li i { color: #27ae60; font-size: 14px; width: 18px; }

.package-note {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-note i { color: #c0392b; }

.package-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #c0392b, #2c3e50);
    background-size: 200% 200%;
    background-position: 0% 0%;
    color: white;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.package-btn:hover { background-position: 100% 100%; transform: translateY(-2px); }

.why-us-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%);
    padding: 60px 20px;
}

.why-us-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-us-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #c0392b20, #2c3e5010);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.why-us-icon i { font-size: 30px; color: #c0392b; }
.why-us-item h3 { font-size: 1.2rem; color: #2c3e50; margin-bottom: 12px; }
.why-us-item p { color: #666; font-size: 0.9rem; line-height: 1.6; }

.portfolio-showcase {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f5;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: #c0392b30;
}

.portfolio-card-header {
    padding: 20px 20px 0 20px;
}

.portfolio-logo {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #c0392b, #2c3e50);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.portfolio-logo i {
    font-size: 28px;
    color: #c0392b;
}

.portfolio-info {
    padding: 15px 20px 20px 20px;
}

.portfolio-info h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.portfolio-type {
    font-size: 0.75rem;
    color: #c0392b;
    margin-bottom: 12px;
    font-weight: 500;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tech span {
    background: #eef2f5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #c0392b;
    font-weight: 500;
}

.work-process {
    background: linear-gradient(135deg, #1a3e50 0%, #2c3e50 100%);
    padding: 60px 20px;
    color: white;
}

.work-process .section-header-center h2 { color: white; }
.work-process .section-header-center p { color: rgba(255, 255, 255, 0.8); }

.process-container {
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.process-step {
    text-align: center;
    padding: 25px 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
}

.process-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #c0392b;
    border: 2px solid #a82b1e;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon { margin-bottom: 20px; }
.step-icon i { font-size: 42px; color: #ffd966; }
.process-step h3 { font-size: 1.1rem; margin-bottom: 12px; }
.process-step p { font-size: 0.8rem; opacity: 0.8; line-height: 1.5; }

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.jasa-faq-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.jasa-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jasa-faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f5;
}

.jasa-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.jasa-faq-question:hover { background: #f8f9fa; }
.jasa-faq-question i { transition: transform 0.3s ease; color: #c0392b; }
.jasa-faq-item.active .jasa-faq-question i { transform: rotate(180deg); }

.jasa-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fafafa;
    border-top: 1px solid transparent;
}

.jasa-faq-item.active .jasa-faq-answer {
    max-height: 400px;
    border-top-color: #eef2f5;
}

.jasa-faq-answer p {
    padding: 20px 24px;
    margin: 0;
}

.jasa-faq-answer ul {
    padding: 20px 24px 10px 45px;
}

.jasa-faq-answer p { font-size: 0.9rem; line-height: 1.6; color: #555; }
.jasa-faq-answer ul { padding-left: 45px; }
.jasa-faq-answer li { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 8px; }
.jasa-faq-answer strong { color: #c0392b; }

.about-cta {
    padding: 60px 20px;
    text-align: center;
}

.about-cta .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-cta .cta-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.about-cta .cta-content p {
    color: #666;
    margin-bottom: 25px;
}

.about-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #c0392b, #2c3e50);
    background-size: 200% 200%;
    background-position: 0% 0%;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease-in-out;
    border-radius: 0;
    user-select: none;
}

.about-cta .cta-button:hover {
    background-position: 100% 100%;
    gap: 15px;
    transform: translateY(-2px);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .packages-grid, .why-us-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .package-card.featured { transform: scale(1); }
    .package-card.featured:hover { transform: translateY(-8px); }
    .jasa-faq-answer ul { padding-left: 30px; }
    .jasa-faq-question { padding: 14px 18px; font-size: 0.9rem; }
    .about-cta .cta-content h3 { font-size: 1.4rem; }
    .about-cta { padding: 40px 20px; }
}

/* Galeri kegiatan instruktur Start */
.instructor-gallery-section {
    padding: 76px 20px 88px;
    background: linear-gradient(180deg, #f4f9fc 0%, #eaf3f8 100%);
    overflow: hidden;
}

.instructor-photo-gallery {
    max-width: 1040px;
    margin: 36px auto 0;
}

.instructor-photo-stage {
    position: relative;
    height: 430px;
    max-width: 820px;
    margin: 0 auto;
    perspective: 1200px;
    touch-action: pan-y;
}

.instructor-photo-card {
    position: absolute;
    top: 38px;
    left: 50%;
    width: min(66vw, 530px);
    height: 340px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    border: 4px solid #fff;
    background: #d8e4eb;
    box-shadow: 0 18px 36px rgba(25, 67, 90, 0.22);
    transform-origin: center bottom;
    transition: transform 620ms cubic-bezier(.22,.8,.25,1), opacity 420ms ease, filter 420ms ease, box-shadow 420ms ease;
}

.instructor-photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 620ms cubic-bezier(.22,.8,.25,1);
}

.instructor-photo-card.is-active {
    z-index: 3;
    opacity: 1;
    filter: grayscale(0) saturate(1.06);
    transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.13);
    box-shadow: 0 24px 42px rgba(25, 67, 90, 0.3);
}

.instructor-photo-card.is-back-left {
    z-index: 1;
    opacity: 1;
    filter: grayscale(1) brightness(0.88);
    transform: translateX(-78%) translateY(38px) rotate(-8deg) scale(0.77);
}

.instructor-photo-card.is-back-right {
    z-index: 2;
    opacity: 1;
    filter: grayscale(1) brightness(0.94);
    transform: translateX(-23%) translateY(-18px) rotate(7deg) scale(0.82);
}

.instructor-photo-card.is-back-far {
    z-index: 0;
    opacity: 1;
    filter: grayscale(1) brightness(0.8);
    transform: translateX(-78%) translateY(38px) rotate(-8deg) scale(0.77);
}

.instructor-photo-card.is-switching {
    z-index: 4;
    transition-duration: 220ms;
    transform: translateX(-50%) translateY(-56px) rotate(2deg) scale(1.03);
}

.instructor-photo-card:hover:not(.is-active) {
    opacity: 1;
    filter: grayscale(1) brightness(1);
}

.instructor-photo-card:focus-visible,
.instructor-gallery-dot:focus-visible {
    outline: 3px solid #e74c3c;
    outline-offset: 5px;
}

.instructor-gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.instructor-gallery-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #9eb5c3;
    cursor: pointer;
    transition: width 260ms ease, border-radius 260ms ease, background-color 260ms ease, transform 260ms ease;
}

.instructor-gallery-dot:hover { background: #4f839d; }

.instructor-gallery-dot.is-active {
    width: 32px;
    border-radius: 12px;
    background: #e74c3c;
    transform: scale(1.05);
}

body.instructor-lightbox-open {
    overflow: hidden;
}

.instructor-lightbox {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.75);
}

.instructor-lightbox[hidden] {
    display: none;
}

.instructor-lightbox-dialog {
    position: relative;
    display: flex;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    align-items: center;
    justify-content: center;
}

.instructor-lightbox-image-wrap {
    max-width: 100%;
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 4px solid #fff;
    background: #111;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
    touch-action: pan-x pan-y pinch-zoom;
}

.instructor-lightbox-image-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 56px);
    touch-action: pan-x pan-y pinch-zoom;
}

.instructor-lightbox-close {
    position: absolute;
    z-index: 1;
    top: -14px;
    right: -14px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #1d3544;
    color: #fff;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
}

.instructor-lightbox-close:hover,
.instructor-lightbox-close:focus-visible {
    background: #10232f;
}

@media (max-width: 768px) {
    .instructor-gallery-section { padding: 56px 14px 66px; }
    .instructor-photo-gallery { margin-top: 26px; }
    .instructor-photo-stage { height: 310px; max-width: 510px; }
    .instructor-photo-card { top: 32px; width: min(76vw, 390px); height: 238px; border-width: 3px; }
    .instructor-photo-card.is-active { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.08); }
    .instructor-photo-card.is-back-left { transform: translateX(-82%) translateY(27px) rotate(-7deg) scale(0.72); }
    .instructor-photo-card.is-back-right { transform: translateX(-18%) translateY(-9px) rotate(6deg) scale(0.76); }
    .instructor-photo-card.is-back-far { transform: translateX(-82%) translateY(27px) rotate(-7deg) scale(0.72); }
    .instructor-lightbox { padding: 18px; }
    .instructor-lightbox-dialog { max-height: calc(100vh - 36px); }
    .instructor-lightbox-image-wrap { max-height: calc(100vh - 36px); }
    .instructor-lightbox-image-wrap img { max-height: calc(100vh - 44px); }
}

@media (max-width: 480px) {
    .instructor-photo-stage { height: 250px; }
    .instructor-photo-card { top: 26px; width: min(80vw, 320px); height: 190px; }
    .instructor-photo-card.is-active { transform: translateX(-50%) translateY(0) rotate(0deg) scale(1.05); }
    .instructor-photo-card.is-back-left { transform: translateX(-86%) translateY(23px) rotate(-6deg) scale(0.67); }
    .instructor-photo-card.is-back-right { transform: translateX(-14%) translateY(-5px) rotate(5deg) scale(0.7); }
    .instructor-photo-card.is-back-far { transform: translateX(-86%) translateY(23px) rotate(-6deg) scale(0.67); }
    .instructor-lightbox-close { top: -11px; right: -9px; width: 38px; height: 38px; font-size: 26px; }
}
/* Galeri Kegiatan instruktur End */
