*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Montserrat, sans-serif;
    line-height: 1.6;
    color: #000000;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

.header {
    width: 100%;
}

.header-content h1 {
    text-align: center;
    padding: 12px;
    font-size: clamp(1.1rem, 3vw, 2rem);
    background-color: #2a2ab9;
    color: #ffffff;
    margin-bottom: 20px;
}

.header-content p {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.7rem);
    font-weight: 500;
    margin-bottom: 20px;
    padding: 0 10px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.grid-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #1d1d1d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 300px;
}

.text-content {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    flex-grow: 1;
}

.text-content h2 {
    font-size: 1.3rem;
    margin: 0 0 0.5rem;
}

.text-content span {
    font-size: 1.1rem;
    font-weight: normal;
    color: #ccc;
}

.text-content p {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.read-more {
    color: #ffcc00;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
}

.read-more:hover {
    text-decoration: underline;
}

footer {
    background-color: rgb(51, 51, 51);
    padding: 40px 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
    
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.footer-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.footer-contents p {
    margin: 0;
    padding: 5px;
}

.footer-contents .icon {
    color: rgba(255, 190, 70, 0.822);
    padding-right: 5px;
    font-size: 1rem;
}

.footer-bottom {
    color: white;
    text-align: center;
    font-size: 0.8rem;
    margin-top: 0px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1.6rem;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .text-content h2 {
        font-size: 1.1rem;
    }

    .text-content span {
        font-size: 1rem;
    }

    .text-content p,
    .read-more {
        font-size: 0.9rem;
    }

    .footer-contents {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 1.3rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .grid-container {
        padding: 1rem;
        gap: 1rem;
    }

    .image-container img {
        max-height: 200px;
    }

    .text-content {
        padding: 0.8rem;
    }

    .footer-contents {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.75rem;
    }
}
