.cards-container {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 15px 2px; /* Add slight padding to avoid cutting off shadows */
    gap: 20px;
    margin-bottom: 50px; /* Add margin below the container */
}

.cards-container::-webkit-scrollbar {
    height: 8px;
}

.cards-container::-webkit-scrollbar-track {
    background: #303030;
}

.cards-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.cards-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.sample-card {
    flex: 0 0 700px; /* Adjust width to accommodate two columns */
    height: 400px; /* Adjust height as needed */
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex; /* Use flexbox for columns */
    flex-direction: row; /* Arrange children in a row */
    gap: 15px; /* Add space between columns */
    border-radius: 8px;
    background: linear-gradient(to bottom, #303030, #202020); /* Gradient background */
    color: #FFFFFF;
}

.card-video-column {
    flex: 0 0 auto; /* Let the column size to its content */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* To contain the video */
}

.card-text-column {
    flex: 1; /* Allow this column to take up the remaining space */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Hide overflow from the column */
}

.card-title {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-shrink: 0; /* Prevent the title from shrinking */
    text-align: center;
    background-color: #202020;
    font-weight: 900;
    font-size: 1.2rem;
}

.sample-card video {
    height: 100%; /* Fit to container height */
    width: auto;   /* Maintain aspect ratio */
    max-width: 100%; /* Ensure it doesn't overflow the column */
    border-radius: 4px;
}

.card-content {
    flex-grow: 1;
    overflow-y: auto;
}

.card-content::-webkit-scrollbar {
    width: 6px;
}

.card-content::-webkit-scrollbar-track {
    background: #303030;
}

.card-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.qa-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.qa-emoji {
    font-size: 1.5rem;
    margin-right: 10px;
}

.qa-text {
    flex: 1;
}

/* Keep existing styles for arrows and section headers */
.section-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 2rem; /* Add margin to the bottom of the header */
}

.section-header .arrow-svg {
    width: 1.8rem;
    height: 1.8rem;
    margin-left: 1.5em;
}

.arrow-svg {
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.5em;
    transition: transform 0.3s ease-in-out;
    filter: invert(1);
}

.dropdown:hover .arrow-svg {
    transform: rotate(180deg);
}

.main-section.expanded .arrow-svg {
    transform: rotate(180deg);
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.main-section.expanded .section-content {
    max-height: none; /* Let JavaScript handle the height */
}

.main-section {
    padding: 4rem 0;
    position: relative;
}

.main-section:not(:last-of-type)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background-color: #444;
}

.main-section .section-header .jumbotron-heading {
    margin-bottom: 0; /* Remove bottom margin to align with the arrow */
}

/* Custom Dropdown Styles */
.dropdown:hover .dropbtn {
    background-color: transparent !important; /* Remove default hover effect */
}

.dropdown-content {
    border-radius: 8px; /* Rounded corners */
    background-color: #202020; /* Dark background */
    box-shadow: none; /* Remove the default shadow */
    background-color: #202020; /* Change background color */
    border: 1px solid #444;
}

.dropdown-content a {
    color: #FFFFFF; /* Set text color to white */
}

.dropdown-content a:hover {
    background-color: #303030; /* Darker hover for links */
}

/* Position the last dropdown to the left to avoid going off-screen */
.dropdown:last-child .dropdown-content {
    right: 0;
    left: auto;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loading-overlay.active {
    display: flex;
}

.loader {
    border: 3px solid #505050;
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}