/* ===== Variables & Base ===== */
.gtml-blog-wrapper {
    --gtml-green: #16A34A;
    --gtml-green-dark: #15803D;
    --gtml-navy: #142D59;
    --gtml-hero-bg: #F4FBF7;
    --gtml-border: #E2E8F0;
    --gtml-text-muted: #64748B;
    --gtml-radius: 16px;
    --gtml-radius-sm: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--gtml-navy);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

/* ===== Hero ===== */
.gtml-hero {
    background: var(--gtml-hero-bg);
    padding: 60px 24px;
    overflow: hidden;
}
.gtml-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}
/* .gtml-hero-badge সরিয়ে দেওয়া হয়েছে */

.gtml-hero-title {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--gtml-navy);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.gtml-hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gtml-text-muted);
    max-width: 520px;
    margin: 0;
}

/* ===== Hero Illustration ===== */
.gtml-hero-illustration {
    position: relative;
    height: 300px;
    display: block !important;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
    z-index: 10 !important;
}

.gtml-ill-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background: #E6F7EC;
    border-radius: 50%;
    z-index: 1 !important;
}

.gtml-ill-notebook {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 200px;
    background: #fff !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(20, 45, 89, 0.08);
    z-index: 2 !important;
    padding: 24px 20px 20px 30px;
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

.gtml-ill-spiral {
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    display: flex !important;
    flex-direction: column;
    gap: 12px;
}
.gtml-ill-spiral span {
    width: 10px;
    height: 10px;
    background: #E2E8F0;
    border-radius: 50%;
}
.gtml-ill-lines {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}
.gtml-ill-line {
    height: 6px;
    background: #E2E8F0;
    border-radius: 4px;
}

.gtml-ill-bulb {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #fff !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.15);
    z-index: 5 !important;
}
.gtml-ill-bulb svg { width: 30px; height: 30px; display: block !important; }

.gtml-ill-pencil {
    position: absolute;
    bottom: 10px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #142D59 !important;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(20, 45, 89, 0.2);
    z-index: 5 !important;
    transform: rotate(15deg);
}
.gtml-ill-pencil svg { width: 24px; height: 24px; display: block !important; }


/* ===== Layout ===== */
.gtml-blog-layout {
    max-width: 1200px;
    margin: 48px auto 80px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ===== Blog Header ===== */
.gtml-blog-header {
    margin-bottom: 32px;
}
.gtml-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gtml-navy);
    margin: 0 0 6px;
}
.gtml-section-desc {
    color: var(--gtml-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== Grid (Desktop 3 Cols) ===== */
.gtml-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Card ===== */
.gtml-post-card {
    background: #fff;
    border: 1px solid var(--gtml-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.gtml-post-card:hover {
    box-shadow: 0 12px 30px rgba(20, 45, 89, 0.08);
    transform: translateY(-4px);
}
.gtml-card-image-link {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F1F5F9;
}
.gtml-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.gtml-post-card:hover .gtml-card-image {
    transform: scale(1.05);
}
.gtml-card-placeholder {
    background: linear-gradient(135deg, #F0FAF5 0%, #D1FAE5 100%);
}
.gtml-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.gtml-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--gtml-green);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    text-decoration: none;
    align-self: flex-start;
}
.gtml-card-category:hover { background: var(--gtml-green-dark); color: #fff;}
.gtml-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
}
.gtml-card-title a {
    color: var(--gtml-navy);
    text-decoration: none;
}
.gtml-card-title a:hover { color: var(--gtml-green); }
.gtml-card-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gtml-text-muted);
    margin-bottom: 12px;
}
.gtml-card-date::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: cover;
}
.gtml-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gtml-text-muted);
    margin: 0 0 20px;
    flex: 1;
}
.gtml-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gtml-green);
    text-decoration: none;
    align-self: flex-start;
}
.gtml-card-readmore::after {
    content: "→";
    font-size: 1.1rem;
    line-height: 1;
}

/* ===== Sidebar ===== */
.gtml-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}
.gtml-widget {
    background: #fff;
    border: 1px solid var(--gtml-border);
    border-radius: 12px;
    padding: 24px;
}
.gtml-widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gtml-navy);
    margin: 0 0 20px;
}

/* Search */
.gtml-search-form {
    display: flex;
    border: 1px solid var(--gtml-border);
    border-radius: var(--gtml-radius-sm);
    overflow: hidden;
    background: #fff;
}
.gtml-search-input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: none;
    font-size: 0.9rem;
    outline: none;
}
.gtml-search-btn {
    background: var(--gtml-green);
    border: none;
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
}
.gtml-search-btn:hover { background: var(--gtml-green-dark); }

/* Categories */
.gtml-category-list { list-style: none; margin: 0; padding: 0; }
.gtml-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: var(--gtml-navy);
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid #F8FAFC;
}
.gtml-category-name { display: flex; align-items: center; gap: 10px; }
.gtml-category-count {
    background: #F1F5F9;
    color: var(--gtml-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
}

/* Recent Posts */
.gtml-recent-list { list-style: none; margin: 0; padding: 0; }
.gtml-recent-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #F8FAFC; }
.gtml-recent-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: #F1F5F9; }
.gtml-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtml-recent-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; justify-content: center; }
.gtml-recent-title { font-size: 0.9rem; font-weight: 600; color: var(--gtml-navy); text-decoration: none; line-height: 1.4; }
.gtml-recent-date { font-size: 0.8rem; color: var(--gtml-text-muted); }

/* Pagination */
.gtml-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.gtml-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--gtml-border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gtml-navy);
    text-decoration: none;
}
.gtml-pagination .page-numbers.current {
    background: var(--gtml-green);
    border-color: var(--gtml-green);
    color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gtml-blog-layout { grid-template-columns: 1fr; }
    .gtml-sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
    .gtml-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .gtml-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .gtml-hero-desc { margin: 0 auto; }
    .gtml-hero-illustration { height: 280px; margin-top: 20px;}
}

/* ===== Mobile (2 Columns) ===== */
@media (max-width: 768px) {
    .gtml-hero { padding: 40px 16px; }
    .gtml-blog-layout { padding: 0 16px; margin-top: 30px; }
    
    /* Force 2 Columns on Mobile */
    .gtml-posts-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px !important; 
    }
    
    /* Mobile Text Sizes */
    .gtml-card-body { padding: 12px !important; }
    .gtml-card-title { font-size: 0.95rem !important; }
    .gtml-card-excerpt { font-size: 0.8rem !important; line-height: 1.4 !important; }
    .gtml-card-category { font-size: 10px !important; padding: 3px 8px !important; }
    .gtml-card-date { font-size: 0.75rem !important; }
    
    /* Show Illustration on Mobile */
    .gtml-hero-illustration { 
        height: 250px !important; 
        display: block !important; 
        margin-top: 30px !important;
        transform: scale(0.9);
    }
    
    .gtml-sidebar { grid-template-columns: 1fr; }
    .gtml-hero-title { font-size: 1.8rem !important; }
}