/* Detail Kegiatan Page Styling */

.kegiatan-detail-section {
    background: linear-gradient(to bottom, #FDD100 0%, #F6AE45 50%, #FFFBF0 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

/* Breadcrumb Styling */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
}

/* Card Styling */
.kegiatan-detail-section .card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Badge Styling */
.badge.bg-info {
    background-color: rgba(155, 89, 182, 0.2) !important;
    color: #F6AE45 !important;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Activity Info Box */
.activity-info .keg-desc {
    line-height: 1.8;
    color: #555;
}

.activity-info .keg-desc h1,
.activity-info .keg-desc h2,
.activity-info .keg-desc h3,
.activity-info .keg-desc h4 {
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.activity-info .keg-desc p {
    margin-bottom: 1rem;
}

.activity-info .keg-desc ul,
.activity-info .keg-desc ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Info Boxes */
.bg-light.rounded-3.border {
    border-color: #e9ecef !important;
    transition: all 0.3s ease;
}

.bg-light.rounded-3.border:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-color: #FDD100 !important;
}

/* Registration Form Box */
.registration-form {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.registration-form .btn-info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border: none;
    transition: all 0.3s ease;
}

.registration-form .btn-info:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.registration-form .btn-secondary {
    background: #95a5a6;
    border: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Alert Styling */
.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
    color: #f39c12;
}

.alert-info {
    background-color: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
    color: #2980b9;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
    color: #27ae60;
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
    color: #c0392b;
}

/* Poster Container Styling */
.poster-container {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 800 / 480;
    margin: 0 auto;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* "Utuh" means no cropping, so we use contain */
    transition: transform 0.5s ease;
}

.poster-container:hover .poster-image {
    transform: scale(1.01);
}

/* Banner/Iklan Boxes */
.banner-box {
    transition: all 0.3s ease;
}

.banner-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Maps Iframe */
.ratio iframe {
    border-radius: 8px;
}

/* Contact Info Icons */
.fab.fa-whatsapp {
    font-size: 1.1rem;
}

.far.fa-envelope {
    font-size: 1.1rem;
}

/* Responsive Adjustments */

/* Mobile Devices (<600px) */
@media (max-width: 600px) {
    .kegiatan-detail-section {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Breadcrumb */
    nav[aria-label="breadcrumb"] {
        margin-bottom: 1rem !important;
        padding-top: 1rem !important;
    }

    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Card Body */
    .card-body {
        padding: 1rem !important;
    }

    /* Title */
    h1 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1rem !important;
    }

    h5,
    h6 {
        font-size: 0.9rem !important;
    }

    /* Info Boxes */
    .bg-light.rounded-3.border {
        padding: 0.75rem !important;
    }

    /* Registration Form */
    .registration-form {
        padding: 1rem !important;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0.5rem !important;
    }

    .registration-form h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }

    .registration-form p {
        font-size: 0.85rem !important;
        margin-bottom: 1rem !important;
    }

    .btn-lg {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    /* Poster image adjustment */
    .poster-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Sidebar Ads */
    .banner-box {
        height: 200px !important;
        min-height: 200px !important;
    }

    /* Maps */
    .ratio {
        margin-top: 0.5rem !important;
    }

    /* Activity Description */
    .activity-info .keg-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .activity-info h5 {
        font-size: 0.95rem !important;
    }
}

/* Small Mobile (<400px) */
@media (max-width: 400px) {
    .kegiatan-detail-section {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    h1 {
        font-size: 1.1rem !important;
    }

    .registration-form {
        padding: 0.75rem !important;
    }

    .poster-container {
        height: auto;
        aspect-ratio: 800 / 480;
    }
}

/* Tablet Portrait (601px - 768px) */
@media (min-width: 601px) and (max-width: 768px) {
    .kegiatan-detail-section {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }



    .registration-form {
        padding: 1.5rem !important;
    }
}

/* Tablet Landscape & Small Desktop (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .kegiatan-detail-section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }


}

/* Desktop (1024px+) adjustments if needed */
@media (min-width: 1024px) {
    /* Poster container already handled by main styles */
}