body{

    font-family:"Segoe UI",sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    color: #222;
    background: linear-gradient(180deg, #fffdfd 0%, #fff8f8 100%);

}

section[id] {
    scroll-margin-top: 90px;

/* Make form inputs and labels more readable on different viewports */
.modal-content input,
.modal-content textarea,
.modal-content select,
.modal-content .form-label {
        font-size: clamp(0.95rem, 2vw, 1rem);
}

.competition-checkboxes .form-check-label {
        font-size: 0.98rem;
}
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 90px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c1121f, transparent);
    border-radius: 999px;
}

section .section-heading h2 {
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

section[id="countdown"] {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

img {
    max-width: 100%;
    height: auto;
}

.hero{

padding-top:140px;

padding-bottom:80px;

background:#f8f9fa;

min-height:100vh;

display:flex;

align-items:center;

}

.hero .container{

width:100%;

}

.hero-banner{

width:100%;

max-width:100%;

border-radius:30px;

box-shadow:0 25px 60px rgba(0,0,0,.25);

transition:.4s;

}

.hero-banner:hover{

transform:translateY(-10px);

}

.hero-feature{

display:flex;

gap:15px;

flex-wrap:wrap;

margin-top:30px;

}

.hero-feature span{

background:white;

padding:12px 18px;

border-radius:50px;

box-shadow:0 5px 15px rgba(0,0,0,.08);

}

.countdown-card{

margin-top:35px;

padding:30px;

border-radius:20px;

background:white;

box-shadow:0 10px 30px rgba(0,0,0,.1);

}

.banner-full{

width: 100%;

margin: 0;

margin-top: 100px;

padding: 25px;

position: relative;

background: white;

border: 15px solid;

border-top-color: #c1121f;

border-right-color: #fff;

border-bottom-color: #fff;

border-left-color: #c1121f;

box-shadow: inset 0 0 0 8px #c1121f, inset 0 0 0 15px #fff, 0 10px 40px rgba(0, 0, 0, 0.3);

transition: transform 0.3s ease, box-shadow 0.3s ease;

border-radius: 18px;

}

.banner-full:hover{

transform: scale(1.01);

box-shadow: inset 0 0 0 8px #c1121f, inset 0 0 0 15px #fff, 0 15px 50px rgba(0, 0, 0, 0.4);

}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#about,
#about2,
#activities,
#contact,
#countdown {
    animation: floatIn 0.8s ease both;
}

.banner-full img{

display: block;

filter: brightness(1.05) contrast(1.05);

width: 100%;

height: auto;

border-radius: 10px;

}

/* ===========================
   NAVBAR
=========================== */

#navbar{

    transition:.4s;

    padding:18px 0;

    background: linear-gradient(90deg, #c1121f 0%, #a10f1b 100%) !important;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);

}

.navbar.scrolled{

    box-shadow:0 5px 20px rgba(0,0,0,.25);

    padding:10px 0;

}

.navbar.scrolled .navbar-brand{

    color: #fff !important;

}

.navbar.scrolled .nav-link{

    color: #fff !important;

}

.nav-link{

    margin-left:20px;

    color: #fff !important;

}

.nav-link:hover{

    color: #fff !important;

}

.navbar-brand{

    color: #fff !important;

}

/* Styling for the small festival label above the main title */
.navbar-brand .festival-label{
    color: #ffd86b;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.08rem;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}

.navbar-brand .brand-title{
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.05;
}

@media (max-width: 576px) {
    .navbar-brand .festival-label{
        font-size: 0.6rem;
        letter-spacing: 0.8px;
    }
    .navbar-brand .brand-title{
        font-size: 0.95rem;
    }
}

.activity-card{

    background:#fff;

    border-radius:25px;

    padding:45px;

    text-align:center;

    transition:transform .35s ease, box-shadow .35s ease;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    overflow:hidden;

    position:relative;

}

.content-image-card,
.content-text-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    border: 1px solid rgba(193, 18, 31, 0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.content-image-card:hover,
.content-text-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.content-image-card img {
    border-radius: 18px;
}

.content-text-card {
    padding: 2rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
    color: #b1111b;
    letter-spacing: 0.3px;
}

.section-heading h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c1121f, transparent);
    border-radius: 999px;
}

.section-heading p {
    font-size: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.activity-card:hover{

    transform:translateY(-8px) scale(1.01);

    box-shadow:0 20px 50px rgba(0,0,0,.18);

}

#activities .activity-card {
    position: relative;
    overflow: hidden;
}

#activities .activity-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(193,18,31,0.04), transparent 60%);
    pointer-events: none;
}

