/* CSS Variables */
:root {
    /* Colors */
    --color-primary: #00b1cd;
    --color-secondary: #001f29;
    --color-accent: #FFEAC3;
    --color-accent-light: #FFFAF3;
    --color-text-dark: #333333;
    --color-header-bg: #061C28;
    --color-white: #ffffff;
    
    /* Step Card Colors */
    --color-step-1-bg: #FFE6F0;
    --color-step-1-icon: #FF69B4;
    --color-step-2-bg: #E6F4EA;
    --color-step-2-icon: #68B984;
    --color-step-3-bg: #E6F3FF;
    --color-step-3-icon: #4A90E2;
    
    /* Background Gradients */
    --gradient-page-bg: linear-gradient(315deg, #FFF5F8 0%, #F5FFF9 50%, #F5F9FF 100%);
    
    /* Typography */
    --font-family-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 
                       Roboto, Oxygen-Sans, Ubuntu, Cantarell, 
                       'Helvetica Neue', Arial, sans-serif, 
                       'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
    --font-family-serif: 'DM Serif Display', Georgia, 'Times New Roman', 
                        Times, serif;
    
    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Letter Spacing */
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
    --transition-timing: ease-in-out;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Z-index */
    --z-header: 50;
    --z-modal: 100;
    --z-overlay: 40;
}

/* Font Loading Optimization */
.fonts-loaded {
    opacity: 1;
    transition: opacity 0.1s ease-in;
}

.fonts-loading {
    opacity: 0.8;
}

/* Base styles */
body {
    font-family: var(--font-family-sans);
    color: var(--color-text-dark);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mobile menu styles */
.mobile-menu {
    transform: translateX(100%);
    transition: transform var(--transition-speed) var(--transition-timing);
    z-index: var(--z-modal);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-family-serif);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

button{
    font-weight: bold;
}

.ht-logo {
    width: 200px;
    height: auto;
}

section h2, section h3{
    text-transform: capitalize;
    letter-spacing: 0px;
}
/* Hero Section & Carousel */
.hero-gradient {
    background: linear-gradient(to bottom, #061C28 0%, #0A2E43 100%);
    overflow: hidden;
    position: relative;
}

.hero-title {
    font-family: var(--font-family-serif);
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel Styling */
.carousel-container {
    width: 100%;
    height: 80vh;
    min-height: 500px;
}

.carousel-slide {
    width: 100%;
    flex-shrink: 0;
}

.carousel-indicator-active {
    opacity: 1;
    width: 1rem;
}

/* Dates Section */
.imp-dates {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.dates-wrap > div {
    margin-top: 0.5rem;
}

/* Video Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: black;
    border-radius: 0.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-js {
    width: 100%;
    height: 100%;
}

.video-thumbnail-container {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-thumbnail-container:hover {
    transform: scale(1.02);
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.video-thumbnail-container:hover .play-button-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.play-button {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.video-thumbnail-container:hover .play-button {
    transform: scale(1.1);
}

/* Tailwind Custom Extends */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.border-primary {
    border-color: var(--color-primary);
}

.border-secondary {
    border-color: var(--color-secondary);
}

.font-serif, h1, h2, h3, h4 {
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', Times, serif !important;
}
.spons-text{
    text-align: center;
    letter-spacing: -0.5px;
    font-size: 9px;
    line-height: 1;
}
.nav-links a{
    font-size: 14px;
    font-weight: bold;
}
.nav-links a:hover{
    color: var(--color-primary) !important;
}
/* Cards and Steps */
#how-it-works{
    background: linear-gradient(0deg,rgba(0, 177, 205, 0.4) 0%, rgba(255, 255, 255, 1) 50%);
}
.step-card {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.step-card:hover {
    background-color: #FFFFFF;
    transform: translateY(-5px);
}

.step-card h3 {
    font-size: 1.5rem;
    letter-spacing: 0px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

.step-label {
    /* position: absolute;
    top: 1rem;
    right: 1rem; */
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.step-1 .step-label {
    background-color: var(--color-primary);
    color: white;
}

.step-2 .step-label {
    background-color: var(--color-secondary);
    color: white;
}

.step-3 .step-label {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

.step-4 .step-label {
    background-color: var(--color-primary);
    color: #FFF;
}

.step-icon-container {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-1 .step-icon-container {
    background-color: var(--color-primary);
}

.step-2 .step-icon-container {
    background-color: var(--color-secondary);
}

.step-3 .step-icon-container {
    background-color: var(--color-accent);
    color: var(--color-text-dark);
}

.step-4 .step-icon-container {
    background-color: var(--color-primary);
    /* color: var(--color-text-light); */
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(to bottom, #F8F9FF 0%, #EDF1FC 100%);
    position: relative;
}

.gallery-gradient {
    background: linear-gradient(to bottom, #F5F7FF 0%, #EAF0FB 100%);
    position: relative;
}

/* Prize Cards */
.prize-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: white;
    transition: transform 0.3s ease;
}

.prize-card:hover {
    transform: translateY(-5px);
}

/* Judge Cards */
.judge-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: white;
    transition: transform 0.3s ease;
}

.judge-card:hover {
    transform: translateY(-5px);
}

.judge-image-container {
    position: relative;
    margin-bottom: 1rem;
}

/* Featured Performance */
.featured-performance-card {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Gallery Items */
.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

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

/* FAQ Items */
.faq-item {
    margin-bottom: 1rem;
}

.faq-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

/* VideoJS Customization */
.video-js .vjs-tech {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

.video-js .vjs-big-play-button {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-primary);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    border: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-js:hover .vjs-big-play-button {
    background-color: var(--color-primary);
    opacity: 1;
}

.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
    content: '\f144';
    font-family: 'Font Awesome 5 Free';
    font-size: 40px;
    line-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-js .vjs-control-bar {
    background-color: rgba(0, 0, 0, 0.4);
    height: 3em;
    padding: 0 1rem;
}

.video-js .vjs-progress-holder {
    height: 0.5em;
}

.video-js .vjs-progress-control {
    position: absolute;
    left: 0;
    right: 0;
    top: -0.5em;
    width: 100%;
}

.video-js .vjs-progress-control:hover .vjs-progress-holder {
    font-size: 1em;
}

.video-js .vjs-play-progress {
    background-color: var(--color-primary);
}

.video-js .vjs-play-progress:before {
    font-size: 1em;
}

.video-js .vjs-slider-bar {
    background-color: var(--color-primary);
}

.video-js .vjs-load-progress div {
    background: rgba(255, 255, 255, 0.3);
}

.video-js .vjs-time-tooltip {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
}

.video-js .vjs-volume-panel,
.video-js .vjs.volume-tooltip {
    display: none;
}

.video-js:focus {
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .imp-dates {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .dates-wrap > div:not(:last-child) {
        margin-bottom: 1rem;
    }
    
    .play-button {
        transform: scale(0.8);
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .carousel-container {
        min-height: 400px;
    }
    
    .video-js {
        height: 240px;
        max-height: 240px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .imp-dates {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 1rem;
    }
    
    .gallery-item {
        margin-bottom: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .imp-dates {
        position: absolute;
        top: 20px;
        left: 20px;
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .dates-wrap > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .dates-wrap > div:not(:last-child) {
        margin-right: 1.5rem;
        margin-bottom: 0;
    }
    
    .video-container {
        padding-bottom: 52%;
    }
}

/* Gallery Gradient Animation */
.gallery-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 127, 80, 0.1) 0%,
        rgba(255, 255, 255, 0) 20%,
        rgba(45, 156, 219, 0.1) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 234, 195, 0.1) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: gradientMove 15s ease infinite;
    z-index: -1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.5rem;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(255, 127, 80, 0.4), rgba(45, 156, 219, 0.4), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Form Elements */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
}

select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

/* FAQ Styling */
.faq-item button {
    transition: all 0.3s ease;
}

.faq-item button:hover {
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
}

.faq-item button.active {
    background-color: #f9fafb;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    /* box-shadow: none; */
}

.faq-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-content ul {
    padding-left: 1.5rem;
}

.faq-item button:focus {
    outline: none;
    /* box-shadow: 0 0 0 3px rgba(45, 156, 219, 0.2); */
}

.faq-item button svg {
    transition: transform 0.3s ease;
}

.faq-item button.active svg {
    transform: rotate(180deg);
}

/* Fix for footer links */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--color-primary);
}

/* Special animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Fix specific Tailwind utility class inconsistencies */
.rounded-full {
    border-radius: 9999px !important;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.hover-transition {
    transition: all 0.3s ease;
}

.custom-shadow {
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
}

.shadow-hover {
    /* transition: box-shadow 0.3s ease; */
}

.shadow-hover:hover {
    /* box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2); */
}

/* Ensure headings have appropriate spacing */
h2, h3, h4 {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

#themes h3{
    letter-spacing: 0px;
}
.timeline-wrap{
    position: relative;
}
.timeline-wrap::before{
    content: '';
    position: absolute;
    top: 30px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(to right, #77edff, #0088b5);
}
.timeline-item{
    position: relative;
}

#featured-video {
    border-radius: 12px 0 0 12px;
    min-height: 400px
}

@media (max-width: 768px) {
    .timeline-wrap::before{
        left: 50%;
        width: 2px;
        height: 70%;
    }
}

.bg-primary:hover, .hover\:bg-secondary:hover {
  background-color: var(--color-secondary) !important;
  color: #fff !important;
  transition: background 0.3s, color 0.3s;
}

.dialogBoxWrap{
        position: fixed;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(6px);
        z-index: 9999;
    }
    .dialogBoxWrap .dialogBox{
        position: relative;
        border-radius: 8px;
        background: #FFF;
        width: 280px;
        padding: 20px;
        box-shadow: 0px 2px 12px 0 rgba(0, 0, 0, 0.4);
        z-index: 10000;
    }
    .dialogBoxWrap .dialogBox > .closeDialogBox{
        position: absolute;
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        background: transparent url(../img/close-circle.svg) center center no-repeat;
        background-size: contain;
        border: none;
    }
    .dialogBox .icon{
        font-size: 48px;
        line-height: 1;
        margin-bottom: 10px;
    }
    .dialogBox > h4{
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }
    .dialogBox > p{
        font-size: 14px;
        color: #666;
    }

    .success .dialogBox h4,
    .success .dialogBox .icon{
        color: #74B924;
    }
    .warning .dialogBox h4,
    .warning .dialogBox .icon{
        color: #F09F42;
    }
    .error .dialogBox h4,
    .error .dialogBox .icon{
        color: #FF595B;
    }

    .dialogBox .cta-wrap{
        gap: 10px;
        justify-content: center;
    }
    .dialogBox .cta-btn.primary{
        display: inline-block;
        background: linear-gradient(99.03deg, #288BC1 4.3%, #13425B 104.25%);
        border: 1px solid transparent;
        border-radius: 38px;
        padding: 5px 10px;
        color: #FFF;
        margin: 10px 10px 20px 10px;
        text-decoration: none;
        font-family: var(--fontBody);
        text-transform: uppercase;
        text-align: center;
        transition: 0.3s ease all;
        letter-spacing: 0.025em;
        min-width: 90px;
    }
    .dialogBox .cta-btn.primary:hover{
        background: linear-gradient(99.03deg, #4EC0FF 14.31%, #13425B 104.25%);
    }
    .dialogBox .cta-btn.secondary{
        display: inline-block;
        background: #FFF;
        border: 1px solid #13425B;
        border-radius: 38px;
        padding: 5px 10px;
        color: #13425B;
        margin: 10px 10px 20px 10px;
        text-decoration: none;
        font-family: var(--fontBody);
        text-transform: uppercase;
        text-align: center;
        transition: 0.3s ease all;
        letter-spacing: 0.025em;
        min-width: 90px;
    }
    .dialogBox .cta-btn.secondary:hover{
        color: #FFF;
        border-color: var(--primary);
        background: var(--primary);
    }

    /* Share Popup Styles */
.share-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.share-popup-content {
    background-color: #2E3135;
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-popup-content a{
    color: #000;
    text-decoration: none;
}

.share-popup h2 {
    color: #fff;
    font-family: var(--fontHead);
    font-size: 24px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.share-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background-color: #FFF;
    border-radius: 25px;
    text-decoration: none;
    color: #2022224;
    font-family: var(--fontBody);
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.share-link:hover {
    background-color: #DDD;
    transform: translateY(-2px);
}

.share-link img {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
}

.close-share {
    display: block;
    width: 32px;
    height: 32px;
    padding: 0.75rem;
    margin-top: 1.5rem;
    background: url(../img/icon-close.svg) no-repeat center center;
    background-size: 30px;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s ease-in-out all;
}

.close-share:hover {
    transform: scale(1.15);
}

body.share-popup-open {
    overflow: hidden;
}
body.share-popup-open .share-popup{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#sso-wrap{position: absolute;}

.popup {
    display: none;
    position: fixed;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}