/* Custom styles for the widget container */
.anz-awards-container {
    font-family: 'Poppins', sans-serif !important;
    background-color: #0a0a0a;
    color: #e2e8f0; /* slate-200 */
    width: 100%;
    box-sizing: border-box;
    position: relative;
    isolation: isolate; /* Creates a new stacking context */
}

/* Ensure all child elements inherit the container styles */
.anz-awards-container * {
    box-sizing: border-box;
}

/* Hero title - responsive display with perfect centering and elegant spacing */
.anz-awards-hero-title {
    line-height: 1.1;
    word-spacing: 0.15em;        /* Better word spacing */
    letter-spacing: 0.05em;      /* Refined letter spacing */
    white-space: normal;         /* Allow wrapping on mobile */
    overflow: visible;
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    width: auto;
    font-feature-settings: "kern" 1; /* Enable kerning for better character spacing */
    text-rendering: optimizeLegibility; /* Better text rendering */
}

/* Container for hero title to ensure centering */
.anz-awards-hero-container {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    min-width: 0; /* Allows flex item to shrink */
}

/* Responsive font sizing with improved spacing accommodation */
@media (max-width: 480px) {
    .anz-awards-hero-title {
        font-size: clamp(1.2rem, 6vw, 1.8rem) !important;
        word-spacing: 0.08em;       /* Tighter on mobile */
        letter-spacing: 0.02em;
        line-height: 1.2;          /* Better line spacing on mobile */
        white-space: normal;        /* Allow text wrapping */
        hyphens: auto;              /* Enable hyphenation */
        word-break: break-word;     /* Prevent overflow */
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .anz-awards-hero-title {
        font-size: clamp(1.6rem, 4.8vw, 2.4rem) !important;
        word-spacing: 0.12em;
        letter-spacing: 0.04em;
        white-space: nowrap;        /* Single line on tablet */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .anz-awards-hero-title {
        font-size: clamp(2rem, 4vw, 3rem) !important;
        word-spacing: 0.15em;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .anz-awards-hero-title {
        font-size: clamp(2.6rem, 3.8vw, 3.6rem) !important;
        word-spacing: 0.15em;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1441px) {
    .anz-awards-hero-title {
        font-size: clamp(3.2rem, 3.2vw, 4.2rem) !important;
        word-spacing: 0.18em;       /* More generous on large screens */
        letter-spacing: 0.06em;
    }
}

/* Custom gold color palette */
.anz-awards-gold-text { color: #d4af37; }
.anz-awards-gold-bg { background-color: #d4af37; }
.anz-awards-gold-border { border-color: #d4af37; }
.anz-awards-gold-gradient-text {
    background: linear-gradient(to right, #d4af37, #f0e68c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animation for sections fading in on scroll */
.anz-awards-fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.anz-awards-fade-in-section.anz-awards-is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Styling for the category accordion */
.anz-awards-category-item summary::-webkit-details-marker {
    display: none;
}

/* Sponsor container styling - 50% smaller boxes */
.anz-awards-sponsor-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0.75rem;
    width: 250px;
    height: 150px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    padding: 1rem;
}

.anz-awards-sponsor-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .anz-awards-sponsor-container {
        width: 200px;
        height: 120px;
        padding: 0.75rem;
        margin: 0.5rem;
    }
}

@media (max-width: 480px) {
    .anz-awards-sponsor-container {
        width: 160px;
        height: 96px;
        padding: 0.5rem;
        margin: 0.25rem;
    }
}

/* Judges grid with centered last row */
.anz-awards-judges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Mobile judges grid spacing */
@media (max-width: 640px) {
    .anz-awards-judges-grid {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .anz-awards-judges-grid {
        gap: 0.75rem;
    }
}

.anz-awards-judge-item {
    flex: 0 0 calc(50% - 1rem);
    max-width: 200px;
}

/* Ensure Tailwind CSS classes work properly */
.aspect-square {
    aspect-ratio: 1 / 1;
}

.rounded-full {
    border-radius: 9999px;
}

/* Judge images styling now handled by Tailwind classes */

@media (min-width: 640px) {
    .anz-awards-judge-item {
        flex: 0 0 calc(33.333% - 1.33rem);
    }
}

@media (min-width: 768px) {
    .anz-awards-judge-item {
        flex: 0 0 calc(25% - 1.5rem);
    }
}

@media (min-width: 1024px) {
    .anz-awards-judge-item {
        flex: 0 0 calc(20% - 1.6rem);
    }
}

/* Sponsor logos - preserve aspect ratio within fixed containers */
.anz-awards-sponsor-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Background pattern for all sections except hero */
.anz-awards-container {
    position: relative;
}

.anz-awards-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    background-repeat: repeat;
    background-attachment: scroll;
    background-position: 0 0;
    background-size: auto;
    z-index: -2;
    pointer-events: none;
}

/* Dark overlay to make pattern less bright */
.anz-awards-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
}

/* Hide pattern behind hero section */
.anz-awards-container header {
    position: relative;
    z-index: 1;
}

/* Ensure main content is above the pattern */
.anz-awards-container main {
    position: relative;
    z-index: 0;
    background: transparent;
}

/* Ensure sections have proper background inheritance */
.anz-awards-container main section {
    background: transparent;
}

/* Timeline text responsiveness */
#timeline h3,
#timeline p {
    white-space: nowrap;
}

/* Mobile timeline text wrapping */
@media (max-width: 768px) {
    #timeline h3,
    #timeline p {
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
    }
}

/* Timeline layout - refactored for equal spacing
   Left side: 50% - 75px width + 50px right margin = 50px gap from center
   Right side: 50% - 75px width + 50px left margin = 50px gap from center */
#timeline .timeline-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    min-height: 100px;
    justify-content: center;
}

/* Timeline items positioning with equal gaps */
#timeline .timeline-left {
    width: calc(50% - 75px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 50px;
}

#timeline .timeline-right {
    width: calc(50% - 75px);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: 50px;
}

#timeline .timeline-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 50px;
    height: 50px;
    background-color: #1f2937;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 3px solid #d4af37;
}

#timeline .timeline-content {
    background-color: #000000;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-width: 4px;
    border-style: solid;
    width: 100%;
    max-width: 400px;
    min-width: 280px;
}

