/* Main Theme Styles */

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

.section-padding {
    padding: 100px 0;
}

.bg-white {
    background-color: var(--white);
}

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

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

/* Fix overlap with WP Admin Bar */
body.admin-bar .main-header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar .main-header {
        top: 46px;
    }
    /* Snaps tightly to the top when scrolling down on mobile */
    body.admin-bar .main-header.is-scrolled {
        top: 0 !important;
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo-text span {
    color: var(--secondary);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 15px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    filter: brightness(110%);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    box-sizing: border-box;
    padding-top: 130px !important; /* Safe padding to clear the sticky header on all desktop devices */
    padding-bottom: 70px !important;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Cards */
.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08); /* Wide, elegant static shadow */
    transition: filter 0.2s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03); /* Crisp subtle border */
}

.card:hover {
    filter: brightness(97%); /* Minimalist hover feedback */
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* AI Box */
.ai-box {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-lg);
}

.ai-header {
    padding: 40px;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ai-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 15px;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ai-embed-container {
    min-height: 500px;
    padding: 20px;
}

.ai-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--text-muted);
    text-align: center;
}

/* Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.timeline-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    border: 5px solid var(--bg-light);
}

/* Alur Pendaftaran (Premium Timeline Stepper) Styles */
.alur-container {
    position: relative;
    width: 100%;
}

.alur-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
    padding: 20px 0;
}

.alur-line {
    position: absolute;
    top: 73px; /* Centers with the 80px wrapper + 24px badge */
    left: 8%;
    right: 8%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0.15;
    z-index: 1;
    border-radius: 4px;
}

.alur-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alur-badge-number {
    background: var(--secondary);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.2);
    letter-spacing: 1px;
    z-index: 3;
    transition: all 0.3s ease;
}

.alur-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.alur-icon-wrapper img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.alur-icon-wrapper span {
    font-size: 32px;
    line-height: 1;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.06));
    transition: transform 0.3s ease;
}

.alur-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 10px 0;
    line-height: 1.3 !important;
    transition: color 0.3s ease;
}

.alur-item-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    max-width: 220px;
}

/* Micro-animations and Hovers */
.alur-item:hover .alur-icon-wrapper {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.2);
}

.alur-item:hover .alur-icon-wrapper span {
    transform: scale(1.1);
}

.alur-item:hover .alur-item-title {
    color: var(--primary);
}

.alur-item:hover .alur-badge-number {
    background: var(--primary);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transform: scale(1.05);
}

.alur-mobile-hint {
    display: none;
}

/* Swipe snap timeline for compact mobile view */
@media (max-width: 768px) {
    .alur-container {
        overflow: hidden;
        margin: 0 -20px;
        padding: 10px 20px 25px 20px;
    }
    
    /* Elegant Right edge fade gradient indicating more items scrollable */
    .alur-container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 50px;
        background: linear-gradient(to left, var(--white) 30%, rgba(255,255,255,0));
        pointer-events: none;
        z-index: 10;
    }
    
    .alur-timeline {
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px; /* offset scrollbar track */
        position: relative;
    }
    
    /* Thin aesthetic scrollbar */
    .alur-timeline::-webkit-scrollbar {
        height: 6px;
    }
    .alur-timeline::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }
    .alur-timeline::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 10px;
    }
    .alur-timeline::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    .alur-line {
        position: absolute;
        top: 73px;
        left: 80px;
        /* Dynamic line width connecting cards horizontally */
        width: calc((220px + 20px) * (var(--total-steps) - 1));
        height: 4px;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        opacity: 0.15;
        z-index: 1;
    }

    .alur-item {
        flex: 0 0 220px;
        scroll-snap-align: start;
        background: var(--white);
        border-radius: var(--radius-lg);
        padding: 35px 20px 30px 20px;
        border: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.08);
    }
    
    .alur-item:hover .alur-icon-wrapper {
        transform: none;
        box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
    }
    
    .alur-item-desc {
        max-width: 100%;
    }

    .alur-mobile-hint {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 600;
        animation: pulse-hint 2.5s infinite ease-in-out;
    }
    
    .alur-hint-arrow {
        font-size: 14px;
        color: var(--secondary);
    }
    
    @keyframes pulse-hint {
        0%, 100% { opacity: 0.6; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.03); }
    }
}

/* Gradient Text/Icon */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
    /* Memaksa browser/OS merender emoji dalam mode monokrom statis agar gradient tidak tertimpa */
    font-variant-emoji: text;
    font-family: "Segoe UI Symbol", "Apple Symbols", "Symbol", sans-serif;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
}

.accordion-content {
    padding: 0 20px 20px;
    display: none;
    color: var(--text-muted);
}

/* Lead Form */
.lead-card {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.lead-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    font-size: 1rem;
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--secondary);
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .lead-card { grid-template-columns: 1fr; }
    .timeline { flex-direction: column; }
    .timeline::before { display: none; }
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 15px 0; color: var(--text-main); font-size: 1.1rem; }
    .header-cta { display: none; }
    .menu-toggle { display: flex !important; }
    .wpcf7-form { padding: 20px; }
    .wpcf7-list-item { display: block; margin-right: 0; }
}

