

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

/* 
   BODY
 */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8f5f2;
    color: #333;
    line-height: 1.6;
}

/* 
   CONTAINER
 */

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* 
   HEADER / NAVBAR
 */

.header {
    background: #3e2723;
    color: white;
    padding: 15px 20px;

    position: sticky;
    top: 0;
    z-index: 1000;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo h1 {
    font-size: 22px;
    letter-spacing: 0.5px;
}

.navbar {
    margin-top: 10px;
}

.nav-menu {
    list-style: none;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: bold;

    position: relative;

    transition: 0.3s ease;
}

/* underline animation */

.nav-link::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0%;
    height: 2px;

    background: #ffcc80;

    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #ffcc80;
}

/* 
   BLOG HEADER
 */

.blog-header {
    background: #3e2723;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.blog-title {
    font-size: 34px;
    margin-bottom: 10px;
}

.blog-intro {
    max-width: 600px;
    margin: auto;
    font-size: 16px;
}

/* 
   SECTION TITLE
 */

.section-title {
    text-align: center;
    color: #6b3e26;
    margin-bottom: 25px;
    font-size: 26px;
}

/* 
   FEATURED BLOG
 */

.featured-blog {
    padding: 60px 20px;
}

.featured-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.featured-image {
    width: 100%;
    max-width: 500px;

    border-radius: 12px;

    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.featured-image:hover {
    transform: scale(1.05);

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.featured-content {
    max-width: 500px;
}

/* 
   READ MORE BUTTON
 */

.read-more {
    display: inline-block;

    padding: 10px 16px;

    background: #6b3e26;
    color: white;

    border-radius: 6px;

    text-decoration: none;

    margin-top: 12px;

    font-weight: bold;

    transition: 0.3s ease;
}

.read-more:hover {
    background: #d2691e;

    transform: translateY(-2px);
}

/* 
   BLOG POSTS
 */

.blog-posts {
    padding: 60px 20px;
}

.blog-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.blog-card {
    background: white;

    padding: 20px;

    width: 260px;

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

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

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-card h3 {
    margin-bottom: 10px;
    color: #6b3e26;
}

.blog-card p {
    margin-bottom: 15px;
}

/* Card buttons */

.blog-card a {
    display: inline-block;

    padding: 8px 14px;

    background: #6b3e26;
    color: white;

    text-decoration: none;

    border-radius: 5px;

    font-weight: bold;

    transition: 0.3s ease;
}

.blog-card a:hover {
    background: #d2691e;

    transform: translateY(-2px);
}

/* 
   POPULAR POSTS
*/

.popular-posts {
    padding: 60px 20px;
    text-align: center;
}

.popular-list {
    list-style: none;
}

.popular-list li {
    margin: 10px 0;

    transition: 0.3s ease;
}

.popular-list li:hover {
    transform: translateX(6px);
}

/* 
   AUTHOR
 */

.author-section {
    padding: 60px 20px;
    text-align: center;
}

.author-box {
    background: white;

    padding: 25px;

    max-width: 520px;

    margin: auto;

    border-radius: 12px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    transition: 0.3s ease;
}

.author-box:hover {
    transform: translateY(-6px);
}

/* 
   FOOTER
 */

.footer {
    background: #3e2723;
    color: white;

    text-align: center;

    padding: 25px;

    margin-top: 40px;
}

/* 
   SOCIAL ICONS
 */

.social-icons {
    margin-top: 20px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;
}

.social-link {
    display: flex;
    align-items: center;

    gap: 8px;

    text-decoration: none;

    color: #ffcc80;

    font-size: 16px;
    font-weight: 500;

    transition: 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);

    color: white;
}

/* 
   ICON STYLE
 */

i {
    margin-right: 5px;
    color: #ffcc80;
}

.section-title i,
.blog-card h3 i,
.popular-list li i {
    color: #d2691e;
}

/* 
   ACCESSIBILITY
 */

input:focus,
textarea:focus,
button:focus,
a:focus {
    outline: 2px solid #ffcc80;
}

/* 
   RESPONSIVE DESIGN
 */

@media (max-width: 768px) {

    .nav-menu {
        flex-direction: column;
        gap: 12px;
    }

    .featured-container {
        flex-direction: column;
        text-align: center;
    }

    .blog-container {
        flex-direction: column;
        align-items: center;
    }

    .blog-title {
        font-size: 26px;
    }

}

@media (max-width: 480px) {

    .blog-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 20px;
    }

}