:root {
    --primary-color: #319E80;
    --dark-gray: #504A48;
    --white: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-padding-top: 76px;
}

h1, h3, h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    color: #036266;
    margin-left: 10px;
}

.logo img{
    width: 50px;
    height: auto;
    float: left;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.nav-link {
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #036266;
}

.nav-item {
    margin-left: 15px;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 15px;
}

.btn-primary:hover {
    background-color: #ffffff;
    border-color: #319E80;
    color: #319E80;
    font-weight: 600;
    border: solid 2px #319E80;
}

/* Carousel Styles */
.carousel-item {
    height: 100vh;
    min-height: 500px;
    background: no-repeat center center scroll;
    background-size: cover;
}

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

@media (max-width: 768px) {
    .carousel-item {
        height: 100vh;
    }

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

    .carousel-caption {
        bottom: 20%;
        padding: 0 15px;
    }
}

.carousel-caption {
    bottom: 30%;
    z-index: 2;
}

/*Prize*/
.prize-amount{
    color: #319E80;
    font-size: 5rem;
    font-weight: 700;
    font-family: 'Bricolage Grotesque', sans-serif;
}

#prize {
    display: flex;
    flex-direction: column;
    align-items: center;     /* Center secara horizontal */
    justify-content: center; /* Center secara vertical hanya jika ada tinggi */
    text-align: center;
}


/* Isi */
#aboutus {
    display: flex;
    flex-direction: column; /* Tambahkan ini agar item ditumpuk vertikal */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 0;
    background-image: url('../images/decarbo(2).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-sizing: border-box;
    text-align: center; /* Agar teks juga rata tengah */
}

#aboutus h2 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffffff;
}

#aboutus img {
    width: 100%;
    max-width: 350px;
    height: auto;
    margin: 20px 0;
}

#aboutus p {
    max-width: 800px;
    text-align: center;
    line-height: 1.8;
    margin: 0 auto;
    color: #ffffff;
}


h2 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Bricolage Grotesque', sans-serif;
    color: #319E80;
}

.tema {
    color: #54af48;
}

/* Event Cards */
.event-card {
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.event-card:hover {
    transform: translateY(-10px);
}

/* Footer */
footer {
    background-color: var(--dark-gray);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin: 15px 0;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .navbar-brand {
        display: none;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .logo img {
        margin-left: 0;
    }

    #aboutus {
        padding: 50px 0;
    }

    #aboutus h2 {
        font-size: 2rem;
    }

    #aboutus img {
        max-width: 250px;
        padding: 10px;
    }

    #aboutus p {
        font-size: 0.8rem;
    }

    .carousel-item {
        height: 100vh;
        background-size: contain;
    }

    h2 {
        font-size: 2rem;
    }

    .card-body h3{
        font-size: 1.5rem;
    }

    .card-body p {
        font-size: 0.8rem;
    }

}


/* Sponsor Section */
.sponsor-section {
    background-color: #f8f9fa;
}

.sponsor-content {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.sponsor-benefits {
    margin: 3rem 0;
}

.sponsor-benefits h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.benefit-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #666;
    margin: 0;
}

.sponsor-cta .btn {
    padding: 0.8rem 2rem;
}


/* News Section Styles */
.news-section {
    background-color: #ffffff;
    padding: 60px 0;
    margin-bottom: 30px;
}

.news-carousel {
    position: relative;
    padding: 20px 0;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 15px;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    height: 400px;
    display: flex;
    flex-direction: column;
}

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

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: #49B66E;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.news-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.read-more {
    color: #49B66E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.read-more:hover {
    color: #2C7A47;
}

/* Owl Carousel Custom Navigation */
.owl-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #49B66E ; /*!important*/
    color: white ; /*!important*/
    width: 40px;
    height: 40px;
    border-radius: 50% ; /*!important*/
    font-size: 20px ; /*!important*/
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.owl-nav button:hover {
    opacity: 1;
}

.owl-prev {
    left: -50px;
}

.owl-next {
    right: -50px;
}

.owl-dots {
    margin-top: 20px;
}

.owl-dot span {
    background: #ccc /*!important*/;
}

.owl-dot.active span {
    background: #49B66E /*!important*/;
}

@media (max-width: 768px) {
    .news-card {
        height: auto;
    }
    
    .owl-nav button {
        display: none;
    }
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.dropdown-item:hover {
    background-color: #319E80;
    color: white;
}