/* =============================================================
   SAIFULISLAM.BD THEME — MAIN STYLESHEET
   Design tokens derived directly from the supplied screenshot
   ============================================================= */

:root {
    /* Colors */
    --color-ink: #16213A;          /* dark navy text / footer bg */
    --color-navy-deep: #0F1B33;    /* darkest navy - stats bar / footer */
    --color-green: #1A7A4C;        /* primary brand green */
    --color-green-dark: #14603C;
    --color-green-light: #E8F5EE;
    --color-text: #344054;
    --color-text-light: #667085;
    --color-muted: #98A2B3;
    --color-border: #EAECF0;
    --color-bg: #FFFFFF;
    --color-bg-soft: #F7F8FA;
    --color-bg-hero: #EEF0F2;
    --color-blue: #2D6CDF;
    --color-orange: #F2994A;
    --color-purple: #7C5CFC;

    /* Type */
    --font-heading: 'Hind Siliguri', 'Poppins', sans-serif;
    --font-body: 'Hind Siliguri', 'Inter', sans-serif;

    /* Layout */
    --container: 1180px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --shadow-card: 0 4px 24px rgba(16, 24, 40, 0.06);
    --shadow-card-hover: 0 12px 32px rgba(16, 24, 40, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-ink);
    margin: 0;
    line-height: 1.25;
    font-weight: 700;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 8px;
    top: 8px;
    background: #fff;
    padding: 8px 14px;
    z-index: 10000;
    border-radius: var(--radius-sm);
}

:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

.eyebrow {
    display: inline-block;
    color: var(--color-green);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-head h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 10px;
}
.section-head p {
    color: var(--color-text-light);
    font-size: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
    background: var(--color-green);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(26,122,76,0.28);
}
.btn-outline {
    background: #fff;
    color: var(--color-ink);
    border-color: var(--color-border);
}
.btn-outline:hover {
    border-color: var(--color-ink);
    transform: translateY(-1px);
}
.btn-white {
    background: #fff;
    color: var(--color-green-dark);
}
.btn-white:hover {
    background: #f0f0f0;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* =============================== HEADER =============================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 24px;
}
.site-branding { display: flex; flex-direction: column; line-height: 1; }
.site-branding a { display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--font-heading);
    font-size: 23px;
    font-weight: 800;
    color: var(--color-ink);
}
.brand-name span { color: var(--color-green); }
.brand-tagline {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
    margin-top: 3px;
}
.brand-tagline .dot { margin: 0 4px; }

.primary-nav { flex: 1; display: flex; justify-content: center; }
.primary-nav ul { display: flex; align-items: center; gap: 34px; }
.primary-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 8px 0;
}
.primary-nav .current-menu-item > a,
.primary-nav a:hover { color: var(--color-green); }
.primary-nav .current-menu-item > a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--color-green);
    border-radius: 2px;
}
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 11px;
}
.primary-nav .sub-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease;
}
.primary-nav .menu-item-has-children:hover .sub-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.primary-nav .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.primary-nav .sub-menu a:hover { background: var(--color-bg-soft); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
    display: none;
    background: none; border: 1px solid var(--color-border);
    border-radius: 8px; width: 42px; height: 42px;
    align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: none; }
.menu-toggle svg { width: 20px; height: 20px; }

