/* wrapper */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 75%;
    height: auto;
    /* background-color: #909090; */
}

/* footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 288px;
    background-color: #ffc924;
    margin-top: 96px;
    padding-top: 56px;
    padding-bottom: 56px;
    flex-direction: column;
}

.footer-container {
    display: flex;
    min-width: 80%;
    max-width: 80%;
    min-height: 288px;
    /* background-color: #909090; */
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    margin-bottom: 59px;
    padding-right: 40px;
}

.footer-container ul li:hover {
    cursor: pointer;
    font-weight: bold;
}

.footer-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    height: 54px;
    border-top: 1px solid #fff;
    background-color: #ffc924;
    padding-top: 24px;
}

.footer-bottom .socials ul {
    display: flex;
    flex-direction: row;
    width: auto;
    height: auto;
}

.footer-bottom .socials ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    margin-right: 24px;
}

.footer-bottom .socials ul li:hover {
    cursor: pointer;
    background-color: #909090;
}

.footer-container ul li {
    list-style-type: none;
    margin-bottom: 20px;
}

.footer-container ul li img {
    min-width: 158px;
    min-height: 117px;
    max-width: 158px;
    max-height: 117px;
}

#logo-and-contacts img {
    /* 158x117 */
    max-width: 144px;
    max-height: 144px;
}

/* home.html */
#home {
    /* just delegate this to a full screen container and nothing else*/
    width: 100vw;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #f4f4f4;
}

#home .separator {
    display: flex;
    justify-content: space-between;
    align-content: center;
    width: 100%;
}

#home .separator a {
    color: #ffc924;
    text-decoration: none;
}



#articles {
    display: grid;
    /* Defines 4 columns, each taking up an equal fraction of the available space. */
    grid-template-columns: repeat(4, 1fr);
    /* Explicitly defines 2 rows. Each row will take up an equal fraction of the available height
       within the #articles container. If #articles has no defined height, these rows will
       expand to fit their content, but overflow: hidden will still clip subsequent items. */
    grid-template-rows: repeat(2, 1fr);
    /* Sets the gap between grid items. */
    gap: 24px;
    /* Crucial for limiting visibility: Any content (grid items) that extends beyond
       the boundaries of the defined 2 rows will be hidden. */
    overflow: hidden;
    /* Removed grid-auto-rows as grid-template-rows now explicitly defines the rows. */
}

.article-item {
    /* Allows the item to take the full width of its grid column. */
    width: 290px;
    /* Makes the item fill the height of its grid row. This works well with 1fr rows. */
    min-height: 389px;
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    /* Original padding and text-align commented out as per your provided code,
       but can be re-added if needed. */
    /* padding: 20px; */
    /* text-align: center; */
}

.item-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 90%;
    max-height: 100%;
    min-width: 90%;
    min-height: 100%;
    border-radius: 12px;
    /* background-color: #ffc0cb; */
    overflow: hidden;
    gap: 8px;
}

.item-container .article-photo {
    width: 100%;
    /* Make it take the full width of its parent (.item-container) */
    max-width: 258px;
    /* IMPORTANT: Ensures it never exceeds the parent's width */
    height: 183px;
    /* Set a consistent height */
    object-fit: cover;
    /* Crop if necessary to fill the container, maintain aspect ratio */
    border-radius: 12px;
    display: block;
    /* Ensures it behaves as a block-level element */
}

/* .item-container .article-photo { */
/* 258 183 */
/* max-width: 258px;
    max-height: 183px;
    min-width: 258px;
    min-height: 183px; */
/* min-width: 100%; */
/* min-height: 144px; */
/* min-height: 183px; */
/* object-fit: cover; */
/* border-radius: 12px; */
/* } */

/* .item-container .article-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 20px;
    min-height: auto;
    max-lines: 1;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
} */

