/* Hero Section */
.hero-section {
    height: 576px;
    background-color: transparent;

    padding: 4rem 4.5rem;
    gap: 6.5rem;
}

.hero-title {
    max-width: 660px;
    flex: 1 1 auto;
}

.hero-buttons .btn-primary {
    background-color: var(--orange-500-color);
    color: var(--bs-white);
}

.hero-buttons .btn-primary:active {
    background-color: var(--orange-500-color);
    color: var(--bs-white);
}

.hero-buttons .btn-secondary {
    background-color: var(--light-gray-color);
    color: var(--bs-black);
}

.hero-buttons .btn-secondary:active {
    background-color: var(--light-gray-color);
    color: var(--bs-black);
}

#about-title-text {
    flex: 1.253;
}

#about-paragraph-text {
    flex: 1;
}

.about-list-item {
    flex: 1;
    border: 1px solid #ADB5BD;
    border-radius: 0.5rem;
    margin-left: -1px;
}

/* Day Ahead Markets Section Styles */
.dam-section {
    padding: 5rem 3rem 1.5rem;
}

.dam-chart-container {
    padding: 3rem 2rem 1.5rem 2rem;
    border-radius: 1rem;
}

.market-option.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.dam-chart {
    width: 100%;
    max-width: 1232px;
    height: 272px;
    -o-object-fit: cover;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.dam-footer {
    width: 134px;
    height: 13px;
    mix-blend-mode: multiply;
}


/* Custom styles for the date picker wrapper */
.datepicker-wrapper {
    width: 192px;
    position: relative;
}

.datepicker-container {
    position: relative;
}

.datepicker-btn {
    height: 46px;
    padding: 9px 17px;
    border: 1px solid #CED4DA;
    border-radius: 8px;
    background-color: #FFF;
    font-size: 18px;
    color: #6C757D;
    cursor: pointer;
    outline: none;
    text-align: left;

    font-variant-numeric: lining-nums proportional-nums;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
}

.datepicker-icon {
    pointer-events: none;
}

.flatpickr-day.selected {
    background-color: var(--orange-500-color) !important;
    border: none;
    color: var(--bs-white);
}

.flatpickr-calendar {
    margin-top: 2px;
}

.flatpickr-calendar.static {
    position: absolute !important;
    top: calc(100% + 2px) !important;
    right: 0 !important;
}

/* Custom styles for the banner section */
.banner-section {
    z-index: 999;
}

.banner-content {
    position: relative;
    background: linear-gradient(270deg, var(--orange-500-color) 0%, var(--dark-orange-color) 100%);
    border-radius: 1.5rem;
    overflow: hidden;
}

.banner-text-container {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.banner-button-container {
    position: relative;
    z-index: 2;
}

.banner-button {
    cursor: pointer;
}

.banner-content .banner-background {
    position: absolute;
    width: 1092px;
    height: 1154px;
    top: -446px;
    left: 0;
}


/* Custom styles for the news section */

.news-section .news-catalog {
    gap: 2px;
}

.news-section .news-container {
    flex: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--light-gray-color);
}

.news-image-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-section .news-image {
    max-height: 176.71px;
    -o-object-fit: cover;
    object-fit: cover;
}

.news-section .news-title-container {
    padding: 1rem;
}

.news-section .news-text-wrapper {
    font-variant-numeric: lining-nums proportional-nums;
    min-height: 39.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    margin: 0;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-section .news-bottom {
    border-top: 1px solid var(--bs-gray-300);
}

.news-section .news-title-link:hover .news-text-wrapper {
    text-decoration: underline !important;
}

/* Custom styles for the database section */

.database-content-filter-datepicker {
    padding: 9px 17px;
    border: 1px solid #CED4DA;
    border-radius: 0.5rem;
}

.database-content-filter-category-chip-item {
    padding: 12px 24px;
    gap: 0px;
    border-radius: 24rem;
    opacity: 0px;
    text-align: center;

    cursor: pointer;
    border: 1px solid #ADB5BD;
}

.database-content-filter-category-chip-item.active {
    border: 1px solid var(--orange-500-color);
    background-color: var(--orange-500-color);
}

/* Datepicker for the database section */
.database-datepicker-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 16px;
    color: #6C757D;
    cursor: pointer;
    white-space: nowrap;
    padding: 0;
}

.database-datepicker-icon {
    padding: 1px 0;
}

.database-datepicker-arrow-icon {
    padding: 1px 8px;
    gap: 10px;
    opacity: 0.87px;
}

.database-flatpickr-input.database-visually-hidden {
    display: none;
    line-height: 0;
    overflow: hidden;
}

/* Target the Flatpickr calendar within the specific datepicker container */
#database-content-filter-datepicker .flatpickr-calendar {
    margin-top: 2px;
}

