@import url('https://fonts.googleapis.com/css2?family=BBH+Hegarty&family=Comfortaa:wght@300..700&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Display:ital@0;1&family=Imperial+Script&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Kedebideri:wght@400;500;600;700;800;900&family=Licorice&family=Monsieur+La+Doulaise&family=Mr+Dafoe&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playwrite+CZ:wght@100..400&family=Quicksand:wght@300..700&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik+Moonrocks&family=Stack+Sans+Text:wght@200..700&family=Zalando+Sans+SemiExpanded:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Roboto", sans-serif;
    background-color: #e7e7e7;
    background-image:
    url(""),
}

/*================= Header =================*/

/* Header */

header {
    background-color: #e7e7e7;
    background-image: 
    url("");
    padding: 1% 3%;
}

/*** Logo a Nav ***/

.logo-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

/* Logo */

.logo {
    flex: 1;
}

.logo img {
    position: relative ;
    display: block;
    max-width: 50%;
    min-width: 30%;
}

/* Nav */

.logo-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: right;
    flex: 2;
    margin-top: 2%;
    margin-right: 2%;
}

.logo-nav li {
    list-style: none;
    margin: 0 20px;
}

.logo-nav li a {
    text-decoration: none;
    font-weight: bold;
    color: rgb(48, 80, 124);
    font-size: 1.65rem;
} 

.nav-menu .click-nav a {
    color: rgb(51, 116, 51);
}

/* Hamburger menu */

#menu-toggle {
    position: absolute;
    opacity: 0;
}


#menu-toggle:checked + .hamburger-menu span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

#menu-toggle:checked + .hamburger-menu span:nth-child(2) {
    display: none;
}

#menu-toggle:checked + .hamburger-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-menu span {
    transition: 400ms;
}


.hamburger-menu {
    margin-top: 2.3%;
    margin-right: 0.7%;
    display: none;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 50px;
    height: 7px;
    background: white;
    margin: 8px 0;
}

.nav-menu {
    display: flex;
    justify-content: right;
    list-style: none;
}


/*================= Main =================*/

main {
    padding: 1% 5%;
}

/*  Články  */

.section-articles {
    padding: 4rem 3rem;
    background: linear-gradient(180deg, #f4f8f4, #ffffff);
    border-radius: 20px;
}

/* Nadpis */
.section-title {
    font-size: 2.2rem;
    color: rgb(51, 116, 51);
    margin-bottom: 3%;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: rgb(51, 116, 51);
    border-radius: 4px;
}

/*  Nejnovější článek  */

.article-featured {
    display: flex;
    gap: 4%;
    background-color: white;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(122, 111, 111, 0.18);
    margin-bottom: 5%;
}

.article-featured img {
    width: 45%;
    object-fit: cover;
    border-radius: 16px 0 0 16px;
}

.featured-content {
    padding: 4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-content h3 {
    font-size: 1.9rem;
    color: rgb(48, 80, 124);
    margin: 2% 0;
}

.featured-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3%;
}

.btn-read {
    display: inline-block;
    align-self: flex-start;
    background-color: rgb(51, 116, 51);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 19px;
    font-weight: 600;
    transition: background-color 600ms ease, transform 600ms ease;
}

.btn-read:hover {
    background-color: rgb(39, 89, 39);
    transform: translateY(-2px);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem; 
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(122, 111, 111, 0.18);
    transition: transform 250ms;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.2rem;

}

.card-content h4 {
    font-size: 1.3rem;
    color: rgb(48, 80, 124);
    margin: 2% 0;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 3%;
}

.card-content a {
    margin-top: auto;
    display: inline-block;
    padding: 6px 14px;
    background-color: rgb(51, 116, 51);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    text-decoration: none;
    transition: 600ms;
}


.card-content a:hover {
    background-color: rgb(39, 89, 39);
    transform: translateY(-3px);
}

.article-date {
    font-size: 0.9rem;
    color: gray;
}
