@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap");

/* Refined Aussie Hero Section */
.aussie-hero-container {
    min-height: 51vh;
    background-color: #0c0037;
    background-image: linear-gradient(
            180deg,
            rgba(3, 3, 31, 0.3) 0%,
            rgba(19, 19, 136, 0.3) 50%,
            rgba(4, 3, 45, 0.3) 100%
        ),
        url(/images/hero/background-dice-image.webp);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: auto 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 10px 0;
    flex-direction: column;
}

.aussie-hero-section {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
}

.aussie-hero-section-refined {
    display: flex;
    width: 100%;
    max-width: 1220px;
    justify-content: space-between;
    align-items: center;
    min-height: 304px;
    margin: 0 auto;
    position: relative;
}

.aussie-hero-content {
    width: 644px;
    flex-shrink: 0;
    color: #139fff;
    font-family: "Poppins", sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

.aussie-hero-subtitle {
    color: #139fff;
    font-family: "Poppins", sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0;
}

.aussie-hero-title {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 0;
}

.feature-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 24px;
    width: 100%;
    margin-top: 40px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 0 20px;
    box-sizing: border-box;
}
.feature-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
    width: 0;
    height: 0;
}

.feature-card {
    border-radius: 16px;
    border: 1px solid #fff;
    background: #05035a;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 217.25px;
    height: 170px;
    padding: 18px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 80px;
    height: 80px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card p {
    color: #fff;
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}

.aussie-hero-visuals {
    flex: 1;
    position: relative;
    height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dice-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dice {
    position: absolute;
    filter: drop-shadow(0 0 30px rgba(168, 0, 255, 0.3));
}

.dice-1 {
    width: 280px;
    top: 40px;
    right: 140px;
    transform: rotate(-15deg);
    z-index: 1;
    opacity: 0.8;
}

.dice-2 {
    width: 320px;
    bottom: 0px;
    right: -20px;
    transform: rotate(10deg);
    z-index: 3;
}

.kangaroo-wrapper {
    position: absolute;
    right: 20px;
    z-index: 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kangaroo-img {
    width: 263px;
    height: 304px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    animation: float 6s infinite ease-in-out;
}

.menu-item.dropdown:hover .child-menu {
    z-index: 20;
}

.menu {
    flex-wrap: nowrap;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

@media (max-width: 1250px) {
    .aussie-hero-section-refined,
    .feature-grid {
        padding: 0 20px;
    }
}

@media (max-width: 786px) {
    .feature-grid {
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 0 10px;
    }
    .feature-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }
    .feature-card {
        flex: 0 0 auto !important;
        min-width: 140px !important;
    }

    .aussie-hero-content {
        flex-direction: column !important;
        max-height: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 1024px) {
    .aussie-hero-subtitle,
    .aussie-hero-title {
        font-size: 36px;
    }
    .aussie-hero-content {
        max-width: 500px;
    }
    .kangaroo-img {
        width: 220px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .aussie-hero-container {
        min-height: auto;
        max-height: 50vh;
        padding: 20px 0;
        overflow: visible;
    }
    .aussie-hero-section {
        overflow: visible;
    }
    .aussie-hero-section-refined {
        flex-direction: column;
        height: auto;
        text-align: center;
        min-height: auto;
        flex-shrink: 0;
    }
    .aussie-hero-content {
        max-width: 100%;
        align-items: center !important;
        margin-bottom: 20px;
        width: 100%;
        flex-shrink: 0;
    }
    .hero-subtitle,
    .hero-title {
        font-size: 32px;
    }
    .aussie-hero-visuals {
        display: none;
    }
    .kangaroo-wrapper {
        display: none;
    }
    .kangaroo-img {
        display: none;
    }
    .feature-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 20px;
        justify-content: flex-start;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    .feature-grid::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }
    .feature-card {
        flex: 0 0 calc(25% - 6px);
        min-width: 95px;
        max-width: calc(25% - 6px);
        height: 120px;
        padding: 12px 6px;
    }
    .card-icon {
        width: 50px;
        height: 50px;
    }
    .feature-card p {
        font-size: 14px;
    }
    .child-menu a {
        color: #fff !important;
    }
}

@media (max-width: 480px) {
    .aussie-hero-container {
        max-height: unset;
        padding: 20px 0;
        overflow: visible;
    }
    .aussie-hero-section {
        overflow: visible;
    }
    .aussie-hero-subtitle,
    .aussie-hero-title {
        font-size: 32px;
    }
    .aussie-hero-content {
        margin-bottom: 15px;
    }
    .feature-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    .feature-grid::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }
    .feature-card {
        flex: 0 0 calc(25% - 4.5px) !important;
        min-width: 85px !important;
        max-width: calc(25% - 4.5px) !important;
        height: 110px !important;
        padding: 10px 5px !important;
    }
    .card-icon {
        width: 45px;
        height: 45px;
    }
    .feature-card p {
        font-size: 12px;
    }
}

/* Ensure scrollbar is always visible for screens below 378px */
@media (max-width: 378px) {
    .feature-grid {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding: 0 10px;
    }
    .feature-grid::-webkit-scrollbar {
        display: none !important; /* Chrome, Safari, Opera */
        width: 0;
        height: 0;
    }
    .feature-card {
        flex: 0 0 calc(25% - 4.5px) !important;
        min-width: 85px !important;
        max-width: calc(25% - 4.5px) !important;
        height: 110px !important;
        padding: 10px 5px !important;
    }
}