#database-content-filter-datepicker .flatpickr-calendar.static {
    position: absolute !important;
    top: calc(100% + 28px) !important;
    right: -16px !important;
}


.database-data-container {
    overflow-x: auto;
}

.database-data-table {
    border-collapse: separate;
    border-spacing: 0.5rem;
    table-layout: fixed;
}

.database-data-header-row th,
.database-data-row td {
    text-align: left;
}

.database-name,
.database-id,
.database-update,
.database-cost,
.database-actions {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.database-data-header {
    padding-right: 12px;
    padding-left: 24px;
}

.database-row-info .database-name {
    width: 70%;
}

.database-row-info .database-id {
    width: 50%;
}

.database-row-info .database-update {
    width: 20%;
}

.database-row-info .database-cost {
    width: 20%;
}

.database-column {
    display: table-cell;
}

.database-button-download-csv,
.database-button-download-xlsx {
    display: inline-block;
    cursor: pointer;
}


/* Table Styles */
.database-data-table {
    border-collapse: collapse;
}

/* Table Head */
.database-data-table th {
    text-align: left;
}

/* Table Body */
.database-data-row {
    padding: 1rem 0.75rem 1rem 1.5rem;
    gap: 0px;
    border-radius: 1rem;

    align-items: center;
    background-color: var(--light-gray-color);
    transition: background-color 0.2s ease;
}

.database-data-row:hover {
    background-color: #e9ecef;
}

/* Column Classes */
.database-data-header-row {
    padding: 0 0.75rem 0 1.5rem;
}

.database-data-header-row,
.database-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.database-action {
    width: 27%;
}

.database-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 13%;
    min-width: 176px;
}

.database-button-download-csv,
.database-button-download-xlsx {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    cursor: pointer;
}

