/* Horizontal scrolling for media posts */
.scrollable-row-media-for-mobile {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px; /* Adds spacing between items */
    scroll-behavior: smooth;
}

.scrollable-row-media-for-mobile::-webkit-scrollbar {
    display: none; /* Hides scrollbar for cleaner UI */
}

.scrollable-row-media-for-mobile .media-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.scrollable-row-media-for-mobile img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.scrollable-row-media-for-mobile::-webkit-scrollbar {
    height: 8px;
    background: #f1f1f1;
}

.scrollable-row-media-for-mobile::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.scrollable-row-media-for-mobile::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scrollable-row-media-for-mobile .media-item {
        width: 120px; /* Adjust for smaller screens */
    }

    .mobile-media-posts-kategories {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        visibility: visible;
    }
    .mobile-media-posts-kategories p {
        font-size: 18px;
    }
    .mobile-media-posts-kategories p:nth-child(2) {
        color: red;
        font-size: 22px;
    }
}

/* General styles for media section */
.media-section {
    margin-bottom: 50px;
}
.home-media-title {
    font-size: 40px;
    color: #eb192d;
    margin-top: 100px;
    padding-left: 20px;
}
.home-media-sub-title {
    font-size: 20px;
    color: #5abe41;
    margin: 10px 0 100px;
    padding-left: 20px;
}
.media-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.media-nav {
    list-style-type: none;
    display: flex;
    gap: 10px;
}

.media-nav li a {
    padding: 5px 10px;
    cursor: pointer;
    font-size: 20px;
    text-decoration: none;
    color: inherit;
}

.media-link {
    text-decoration: none;
    color: inherit;
}

.media-link:hover p {
    text-decoration: none;
    color: #eb192d; 
}

.media-nav li a:hover {
    color: #eb192d;
}

.media-button {
    padding: 10px 20px;
    background-color: #eb192d;
    color: white;
    text-align: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 10px;
    border: none;
}

/* Media container styles */
.media-container {
    margin-bottom: 40px;
}

.media-item p {
    text-align: left;
    font-size: 20px;
    border-top: none;
    padding: 15px;
    margin-top: 20px;
    max-width: 350px;
    line-height: 1;
}

.media-item {
    width: 100%;
    margin: 10px;
    text-align: center;
    background: var(--sapTile_Background);
    border-radius: 12px;
    box-shadow: 0 2px 4px 0 #22364933;
    color: var(--sapTile_TextColor);
    overflow: hidden;
    transition: box-shadow .3s ease, border .1s ease, background .3s ease;
}

.media-item img {
    width: 100%;
    border-radius: 10px;
}

.media-img-text {
    height: 374px;
}

.media-item p {
    text-align: left;
    font-size: 20px;
    margin-top: 20px;
    max-width: 350px;
    word-wrap: break-word;
    hyphens: auto;
}

.more-button {
    color: #eb192d;
    text-decoration: none;
    padding: 10px;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.more-button-div {
    text-align: center;
}

.show-more-button {
    border: none;
    border-radius: 12px;
    background-color: #eb192d;
    color: white;
    text-align: center;
    width: 131px;
    height: 37px;
    font-size: 15px;
    margin-top: 5px;
}

/* Styled image */
.styled-image {
    border-radius: 15px;
    height: 470px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* General typography and spacing */
.more-about-kosmonte {
    font-size: 40px;
    color: #eb192d;
    margin: 60px 0 10px;
    padding: 22px;
}

.background-head {
    background-color: #fff;
    border-radius: 12px;
}

.img-lajmi {
    margin-bottom: 50px;
}

/* Responsive styles for media categories */
@media (max-width: 768px) {
    .mobile-media-posts-kategories {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* Post metadata styles */
.post-meta {
    text-align: left;
    padding: 10px;
    border-right: 1px solid #ddd;
}

.post-meta .post-date {
    font-size: 1rem;
    color: #555;
    float: left;
    line-height: 5px;
}

.post-meta .font-bold {
    font-weight: bold;
    color: #333;
}

.post-content {
    padding: 10px 20px;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .post-meta {
        border-right: none;
        border-bottom: 1px solid #ddd;
        text-align: center;
    }
    .post-content {
        padding-top: 20px;
    }
}