/* Contact Form 7 Custom Styling (Premium UI) */
.wpcf7-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: 20px auto;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Text, Email, Tel, Select, Textarea */
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select,
.wpcf7-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Checkbox & Radio */
.wpcf7-list-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
}
.wpcf7-list-item-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
}

/* Submit Button */
.wpcf7-submit {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 4px 15px -3px rgba(79, 70, 229, 0.3);
}

.wpcf7-submit:hover {
    filter: brightness(110%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.4);
}

/* Validation Errors */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    border-color: #ef4444;
    color: #ef4444;
    background: #fef2f2;
    border-radius: var(--radius-md);
    padding: 15px;
}
.wpcf7 form.sent .wpcf7-response-output {
    border-color: #10b981;
    color: #10b981;
    background: #ecfdf5;
    border-radius: var(--radius-md);
    padding: 15px;
}

/* Gallery Modal Styles */
.fasilitas-card { cursor: pointer; position: relative; overflow: hidden; }
.fasilitas-btn {
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 5px 15px; border-radius: 20px;
    font-size: 14px; font-weight: bold; transition: 0.3s; opacity: 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    white-space: nowrap; pointer-events: none;
}
.fasilitas-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.fasilitas-card:hover .fasilitas-btn { bottom: 20px; opacity: 1; }

#gallery-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; flex-direction: column;
}
#gallery-modal.active { display: flex; }
.gallery-container {
    position: relative; width: 100%; max-width: 800px; height: 70vh;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.gallery-slide {
    display: none; max-width: 90%; max-height: 100%; object-fit: contain;
    animation: fade 0.3s; user-select: none; border-radius: 8px;
}
.gallery-slide.active { display: block; }
.gallery-close {
    position: absolute; top: 20px; right: 30px; color: white; font-size: 40px;
    font-weight: bold; cursor: pointer; z-index: 10000;
}
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%); color: white;
    font-size: 30px; cursor: pointer; padding: 15px; user-select: none;
    background: rgba(0,0,0,0.5); border-radius: 50%; transition: 0.3s;
}
.gallery-nav:hover { background: rgba(0,0,0,0.8); }
.gallery-prev { left: 15px; }
.gallery-next { right: 15px; }
.gallery-dots { display: flex; gap: 10px; margin-top: 20px; z-index: 10000; }
.gallery-dot {
    width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3);
    cursor: pointer; transition: 0.3s;
}
.gallery-dot.active { background: white; transform: scale(1.2); }
@keyframes fade { from { opacity: .4 } to { opacity: 1 } }

@media (max-width: 768px) {
    .gallery-nav { padding: 10px; font-size: 20px; }
    .gallery-close { top: 10px; right: 20px; }
    .gallery-container { height: 60vh; }
}

/* Grid Fasilitas 4 Kolom Desktop */
.fasilitas-grid { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .fasilitas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .fasilitas-grid { grid-template-columns: repeat(4, 1fr); } }

/* Micro-animations for Kurikulum Section */
.card:hover .kuri-icon-badge {
    transform: scale(1.1);
}

/* Responsive Layout for Tanya AI Section */
.tanya-ai-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .tanya-ai-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center !important;
    }
    .tanya-ai-grid > div {
        text-align: center !important;
    }
}

/* Global Heading Adjustments (Compact line-heights) */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25 !important;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.25;
}

/* Article Content & Typography Utilities */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 25px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 25px;
    margin: 35px 0;
    background: var(--bg-light);
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.entry-content li {
    margin-bottom: 8px;
}

/* Blog Cards Micro-animations */
.blog-card {
    position: relative;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1) !important;
}

.blog-card:hover .blog-img {
    transform: scale(1.08);
}

.blog-title-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.blog-card:hover .blog-title-link {
    color: var(--primary) !important;
}

.blog-card:hover .blog-readmore {
    color: var(--secondary) !important;
}

.blog-card:hover .blog-readmore .arrow {
    transform: translateX(6px);
}

/* Mobile responsive layout overrides */
@media (max-width: 768px) {
    /* Enforce padding-top and disable flex vertical alignment to avoid clipping by header */
    .hero {
        height: auto !important;
        min-height: auto !important;
        padding-top: 160px !important;
        padding-bottom: 80px !important;
        display: block !important;
    }

    /* Enforce exactly 1 column for page-info.php layout on mobile */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Enforce Hero title, main headings, and H2 section titles to match (26px) and have compact line-height */
    h1.hero-title,
    .hero-content h1,
    .section-header h2,
    #tanya-ai h2,
    main h1,
    main h2 {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }

    /* Enforce exactly 2 columns and 2 rows for statistics on mobile */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px 20px !important;
        justify-items: center;
        text-align: center;
    }

    /* Enforce exactly 1 column for the footer on mobile for readability */
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px !important;
    }
}