/* Placeholder Container Style */
.placeholder-container {
    width: 100%;
    height: 450px;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

/* Common Style for Placeholder Items */
.placeholder {
    background: linear-gradient(100deg, #d0d0d0 30%, #e2e2e2 50%, #d0d0d0 70%);
    background-size: 200% 100%;
    -webkit-animation: placeholderShimmer 1.5s infinite ease-in-out;
    animation: placeholderShimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

/* Bar Chart Placeholder Bars */
.bar-chart-placeholder {
    align-items: flex-end;
    flex: 1;
    /* Take up remaining vertical space */
    height: auto;
    /* Let height adjust according to parent */
    width: 100%;
}

.bar {
    border-radius: 4px;
    background: #b8b8b8;
    /* Slightly darker to stand out */
    -webkit-animation: barGrow 2s infinite ease-in-out alternate;
    animation: barGrow 2s infinite ease-in-out alternate;
    /* Subtle growing animation */
}

/* Shimmer Animation */
@-webkit-keyframes placeholderShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes placeholderShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Growing Animation for Chart Bars */
@-webkit-keyframes barGrow {
    0% {
        transform: scaleY(0.95);
        opacity: 0.9;
    }

    100% {
        transform: scaleY(1.05);
        opacity: 1;
    }
}

@keyframes barGrow {
    0% {
        transform: scaleY(0.95);
        opacity: 0.9;
    }

    100% {
        transform: scaleY(1.05);
        opacity: 1;
    }
}


#category-chips {
    flex-wrap: nowrap;
    /* Prevent flex items from wrapping to the next line */
}


@media (max-width: 480px) {
    .heading-5 {
        font-size: 24px;
        line-height: 29.26px;
    }

    .heading-6-24 {
        font-size: 20px;
        line-height: 24.38px;
        font-weight: 600;
    }

    .heading-8 {
        font-size: 14px;
        line-height: 17.07px;
    }

    .body-medium-16 {
        font-size: 14px;
        line-height: 19.6px;
    }

    #dam-section .body-regular-13,
    #database-section .body-regular-13 {
        font-size: 14px;
        line-height: 19.6px;
        font-weight: 300;
    }

    .hero-section {
        flex-direction: column;
        padding: 3rem 1rem;
        gap: 4rem;
        height: auto;
    }

    .hero-image {
        flex: 1 1 auto;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    .hero-title h2 {
        font-size: 24px !important;
        line-height: 29.26px !important;
    }

    .hero-title span.body-light-16 {
        font-size: 14px !important;
        line-height: 19.6px !important;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-buttons a {
        width: 100%;
    }


    #about-section {
        padding: 3rem 1rem !important;
        gap: 3rem !important;
    }

    #about-title {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    #about-title-text h4 {
        font-size: 24px !important;
        line-height: 29.26px !important;
    }

    #about-paragraph-text p {
        font-size: 14px !important;
        line-height: 19.6px !important;
    }

    #about-list {
        flex-direction: column !important;
    }

    .about-list-item h3 {
        font-size: 32px !important;
        line-height: 39.01px !important;
    }

    #dam-section {
        padding: 3rem 1rem 1.5rem 1rem !important;
        gap: 1.5rem !important;
    }

    #dam-content-filter {
        flex-direction: column !important;
        gap: 1.5rem !important;
        align-items: start !important;
    }

    .market-options-wrapper {
        overflow-x: auto;
        /* Enable horizontal scrolling for the wrapper */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling for iOS */
        padding-bottom: 5px;
        /* Optional: Adds a bit of space for better UX */

        /* Hide scrollbar */
        scrollbar-width: none;
        /* Firefox */
    }

    .market-options-wrapper::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar for Chrome, Safari, Opera */
    }

    .market-options-container {
        display: flex;
        /* Use flexbox to align the market options in a row */
        flex-wrap: nowrap;
        /* Prevent items from wrapping to the next line */
        gap: 8px;
        /* Optional: Space between the items */
    }

    .market-option {
        flex: 0 0 auto;
        /* Prevent items from shrinking or growing */
        white-space: nowrap;
        /* Prevent text from wrapping */
    }

    #dam-chart-container {
        padding: 1rem 0.5rem !important;
        max-height: 450px !important;
    }

    .plotly-graph-div.js-plotly-plot {
        max-height: 375px !important;
    }

    .modebar-container {
        display: none !important;
    }

    .chips-wrapper {
        overflow-x: auto;
        /* Enables horizontal scroll only for xs screens */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        white-space: nowrap;
        /* Prevents wrapping of chips */
        padding-bottom: 5px;
        /* Optional: Adds a bit of space for better UX */

        /* Hiding Scrollbar */
        scrollbar-width: none;
        /* Firefox */
    }

    .chips-wrapper::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    #category-chips {
        flex-wrap: nowrap;
        /* Prevent flex items from wrapping to the next line */
    }

    #database-section {
        padding: 3rem 1rem !important;
    }

    .market-options-container {
        padding: 0;
    }

    .market-option span {
        font-size: 13px !important;
        line-height: 18.2px !important;
    }

    .datepicker-wrapper {
        width: 100%;
    }

    .datepicker-container {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    .content-filter-datepicker-title {
        padding: 0 0.5rem !important;
        align-self: center !important;
    }

    #datepicker-btn {
        width: auto !important;
    }

    #datepicker-value {
        padding-right: 0.5rem !important;
    }

    .database-content-filter-category-chip-item span {
        font-size: 13px !important;
        line-height: 18.2px !important;
    }

    #database-content-filter {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .database-data-header {
        display: none !important;
    }

    .database-data-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .database-row-info {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .database-name,
    .database-id,
    .database-update,
    .database-cost,
    .database-actions {
        width: 100% !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    .database-cost,
    .database-update {
        text-align: center !important;
    }

    .database-id span,
    .database-update span,
    .database-cost span {
        font-size: 13px !important;
    }


    .database-button-download-csv,
    .database-button-download-xlsx {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .database-button-download-csv span,
    .database-button-download-xlsx span {
        text-align: center !important;
    }

    .database-actions {
        gap: 0.25rem !important;
        min-width: auto !important;
    }

    .database-action {
        min-width: auto !important;
        gap: 0.5rem 1.5rem !important;
    }

    #database-view-all {
        padding: 1rem 1.5rem !important;
    }


    #banner-section {
        padding: 3rem 1rem !important;
        gap: 2rem !important;
    }

    #banner-container {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 2rem 1.5rem !important;
        gap: 2rem !important;
    }

    #banner-text-container {
        align-items: stretch !important;
        max-width: 100% !important;
        gap: 1rem !important;
    }

    #banner-text-container h4.heading-4 {
        font-size: 24px !important;
        line-height: 29.26px !important;
    }

    #banner-text-container p.body-medium-16 {
        font-size: 14px !important;
        line-height: 19.6px !important;
        font-weight: 400 !important;
    }


    #news-section {
        padding: 3rem 1rem !important;
        gap: 2rem !important;
    }

    #news-catalog {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .news-container {
        width: 100% !important;
    }

    .content-filter-datepicker-title span,
    #category-filter span {
        font-size: 13px !important;
        line-height: 18.2px !important;
    }

    #two-input-datepicker-container span.body-regular-13.text-secondary {
        font-size: 13px !important;
        line-height: 18.2px !important;
    }

    #dam-content-filter span.body-regular-13 {
        font-size: 13px !important;
        line-height: 18.2px !important;
    }

    .placeholder-container {
        height: 375px !important;
    }

    .placeholder-container .w-3 {
        width: 12% !important;
    }

    .placeholder-container .w-5 {
        width: 20% !important;
    }
}


