/* ===== GLOBAL SECTION FIXES - NO INTERNAL SCROLL ===== */
.section,
.section .container,
.foto-kegiatan-home,
.surat-edaran-home,
.statistik-ppid,
.agenda-section,
.faq-section,
.contact {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}

/* ===== FOTO KEGIATAN SECTION - GALLERY STYLE ===== */
.foto-kegiatan-home {
    background: #f8fafc;
    padding: 80px 0;
}

/* Gallery Container */
.foto-gallery-container {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.foto-gallery-wrapper {
    position: relative;
}

/* Gallery Item - Horizontal Layout */
.foto-gallery-item {
    display: none;
    flex-direction: row;
    min-height: 400px;
}

.foto-gallery-item.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Image Section - 45% */
.foto-gallery-image {
    flex: 0 0 45%;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.foto-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.foto-gallery-item:hover .foto-gallery-image img {
    transform: scale(1.05);
}

/* Info Section - 55% */
.foto-gallery-info {
    flex: 0 0 55%;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.foto-gallery-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #ff9000;
    font-weight: 600;
    margin-bottom: 16px;
}

.foto-gallery-date i {
    font-size: 1.2rem;
}

.foto-gallery-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.3;
}

.foto-gallery-desc {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.foto-gallery-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #9ca3af;
}

.foto-gallery-location i {
    color: #ff9000;
    font-size: 1.1rem;
}

/* Navigation Dots */
.foto-gallery-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.foto-nav-dot {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: transparent;
}

.foto-nav-dot.active {
    border-color: #ff9000;
    transform: scale(1.1);
}

.foto-nav-dot:hover {
    border-color: #ffb366;
}

.dot-preview {
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* ===== SURAT EDARAN HOME SECTION - 3D CAROUSEL ===== */
.surat-edaran-home {
    position: relative;
    background: #f5f5f5;
    padding: 80px 0;
}

.surat-edaran-home .bg-shape {
    position: absolute;
    top: 0;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 144, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* 3D Carousel Wrapper */
.surat-carousel-3d-wrapper {
    position: relative;
    padding: 20px 70px;
    overflow: visible !important;
}

/* 3D Carousel Container */
.surat-carousel-3d {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: visible !important;
}

.surat-carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    overflow: visible !important;
}

/* Carousel Item */
.surat-carousel-item {
    position: absolute;
    width: 300px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Item States */
.surat-carousel-item[data-position="center"] {
    transform: translateX(-50%) scale(1) translateZ(0);
    left: 50%;
    z-index: 10;
    opacity: 1;
}

.surat-carousel-item[data-position="left"] {
    transform: translateX(-130%) scale(0.85) translateZ(-100px);
    left: 50%;
    z-index: 5;
    opacity: 0.6;
}

.surat-carousel-item[data-position="right"] {
    transform: translateX(30%) scale(0.85) translateZ(-100px);
    left: 50%;
    z-index: 5;
    opacity: 0.6;
}

.surat-carousel-item[data-position="hidden"] {
    transform: translateX(-50%) scale(0.7) translateZ(-200px);
    left: 50%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

/* Surat Preview Card */
.surat-preview-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.surat-carousel-item[data-position="center"] .surat-preview-card {
    box-shadow: 0 25px 70px rgba(255, 144, 0, 0.2);
}

.surat-carousel-item[data-position="center"] .surat-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 90px rgba(255, 144, 0, 0.25);
}

/* PDF Preview Embed - NO SCROLLBAR */
.surat-preview-embed {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #fef3e6 0%, #fff5eb 100%);
    overflow: hidden;
}

.surat-pdf-preview {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.surat-pdf-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
    /* Hide scrollbar in iframe */
    overflow: hidden;
}

/* Hide PDF overlay scrollbar */
.surat-pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: hidden !important;
}

.surat-preview-card:hover .surat-pdf-overlay {
    opacity: 1;
}

.surat-pdf-view-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9000;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.surat-pdf-view-btn:hover {
    background: #ff9000;
    color: #fff;
    transform: scale(1.1);
}

.surat-doc-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-icon-large {
    width: 100px;
    height: 130px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.doc-icon-large i {
    font-size: 4rem;
    color: #2563eb;
}

.surat-file-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.surat-file-badge i {
    font-size: 0.9rem;
    color: #dc2626;
}

/* Surat Info */
.surat-preview-info {
    padding: 20px;
    text-align: center;
}

.surat-preview-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.surat-preview-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff9000;
    font-size: 0.85rem;
    font-weight: 600;
}

.surat-preview-date i {
    font-size: 1rem;
}

/* View Button */
.surat-preview-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff9000, #ff7b00);
    color: #fff;
    padding: 12px 20px;
    margin: 0 20px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.surat-preview-btn:hover {
    background: linear-gradient(135deg, #ff7b00, #e06800);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4);
    color: #fff;
}

/* Carousel Navigation */
.surat-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff9000;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.surat-carousel-nav:hover {
    border-color: #ff9000;
    background: #ff9000;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 144, 0, 0.3);
}

.surat-carousel-prev {
    left: 10px;
}

.surat-carousel-next {
    right: 10px;
}

/* Carousel Indicators */
.surat-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: #ff9000;
    transform: scale(1.2);
}

.indicator-dot:hover {
    background: #ffb366;
}

/* View All Button */
.btn-view-all-surat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #ff9000;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid #ff9000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 144, 0, 0.1);
}

.btn-view-all-surat:hover {
    background: linear-gradient(135deg, #ff9000, #ff7b00);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 144, 0, 0.3);
}

.btn-view-all-surat i {
    transition: transform 0.3s ease;
}

.btn-view-all-surat:hover i {
    transform: translateX(5px);
}

/* ===== FAQ SECTION - PROPER SPACING ===== */
.faq-section {
    background: #f9fafb;
    padding: 80px 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased gap */
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(255, 144, 0, 0.1);
}

.faq-item.active {
    box-shadow: 0 10px 40px rgba(255, 144, 0, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #fef8f0;
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #ff9000, #ff7b00);
    color: #fff;
}

.faq-question span {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a2e;
    flex: 1;
    padding-right: 16px;
}

.faq-item.active .faq-question span {
    color: #fff;
}

.faq-question i {
    font-size: 1.5rem;
    color: #ff9000;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: #fff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 28px 28px;
    color: #6b7280;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
    background: #fafafa;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .foto-gallery-item {
        min-height: 350px;
    }
    
    .foto-gallery-info {
        padding: 30px 35px;
    }
    
    .foto-gallery-title {
        font-size: 1.4rem;
    }
    
    .surat-carousel-item {
        width: 270px;
    }
    
    .surat-preview-embed {
        height: 250px;
    }
    
    .surat-carousel-3d {
        height: 440px;
    }
}

@media (max-width: 992px) {
    .surat-carousel-item[data-position="left"],
    .surat-carousel-item[data-position="right"] {
        display: none;
    }
    
    .surat-carousel-3d-wrapper {
        padding: 20px 50px;
    }
    
    .surat-carousel-3d {
        height: 420px;
    }
    
    .surat-carousel-item {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .foto-kegiatan-home,
    .surat-edaran-home {
        padding: 60px 0;
    }
    
    /* Foto Gallery - Vertical Layout on Mobile */
    .foto-gallery-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .foto-gallery-image {
        flex: none;
        height: 220px;
        min-height: 220px;
    }
    
    .foto-gallery-info {
        flex: none;
        padding: 24px;
    }
    
    .foto-gallery-title {
        font-size: 1.2rem;
    }
    
    .foto-gallery-desc {
        font-size: 0.9rem;
    }
    
    .foto-nav-dot {
        width: 45px;
        height: 35px;
    }
    
    .surat-carousel-3d-wrapper {
        padding: 15px 45px;
    }
    
    .surat-carousel-3d {
        height: 400px;
    }
    
    .surat-carousel-item {
        width: 250px;
    }
    
    .surat-carousel-nav {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .surat-preview-embed {
        height: 220px;
    }
    
    .surat-preview-info {
        padding: 16px;
    }
    
    .surat-preview-btn {
        margin: 0 16px 16px;
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .faq-question {
        padding: 18px 20px;
    }
    
    .faq-question span {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 16px 20px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .foto-gallery-image {
        height: 180px;
        min-height: 180px;
    }
    
    .foto-gallery-info {
        padding: 20px;
    }
    
    .foto-gallery-title {
        font-size: 1.1rem;
    }
    
    .foto-gallery-nav {
        gap: 8px;
        padding: 15px;
    }
    
    .foto-nav-dot {
        width: 40px;
        height: 30px;
    }
    
    .surat-carousel-3d-wrapper {
        padding: 10px 35px;
    }
    
    .surat-carousel-3d {
        height: 380px;
    }
    
    .surat-carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .surat-carousel-prev {
        left: 5px;
    }
    
    .surat-carousel-next {
        right: 5px;
    }
    
    .surat-carousel-item {
        width: 220px;
    }
    
    .surat-preview-embed {
        height: 180px;
    }
    
    .surat-preview-title {
        font-size: 0.8rem;
    }
    
    .surat-preview-date {
        font-size: 0.75rem;
    }
    
    .btn-view-all-surat {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .faq-accordion {
        gap: 16px;
    }
    
    .faq-question {
        padding: 16px 18px;
    }
    
    .faq-question span {
        font-size: 0.9rem;
    }
}