.item-container .article-title {
    /* Remove display: flex; if the text is directly inside, use block or inline-block */
    display: block;
    /* or inline-block, block is usually fine here */
    justify-content: flex-start;
    /* No effect on block */
    align-items: center;
    /* No effect on block */
    font-size: 20px;
    min-height: auto;
    /* Keep this */
    width: 100%;
    /* Important: needs a defined width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* <<< ADD THIS LINE */
    font-weight: bold;
    /* padding: 0 10px; */
    /* Add some padding if you want spacing inside the title container */
    box-sizing: border-box;
    /* Include padding in width */
    text-align: left;
    /* Ensure text aligns left */
}

/* .item-container .article-content {
    font-size: 14px;
    min-height: 40px;
    max-height: 40px;
    width: 100%;
    width: 100%;
    overflow: hidden;
    padding-bottom: 16px;
} */

.item-container .article-content {
    font-size: 14px;
    min-height: 40px;
    max-height: 40px;
    /* Keep fixed height to ensure content is constrained */
    width: 100%;
    overflow: hidden;
    /* This will truncate by cutting off */
    padding-bottom: 16px;

    /* To achieve multi-line ellipsis (if content overflows 40px height): */
    display: -webkit-box;
    /* For webkit browsers like Chrome, Safari */
    -webkit-line-clamp: 2;
    /* Adjust number of lines as needed */
    -webkit-box-orient: vertical;
    white-space: normal;
    /* Allow text to wrap normally */
    text-overflow: ellipsis;
    /* Still needed for the ellipsis */
}

.item-container .author-info {
    border-radius: 12px;
    background-color: #EFEFF2;
    display: flex;
    min-width: 261px;
    /* max-height: 54px; */
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-container .author-info p {
    font-size: 14px;
}

.item-container .author-info img {
    max-width: 44px;
    max-height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 90px;
}

.item-container .name-date {
    display: flex;
    height: auto;
    width: 80%;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-wrap: nowrap;
    overflow: hidden;
    font-size: 12px;

}

.item-container .img-div {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 20%;
    min-height: 100%;
}

.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-width: 1232px;
    /* max-width: 100%; */
    height: 531px;
    /* background-color: #909090; */
    /* border-radius: 36px; */
    margin-top: 36px;

}

.slider-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    min-width: 100%;
    /* max-width: 100%; */
    height: 531px;
    /* background-color: #ffc0cb; */
    border-radius: 20px;
    overflow: hidden;
    background-image: url("./assets/STATIC.jpg");
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Do not repeat the image */
    background-size: cover;
    /* Resize the background image to cover the entire container */
    color: #fff;
}

.slider-info {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    width: 90%;
    height: auto;
    /* background-color: #ffc924; */
    margin-bottom: 36px;
    overflow: hidden;
}

.info-title {
    /* max-height: 72px; */
    min-height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: bold;
    font-size: 36px;
}

.info-date {
    font-size: 20px;
}

.dots-container {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: row;
    margin-top: 16px;
}

.dot {
    background-color: #ffd200;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin: 6px;
    cursor: pointer;
}

.dot.active {
    background-color: #ffc924;
    border-radius: 25%;
    width: 32px;
    height: 8px;
    margin: 6px;
    cursor: pointer;
}

/* news.html */
#news {
    width: 100vw;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 34px;
}

#all-articles {
    display: grid;
    /* Defines 4 columns, each taking up an equal fraction of the available space. */
    grid-template-columns: repeat(4, 1fr);
    /* Explicitly defines 2 rows. Each row will take up an equal fraction of the available height
       within the #articles container. If #articles has no defined height, these rows will
       expand to fit their content, but overflow: hidden will still clip subsequent items. */
    grid-template-rows: repeat(2, 1fr);
    /* Sets the gap between grid items. */
    gap: 24px;
    /* Crucial for limiting visibility: Any content (grid items) that extends beyond
       the boundaries of the defined 2 rows will be hidden. */
    overflow: hidden;
    /* Removed grid-auto-rows as grid-template-rows now explicitly defines the rows. */
}