#timeline .timeline-content-left {
    border-color: #d4af37;
    border-right-width: 4px;
    border-left-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
}

#timeline .timeline-content-right {
    border-color: #d4af37;
    border-left-width: 4px;
    border-right-width: 0;
    border-top-width: 0;
    border-bottom-width: 0;
}

/* Sponsor section styling for accordion */
.anz-awards-sponsor-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.anz-awards-sponsor-text {
    color: #d4af37;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.anz-awards-sponsor-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mission Critical logo box - matching sponsor section style */
.anz-awards-mission-critical-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: 150px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    padding: 1rem;
}

.anz-awards-mission-critical-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

.anz-awards-mission-critical-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Slider styling */
.anz-awards-slider-container {
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.anz-awards-slider-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.anz-awards-slider-dot:hover {
    transform: scale(1.2);
}

/* Desktop - dots only */
@media (min-width: 769px) {
    /* Timeline text sizing */
    #timeline .timeline-content h3 {
        font-size: 1.5rem !important;
        font-weight: bold !important;
    }

    #timeline .timeline-content p {
        font-size: 1.125rem !important;
    }

    /* Show dots on desktop, hide arrows */
    .anz-awards-slider-dots {
        display: flex !important;
    }

    .anz-awards-slider-arrows {
        display: none !important;
    }
}

/* Mobile responsive timeline - Simplified Design */
@media (max-width: 768px) {
    /* Show arrows on mobile/tablet, hide dots */
    .anz-awards-slider-dots {
        display: none !important;
    }

    .anz-awards-slider-arrows {
        display: flex !important;
    }

    /* Timeline section adjustments for mobile */
    #timeline {
        padding: 0 1rem;
    }

    #timeline .relative {
        max-width: none;
        padding: 0;
    }

    /* Hide the complex desktop timeline line */
    #timeline .absolute {
        display: none;
    }

    /* Simplify timeline wrapper to single card layout */
    #timeline .timeline-wrapper {
        display: block;
        padding: 0;
        margin-bottom: 2rem;
        position: relative;
        padding-left: 0;
    }

    /* Hide the empty left/right containers */
    #timeline .timeline-left:empty,
    #timeline .timeline-right:empty {
        display: none;
    }

    /* Hide the center element - we'll put number inside content */
    #timeline .timeline-center {
        display: none;
    }

    /* Reorganize content containers */
    #timeline .timeline-left,
    #timeline .timeline-right {
        width: 100%;
        margin: 0;
        justify-content: flex-start;
        display: flex;
    }

    /* Simplify timeline content styling with number inside */
    #timeline .timeline-content {
        background-color: rgba(0, 0, 0, 0.4);
        border-radius: 0.75rem;
        padding: 1.25rem;
        border: 2px solid #d4af37;
        border-left-width: 4px;
        width: 100%;
        max-width: none;
        min-width: auto;
        margin: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    /* Add number badge inside the content card */
    #timeline .timeline-content::before {
        content: attr(data-step);
        position: absolute;
        top: 1rem;
        left: 1.25rem;
        width: 32px;
        height: 32px;
        background-color: #d4af37;
        color: #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: bold;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        z-index: 10;
    }

    #timeline .timeline-content-left,
    #timeline .timeline-content-right {
        border-left-width: 4px !important;
        border-right-width: 2px !important;
        border-top-width: 2px !important;
        border-bottom-width: 2px !important;
    }

    #timeline .timeline-content h3 {
        font-size: 1.375rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        padding-top: 2.5rem;
        font-weight: bold;
    }

    #timeline .timeline-content p {
        font-size: 1rem;
        line-height: 1.4;
        margin: 0;
    }
}

