/* Custom Styles for Baligivation */

/* Hero Section */
.hero-section {
    background-image: url('../img/bg_edit.png');
    background-color: #1a2340;
    /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 90vh;
    display: flex;
    align-items: center;
    animation: flyUpFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.1s;
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, #1a2340 10%, transparent);
    z-index: 2;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #1a2340 20%, transparent);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section-pages {
    background-image: url('../img/bg_edit.png');
    background-color: #1a2340;
    /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 40vh;
    display: flex;
    align-items: center;
    animation: flyUpFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.1s;
    position: relative;
    z-index: 1;
}

.hero-section-pages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, #1a2340 20%, transparent);
    z-index: 2;
}

.hero-section-pages::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, #1a2340 20%, transparent);
    z-index: 2;
}

.hero-section-pages .container {
    position: relative;
    z-index: 3;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Competition Icons */
.competition-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

.competition-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
}

/* Prize List */
.prize-list {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

.prize-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.prize-item:last-child {
    border-bottom: none;
}

/* Rules Content */
.rules-content {
    max-height: 300px;
    overflow-y: auto;
}

.rule-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.rule-item:last-child {
    border-bottom: none;
}

/* Jadwal Agenda*/

.jadwal-container {
    background: none;
    padding: 2rem 1rem;
    color: white;
    text-align: center;
}

.jadwal-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: bold;
}

.jadwal {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 2rem 0;
    /* border-top: 2px dotted #ccc; */
}

.jadwal::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    border-top: 2px dotted #ccc;
    z-index: 0;
}

.jadwal-event {
    position: relative;
    flex: 1;
    text-align: center;
}

.jadwal-event::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: red;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 1;
}

.jadwal-event::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    width: 2px;
    background: white;
    z-index: 0;
}

.jadwal-date {
    font-weight: bold;
    margin-top: 50px;
}

.jadwal-desc {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Timeline for Roadshow */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    background: #ff2e3a;
    border-radius: 50%;
    top: 4px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #ff2e3a33;
}

.timeline li {
    position: relative;
    min-height: 40px;
    margin-bottom: 24px;
    color: #fff;
    transition: box-shadow 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-content {
    padding-left: 32px;
    font-size: 1.1rem;
    color: #fff;
}

/* Step Card for QRIS */
.step-card {
    background: #232e4d;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: none;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    color: #fff;
    animation: flyUpFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.4s;
}

.step-card:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transform: scale(1.06) translateY(-6px);
}

.step-number {
    width: 40px;
    height: 40px;
    background: #ff2e3a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 auto 10px auto;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.12);
}

.step-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Contact Items */
.contact-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Feature Icons */
.feature-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto;
}

/* Social Media Buttons */
.social-media .btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-media .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Button Animations */
.btn,
.btn-primary,
.btn-danger,
.btn-warning {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover,
.btn-primary:hover,
.btn-danger:hover,
.btn-warning:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.18);
}

/* Alert Animations */
.alert {
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        margin-left: 40px;
    }

    .timeline-item.text-end {
        text-align: left;
    }

    .timeline-content::before {
        left: -10px !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent #fff transparent transparent !important;
    }

    .hero-section {
        min-height: 60vh;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }

    .timeline-content {
        font-size: 1rem;
    }

    .step-card {
        min-height: 100px;
        padding: 1rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Focus Effects */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Navbar Brand Animation */
.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Footer Links */
.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #007bff !important;
    text-decoration: none;
}



/* Transparent Navbar for Hero Section */
.navbar-transparent {
    /* background: transparent !important; */
    /* box-shadow: none !important; */
    transition: background 0.3s, box-shadow 0.3s;
}

/* When scrolled, add a subtle background for readability */
.navbar-scrolled {
    background: #1a2340 !important;
    border-bottom: 3px solid white;
    /* match hero gradient start */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(8px);
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
}

/* Ensure transparent navbar at initial load */
.navbar,
.navbar-transparent,
.navbar-dark {
    /* background: transparent !important; */
    box-shadow: none !important;
}

