/* CSS File: rw-data-viz.css */ 
/* author : Leonardo */ 




.data-viz-title {
    font-size: 14px;
    font-weight: normal;
    color: #23151f;
    text-align: left;
    display: inline; /* Make it inline to avoid line break */
}



.apple-table-viz {
    width: 100%; /* Full width, adjustable */
    border-collapse: collapse; /* Remove gaps between borders */
    font-size: 12px; /* Typical Apple text size */
    color: #18557c; /* Dark gray text */
    margin-bottom: 20px;
}

.apple-table-viz tr {
    border-bottom: 1px solid #d2d2d7; /* Thin, light gray line */
}

.apple-table-viz tr:first-child {
    border-top: 1px solid #d2d2d7; /* No line after last row */
}
.apple-table-viz tr:last-child {
    border-bottom: 1px solid #d2d2d7; /* No line after last row */
}

.apple-table-viz td {
    padding: 10px; /* Comfortable spacing */
    text-align: left; /* Left-aligned text */
    border: none; /* No vertical lines */
}


/* Horizontal Scroller and Tabs */
.tab-nav-container {
    height: 200px;
    background-color: #000;
    position: relative;
    z-index: 1;
    width: 100vw;
}

.tab-nav {
    display: flex;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.tabs {
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: hidden;
    height: 200px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs-inner {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    min-width: max-content;
    height: 100%;
}

.tabs.dragging {
    user-select: none;
    cursor: grabbing;
}

.tabs button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 130px;
}

.tabs button img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 5px;
}

.tabs button .tab-button-name {
    font-size: 14px;
    color: #fff;
    text-align: center;
    width: 100%;
}

.tabs button:hover {
    opacity: 0.4;
}

.tabs button.active {
    opacity: 1;
}

.tab-indicator {
    position: absolute;
    bottom: 20px;                 /* sits at the very top */
    left: 0;
    height: 2px;            /* thin line */
    background-color: #ffffff;
    transition: transform 0.1s ease, width 0.1s ease;
    z-index: 10;
    pointer-events: none;
}



.tab-content {
    display: none;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;

}

.tab-content.active {
    display: block;
}

.tab-title {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
}

/* Features Section */
.section-titles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 10px;
         max-width: 1000px;
    margin: 0 auto 60px;
    background-color: #fff;
}