/* Extra small mobile timeline adjustments */
@media (max-width: 480px) {
    #timeline .timeline-wrapper {
        margin-bottom: 1.5rem;
    }

    #timeline .timeline-content {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    #timeline .timeline-content::before {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
        top: 0.75rem;
        left: 1rem;
    }

    #timeline .timeline-content h3 {
        font-size: 1.25rem;
        line-height: 1.25;
        padding-top: 2.25rem;
        font-weight: bold;
    }

    #timeline .timeline-content p {
        font-size: 0.9375rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .anz-awards-mission-critical-box {
        width: 160px;
        height: 96px;
        padding: 0.5rem;
    }

    /* Mobile section spacing improvements */
    .anz-awards-fade-in-section {
        margin-bottom: 2rem;
    }

    /* Mobile hero improvements */
    .anz-awards-hero-container {
        padding: 0 1rem;
    }

    /* Mobile timeline improvements */
    #timeline .timeline-content h3 {
        font-size: 1rem;
        line-height: 1.3;
    }

    #timeline .timeline-content p {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    /* Mobile judge items improvements */
    .anz-awards-judge-item h4 {
        font-size: 1rem;
        line-height: 1.3;
    }

    .anz-awards-judge-item p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    /* Mobile section headings */
    .text-4xl.md\\:text-5xl.lg\\:text-6xl {
        font-size: clamp(1.75rem, 5vw, 2.25rem) !important;
        line-height: 1.2;
        word-break: break-word;
        hyphens: auto;
    }

    /* Mobile button improvements */
    .anz-awards-gold-bg {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        line-height: 1.3;
    }

    /* Mobile arrow styling */
    .anz-awards-slider-arrow {
        backdrop-filter: blur(4px);
        border: 1px solid rgba(212, 175, 55, 0.3);
    }

    .anz-awards-slider-arrow:hover {
        background-color: rgba(212, 175, 55, 0.2) !important;
        border-color: rgba(212, 175, 55, 0.5);
        transform: scale(1.05);
    }

    .anz-awards-slider-arrow:active {
        transform: scale(0.95);
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .anz-awards-hero-title {
        font-size: clamp(1rem, 5.5vw, 1.4rem) !important;
        word-spacing: 0.05em;
        letter-spacing: 0.01em;
    }

    .anz-awards-slider-container {
        max-width: 280px;
    }

    /* Extra small arrow adjustments */
    .anz-awards-slider-arrow {
        padding: 0.375rem;
    }

    .anz-awards-slider-arrow svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    #slide-counter {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }

    .anz-awards-judge-item {
        max-width: 120px;
    }

    #timeline .timeline-content {
        min-width: 180px;
        max-width: 220px;
        padding: 0.75rem;
    }

    #timeline .timeline-wrapper {
        padding-left: 60px;
    }

    #timeline .timeline-left,
    #timeline .timeline-right {
        width: calc(100% - 60px);
    }

    /* Ultra compact timeline for very small screens */
    #timeline .timeline-wrapper {
        margin-bottom: 1rem;
    }

    #timeline .timeline-content {
        padding: 0.75rem;
        border-radius: 0.375rem;
        border-width: 1px;
        border-left-width: 3px;
    }

    #timeline .timeline-content::before {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
        top: 0.5rem;
        left: 0.75rem;
    }

    #timeline .timeline-content h3 {
        font-size: 1.125rem;
        line-height: 1.2;
        margin-bottom: 0.375rem;
        padding-top: 2rem;
        font-weight: bold;
    }

    #timeline .timeline-content p {
        font-size: 0.875rem;
        line-height: 1.25;
    }
}
/* Judge photo responsive sizing - now using Tailwind classes for main styling */
@media (max-width: 480px) {
    .anz-awards-judge-item img {
        width: 140px !important;
        height: 140px !important;
    }
}
@media (max-width: 320px) {
    .anz-awards-judge-item img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Ensure Tailwind aspect-square works properly */
.aspect-square {
    aspect-ratio: 1 / 1 !important;
}

/* Ensure rounded-full works properly */
.rounded-full {
    border-radius: 50% !important;
}

/* Strengthen judge image circle enforcement for any theme conflicts */
.anz-awards-judges-grid .anz-awards-judge-item img {
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 200px !important;
    width: 200px !important;
    height: 200px !important;
}