* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #eef8fd;
}

/* Header */

/* ================= HEADER ================= */

.header {
    width: 100%;
    height: 90px;
    background: #fff;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 30px;



    border-bottom: 1px solid #e6e6e6;

}

/* Logo */

.logo img {
    width: 170px;
    display: block;
}

/* Navigation */

.navbar {


    display: flex;
    gap: 35px;

    margin-left: auto;
    margin-right: auto;
}

.navbar a {
    text-decoration: none;
    color: #0b2e83;
    font-size: 24px;
    font-weight: 700;
    transition: .3s;
}

.navbar a:hover {
    color: #23aae1;
}

/* Icons on the LEFT */

.header-icons {


    display: flex;
    align-items: center;
    gap: 35px;
}

.header-icons i {
    font-size: 30px;
    color: #111;
    cursor: pointer;
    transition: .3s;
}

.header-icons i:hover {
    color: #23aae1;
}

/* Buttons */

.supplier-btn,
.buyer-btn {
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.supplier-btn {
    background: #1ea8e8;
    color: white;
}

.buyer-btn {
    background: #0b2e83;
    color: white;
}

/* Main */

main {

    width: 650px;

    margin: 30px auto;

}

/* Create Post */

.create-post {

    background: white;

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);

}

textarea {

    width: 100%;

    height: 100px;

    border: none;

    outline: none;

    resize: none;

    font-size: 17px;

}

textarea::placeholder {

    color: #0077cc;

}

.bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

}

.upload {

    color: #123b86;

    cursor: pointer;

}

.upload input {

    display: none;

}

#addPostBtn {

    background: #123b86;

    color: white;

    border: none;

    padding: 10px 30px;

    border-radius: 8px;

}

/* Posts */

.post {

    background: white;

    margin-top: 20px;

    border-radius: 10px;

    padding: 20px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);

}

.post-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.user {

    display: flex;

    align-items: center;

    gap: 12px;

}

.avatar {

    width: 50px;

    height: 50px;

    background: #123b86;

    color: white;

    border-radius: 50%;

    display: flex;

    justify-content: center;

    align-items: center;

    font-weight: bold;

}

.time {

    color: gray;

    font-size: 13px;

}

.post-text {

    margin: 20px 0;

    line-height: 1.8;

}

.post-image {

    width: 100%;

    border-radius: 10px;

    margin-top: 10px;

}

.actions {

    display: flex;

    gap: 20px;

    margin-top: 20px;

}

.actions i {

    cursor: pointer;

    font-size: 22px;

    color: #555;

}

.actions i:hover {

    color: #0077cc;

}









.delete-btn {
    background: red;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: auto;
}

.delete-btn:hover {
    background: darkred;
}









/* ==========================
   RESPONSIVE
========================== */

/* ==========================
   Large Tablets (1200px)
========================== */

@media (max-width:1200px) {

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .banner img {
        height: 450px;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .navbar {
        gap: 25px;
    }

    .navbar a {
        font-size: 20px;
    }

}

/* ==========================
   Tablets (992px)
========================== */

@media (max-width:992px) {

    .header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner img {
        height: 380px;
    }

    .section-title h2,
    .offers-header h2 {
        font-size: 32px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-about {
        text-align: center;
    }

}

/* ==========================
   Mobile (768px)
========================== */

@media (max-width:768px) {

    .hero {
        width: 95%;
    }

    .categories {
        padding: 25px;
    }

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

    .card img {
        width: 80px;
        height: 80px;
    }

    .card p {
        font-size: 18px;
    }

    .banner img {
        height: 280px;
    }

    .product-card {
        width: 220px;
    }

    .review-card {
        width: 280px;
    }

    .logo img {
        width: 150px;
    }

}

/* ==========================
   Small Phones (576px)
========================== */

@media (max-width:576px) {

    .header {
        padding: 15px;
    }

    .navbar {
        gap: 15px;
    }

    .navbar a {
        font-size: 16px;
    }

    .header-icons {
        gap: 20px;
    }

    .header-icons i {
        font-size: 22px;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .card img {
        width: 70px;
        height: 70px;
    }

    .card p {
        font-size: 16px;
    }

    .banner img {
        height: 220px;
    }

    .categories {
        padding: 20px;
    }

    .search {
        height: 48px;
    }

    .search input {
        font-size: 15px;
    }

    .search button {
        width: 50px;
        height: 48px;
    }

    .section-title h2,
    .offers-header h2 {
        font-size: 28px;
    }

}