/* videos.html */
#videos {
    width: 100vw;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 34px;
}

.iframe-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: row;
    height: auto;
    width: 100%;
}

/* home.html */
#social-media {
    width: 100vw;
    min-height: 90vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    padding-top: 48px;
    background-color: #EFEFF2;
    gap: 16px;
}

.picture-card {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    min-height: 283px;
    max-height: 283px;
    /* background-color: #909090; */
    background: #fff;
    border-radius: 12px;
    margin-top: 16px;
}

.picture-card .picture {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    min-height: 150px;
    width: 100%;
    /* background-color: #ff00ff; */

}

.picture-card .picture img {
    min-width: 98%;
    max-width: 98%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.picture-card .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    min-height: 99px;
    width: 98%;
    /* background-color: #00ffff; */
}

.info .info-logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    font-weight: bold;
}

.info .info-logo img {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 97px;
    max-height: 75px;
    min-width: 97px;
    min-height: 75px;
    margin-right: 12px;
    /* object-fit: ; */
}

.info .info-button {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 48px;
    width: 150px;
    background-color: #ffd200;
    color: #fff;
    font-weight: bold;
    border-radius: 12px;
    text-decoration: none;
    /* gap: 5px; */
}

.info .info-button:hover {
    background-color: #FFE492;
}

/* home.html */
#about-us {
    width: 100vw;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* read-article */
#read-article {
    display: flex;
    flex-direction: column;
    width: 100vw;
    /* max-width: 70vw; */
    min-height: 90vh;
    justify-content: center;
    align-items: center;
    /* background-color: aquamarine; */
}

.read-back-button {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.read-back-button a {
    color: #fff;
    text-decoration: none;
    width: auto;
    height: auto;
    padding: 16px 48px;
    justify-content: flex-start;
    background-color: #ffc924;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
}

.read-back-button a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.read-title {
    display: flex;
    justify-content: flex-start;
    min-width: 100%;
    height: auto;
    align-items: center;
    font-weight: bold;
    font-size: 2em;
    color: #6b5800;
}

.read-image {
    display: flex;
    min-width: 100%;
    max-width: 100%;
    /* Remove or comment out min-height and max-height to allow the image to dictate its own height */
    /* min-height: 300px; */
    /* max-height: 300px; */

    /* Change object-fit to 'contain' to ensure the entire image is visible */
    object-fit: contain;

    /* If you want the image to fill the width but maintain aspect ratio,
       you might also consider 'width: 100%; height: auto;' */
    height: auto;
}

.read-extra-image {
    display: flex;
    min-width: 100%;
    max-width: 100%;
    /* Remove or comment out min-height and max-height to allow the image to dictate its own height */
    /* min-height: 300px; */
    /* max-height: 300px; */

    /* Change object-fit to 'contain' to ensure the entire image is visible */
    object-fit: contain;

    /* If you want the image to fill the width but maintain aspect ratio,
       you might also consider 'width: 100%; height: auto;' */
    height: auto;
}

.read-image-description {
    display: flex;
    min-width: 100%;
    min-height: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-style: italic;
}

.read-info {
    display: flex;
    min-width: 100%;
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.read-info .read-author-name {
    font-weight: bold;
}

.read-info .read-created-at {
    font-weight: bold;
}

.read-content {
    display: flex;
    flex-direction: column;
    min-width: 90%;
    /*max-width: 80%;*/
    line-height: 1.5;
    height: auto;
    justify-content: center;
    align-items: center;
    text-overflow: hidden;

}

.read-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    height: auto;
    padding: 16px 48px;
    background-color: #fff;
    gap: 16px;
    margin-top: 34px;
    margin-bottom: 34px;
    padding-bottom: 34px;
    border-radius: 20px;
    overflow: hidden;

}