/*
Theme Name: Airpower Blog
Theme URI: https://airpower.co.id
Author: Petrotec Air Power
Description: Custom blog theme for Petrotec Air Power
Version: 1.0
*/

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7f8;
    color: #333;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================
   HEADER
========================= */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.site-logo span {
    color: #16a6bd;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-menu a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: 0.3s;
}

.main-menu a:hover {
    color: #159eb5;
}

.main-menu .blog-active {
    color: #159eb5;
}


/* =========================
   HERO BLOG
========================= */

.blog-hero {
    background: linear-gradient(
        rgba(0, 145, 170, 0.90),
        rgba(0, 145, 170, 0.90)
    );

    padding: 70px 20px;
    text-align: center;
    color: #ffffff;
}

.blog-hero h1 {
    margin: 0 0 15px;
    font-size: 44px;
    font-weight: 600;
}

.blog-hero p {
    margin: 0 auto;
    max-width: 700px;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================
   BLOG CONTAINER
========================= */

.blog-container {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
}

.blog-heading {
    margin-bottom: 30px;
}

.blog-heading h2 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #333;
}

.blog-heading p {
    margin: 0;
    color: #777;
}


/* =========================
   POST GRID
========================= */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}


/* =========================
   POST CARD
========================= */

.post-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.post-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9eef0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 0.4s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999;
    font-size: 14px;
}


/* =========================
   POST CONTENT
========================= */

.post-content {
    padding: 25px;
}

.post-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.post-title {
    margin: 0 0 12px;
}

.post-title a {
    color: #222;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
}

.post-title a:hover {
    color: #159eb5;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    color: #159eb5;
    font-size: 14px;
    font-weight: 600;
}

.read-more:hover {
    color: #087b8d;
}


/* =========================
   SINGLE POST
========================= */

.single-container {
    width: 90%;
    max-width: 900px;
    margin: 60px auto;
}

.single-post {
    background: #ffffff;
    padding: 45px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
}

.single-date {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.single-title {
    margin: 0 0 30px;
    font-size: 40px;
    line-height: 1.25;
    color: #222;
}

.single-image {
    margin-bottom: 35px;
}

.single-image img {
    width: 100%;
    display: block;
}

.single-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.single-content h2,
.single-content h3 {
    color: #222;
    margin-top: 35px;
}

.single-content img {
    margin: 20px 0;
}

.back-blog {
    display: inline-block;
    margin-top: 35px;
    color: #159eb5;
    font-weight: 600;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    margin-top: 80px;
    background: #222;
    color: #ffffff;
    padding: 35px 20px;
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #bbb;
    font-size: 13px;
}


/* =========================
   NO POST
========================= */

.no-post {
    background: #ffffff;
    padding: 50px;
    text-align: center;
    color: #777;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-menu {
        gap: 15px;
    }

}

@media (max-width: 650px) {

    .header-container {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }

    .main-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .blog-hero {
        padding: 50px 20px;
    }

    .blog-hero h1 {
        font-size: 34px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .single-post {
        padding: 25px;
    }

    .single-title {
        font-size: 30px;
    }

}