/* =============================== HERO =============================== */
.hero {
    background: var(--color-bg-hero);
    overflow: hidden;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 560px;
    padding-top: 30px;
}
.hero-content .eyebrow-line {
    width: 36px; height: 3px; background: var(--color-ink);
    margin-bottom: 14px; border-radius: 2px;
}
.hero-greet { font-size: 18px; color: var(--color-text); margin-bottom: 6px; }
.hero-content h1 {
    font-size: clamp(40px, 5.5vw, 62px);
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.hero-subtitle {
    color: var(--color-green-dark);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 16px;
}
.hero-desc {
    color: var(--color-text-light);
    font-size: 16px;
    max-width: 480px;
    margin-bottom: 22px;
}
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 22px;
    margin-bottom: 28px;
}
.hero-badges li {
    display: flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 600; color: var(--color-ink);
}
.hero-badges svg { width: 17px; height: 17px; color: var(--color-green); flex-shrink: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; align-self: end; height: 100%; }
.hero-visual-frame {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    aspect-ratio: 4/3.55;
}
.hero-visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-stat-card {
    position: absolute;
    left: -28px;
    bottom: 40px;
    background: var(--color-navy-deep);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 16px 40px rgba(15,27,51,0.35);
    min-width: 270px;
}
.hero-stat-card .stat-num { font-size: 30px; font-weight: 800; line-height: 1; white-space: nowrap; }
.hero-stat-card .stat-text { font-size: 13px; line-height: 1.4; opacity: 0.85; }
.hero-stat-card .stat-text strong { display: block; color: #fff; font-weight: 700; font-size: 13.5px; opacity: 1; }

/* =============================== SERVICES =============================== */
.services-section { padding: 90px 0 70px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 30px 22px;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--color-text-light); min-height: 84px; }
.service-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 14px; font-weight: 700; margin-top: 14px;
}
.service-link svg { width: 14px; height: 14px; }

