/* ========================================
   BASE STYLES
   ======================================== */

body {
    background-color: #FFD4E3;
    font-family: "DM Sans", sans-serif;
    margin: 0;
    padding: 0;
}

h1, h2, p {
    margin: 0;
}

a {
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 100px;
    box-shadow: 0 0.5px 0 0 rgba(0, 0, 0, 0.8);
}

.logo {
    font-size: 20px;
    font-family: 'Questrial', sans-serif;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4rem;
    padding: 0;
    margin: 0;
    font-size: 20px;
}

.nav-links a:hover {
    color: #0066cc;
    border-bottom: 2px solid black;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    margin: 0;
    padding: 100px;
    text-align: center;
    background: url(images/iklas-WpFZu1CGBNc-unsplash.jpg);
    background-size: cover;
    background-position: center;
    gap: 48px;
}

.hero-title {
    font-family: 'Questrial', sans-serif;
    font-size: 90px;
    line-height: 1.1;
}

.btn-primary {
    display: flex;
    background: none;
    border: solid 2px black;
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    padding: 12px 16px;
    align-items: center;
    gap: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: black;
    color: white;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-me {
    display: flex;
    justify-content: space-between;
    margin-top: 120px;
    padding: 0 100px;
    gap: 60px;
}

.about-me img {
    max-width: 500px;
    height: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.about-text-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-text {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* ========================================
   PICTURE GRID SECTION
   ======================================== */

.picture-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 120px 0;
    padding: 48px 100px;
    text-align: center;
    background-color: #FFEDED;
}

.picture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.picture-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ========================================
   FEATURED POSTS SECTION
   ======================================== */

.featured-section {
    padding: 48px 100px;
}

.section-header {
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Questrial', sans-serif;
    font-size: 40px;
    margin-bottom: 16px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 24px 0;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-tag {
    display: inline-block;
    background-color: #FFD4E3;
    color: black;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-card h3 {
    font-family: 'Questrial', sans-serif;
    font-size: 24px;
    margin: 12px 0;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #999;
    margin-bottom: 16px;
}

.read-more {
    color: black;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.read-more:hover {
    color: #0066cc;
}

.center-btn {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

/* ========================================
   ANTICIPATE SECTION
   ======================================== */

.anticipate-section {
    padding: 48px 100px;
}

.anticipate-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.anticipate-content img {
    width: auto;
    height: 588px;
    object-fit: cover;
}

.anticipate-title {
    font-size: 100px;
    text-align: center;
    font-family: 'Questrial', sans-serif;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    display: flex;
    flex-direction: column;
    padding: 48px 100px 16px 100px;
    background-color: #FFEDED;
    gap: 48px;
}

.contact-header {
    padding: 0;
    margin: 0;
    text-align: center;
}

.contact-description {
    text-align: center;
}

.contact-description p {
    font-size: 20px;
    line-height: 28px;
}

.social-links ul {
    display: flex;
    justify-content: center;
    gap: 72px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links a:hover {
    color: #0066cc;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 16px;
}

.footer-links {
    display: flex;
    list-style: none;
    gap: 4rem;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .main-nav {
        padding: 20px 40px;
    }

    .nav-links {
        gap: 2rem;
    }

    .hero {
        padding: 60px 40px;
        height: 60vh;
    }

    .hero-title {
        font-size: 60px;
    }

    .about-me {
        padding: 0 40px;
        flex-direction: column;
        align-items: center;
    }

    .about-me img {
        max-width: 100%;
    }

    .about-content {
        max-width: 100%;
    }

    .picture-section {
        padding: 40px;
    }

    .featured-section {
        padding: 40px;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .anticipate-section {
        padding: 40px;
    }

    .contact {
        padding: 40px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .main-nav {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 40px 20px;
        height: auto;
        min-height: 50vh;
        gap: 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 10px 14px;
    }

    .about-me {
        margin-top: 60px;
        padding: 0 20px;
        flex-direction: column;
        gap: 30px;
    }

    .about-me img {
        width: 100%;
        max-width: 400px;
    }

    .section-title {
        font-size: 32px;
        text-align: center;
    }

    .about-text {
        font-size: 16px;
        text-align: center;
    }

    .about-text-group {
        align-items: center;
    }

    .picture-section {
        padding: 30px 20px;
        margin: 60px 0;
    }

    .picture-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .featured-section {
        padding: 30px 20px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .anticipate-section {
        padding: 30px 20px;
    }

    .anticipate-content {
        flex-direction: column;
        gap: 30px;
    }

    .anticipate-content img {
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    .anticipate-title {
        font-size: 48px;
    }

    .contact {
        padding: 40px 20px 16px 20px;
        gap: 30px;
    }

    .contact-description p {
        font-size: 16px;
    }

    .social-links ul {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .copyright {
        font-size: 14px;
    }
}

.blog-hero {
    padding: 48px 100px;
    background-color: #FFEDED;
    text-align: center;
}

.blog-title {
    font-size: 90px;
    font-family: 'Questrial', sans-serif;
    margin: 0;
}

.latest-posts-section {
    margin: 120px 0;
    padding: 48px 0;
}

.loading {
    text-align: center;
    padding: 2rem;
    grid-column: 1/-1;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 2rem;
    grid-column: 1/-1;
    color: #ff6b6b;
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .anticipate-title {
        font-size: 36px;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        font-size: 14px;
    }

    .post-card h3 {
        font-size: 20px;
    }

    .about-text {
        font-size: 14px;
    }

    .social-links ul {
        gap: 12px;
    }

    .footer-links {
        gap: 1rem;
        font-size: 14px;
    }

    .blog-title {
        font-size: 36px;
    }
}

