@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
    padding-top: 80px;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    color: #b74b4b;
}

nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

nav a{
    font-size: 1.8rem;
    color: white;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 0;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #b74b4b;
    font-size: 2.8rem;
    cursor: pointer;
    z-index: 200;
    transition: 0.3s ease;
}

.nav-toggle:hover {
    color: #b74b4b;
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.articles {
    flex: 1 1 auto;
    padding-bottom: 80px;
    margin-top: 2rem;
    min-height: 0;
}

.heading{
    font-size: 4rem;
    margin-bottom: 3rem;
    text-align: center;
}

.articles-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 400px) {
    .articles-container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 900px) {
    .articles-container {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.article-box {
    width: 100%;
    min-width: 0;
    background-color: #161616;
    padding: 1.2rem 0.7rem 1.2rem;
    border-radius: 1.2rem;
    box-shadow: 0 0 10px #b74b4b22;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 0.2rem solid #b74b4b;
    transition: 0.3s;
    margin: 0;
}
.article-box img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 0.7rem;
    margin-bottom: 0.7rem;
}
.article-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    color: #b74b4b;
    font-weight: 600;
}
.article-box p {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 2rem 0;
}
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    background: #b74b4b;
    color: #fff;
    border-radius: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 1rem;
}
.btn:hover {
    background: #fff;
    color: #b74b4b;
    border: 1px solid #b74b4b;
}
.btn.read-more-btn {
    width: 100%;
    display: block;
    padding: 1.2rem 0;
    font-size: 1.6rem;
    margin-top: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
}
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    background: #161616;
    color: #fff;
    text-align: center;
    border-top: 2px solid #b74b4b;
    padding: 1.2rem 0 0.8rem 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-content p {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}
.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-social a {
    color: #b74b4b;
    font-size: 1.5rem;
    transition: color 0.3s;
    margin: 0 0.3rem;
}
.footer-social a:hover {
    color: #fff;
}
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        position: absolute;
        right: 3rem;
        top: 1.5rem;
    }
    header nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #161616;
        position: absolute;
        left: 0;
        top: 100%;
        border-radius: 0 0 1rem 1rem;
        border-top: 2px solid #b74b4b;
    }
    header nav.active {
        display: flex;
    }
    .articles-container {
        flex-direction: column;
        gap: 2rem;
    }
    .article-box {
        max-width: 100%;
        width: 100%;
    }
}
@media (max-width: 600px) {
    html {
        font-size: 50%;
    }
    body {
        padding-top: 60px;
    }
    .heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    .articles-container {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    .article-box {
        padding: 0.7rem 0.3rem 1rem;
        border-radius: 0.8rem;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .article-box img {
        width: 100%;
        height: auto;
        max-height: 180px;
        object-fit: cover;
        border-radius: 0.7rem;
        margin-bottom: 0.7rem;
    }
    .article-box h3 {
        font-size: 1.3rem;
    }
    .article-box p {
        font-size: 1rem;
    }
    .footer-content p {
        font-size: 1.1rem;
    }
    .footer-social a {
        font-size: 1.5rem;
    }
}
@media (max-width: 400px) {
    html {
        font-size: 42%;
    }
    .article-box {
        padding: 0.5rem 0.1rem 0.7rem;
        border-radius: 0.6rem;
    }
    .article-box img {
        max-height: 120px;
    }
    .article-box h3 {
        font-size: 1.1rem;
    }
    .article-box p {
        font-size: 0.9rem;
    }
    .heading {
        font-size: 1.1rem;
    }
}
@media (max-width: 375px) {
    html {
        font-size: 36%;
    }
    .heading {
        font-size: 1.1rem;
    }
}