.icon-wp { background: #E8F1FE; color: #2D6CDF; }
.icon-marketing { background: #E8F8EF; color: #1A7A4C; }
.icon-meta { background: #EAEAFE; color: #5B5FED; }
.icon-affiliate { background: #EDEAFE; color: #7C5CFC; }
.icon-academic { background: #FEF1E5; color: #F2994A; }
.service-link.c-blue { color: #2D6CDF; }
.service-link.c-green { color: #1A7A4C; }
.service-link.c-purple { color: #7C5CFC; }
.service-link.c-orange { color: #F2994A; }

/* =============================== STATS BAR =============================== */
.stats-bar {
    background: var(--color-navy-deep);
    border-radius: var(--radius-md);
    margin: 0 auto 90px;
    max-width: var(--container);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    display: flex; align-items: center; gap: 16px;
    padding: 30px 28px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; color: #fff; }
.stat-item .num { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-item .label { font-size: 13px; color: rgba(255,255,255,0.65); }

/* =============================== RECENT WORK + ACADEMIC =============================== */
.work-academic-section { padding-bottom: 80px; }
.work-academic-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
    align-items: start;
}
.work-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 22px;
}
.work-head h2 { font-size: 28px; }
.view-all { font-size: 14px; font-weight: 700; color: var(--color-blue); display: inline-flex; align-items: center; gap: 5px; }
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.project-card { }
.project-thumb {
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3.3;
    margin-bottom: 12px;
    background: #16213A;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card h4 { font-size: 15px; margin-bottom: 3px; }
.project-card .cat { font-size: 13px; color: var(--color-text-light); }

.academic-box {
    background: var(--color-bg-soft);
    border-radius: var(--radius-md);
    padding: 30px 28px;
    position: relative;
    overflow: hidden;
}
.academic-box .eyebrow { display:block; }
.academic-box h2 { font-size: 25px; margin-bottom: 18px; line-height: 1.3; }
.academic-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.academic-list li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--color-ink); font-weight: 500; }
.academic-list svg { width: 17px; height: 17px; color: var(--color-green); flex-shrink: 0; }
.academic-illustration { position: absolute; right: 18px; bottom: 18px; width: 86px; opacity: 0.9; }

/* =============================== TESTIMONIALS + ARTICLES =============================== */
.feedback-articles-section { padding-bottom: 90px; }
.feedback-articles-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 28px;
}
.fa-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.fa-head h2 { font-size: 26px; }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.testimonial-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px 22px;
}
.quote-mark { font-size: 30px; color: var(--color-green); font-family: Georgia, serif; line-height: 1; margin-bottom: 8px; display: block; }
.testimonial-card p.review { font-size: 14.5px; color: var(--color-text); margin-bottom: 18px; min-height: 84px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testimonial-author .name { font-size: 14px; font-weight: 700; color: var(--color-ink); }
.testimonial-author .role { font-size: 12.5px; color: var(--color-text-light); }
.testimonial-dots { display: flex; justify-content: center; gap: 6px; margin-top: 26px; }
.testimonial-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-border); }
.testimonial-dots span.active { background: var(--color-green); width: 20px; border-radius: 4px; }

.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-item { display: flex; gap: 14px; align-items: flex-start; }
.article-thumb {
    width: 78px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-item h4 { font-size: 14.5px; margin-bottom: 5px; line-height: 1.35; }
.article-item .date { font-size: 12.5px; color: var(--color-muted); }

/* =============================== CTA BAND =============================== */
.cta-band {
    background: var(--color-green);
    border-radius: var(--radius-md);
    margin: 0 auto 70px;
    max-width: var(--container);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-band-left { display: flex; align-items: center; gap: 18px; }
.cta-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cta-icon svg { width: 24px; height: 24px; color: #fff; }
.cta-band h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 14.5px; }

/* =============================== FOOTER =============================== */
.site-footer { background: var(--color-navy-deep); color: rgba(255,255,255,0.7); padding-top: 60px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr;
    gap: 30px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name span { color: #3DDC84; }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 240px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.footer-social a:hover { background: var(--color-green); }
.footer-social svg { width: 16px; height: 16px; color: #fff; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 14px; }
.footer-contact svg { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; color: #3DDC84; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,0.45); }

/* =============================== BLOG / SINGLE / PAGE GENERIC =============================== */
.page-hero {
    background: var(--color-bg-hero);
    padding: 60px 0 50px;
    text-align: center;
}
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.breadcrumb { font-size: 14px; color: var(--color-text-light); }
.breadcrumb a { color: var(--color-green); font-weight: 600; }

.content-section { padding: 70px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.blog-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.blog-card .thumb { aspect-ratio: 4/2.6; overflow: hidden; }
.blog-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px 22px 26px; }
.blog-card .meta { font-size: 12.5px; color: var(--color-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 17px; margin-bottom: 10px; }
.blog-card .excerpt { font-size: 14px; color: var(--color-text-light); }

.entry-content { max-width: 760px; margin: 0 auto; font-size: 16.5px; line-height: 1.85; }
.entry-content h2 { margin: 36px 0 14px; font-size: 26px; }
.entry-content h3 { margin: 28px 0 12px; font-size: 21px; }
.entry-content p { margin-bottom: 18px; }
.entry-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 22px; }
.entry-content blockquote {
    border-left: 4px solid var(--color-green);
    background: var(--color-bg-soft);
    padding: 16px 22px; margin: 24px 0; border-radius: 0 8px 8px 0;
    font-style: italic; color: var(--color-ink);
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span {
    width: 40px; height: 40px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--color-border); font-size: 14px; font-weight: 600;
}
.pagination .current { background: var(--color-green); color: #fff; border-color: var(--color-green); }

.comments-area { max-width: 760px; margin: 60px auto 0; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-body { border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 14px; }
.comment-form input, .comment-form textarea {
    width: 100%; border: 1px solid var(--color-border); border-radius: 8px;
    padding: 12px 14px; font-family: inherit; margin-bottom: 14px; font-size: 15px;
}
.comment-form textarea { min-height: 130px; }

.widget { margin-bottom: 40px; }
.widget h2.widget-title { font-size: 17px; margin-bottom: 16px; }

.sidebar-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; }

.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: 80px; color: var(--color-green); }

/* =============================== RESPONSIVE =============================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .work-academic-grid, .feedback-articles-grid { grid-template-columns: 1fr; }
    .project-grid, .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .sidebar-layout { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1fr; min-height: auto; padding: 30px 0; }
    .hero-visual { order: -1; aspect-ratio: 4/3; }
    .hero-stat-card { left: 16px; bottom: -22px; }
    .primary-nav { display: none; }
    .menu-toggle { display: flex; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .project-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .stat-item:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; text-align: center; }
    .cta-band-left { flex-direction: column; }
}

@media (max-width: 560px) {
    .header-inner { height: 70px; }
    .brand-name { font-size: 19px; }
    .header-cta .btn span { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Mobile nav drawer */
.mobile-nav {
    position: fixed; inset: 0; background: #fff; z-index: 1100;
    padding: 24px; transform: translateX(100%); transition: transform .25s ease;
    overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.mobile-nav-close { background: none; border: 1px solid var(--color-border); border-radius: 8px; width: 38px; height: 38px; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.mobile-nav .sub-menu { padding-left: 16px; }
.mobile-nav .sub-menu a { font-weight: 500; font-size: 15px; }
