/* =========================
   RESET & GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================
   LAYOUT
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.blog-section,
.blog-page {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

/* =========================
   BLOG GRID (CARDS)
========================= */
/* Grid */
.blog-grid {
    display: inline-grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Card */
.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Content */
.blog-content {
    padding: 20px;
}

.blog-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.blog-content p {
    font-size: 15px;
    margin-bottom: 16px;
    color: #555;
}

.read-more {
    display: inline-block;
    font-weight: bold;
    color: #0077cc;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .section-title {
        font-size: 26px;
    }

    .blog-card img {
        height: 180px;
    }
}

/* =========================
   BLOG PAGE LAYOUT
========================= */
.blog-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
}

/* =========================
   BLOG POST
========================= */
.post {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.post-info {
    font-size: 14px;
    color: #777;
    margin: 15px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post p {
    color: #555;
    margin-bottom: 15px;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 10px 22px;
    background: #091d3e;
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #091d3e;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0077ff;
}

/* =========================
   SIDEBAR CONTENT
========================= */
.widget input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.widget input:focus {
    outline: none;
    border-color: #0077ff;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
}

.widget ul li a {
    font-size: 14px;
    color: #0077ff;
    font-weight: 500;
    transition: padding-left 0.3s ease;
}

.widget ul li a:hover {
    padding-left: 6px;
}

.recent-posts span {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.contact-info li {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0077ff;
}

.contact-form button {
    padding: 12px;
    background: linear-gradient(135deg, #091d3e, #091d3e);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 26px;
    }

    .post h2 {
        font-size: 20px;
    }

    .blog-card img {
        height: 180px;
    }
}
