:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #e7f1ff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #F8F9FA;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.hero-carousel {
    height: 700px;
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 700px;
    background: #eee;
    position: relative;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.60);
    /* Lapisan gelap */
    z-index: 1;
}

.carousel-caption {
    z-index: 2;
    padding: 2rem;
}
 

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-custom1 {
    padding: 8px 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none !important;
    outline: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #fff;
}

.btn-custom1:hover {
    background-color: #0000001e;
    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-element {
    position: absolute;
    opacity: 0.7;
}

.floating-1 {
    top: 10%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.floating-2 {
    bottom: 20%;
    right: 15%;
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;  
    margin: 0 auto 3rem;
}

.competition-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.competition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-title {
    font-size: 22px;
}

.category-badge {
    padding: 4px 12px;
    border-radius: 20px; 
    font-size: 0.85rem;
    background-color: rgba(13, 110, 253, 0.1); /* contoh biru muda */
    color: #0d6efd;  
}


.btn-join {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.btn-join:hover {
    transform: scale(1.02);
}

.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.page-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.footer {
    background: #212529;
    color: white;
}

.footer .text-muted {
    color: #adb5bd !important;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: white;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.social-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-indicators {
    bottom: 2rem;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 1rem;
    }

    .carousel-control-next {
        right: 1rem;
    }
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

a {
    text-decoration: none;
}