.data-divs {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    max-width: 600px;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.data-divs.first,
.data-divs.horizontalnav {
    grid-column: 1 / -1;
    grid-row: 1;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Helvetica, Arial, sans-serif;
    font-size: 3vw;
    font-weight: 800;
    height: 100px;
    border-radius: 0;
    box-shadow: none;
    background-color: #fff;
}



 .data-divs.first {
            grid-column: span 2; /* Spans both columns */
            grid-row: 1;
            font-family:   -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",   Helvetica,   sans-serif;
            font-size: 3vw;
            font-weight: 800;
            height: 100px;
            border-radius: 0px;
            max-width: 1000px;
            box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
            background-color:   #fff;; 
        }


.data-divs.horizontalnav {
    height: 60px;
}

.data-divs.third {
    grid-column: 1;
    grid-row: 3;
     

    background-color: #f5f5f7;
}

.data-divs.fourth {
    grid-column: 2;
    grid-row: 3;
    background-color: #f5f5f7;
}

.data-divs.fifth {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: 1000px;
    background-color: #f5f5f7;
}

.left-text {
    font-size: 3.0rem;
    font-weight: 800;
    color: #36454F;
    margin-left: 40px;
}

.introduction-title {
    font-size: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Helvetica, Arial, sans-serif;
    font-weight: 600;
    color: #1d1d1f;
    text-align: left;
    margin: 20px 0 1px;
    padding: 0 30px 10px 20px;
}

.introduction-text {
    font-size: 16px;
    font-weight: normal;
    color: #708090;
    text-align: left;
    text-indent: 0;
    margin: 0;
    margin-bottom: 20px;
    white-space: normal;
    padding: 0 20px 0px 20px; /* top right bottom left */
}

 

.no-bullets {
    list-style-type: none;
    padding: 0;
    margin-top: 24px;
}

.no-bullets li {
    padding: 4px 0;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
}

.no-bullets li img {
    margin-right: 10px;
    vertical-align: middle;
}

.no-bullets-dp {
    list-style-type: none;
    padding: 0px 20px 1px 20px; /* top right bottom left */
    margin-top: 0px;
    border-bottom: 0px solid #ccc;
}

.no-bullets-dp li {
    padding: 6px 2px 10px 2px; /* top right bottom left */
    border-bottom: 0px solid #ccc;
    display: flex;
    align-items: center;
}

.no-bullets-dp li img {
    margin-right: 10px;
    vertical-align: middle;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    left: 50%;
    top: 4%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    animation: slide 1s infinite ease-in-out;
    z-index: 10;
}

.scroll-indicator img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.scroll-indicator.hidden {
    display: none;
}

@keyframes slide {
    0% { transform: translateX(-200%); }
    50% { transform: translateX(-30px); }
    100% { transform: translateX(-200%); }
}

/* Caption Components */
.caption-container {
    background-color: #fff;
    padding: 0;
    border-radius: 0;
    max-width: 28rem;
    width: 100%;
    border: 0 solid #e5e7eb;
    text-align: left;
}

.caption-title {
    font-size: 14px;
    font-weight: 400;
    color: #696969;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Helvetica, Arial, sans-serif;
}

.caption-text {
    font-size: 10px;
    line-height: 1.2;
    color: #4b5563;
    text-align: left;
}

.caption-text .black-text {
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
}

.caption-text .gray-text {
    color: #6b7280;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        visibility: visible;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
}



 





/* panels */
 

.panel {
    width: 600px; /* Adjusted width */
    height: 700px; /* Adjusted to fit within container */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
    padding: 20px;
}

.panel img {
    max-width: 600px; /* Allow images up to 600px */
    margin-bottom: 20px;
}

/* Style the link with the class "name-link" */
.name-link {
    color: #1371a0; /* Default color */
    text-decoration: none; /* Remove underline */
}

.name-link:hover {
    color: #12a7e1; /* Color on hover */
    text-decoration: none; /* Ensure no underline on hover */
}

.iframe-container {
    border: 0px solid #fff;
    padding: 0px;
    margin-top: 0px;
    background-color: red;
    width: 100%;
}

iframe {
    width: 100%; /* Make iframe responsive to its container */
    height: 1200px;
    border: none;
    background-color: red;
    margin-top: 0px;
}

.tab-content.active .iframe-container,
.tab-content.active .iframe-container iframe {
    background-color: #fff !important;
}




/* HST dashboard only — dark background, taller height */
.iframe-container.hst-dashboard {
    background-color: #080b10;
}

.iframe-container.hst-dashboard iframe {
    height: 820px;        /* adjust to taste */
    background-color: #080b10;
}

.tab-content.active .iframe-container.hst-dashboard,
.tab-content.active .iframe-container.hst-dashboard iframe {
    background-color: #080b10 !important;
}


/* ── shared portrait wrapper ── */
.portrait {
    width: 100%;
    display: block;
}


/* HST dashboard breaks out of the tab-content max-width constraint */
.portrait:has(.hst-dashboard) {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


/* ── orientation warning ── */
.orientation-warning {
    display: none;
    text-align: center;
    padding: 1em;
    background-color: #ccc;
    color: #fff;
    font-weight: normal;
    font-size: 1.1em;
    margin-top: 20px;
    border-radius: 10px;
}

/* ── generic iframe container ── */
.iframe-container {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
    border: none;
}

/* ── generic iframe ── */
iframe {
    width: 100%;
    height: 1200px;
    border: none;
    display: block;
    margin: 0;
}

/* ── JWST section: white background, centered ── */
.jwst-section {
    background-color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
}

.jwst-section .iframe-container {
    background-color: #fff;
    max-width: 1400px;   /* cap width on very wide screens */
    width: 100%;
}

.jwst-section .iframe-container iframe {
    background-color: #fff;
    height: 1200px;
}

/* ── HST dashboard: dark background, full width ── */
.iframe-container.hst-dashboard {
    background-color: #080b10;
    width: 100%;
}

.iframe-container.hst-dashboard iframe {
    background-color: #080b10;
    height: 950px;
    width: 100%;
}

/* ── portrait mode on phones ── */
@media only screen and (max-width: 768px) and (orientation: portrait) {
    .orientation-warning { display: block; }
    .iframe-container { display: none; }
}



      .table-container {
            background-color: #ffffff;
            border-radius: 10px;
            /* box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); */
            overflow: hidden;
            width: 90%;
            max-width: 800px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-left: 20px;
            margin-right: 20px;
            margin-bottom: 20px;
        }

       

        .table-container a {
            text-decoration: none;
        }

        /* Applying styles to the new class program-table-apple */
        .program-table-apple {
            background-color: #ffffff;
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            /* Added for equal column width */
            table-layout: fixed; /* Ensures columns respect specified widths */
        }

        /* Applying styles to th and td within the new class */
        .program-table-apple th,
        .program-table-apple td {
            padding: 10px;
            font-size: 14px;
            color: #1d1d1f;
            background-color: #ffffff;
            /* Added for equal column width */
            width: 50%; /* Distributes width equally between the two columns */
        }

        .program-table-apple th {
            background-color: #ffffff;
            font-weight: 600;
            color: #1d1d1f;
            border-bottom: 1px solid #e0e0e0;  
        }

        .program-table-apple td {
            border-bottom: 1px solid #e0e0e0;  
            transition: background-color 0.2s ease;
        }

        /* Targeting the last row of the tbody within the new class */
        .program-table-apple tbody tr:last-child td {
            border-bottom: none;
        }

  .program-text {
        font-size: 14px;
       
    font-weight: normal;
    color: #708090;
    text-align: left;
    display: inline; /* Make it inline to avoid line break */
}


/* Media Queries */
 
@media (max-width: 600px) {
    .tabs button {
        width: 80px;
        height: 80px;
    }

    .tabs button img {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
    }

    .tabs button .tab-button-name {
        font-size: 10px;
    }

    .tab-nav,
    .tabs {
        height: 200px;
    }

    .tab-nav {
    max-width: 400px;

}

    .tab-indicator {
        top: 188px;
    }

    .tab-nav::after {
        width: 80%;
    }

    .data-divs.third {
        grid-column: 1 / -1;
        grid-row: 2;
        background-color: #f5f5f7;
        max-width: 400px;
        margin: 0 auto;
    }

    .data-divs.fourth {
        grid-column: 1 / -1;
        grid-row: 3;
        background-color: #f5f5f7;
        max-width: 400px;
        margin: 0 auto;
    }

    .data-divs.fifth {
        grid-column: 1 / -1;
        grid-row: 4;
        background-color: #f5f5f7;
        max-width: 400px;
        margin: 0 auto;
    }

    .left-text {
        font-size: 30px;
        font-weight: 800;
        color: #36454F;
        margin-left: 40px;
    }

    .tab-title {
        font-size: 20px;
        font-weight: 400;
        margin: 0;
    }
}
