.kapuso-stories-intro {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0px;
}

.kapuso-stories-logo {
    position: relative;
    flex-shrink: 0;
    width: 146px;
    height: 50px;
    padding-right: 30px;
}

.kapuso-stories-logo::after {
    content: "";
    position: absolute;
    right: 0;
    top: 55%;
    transform: translateY(-50%);
    width: 1px;
    height: 35px; /* liit ng border */
    background: #3F3636;
}

.kapuso-stories-logo img {
    width: 146px;
    height: 50px;
    display: block;
}

.kapuso-stories-description {
    flex: 1;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.kapuso-stories-description p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0%;
    color: #666;
    margin: 0;
}

.stories-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.stories-grid-large .story-card {
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 30px;
}

.stories-grid-small {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stories-grid-small .story-card {
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}



.story-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    position: relative;
    overflow: hidden;
}

/* Hide <img> on desktop, use background-image */
.story-card-img {
    display: none;
}

.stories-grid-small .story-card-image {
    height: 200px;
}

.story-card-content {
    margin-top: 10px;
}

.story-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 18px;
    line-height: 30px;
    letter-spacing: 0%;
    color: #3A3939;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #3A3939;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stories-grid-small .story-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #3A3939;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
#container{
    background:#eeeded;
}

@media (max-width: 768px) {
    .kapuso-stories-intro {
        flex-direction: column;
        gap: 15px;
        padding: 20px 25px;
    }

    .kapuso-stories-logo {
        width: 146px;
        height: 50px;
        padding-right: 0px;
    }
    .kapuso-stories-logo::after {
        background: none;
    }
    .kapuso-stories-description{

        padding-left: 0px;
    }
    .kapuso-stories-description p {
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-style: normal;
        font-size: 12px;
        line-height: 18px;
        letter-spacing: 0%;
        color: #3A3939;
        margin: 0;
        padding-left: 0px;
    }

    .stories-grid-large {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap:0px;
    }

    .stories-grid-small {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap:30px;
    }

    .story-card-image {
        height: auto !important;
        background-image: none !important;
    }

    /* Show <img> on mobile for natural height */
    .story-card-img {
        display: block;
        width: 100%;
        height: auto ;
        object-fit: contain;
    }

    .story-title {
        font-size: 18px;
        line-height: 30px;
    }

    .story-description {
        font-size: 14px;
        line-height: 18px;
    }
    #container {
        width: 100%;
    }
    .corner-stamps{
        width: 100%;
        border: 0px;
    }
    #wrapper {
        width: fit-content !important;
    }
    .sub_nav {
        margin: 0px 40px;
    }
}
