/* Basic reset */
/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*/

/* Container for the two columns */
.container {
    max-width: 1200;
    display: flex;
    margin: 0 auto; /* Center the container */
    /*height: 85vh;*/ /* Set a fixed height */
    height: auto; /* Ensures the height adjusts based on the content */
    overflow: auto; /* Adds scrollbars if needed */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 20px;
    gap: 20px; /* Space between columns */
}

/* Left column (wider section) */
.left-column {
    /*flex: 3;*/
    width: 80%;
    background-color: #f8f9fa; /* Light background for visibility */
    padding: 20px;
    border-radius: 8px;
}

/* Right column (narrower section) */
.right-column {
    /*flex: 1;*/
    width: 20%;
    background-color: #f8f9fa; /* Slightly darker background */
    padding: 20;
    border-radius: 8px;
    height: auto;
}

/* Basic styling for content */
h2 {
    margin-bottom: 10px;
    font-size: 1.3em;
    line-height: 1.4;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.keyword-section {
    padding-top: 10;
}

.source-list {
    /*list-style: none;*/
    list-style-type: none; /* Removes the bullet points */
    padding-left: 0;       /* Removes the left padding on the ul */
    margin: 0;             /* Removes the margin on the ul */
}

.source-list li {
    margin-bottom: 10px;

    font-size: 0.9em;
}

/* Style for search bar container */
.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 100%;
    height: auto;
    max-width: 900px;
    background-color: #f5f5f5;
    border: 2px solid #dbdbdb;
    border-radius: 40px;
    padding: 20 25 20 25;
    margin: 10px;
}

/* Style for the search input */
.search-container textarea {
    flex: 1;
    width: 90%;
    overflow-y: auto;
    caret-color: rgb(26, 25, 24);
    background: transparent;
    margin: 0px;
    outline: none;
    font-size: 1em;
    color: #888;
}

/* Style for the search icon */
.search-icon {
    width: 24px;
    height: 24px;
    background: url('search-icon.png') no-repeat center;
    background-size: contain;
}

/* Placeholder styling */
.search-container input::placeholder {
    color: #aaa;
}

@media (max-width: 768px) { /* Adjust the width as needed for mobile */
    .container {
        display: flex;
        flex-direction: column-reverse; /* Moves right-column above left-column */
    }
}

.gallery {
    width: 100%;
    border-radius: 10px;
}

/* Style for the gallery section */
.gallery-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));*/
    width: 100%;
    grid-template-columns: repeat(6, minmax(100px, 1fr)); /* 4 columns layout */
    gap: 15px;
    margin: 10 0 25 0;
}

.gallery-item-l {
    /*display: flex;*/
    width: 100%;
/*height: auto;*/
    display: block;
    flex-direction: column;
    align-items: center;
    /*background-color: #ffffff;*/
    border-radius: 15px;
    /*object-fit: cover;*/
    /*overflow: hidden;*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.gallery-item-s {
    /*display: flex;*/
    width: 100%;
/*height: auto;*/
    display: block;
    flex-direction: column;
    align-items: center;
    /*background-color: #ffffff;*/
    border-radius: 15px;
    /*object-fit: cover;*/
    /*overflow: hidden;*/
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.gallery-item-l img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item-s img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.gallery-item-l > .label {
    padding: 0px;
    font-size: 0.8em;
    color: #555;
    text-align: left;
    margin-top: 5px;
    overflow: hidden;           /* Hides any overflowed text */
    width: 35ch;           /* Limit to 25 characters */
    white-space: nowrap;   /* Prevents text from wrapping to the next line */
    text-overflow: ellipsis; /* Adds "..." at the end */
}

.gallery-item-s > .label {
    padding: 0px;
    font-size: 0.8em;
    color: #555;
    text-align: left;
    margin-top: 5px;
    overflow: hidden;           /* Hides any overflowed text */
    width: 17ch;           /* Limit to 25 characters */
    white-space: nowrap;   /* Prevents text from wrapping to the next line */
    text-overflow: ellipsis; /* Adds "..." at the end */
}

.large {
    grid-column: span 2; /* Takes up 50% (2 out of 4 columns) */
    height: 200px;
    /*grid-row: span 2;*/
}

.medium {
    grid-column: span 2; /* Takes up 25% (1 out of 4 columns) */
    /*grid-row: span 2;*/
}

.small {
    grid-column: span 1; /* Takes up 25% (1 out of 4 columns) */
    /*grid-row: span 1;*/ /* Stays in a single row */
}

.video-section {
    width: 100%;
}

.video-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));*/
    grid-template-columns: repeat(3, 1fr); /* 4 columns layout */
    gap: 10px;
    margin: 10 0 25 0;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: left;
    border-radius: 8px;
    overflow: hidden;
    /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);*/
}

.video-item frm {
    width: auto; /* Set the width as needed */
    /*height: calc(100% - 10px);*/ /* Adjust height to crop 5px from top and 5px from bottom */
    overflow: hidden; /* Hide the cropped parts of the image */
}

.video-item img {
    width: 100%;
    /*height: calc(100% + 10px);*/ /* Expand image height by 10px to crop top and bottom */
    object-fit: cover; /* Ensures the image covers the container */
}

.video-item .label {
    padding: 0px;
    font-size: 0.8em;
    color: #555;
    text-align: left;
    margin-top: 5px;
    overflow: hidden;           /* Hides any overflowed text */
    width: 35ch;           /* Limit to 25 characters */
    white-space: nowrap;   /* Prevents text from wrapping to the next line */
    text-overflow: ellipsis; /* Adds "..." at the end */
}

.news-container {
    width: 100%;
    background-color: #eff1f3;
    border-radius: 10px;
    overflow: hidden;
}
.news-card {
    padding: 15px;
    border-bottom: 0px solid #e0e0e0;
    font-size: 0.9em;
}
.news-card img {
    padding-bottom: 5px;
}

/* Styling for the floating button */
.goto-bottom-btn {
    position: fixed;
    bottom: 150px;                   /* Distance from the bottom */
    left: 50%;                      /* Center horizontally */
    transform: translateX(-50%);    /* Center the button horizontally */
    width: 35px;                    /* Set width */
    height: 35px;                   /* Set height */
    padding: 0;                     /* Remove padding */
    background-color: #ccc;      /* Background color */
    color: white;
    font-size: 16px;                /* Icon size */
    border-radius: 50%;             /* Make it circular */
    border: 1px solid #aaa;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}
/* Button hover effect */
.goto-bottom-btn:hover {
    background-color: #ccc;     /* Darker green on hover */
    transform: translateX(-50%) scale(1.1); /* Slightly enlarge on hover */
}

.answer_logo {
    width: 21px;
    height: 16px;
    max-height: 16px;
    margin-top: 5px;
    padding-right: 5px;
}

.gpt_content_ul {
    list-style-type: none; /* Removes the dots (bullets) */
    padding: 0; /* Removes padding */
    margin: 0; /* Removes margin */
}

.gpt_content_li {
    padding: 8px 0;
    font-size: 1em;
    color: #333;
}