/* Reset dan styling dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Sembunyikan scrollbar tapi tetap bisa scroll */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

.snap-section {
    scroll-snap-align: start;
    height: 100vh;
}

/* Header section */
header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    overflow: hidden;
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

header video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    /* Default untuk halaman pertama */
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

/* Page indicator styles */
.page-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 1500;
    transition: all 0.3s ease;
}

/* Dot styles */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.4);
}

.dot.active {
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

/* Navbar logo styles */
.navbar .logo {
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-top: 0px;
}

.navbar .logo img {
    width: 60px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.navbar .logo-text {
    font-size: 24px;
    font-weight: bold;
    padding-left: 10px;
    padding-top: 10px;
    transition: color 0.3s ease;
    color: white; /* Default putih */
}

/* Navigation styles */
nav {
    padding-top: 0px;
    margin-left: auto;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
    margin-left: 20px;
    margin-right: 30px;
    display: inline-block;
}

nav ul li a {
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
    color: white; /* Default putih */
}

/* Submenu styles */
.submenu-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    border-radius: 10px;
    padding: 10px;
    list-style: none;
    margin-top: 5px;
    z-index: 2;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    display: block;
    background-color: rgba(0, 0, 0, 0.8); /* Default untuk halaman pertama */
}

.submenu-list li {
    margin: 0;
    padding: 5px 0;
    display: block !important;
    width: 100%;
}

.submenu-list li a {
    font-size: 16px;
    display: block;
    padding: 8px 15px;
    border-radius: 5px;
    width: 100%;
    transition: background-color 0.3s ease;
    color: white !important; /* Default putih */
}

.submenu-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.submenu:hover .submenu-list {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* Hero section styles */
.hero {
    text-align: center;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: -120px;
    z-index: 1;
}

.hero-logo {
    width: 150px;
    margin-bottom: 10px;
    /* Disable right-click context menu */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    line-height: 1;
}

.hero p {
    font-size: 1.5rem;
    line-height: 1.2;
}

/* Bottom box styles */
.bottom-box {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    background-color: rgba(0, 0, 0, 0);
    border: 2px solid white;
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    position: absolute;
    bottom: 0;
    width: calc(100% - 40px);
    box-sizing: border-box;
    z-index: 2;
    margin-bottom: 20px;
}

.bottom-box p {
    color: white;
    font-size: 14px;
    margin: 0;
}

/* Header gradient overlay */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

/* Second page styles */
.second-page {
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Third page styles */
.third-page {
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 120px 20px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.second-page h2, .third-page h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.second-page p, .third-page > .container > p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content boxes */
.content-boxes {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin: 15px;
    flex: 1 1 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-10px);
}

.box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    background-color: #2c3e50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background-color: #1a2530;
}

.btn.disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.btn.disabled:hover {
    background-color: #7f8c8d;
}

/* Table Slider Styles */
.table-slider-wrapper {
    position: relative;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.table-slider-container {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    width: 100%;
}

.table-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%; /* 3 slides x 100% */
}

.table-slide {
    width: 33.333%; /* 100% / 3 slides */
    flex-shrink: 0;
    min-height: 100px;
}

.table-slide .table-container {
    background: white;
    padding: 30px;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.9);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -25px;
}

.slider-next {
    right: -25px;
}

/* Table Slider Indicators */
.table-slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.table-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.5);
}

.table-indicator.active {
    background-color: rgba(52, 152, 219, 1);
    border-color: rgba(52, 152, 219, 1);
    transform: scale(1.2);
}

.table-indicator:hover {
    background-color: rgba(52, 152, 219, 0.7);
}

