﻿body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: #fff;
}

/* Global container */
/*.grid-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 5.25rem;
    width: 100%;
}*/

/* Header */
/*.menu {
    padding: 36px 1px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.menu-header {
    display: contents;
}

.menu-links {
    display: grid;
    grid-auto-flow: column;
    gap: 1.3125rem;
    margin-top: 0;
    justify-content: end;
}

    .menu-links a {
        padding: 0.75rem 0;
        text-decoration: none;
        color: #000;
        font-weight: 700;
        font-size: 1rem;
        border-bottom: 1px solid #eee;
    }

.dropdown {
    border-bottom: 1px solid #eee;
}

.menu-links a:hover {
    color: #ef4565;
    text-decoration: underline solid #4fc4cf 25%;
}

.menu-button {
    display: none;
    background: none;
    border: 2px solid #ccc;
    border-radius: 0.375rem;
    padding: 0.575rem 0.625rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .menu-button img.menu-icon {
        width: 1.5rem;
        height: 1.5rem;
        vertical-align: middle;
    }

.menu-links.show {
    display: flex;
}*/

/*.dropdown {
    display: flex;
    align-items: center;
}*/



/* Search section */
/*.main-content {
    padding: 5.1875rem 0;
    background-color: #f6efef;
    display: grid;
    justify-content: center;
}

.search {
    display: grid;
    grid-template-columns: 1fr auto;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .search input {
        border: none;
        outline: none;
        padding: 1.125rem 0.9375rem;
        font-size: 1rem;
        font-family: 'Roboto', sans-serif;
    }

    .search button {
        background: #40c0cb;
        border: none;
        padding: 0.875rem 1.75rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .search button i {
            color: #000;
            font-size: 1rem;
        }

        .search button:hover,
        .search button:focus {
            background-color: #35d0d6;
            outline: none;
        }

    .search:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }*/


/* Headings */

.heading {
    display: inline-block;
    padding: 1.125rem 0px 0px 0px;
    margin-inline: 5%;
}

.text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    margin: 0;
    color: black;
}

.underline {
    width: 100%;
    height: 4px;
    background-color: #3ec8c8;
    margin-top: 4px;
}

/* Cards section */

.cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 2.5rem 0;
    margin-inline: 5%;
    flex-wrap: wrap;
}

.card1 {
    background: #111;
    border-radius: 0.75rem;
    overflow: hidden;
    color: #fff;
    width: 23%;
}

.card1 img {
width: 100%;
height: 11.25rem;
object-fit: cover;
}

.detail {
    padding: 0.9375rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
}

    .detail h3 {
        font-size: 20px;
        font-weight: 700;
        margin: 0;
        color: #fff;
        text-decoration: underline;
        text-decoration-thickness: 2px;
        transition: color 0.3s ease;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4em; /* line height */
        min-height: 2.8em; /* reserve space for 2 lines */
    }

    .detail p {
        font-size: 0.9rem;
        margin: 0;
        color: #efe9e9;
        flex-grow: 1;
    }

    .short-decription {
        display: -webkit-box;
        -webkit-line-clamp: 2; /* limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.4em; /* line height */
        min-height: 2.8em; /* reserve space for 2 lines */
    }

.detail .read-btn {
    background: #4fc4cf;
    color: #000;
    padding: 0.6875rem 1.125rem;
    border-radius: 0.5rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a.link-primary {
    margin-top: 10px;
    margin-bottom: 5px;
}

.card1:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


.detail h3:hover {
    color: #ef4565;
}

.card1:hover .read-btn {
    background: #fff;
    color: #ef4565;
}


@media (max-width: 1024px) {

    .text {
        font-size: 1.75rem;
    }
}

@media(max-width:833px){
    .card1 {
        width: 48%;
    }
}

@media (max-width: 768px) {

    .cards-container {
        padding: 1.5rem 0px;
    }

    .heading {
        padding: 0px;
    }
    /*.menu-header {
        grid-column: 1;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

        .menu-links.show {
            display: flex;
            position: static;
        }

        .menu-links a {
            padding: 0.5rem 0;
            font-size: 0.95rem;
            border-bottom: none;
        }

    .menu-button {
        display: block;
        justify-self: end;
    }

    .main-content {
        padding: 2rem 1.5rem;
        margin-top: 1rem;
    }

    .search {
        width: 100%;
    }
*/

}

@media (max-width: 555px) {
    .card1 {
        width: 100%;
    }
}

    @media (max-width: 426px) {

        .heading ,
        .cards-container{
            margin-inline: 10px;
        }

       /* .menu {
            padding: 36px 0px;
        }

        .search input {
            padding: 0.875rem 0.625rem;
            font-size: 0.875rem;
        }

        .search button {
            padding: 0.625rem 0.9375rem;
        }
*/

        .text {
            font-size: 1.5rem;
        }

        .card1 img {
            height: 9.375rem;
        }

        .detail h3 {
            font-size: 1.1rem;
        }
    }

    @media (max-width: 376px) {

        .text {
            font-size: 1.375rem;
        }

        .detail p {
            font-size: 0.85rem;
        }
    }

    @media (max-width: 321px) {
        /*.menu {
            padding: 1rem 0rem;
        }*/

        .text {
            font-size: 1.25rem;
        }

        

        .line {
            width: 26%;
        }

        .detail h3 {
            font-size: 1rem;
        }

        .read-btn {
            padding: 0.5rem 0.875rem;
            font-size: 0.875rem;
        }
    }