#activities .activity-card .activity-icon {
    box-shadow: inset 0 0 0 2px rgba(193,18,31,0.08);
}

.activity-icon{

    width:120px;

    height:120px;

    background:#ffe5e5;

    border-radius:50%;

    margin:auto;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:60px;

}

.activity-card ul{

    line-height:2;

}

.activity-card button{

    border-radius:50px;

    padding:12px;
    font-weight:600;
    letter-spacing:0.2px;
    box-shadow: 0 8px 18px rgba(193, 18, 31, 0.2);
    transition: transform .2s ease, box-shadow .2s ease;
}

.activity-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(193, 18, 31, 0.28);
}

.btn-danger,
.btn-warning {
    position: relative;
    overflow: hidden;
}

.btn-danger::after,
.btn-warning::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(-100%);
    transition: transform .5s ease;
}

.btn-danger:hover::after,
.btn-warning:hover::after {
    transform: translateX(100%);
}

.icon{

    font-size:60px;

    margin-bottom:20px;

}

.registration-card{

background:white;

padding:40px;

border-radius:20px;

box-shadow:0 15px 40px rgba(0,0,0,.08);

}

.step{

display:none;

}

.step.active{

display:block;

animation:fade .5s;

}

@keyframes fade{

from{

opacity:0;

transform:translateX(30px);

}

to{

opacity:1;

transform:translateX(0);

}

}

/* ===========================
   MODAL
=========================== */

.modal-overlay {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0, 0, 0, 0.65);

    z-index: 1050;

    justify-content: center;

    align-items: flex-start;

    padding-top: 100px;

    overflow-y: auto;

}

.swal2-container {

    z-index: 11000 !important;

}

.modal-overlay.active {

    display: flex;

}

.modal-content {

    background: white;

    padding: 24px;

    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    max-width: 620px;

    width: calc(100% - 40px);

    position: relative;

    animation: slideIn 0.3s ease;

    margin-top: 10px;

    max-height: calc(100vh - 140px);

    overflow-y: auto;

}

.modal-close {

    position: absolute;

    top: 18px;

    right: 18px;

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.08);

    border: none;

    font-size: 24px;

    line-height: 1;

    color: #333;

    cursor: pointer;

    transition: background 0.2s, color 0.2s;

}

.modal-close:hover {

    background: rgba(0, 0, 0, 0.14);

    color: #000;

}

.video-modal-content {

    max-width: 620px;

}

.video-modal-content video {

    width: 100%;

    height: auto;

    border-radius: 14px;

    max-height: 360px;

}

@keyframes slideIn {

    from {

        opacity: 0;

        transform: translateY(-30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}

.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

    border-bottom: 2px solid #c1121f;

    padding-bottom: 15px;

}

.modal-header h2 {

    margin: 0;

    color: #c1121f;

}

.modal-close {

    background: none;

    border: none;

    font-size: 28px;

    cursor: pointer;

    color: #666;

    transition: color 0.2s;

}

.modal-close:hover {

    color: #c1121f;

}

.competition-checkboxes {

    padding: 15px;

    border: 1px solid #ddd;

    border-radius: 8px;

    background: #f9f9f9;

}

.competition-checkboxes .form-check {

    margin-bottom: 12px;

}

.competition-checkboxes .form-check:last-child {

    margin-bottom: 0;

}

/* ===========================
   COUNTDOWN
=========================== */

.countdown-box {

    background: rgba(255, 255, 255, 0.2);

    padding: 25px;

    border-radius: 15px;

    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow: 0 8px 20px rgba(0,0,0,0.12);

}

.countdown-value {

    font-size: 48px;

    font-weight: bold;

    line-height: 1;

    margin-bottom: 10px;

}

.countdown-label {

    font-size: 16px;

    opacity: 0.9;

    text-transform: uppercase;

    letter-spacing: 1px;

}

#countdown {

    background: linear-gradient(135deg, #c1121f 0%, #9c0f18 100%);

}

#contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: #fff;
}