/* Data Interaction Section Styles */
.data-interaction-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Desktop specific styles */
.dashboard-preview {
    width: 312px;
    height: 439px;
    position: relative;
}

.dashboard-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-image.active {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.feature-options {
    width: 448px;
}

.feature-option {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-option:hover {
    transform: translateY(-2px);
}

.feature-option-base {
    position: relative;
    z-index: 1;
}

.feature-option-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 2;
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.feature-option:hover .feature-option-base {
    opacity: 0;
    min-height: 150px;
}

.feature-option:hover .feature-option-hover {
    opacity: 1;
}

.bg-gradient-orange {
    background: linear-gradient(270deg, #FD7E14 0%, #CA5D02 100%);
}

/* Mobile specific styles */
.feature-icon-mobile {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.data-interaction-mobile h4 {
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
}

.dashboard-mobile-image {
    position: static;
    display: none;
    width: 100%;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
    opacity: 1;
}

.dashboard-mobile-image.active {
    display: block;
}

.dashboard-preview-mobile {
    position: relative;
    min-height: 256px;
    overflow: hidden;
    border-radius: 20px;
}

.feature-option-mobile {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-option-mobile-active {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
    border-radius: 20px;
}

.feature-option-mobile.active .feature-option-mobile-base {
    opacity: 0;
    min-height: 150px;
}

.feature-option-mobile.active:last-child {
    min-height: 250px;
}

.feature-option-mobile.active .feature-option-mobile-active {
    opacity: 1;
    pointer-events: auto;
}

.feature-option-mobile.active .feature-icon-mobile {
    color: var(--orange-500-color);
}

.feature-option-hover .feature-icon {
    color: var(--orange-500-color);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .data-interaction-section {
        padding: 48px 16px;
    }
}