/* Ensure nav links are visible on transparent background */
.navbar-dark .navbar-nav .nav-link {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Competition Card Custom Design */
.competition-card {
    background: linear-gradient(180deg, #232e4d 0%, #1a2340 100%);
    border-radius: 1.5rem;
    box-shadow: 0 6px 32px 0 rgba(20, 30, 60, 0.12);
    color: #fff;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: none;
    transition: box-shadow 0.2s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.competition-card:hover {
    box-shadow: 0 12px 48px 0 rgba(20, 30, 60, 0.18);
    transform: translateY(-10px) scale(1.05);
}

.competition-card .competition-img {
    margin-bottom: 1.5rem;
    max-height: 110px;
    object-fit: contain;
}

.competition-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.competition-card p {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.competition-card .btn-danger {
    background: #ff2e3a;
    border: none;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1rem;
    padding: 0.6rem 2rem;
    box-shadow: 0 2px 8px rgba(255, 46, 58, 0.10);
    transition: background 0.2s;
}

.competition-card .btn-danger:hover {
    background: #d81b24;
}

@media (max-width: 991px) {
    .competition-card {
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    .competition-card {
        min-height: 0;
        padding: 1.5rem 1rem;
    }

    .competition-card .competition-img {
        max-height: 80px;
    }
}

body,
.bg-light,
.bg-white {
    background: #1a2340 !important;
    color: #fff;
}

/* section, */
.container,
.row {
    background: transparent !important;
}

.text-dark,
.text-muted,
.text-secondary {
    color: #e0e6f6 !important;
}

.btn-primary,
.btn-warning,
.btn-danger {
    color: #fff !important;
    font-weight: 700;
    border: none;
}

.btn-primary {
    background: #ff2e3a !important;
}

.btn-primary:hover {
    background: #d81b24 !important;
}

.btn-warning {
    background: #ffb300 !important;
    color: #1a2340 !important;
}

.btn-warning:hover {
    background: #ff9800 !important;
    color: #fff !important;
}

.btn-outline-light {
    color: #fff !important;
    border-color: #fff !important;
}

.btn-outline-light:hover {
    background: #fff !important;
    color: #1a2340 !important;
}

input,
textarea,
select {
    background: #232e4d !important;
    color: #fff !important;
    border: 1px solid #3a4260 !important;
}

/* Add this */
input::placeholder,
textarea::placeholder,
select::placeholder {
    color: #e5e5e5 !important;
    opacity: 0.1;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 46, 58, 0.15) !important;
}

.alert-success,
.alert-danger {
    background: #232e4d;
    color: #fff;
    border: 1px solid #ff2e3a;
}

.footer,
footer,
.bg-dark {
    background: #181e34 !important;
    color: #fff !important;
}

.footer a,
footer a {
    color: #ffb300 !important;
}

.footer a:hover,
footer a:hover {
    color: #ff2e3a !important;
}

/* Micro-interaction for navbar menu */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.2s, transform 0.2s;
    z-index: 1;
}

.navbar-nav .nav-link::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: 0.2em;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffb300 0%, #ff2e3a 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(.4, 0, .2, 1);
    z-index: 2;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ffb300 !important;
    transform: scale(1.08);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: #ffb300 !important;
}

.navbar-dark .navbar-nav .nav-link:focus {
    color: #ffb300 !important;
    transform: scale(1.08);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link:focus::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffb300 !important;
}

.timeline-place-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #ff2e3a;
    background: #232e4d;
    box-shadow: 0 2px 8px rgba(20, 30, 60, 0.10);
    margin-right: 1rem;
}

@media (max-width: 767px) {
    .timeline-place-img {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }
}

.section-separator {
    width: 100vw;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: transparent;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 2;
}

.section-separator svg {
    display: block;
    width: 100vw;
    height: 60px;
}

@media (max-width: 767px) {
    .section-separator svg {
        height: 32px;
    }
}

.custom-separator {
    display: block;
    margin: 48px auto;
    border: none;
    height: 3px;
    width: 30%;
    background: linear-gradient(90deg, #ffb300 0%, #ff2e3a 100%);
    border-radius: 2px;
    opacity: 0.7;
    animation: flyUpFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.2s;
}

.navbar-nav .nav-item {
    margin: 0 1rem;
}

/* Custom Dropdown Styling */
.navbar-nav .dropdown .dropdown-toggle::after {
    display: none;
}

.navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    /* Adjust to align with navbar */
    background: #1a2340;
    /* Match with theme */
    border: 1px solid #3a4260;
}

.dropdown-menu .dropdown-item {
    color: #e0e6f6;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #ff2e3a;
    color: #fff;
}

@keyframes flyUpFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.competition-card,
.step-card,
.timeline li,
.custom-separator,
section:not(.hero-section):not(.hero-section-pages) {
    opacity: 0;
    animation: flyUpFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
}

section:not(.hero-section):not(.hero-section-pages) {
    animation-delay: 0.1s;
}

.competition-card {
    animation-delay: 0.3s;
}

.step-card {
    animation-delay: 0.4s;
}

.timeline li {
    animation-delay: 0.5s;
}

.custom-separator {
    animation-delay: 0.2s;
}

/* Call to Action Animation */
.cta-section {
    opacity: 0;
    animation: flyUpFadeIn 1.2s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: 0.5s;
}

/* Make calendar icon in date input white */
input[type='date']::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type='date']::-webkit-input-placeholder {
    color: #fff;
}

input[type='date'] {
    color: #fff;
}

/* Fix icon size in competition dropdown menu */
.dropdown-menu .dropdown-item i {
    font-size: 12px !important;
    width: 16px;
    min-width: 10px;
    text-align: center;
}

