/* =========================
   PENDAFTARAN PAGE STYLES
   ========================= */

/* Header Image Styling - Tidak mengganggu navbar */
.pendaftaran-page .image-container {
    position: relative;
    margin-top: 0; /* Pastikan tidak ada margin yang mengganggu navbar */
}

.pendaftaran-page .image-with-text {
    position: relative;
    overflow: hidden;
}

.pendaftaran-page .header-image {
    width: 100%;
    height: auto;
    display: block;
}

.pendaftaran-page .overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white !important;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.pendaftaran-page .overlay-text h2 {
    margin: 0;
    font-size: 3em;
    font-weight: bold;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

/* Main Container Layout */
.pendaftaran-page .container {
    display: flex;
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: #f8f9fa;
}

.pendaftaran-page .main-content {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.pendaftaran-page .sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
}

.pendaftaran-page .sidebar-section {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Program Header */
.pendaftaran-page .program-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pendaftaran-page .program-header button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #003f91 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 63, 145, 0.3);
}

.pendaftaran-page .program-header button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 63, 145, 0.4);
}

/* Program List */
.pendaftaran-page .program-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pendaftaran-page .program-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pendaftaran-page .program-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #003f91 0%, #0066cc 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.pendaftaran-page .program-item:hover::before {
    opacity: 0.05;
}

.pendaftaran-page .program-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #003f91;
}

.pendaftaran-page .program-item > div {
    position: relative;
    z-index: 1;
    flex: 1;
}

.pendaftaran-page .program-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #003f91;
    position: relative;
}

.pendaftaran-page .program-item h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #003f91 0%, #0066cc 100%);
    border-radius: 2px;
}

.pendaftaran-page .program-item p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.pendaftaran-page .program-item button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #003f91 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-left: 20px;
    box-shadow: 0 4px 15px rgba(0, 63, 145, 0.3);
    position: relative;
    z-index: 1;
}

.pendaftaran-page .program-item button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 63, 145, 0.4);
}

/* Description Styles */
.pendaftaran-page .description {
    margin: 15px 0 !important;
    padding: 15px;
    border-left: 4px solid #003f91;
    padding-left: 20px;
    background: linear-gradient(135deg, rgba(0, 63, 145, 0.05) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #333;
    position: relative;
    z-index: 1;
}

.pendaftaran-page .description::before {
    content: '•';
    color: #003f91;
    font-weight: bold;
    margin-right: 8px;
}

/* Online Form Button */
.pendaftaran-page .online-form-button {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.pendaftaran-page .online-form-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

/* Sidebar Sections */
.pendaftaran-page .sidebar-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #003f91;
    border-bottom: 3px solid #003f91;
    padding-bottom: 10px;
    position: relative;
}

.pendaftaran-page .sidebar-section h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #0066cc 0%, #003f91 100%);
    border-radius: 2px;
}

.pendaftaran-page .sidebar-section ol {
    margin: 0;
    padding: 0 20px;
    font-size: 15px;
    color: #555;
    list-style-type: decimal;
    line-height: 1.8;
}

.pendaftaran-page .sidebar-section li {
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pendaftaran-page .sidebar-section li:last-child {
    border-bottom: none;
}

.pendaftaran-page .sidebar-section p {
    margin: 15px 0;
    text-align: center;
    color: #999;
    font-size: 18px;
}

/* WhatsApp Button Styles - Fixed untuk icon */
.pendaftaran-page .whatsapp-button {
    display: inline-block;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    width: 100%;
    text-align: center;
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
}

/* Pastikan icon WhatsApp muncul - khusus untuk sidebar */
.pendaftaran-page .whatsapp-button#whatsapp-sidebar i {
    display: inline-block !important;
    margin-right: 8px !important;
    font-size: 20px !important; /* Reduced from 40px to 20px - more proportional */
    color: white !important;
    position: relative;
    z-index: 2; /* Ensure icon is above pseudo-elements */
}

/* Icon untuk tombol WhatsApp lainnya (bukan floating) */
.pendaftaran-page .whatsapp-button:not(.whatsapp-floating):not(#whatsapp-sidebar) i {
    display: inline-block !important;
    margin-right: 8px !important;
    font-size: 18px !important; /* Ukuran default untuk tombol lain */
    color: white !important;
    position: relative;
    z-index: 2;
}

/* Shine effect - moved to ::after to avoid conflicts */
.pendaftaran-page .whatsapp-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1; /* Below the icon */
}

.pendaftaran-page .whatsapp-button:hover::after {
    left: 100%;
}

.pendaftaran-page .whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.pendaftaran-page .whatsapp-button-container {
    margin-top: 25px;
    text-align: center;
}

/* WhatsApp Container */
.pendaftaran-page .whatsapp-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.pendaftaran-page .whatsapp-floating {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    overflow: visible; /* Ensure icon is visible */
}

.pendaftaran-page .whatsapp-floating:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.pendaftaran-page .whatsapp-floating i {
    font-size: 35px; /* Increased from 30px to 35px */
    margin: 0;
    color: white;
    position: relative;
    z-index: 2; /* Ensure icon is above any pseudo-elements */
    display: block !important; /* Force display */
}

/* Bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Speech bubble */
.pendaftaran-page .speech-bubble {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
    opacity: 0;
    animation: fadeInOut 4s infinite;
    z-index: 1000;
}

/* Triangle pointer */
.pendaftaran-page .speech-bubble::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 12px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.pendaftaran-page .speech-bubble::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 14px solid #e9ecef;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: -1;
}

@keyframes fadeInOut {
    0%, 70% {
        opacity: 0;
        transform: translateY(-50%) translateX(10px);
    }
    15%, 55% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Hide speech bubble on hover */
.pendaftaran-page .whatsapp-container:hover .speech-bubble {
    opacity: 0;
}

/* Footer styling */
.pendaftaran-page .footer1 {
    position: relative;
    background-image: url('../Assets/pendaftaran/Black Pink Modern Personal Facebook Cover Page.webp');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 300px;
    margin: 0;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pendaftaran-page .container {
        flex-direction: column;
        padding: 20px 15px;
    }
    
    .pendaftaran-page .main-content {
        margin-left: 0;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .pendaftaran-page .sidebar {
        width: 100%;
        margin-left: 0;
    }
    
    .pendaftaran-page .program-item {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
    }
    
    .pendaftaran-page .program-item button {
        margin-left: 0;
        margin-top: 15px;
        align-self: flex-end;
    }
    
    .pendaftaran-page .overlay-text h2 {
        font-size: 2em;
    }
    
    .pendaftaran-page .whatsapp-container {
        bottom: 25px;
        left: 25px;
    }
    
    .pendaftaran-page .whatsapp-floating {
        width: 55px;
        height: 55px;
    }
    
    .pendaftaran-page .whatsapp-floating i {
        font-size: 24px;
    }
    
    .pendaftaran-page .speech-bubble {
        left: 70px;
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .pendaftaran-page .overlay-text h2 {
        font-size: 1.5em;
    }
    
    .pendaftaran-page .program-item {
        padding: 15px;
    }
    
    .pendaftaran-page .sidebar-section {
        padding: 20px;
    }
    
    .pendaftaran-page .footer1 {
        height: 200px;
    }
}