#contact .container {
    max-width: 1140px;
}

#contact .card {
    min-height: 100%;
    border-radius: 20px;
    transition: transform .3s ease, box-shadow .3s ease;
}

#contact .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,.12) !important;
}

.card,
.activity-card,
.content-image-card,
.content-text-card {
    will-change: transform, box-shadow;
}

.btn-danger,
.btn-warning {
    border: none;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

#contact .card-body {
    padding: 2rem 1.5rem;
}

#about,
#about2,
#activities,
#contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Responsive tweaks for registration/competition modals and forms */
.modal-content {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 92%;
        width: 92%;
        padding: 18px;
    }
}

@media (max-width: 576px) {
    .modal-overlay {
        padding-top: 20px;
        align-items: flex-start;
    }

    .modal-content {
        max-width: 96%;
        width: 96%;
        padding: 14px;
        margin-top: 0;
        max-height: calc(100vh - 40px);
        border-radius: 12px;
    }

    .modal-header {
        padding-bottom: 10px;
        gap: 8px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .competition-checkboxes {
        padding: 10px;
    }

    .activity-card {
        padding: 28px;
    }
}

.section-heading h2 {
    font-size: clamp(1.6rem, 2.7vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.section-heading p {
    font-size: 1rem;
}

.video-player-wrapper {

    max-width: 720px;

    margin: 0 auto;

}

.video-player-wrapper video {

    width: 100%;

    height: auto;

    border-radius: 16px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);

}


.contact-photo-frame {

    width: 140px;

    height: 140px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    border-radius: 50%;

}

.contact-photo {

    width: 100%;

    height: 100%;

    object-fit: cover;

    border-radius: 50%;

}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

@media (max-width: 991px) {
    .navbar-brand {
        font-size: 0.95rem;
        line-height: 1.2;
        max-width: 100%;
    }

    .navbar-brand img {
        width: 34px;
    }

    .nav-link {
        margin-left: 0;
        padding: 8px 0;
    }

    .banner-full {
        margin-top: 88px;
        padding: 12px;
    }

    .activity-card {
        padding: 30px 22px;
    }
}

@media (max-width: 768px) {
    .banner-full {
        margin-top: 82px;
        padding: 10px;
        border-width: 10px;
        box-shadow: inset 0 0 0 6px #c1121f, inset 0 0 0 10px #fff, 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    .content-text-card,
    .content-image-card {
        padding: 1.1rem;
    }

    .countdown-box {
        padding: 18px 10px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .activity-icon {
        width: 90px;
        height: 90px;
        font-size: 46px;
    }

    .modal-content {
        width: calc(100% - 24px);
        padding: 18px 14px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 0.95rem;
    }

    .navbar {
        padding: 12px 0;
    }

    .navbar-brand {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .navbar-brand img {
        width: 30px;
        margin-right: 0;
    }

    .banner-full {
        margin-top: 76px;
        padding: 8px;
        border-width: 8px;
        box-shadow: inset 0 0 0 5px #c1121f, inset 0 0 0 8px #fff, 0 6px 18px rgba(0, 0, 0, 0.2);
    }

    .activity-card {
        padding: 22px 16px;
    }

    .activity-card button {
        padding: 10px 14px;
        font-size: 0.95rem;
    }

    .countdown-box {
        padding: 14px 8px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .activity-card {
        padding: 24px 18px;
    }
}