/* Microanimation for competition card click */
.competition-animate {
    animation: popScale 0.25s cubic-bezier(.22, 1, .36, 1);
}

@keyframes popScale {
    0% {
        transform: scale(1);
    }

    60% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1);
    }
}

/* SweetAlert2 popup for competition cards */
.swal2-competition-popup {
    background: #232e4d !important;
    color: #fff !important;
    border-radius: 1.2rem !important;
    box-shadow: 0 4px 32px rgba(20, 30, 60, 0.18) !important;
}

/* Footer competition icon size */
footer .list-unstyled i.fa-network-wired,
footer .list-unstyled i.fa-star,
footer .list-unstyled i.fa-lightbulb {
    font-size: 12px !important;
    width: 16px;
    min-width: 12px;
    text-align: center;
}

/* Custom tab color for penilaian section */
#penilaianTab .nav-link {
    color: #bfc9e0;
    /* background: none; */
    /* border: none; */
}

#penilaianTab .nav-link.active {
    color: #fff;
    background: #232e4d;
    /* border: none; */
}

/* Make penilaian tabs full width and each tab 50% */
#penilaianTab {
    display: flex;
    width: 100%;
}

#penilaianTab .nav-item {
    flex: 1 1 0;
    text-align: center;
}

#penilaianTab .nav-link {
    width: 100%;
    border-radius: 0;
}

/* Responsive logo for home page */
.responsive-logo {
    /* height: 310px; */
    /* margin-top: 30%; */
    max-width: 100%;
}

.costum-col {
    max-width: 60%;
}

@media (max-width: 991.98px) {
    .responsive-logo {
        margin-top: 20%;
        height: 180px;
    }

    .costum-col {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .responsive-logo {
        margin-top: 30%;
        height: 120px;
    }
}

#anggotaFields {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(.22, 1, .36, 1), opacity 0.5s cubic-bezier(.22, 1, .36, 1);
    max-height: 200px;
    opacity: 1;
}

#anggotaFields.hide {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.category-card.selected,
.category-card:focus {
    border-color: #fff;
    box-shadow: 0 0 0 4px #ffb30044;
    outline: none;
}

.peserta-btn-group .peserta-btn {
    border: 2px solid #1a2340;
    color: #1a2340;
    background: #fff;
    /* border-radius: 999px; */
    /* font-weight: 600; */
    font-size: 1.1rem;
    min-width: 120px;
    /* margin-right: 8px; */
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(26, 35, 64, 0.08);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.peserta-btn-group .peserta-btn:last-child {
    margin-right: 0;
}

.peserta-btn-group .peserta-btn.active,
.peserta-btn-group .peserta-btn:active {
    background: #1a2340 !important;
    color: #ffffff !important;
    border-color: #1a2340 !important;
    box-shadow: 0 4px 16px rgba(255, 179, 0, 0.15);
}

.peserta-btn-group .peserta-btn:focus {
    border-color: #ffb300 !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 46, 58, 0.15) !important;
}

@media (max-width: 575.98px) {
    .peserta-btn-group .peserta-btn {
        min-width: 90px;
        font-size: 1rem;
    }
}

.selectable-semeton.selected {
    box-shadow: 0 0 0 4px #ffb300;
    border-color: #ffb300;
    background: rgba(255, 179, 0, 0.15);
}

.form-check-inline {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.form-check-inline input[type="checkbox"] {
    margin-top: 0.2em;
    /* align with first line of label */
}

.form-check-inline label {
    margin: 0;
}

/* Responsive Timeline Horizontal */
.timeline-horizontal {
    scrollbar-width: thin;
    scrollbar-color: #fff #1a2340;
}

.timeline-horizontal::-webkit-scrollbar {
    height: 6px;
}

.timeline-horizontal::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 3px;
}



@media (max-width: 575.98px) {
    .timeline-horizontal>.d-flex>div {
        width: 120px !important;
        max-width: 95vw !important;
    }

    .timeline-horizontal span,
    .timeline-horizontal .fw-bold,
    .timeline-horizontal .fst-italic {
        font-size: 0.92rem !important;
    }

    .timeline-horizontal [style*='font-size:2.2rem'] {
        font-size: 1.4rem !important;
    }

    .timeline-horizontal [style*='width:1.5rem'] {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }

    .timeline-horizontal {
        padding-bottom: 10px;
    }
}

.cta-small,
.cta-small * {
    font-size: 0.95rem !important;
}

@media (max-width: 575.98px) {

    .cta-small,
    .cta-small * {
        font-size: 0.88rem !important;
    }
}

/* Set navbar background on mobile */
@media (max-width: 991.98px) {
    .navbar {
        background: #1a2340 !important;
        border-bottom-left-radius: 1.5rem;
        border-bottom-right-radius: 1.5rem;
    }
}