/* Schedule table styles */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.schedule-table thead {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.schedule-table th {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-table th:first-child {
    border-top-left-radius: 8px;
    width: 60px;
}

.schedule-table th:last-child {
    border-top-right-radius: 8px;
}

.schedule-table tbody tr {
    transition: all 0.3s ease;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.schedule-table tbody tr:hover {
    background-color: #e3f2fd;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.schedule-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.schedule-table td:first-child {
    color: #2c3e50;
    background-color: rgba(52, 152, 219, 0.1);
}

.schedule-table td:nth-child(2) {
    font-weight: 600;
    color: #3c94e7;
}

.schedule-table td:nth-child(3) {
    font-weight: 500;
    color: #2c3e50;
}

.schedule-table td:nth-child(4) {
    font-weight: 500;
    color: #2c3e50;
}

.schedule-table td:nth-child(5) {
    color: #7f8c8d;
    font-style: italic;
}

.schedule-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.schedule-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Menu toggle untuk mobile */
.menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
    color: white; /* Default putih */
}

/* Fourth page styles */
.fourth-page {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fourth-page .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fourth-page h2 {
    text-align: center;
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.pastor-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 40px;
}

.pastor-box {
    flex: 0 1 300px;
    text-align: center;
    margin: 20px;
}

.pastor-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.pastor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pastor-box h3 {
    margin-bottom: 10px;
    color: #333;
}

.pastor-box p {
    color: #666;
    font-size: 0.9em;
    line-height: 1.6;
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 24px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.hero-container {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

.pendeta-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero-text {
    flex: 1;
}

.pesan-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.pesan-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.pesan-content {
    font-size: 1rem;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.pesan-content p {
    margin-bottom: 1rem;
}

.hero-buttons {
    text-align: center;
    margin-top: 2rem;
}

/* New styles for hero message section */
.hero-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

.message-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
}

.pendeta-image {
    width: 300px;
    min-width: 300px;
    margin-right: 2rem;
}

.pendeta-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-content {
    flex: 1;
    overflow: hidden;
}

.message-header {
    margin-bottom: 1.5rem;
}

.message-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.message-header h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.message-text {
    font-family: 'Barlow', sans-serif;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.button-container {
    margin-top: 1.5rem;
    text-align: right;
}

@media (max-width: 768px) {
    .navbar ul {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        padding: 20px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9); /* Default untuk halaman pertama */
    }
    
    .navbar ul li {
        margin: 10px 0;
        display: block;
    }
    
    .logo-text {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .content-boxes {
        flex-direction: column;
    }
    
    .box {
        margin-bottom: 20px;
    }
    
    /* Adjust page indicator for mobile */
    .page-indicator {
        right: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        margin: 6px 0;
    }

    /* Perbaikan submenu pada mobile */
    .submenu-list {
        position: static;
        width: 100%;
        margin-top: 5px;
        padding: 5px;
        display: none;
        background-color: rgba(0, 0, 0, 0.5); /* Default untuk halaman pertama */
    }
    
    .submenu:hover .submenu-list {
        display: block;
    }

    /* Table slider responsive */
    .table-slider-wrapper {
        margin-top: 30px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .slider-prev {
        left: -20px;
    }
    
    .slider-next {
        right: -20px;
    }
    
    .table-container {
        padding: 20px 15px;
    }
    
    .schedule-table {
        font-size: 0.8rem;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 8px 5px;
    }
    
    .schedule-table th {
        font-size: 0.85rem;
    }
    
    .third-page {
        padding: 100px 15px 60px;
    }
    
    .third-page h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .third-page > .container > p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .pastor-box {
        flex: 0 1 100%;
        margin: 20px 0;
    }
    
    .pastor-image {
        width: 150px;
        height: 150px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .pendeta-image {
        width: 200px;
        margin-bottom: 1rem;
    }

    .message-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .pendeta-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .slider-prev {
        left: -15px;
    }
    
    .slider-next {
        right: -15px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 6px 3px;
        font-size: 0.75rem;
    }
    
    .schedule-table th:first-child,
    .schedule-table td:first-child {
        width: 40px;
    }
    
    .table-container {
        padding: 15px 10px;
    }
    
    .table-indicator {
        width: 10px;
        height: 10px;
    }
}

#firstPage {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    text-align: center;
}