/* =========================================================
   WebSeoDesigns Blog Page
   File: blog.css
   ========================================================= */

:root {
    --primary: #00498e;
    --secondary: #00a5a4;
    --dark: #202b38;
    --text: #536273;
    --muted: #718096;
    --light: #f5f8fb;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    --radius: 10px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.12);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 28px 0;
    position: relative;
    transition: color .25s ease;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: #b9ffff;
}

.main-navigation a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 17px;
    height: 2px;
    background: var(--secondary);
}

/* Hero */
.blog-hero {
    background: linear-gradient(135deg, #00498e 0%, #005d9f 55%, #00a5a4 100%);
    color: #fff;
    padding: 95px 0;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-hero h1 {
    margin-bottom: 20px;
    color: #fff;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.12;
    font-weight: 700;
}

.blog-hero p {
    max-width: 780px;
    margin: 0 auto;
    color: rgba(255,255,255,.95);
    font-size: 18px;
    line-height: 1.8;
}

/* Main */
.blog-section {
    padding: 85px 0;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 50px;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading > span {
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading h2 {
    margin: 8px 0 12px;
    color: var(--dark);
    font-size: 36px;
    line-height: 1.3;
}

.section-heading p {
    max-width: 760px;
    color: var(--text);
}

/* Blog cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.blog-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.blog-image-link {
    display: block;
    overflow: hidden;
    background: var(--light);
}

.blog-card img {
    width: 100%;
    height: 245px;
    object-fit: cover;
    transition: transform .4s ease;
}

.blog-card:hover img {
    transform: scale(1.04);
}

.blog-card-content {
    padding: 27px;
}

.blog-category {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.blog-card h2 {
    margin-bottom: 13px;
    color: var(--dark);
    font-size: 23px;
    line-height: 1.4;
}

.blog-card h2 a {
    color: var(--dark);
    text-decoration: none;
    transition: color .25s ease;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.blog-card p {
    margin-bottom: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.blog-card-footer span {
    color: var(--muted);
    font-size: 13px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.read-more:hover {
    color: var(--secondary);
}

/* Sidebar */
.blog-sidebar {
    align-self: start;
    position: sticky;
    top: 105px;
}

.sidebar-widget {
    margin-bottom: 40px;
}

.sidebar-widget h3 {
    margin-bottom: 8px;
    padding-bottom: 13px;
    border-bottom: 2px solid var(--secondary);
    color: var(--dark);
    font-size: 21px;
    line-height: 1.3;
}

.category-list,
.service-list {
    list-style: none;
}

.category-list li,
.service-list li {
    border-bottom: 1px solid var(--border);
}

.category-list li a,
.service-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    transition: all .25s ease;
}

.category-list li a:hover,
.service-list li a:hover {
    padding-left: 5px;
    color: var(--primary);
}

.category-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    height: 27px;
    padding: 0 7px;
    border-radius: 50px;
    background: var(--light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.sidebar-cta {
    padding: 30px 25px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #00498e, #00a5a4);
    color: #fff;
}

.sidebar-cta h3 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 23px;
    line-height: 1.3;
}

.sidebar-cta p {
    margin-bottom: 22px;
    color: rgba(255,255,255,.95);
    font-size: 14px;
    line-height: 1.7;
}

.sidebar-cta a {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 5px;
    background: #fff;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform .25s ease;
}

.sidebar-cta a:hover {
    transform: translateY(-2px);
}

/* Footer */
.site-footer {
    padding: 65px 0 25px;
    background: var(--dark);
    color: #d7dee7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 45px;
}

.footer-about h3,
.footer-links h3 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 20px;
}

.footer-about p {
    max-width: 520px;
    color: #d7dee7;
    font-size: 15px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links a {
    margin-bottom: 9px;
    color: #c8d1db;
    text-decoration: none;
    font-size: 14px;
    transition: color .25s ease;
}

.footer-links a:hover {
    color: #b9ffff;
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
    text-align: center;
}

.footer-bottom p {
    color: #aeb8c4;
    font-size: 13px;
}

/* Tablet */
@media (max-width: 1050px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .sidebar-cta {
        height: fit-content;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        width: calc(100% - 30px);
    }

    .header-inner {
        flex-direction: column;
        padding: 18px 0;
    }

    .main-navigation {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 18px;
    }

    .main-navigation a {
        padding: 5px 0;
    }

    .main-navigation a.active::after {
        display: none;
    }

    .blog-hero {
        padding: 65px 0;
    }

    .blog-hero h1 {
        font-size: 38px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .blog-section {
        padding: 60px 0;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 30px;
    }

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

/* Small mobile */
@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }

    .main-navigation {
        gap: 7px 13px;
    }

    .main-navigation a {
        font-size: 14px;
    }

    .blog-hero h1 {
        font-size: 32px;
    }

    .blog-card-content {
        padding: 22px;
    }

    .blog-card h2 {
        font-size: 21px;
    }

    .blog-card img {
        height: 220px;
    }

    .blog-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
