/* ===================================================
   VisitPlan - Main Stylesheet
   Design inspired by Follow_design.jpeg
   =================================================== */

/* ---- CSS Variables ---- */
:root {
    --primary: #1a56db;
    --primary-dark: #1341b0;
    --primary-light: #e8f0fe;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --font-bn: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow: 0 4px 16px rgba(0,0,0,.10);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all .25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-bn);
    background: var(--bg);
    color: var(--dark);
    line-height: 1.7;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Topbar ---- */
.topbar {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    padding: 6px 0;
}
.topbar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.topbar-text i { margin-right: 5px; color: var(--accent); }
.topbar-text.ms-auto { margin-left: auto; }

/* ---- Header ---- */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-light);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px;
    box-shadow: 0 4px 12px rgba(26,86,219,.35);
}
.logo-name {
    display: block;
    font-size: 20px; font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.logo-tagline {
    display: block;
    font-size: 10px; color: var(--gray);
    margin-top: 2px;
}

.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}
.header-search input {
    width: 100%; height: 42px;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0 48px 0 18px;
    font-family: var(--font-bn); font-size: 14px;
    background: var(--bg);
    outline: none;
    transition: var(--transition);
    color: var(--dark);
}
.header-search input:focus { border-color: var(--primary); background: white; }
.header-search button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px;
    background: var(--primary); color: white;
    border: none; border-radius: 50px;
    cursor: pointer; font-size: 14px;
    transition: var(--transition);
}
.header-search button:hover { background: var(--primary-dark); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.main-nav > a, .nav-dropdown-toggle {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px; font-weight: 500;
    color: var(--dark-3);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.main-nav > a:hover, .nav-dropdown-toggle:hover,
.main-nav > a.active { background: var(--primary-light); color: var(--primary); }
.main-nav > a i, .nav-dropdown-toggle i { color: var(--primary); font-size: 13px; }
.small { font-size: 10px !important; }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 220px;
    padding: 8px;
    z-index: 999;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px; color: var(--dark-3);
    transition: var(--transition);
}
.nav-dropdown-menu a:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown-menu a i { color: var(--primary); }

.mobile-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--dark); border-radius: 2px;
    transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    min-height: 460px;
    overflow: hidden;
    position: relative;
}
.hero-content {
    display: flex;
    align-items: stretch;
    min-height: 460px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-text {
    flex: 1;
    padding: 50px 40px 50px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}
.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 16px;
}
.hero-highlight {
    color: var(--accent);
    display: block;
}
.hero-subtitle {
    color: rgba(255,255,255,.8);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px 12px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    cursor: pointer;
    flex: 1;
    min-width: 140px;
}
.quick-link-card:hover {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.ql-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.ql-icon.blue { background: linear-gradient(135deg, #60a5fa, #2563eb); color: white; }
.ql-icon.orange { background: linear-gradient(135deg, #fb923c, #ea580c); color: white; }
.ql-icon.green { background: linear-gradient(135deg, #4ade80, #16a34a); color: white; }
.ql-icon.purple { background: linear-gradient(135deg, #c084fc, #9333ea); color: white; }
.ql-icon.pink { background: linear-gradient(135deg, #f472b6, #db2777); color: white; }

.ql-label { display: block; color: white; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.ql-sub { display: block; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.3; }

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-img-overlay {
    display: none;
}

/* ---- Features Bar ---- */
.features-bar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    box-shadow: var(--shadow-sm);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.feature-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 24px;
    border-right: 1px solid var(--border);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
    width: 42px; height: 42px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px;
    flex-shrink: 0;
}
.feature-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--dark); }
.feature-info span { font-size: 12px; color: var(--gray); }

/* ---- Categories Section ---- */
.categories-section { padding: 48px 0; }

.category-block {
    margin-bottom: 56px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
}

.category-block-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 100%);
}
.cat-title-wrap { display: flex; align-items: center; gap: 14px; }
.cat-icon-badge {
    width: 42px; height: 42px;
    background: rgba(255,255,255,.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 18px;
}
.cat-block-title { font-size: 1.25rem; font-weight: 700; color: white; }

.see-all-link {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    padding: 7px 16px;
    color: white; font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.see-all-link:hover { background: rgba(255,255,255,.3); }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 0;
}

.post-card { border-right: 1px solid var(--border); }
.post-card:last-child { border-right: none; }
.post-card-inner { display: block; height: 100%; transition: var(--transition); }
.post-card-inner:hover { background: var(--bg); }

.post-card-thumb {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.post-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.post-card-inner:hover .post-card-thumb img { transform: scale(1.05); }

.post-thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary);
}
.post-card-badge {
    position: absolute; bottom: 8px; left: 8px;
    background: var(--primary);
    color: white; font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 20px;
}

.post-card-body { padding: 14px 16px; }
.post-card-title {
    font-size: 13.5px; font-weight: 600;
    color: var(--dark);
    line-height: 1.45;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-card-inner:hover .post-card-title { color: var(--primary); }
.post-card-excerpt {
    font-size: 12px; color: var(--gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.5;
}
.post-card-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; color: var(--gray-light);
}
.post-card-meta i { margin-right: 3px; }
.post-read-more {
    color: var(--primary); font-weight: 600; font-size: 11px;
}

.category-more-btn {
    padding: 16px 28px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
}
.btn-more {
    display: inline-flex; align-items: center; gap: 10px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 14px; font-weight: 600;
    transition: var(--transition);
}
.btn-more:hover { background: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,86,219,.3); }

/* ---- Recent Posts ---- */
.recent-posts-section {
    background: var(--dark);
    padding: 56px 0 64px;
}
.section-header { text-align: center; margin-bottom: 36px; }
.section-title-wrap {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 8px;
}
.section-badge {
    background: var(--accent);
    color: white; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    letter-spacing: .5px;
}
.section-title { font-size: 1.8rem; font-weight: 700; color: white; }
.section-subtitle { color: rgba(255,255,255,.55); font-size: 14px; }

.recent-posts-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
}

.recent-post-card {
    background: var(--dark-2);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    transition: var(--transition);
}
.recent-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.recent-post-card.featured { grid-row: span 2; }

.recent-post-inner { display: flex; flex-direction: column; height: 100%; }
.recent-post-card.featured .recent-post-inner { flex-direction: column; }

.recent-post-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.recent-post-card.featured .recent-post-thumb { height: 260px; }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.recent-post-card:hover .recent-post-thumb img { transform: scale(1.06); }

.recent-thumb-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e3a5f, #1a56db);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: rgba(255,255,255,.4);
}

.recent-post-cat {
    position: absolute; top: 10px; left: 10px;
    background: var(--accent); color: white;
    font-size: 10px; font-weight: 700;
    padding: 3px 8px; border-radius: 20px;
}

.recent-post-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.recent-post-title {
    font-size: 14px; font-weight: 600; color: white;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    transition: var(--transition);
}
.recent-post-card.featured .recent-post-title { font-size: 17px; -webkit-line-clamp: 3; }
.recent-post-card:hover .recent-post-title { color: var(--accent); }

.recent-post-excerpt {
    font-size: 13px; color: rgba(255,255,255,.55);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.recent-post-meta {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: rgba(255,255,255,.4);
    margin-top: auto;
}
.read-link { color: var(--accent); font-weight: 600; }

/* ---- Page Hero Mini ---- */
.page-hero-mini {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    padding: 32px 0;
}
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,.55);
    margin-bottom: 12px;
}
.breadcrumb a { color: rgba(255,255,255,.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }
.page-hero-title { font-size: 1.8rem; font-weight: 700; color: white; }
.page-hero-desc { color: rgba(255,255,255,.65); margin-top: 8px; max-width: 600px; }

/* ---- Category Page ---- */
.category-page-section { padding: 40px 0 60px; }
.category-page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }

.posts-count-bar {
    background: white; border-radius: var(--radius-sm);
    padding: 12px 18px; margin-bottom: 20px;
    border: 1px solid var(--border);
    font-size: 14px; color: var(--gray);
}
.posts-count-bar strong { color: var(--primary); }

.posts-grid-page { display: flex; flex-direction: column; gap: 16px; }

.post-card-lg { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: var(--transition); }
.post-card-lg:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-lg-inner { display: flex; }
.post-card-lg-thumb { width: 200px; flex-shrink: 0; }
.post-card-lg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-thumb-placeholder-lg {
    width: 100%; height: 100%; min-height: 140px;
    background: linear-gradient(135deg, var(--primary-light), #dbeafe);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--primary);
}
.post-card-lg-body { padding: 18px; flex: 1; }
.post-cat-tag {
    display: inline-block;
    background: var(--primary-light); color: var(--primary);
    font-size: 11px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px;
    margin-bottom: 8px;
}
.post-card-lg-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; color: var(--dark); }
.post-card-lg:hover .post-card-lg-title { color: var(--primary); }
.post-card-lg-excerpt { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-lg-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-light); }
.btn-read { color: var(--primary); font-weight: 600; }

.empty-state {
    text-align: center; padding: 60px 20px;
    color: var(--gray-light);
}
.empty-state i { font-size: 3rem; margin-bottom: 12px; display: block; }

/* ---- Sidebar ---- */
.category-sidebar { display: flex; flex-direction: column; gap: 20px; }
.post-sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
    background: white; border-radius: var(--radius); border: 1px solid var(--border);
    padding: 20px;
}
.widget-title {
    font-size: 15px; font-weight: 700; color: var(--dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px; margin-bottom: 16px;
}
.category-list { display: flex; flex-direction: column; gap: 2px; }
.category-list li a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 10px; border-radius: 8px;
    font-size: 13.5px; color: var(--dark-3);
    transition: var(--transition);
}
.category-list li a:hover, .category-list li.active a {
    background: var(--primary-light); color: var(--primary);
}
.category-list li a i { color: var(--primary); font-size: 11px; }

.sidebar-post { border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-post a { display: block; }
.sidebar-post-title { display: block; font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; margin-bottom: 4px; transition: var(--transition); }
.sidebar-post a:hover .sidebar-post-title { color: var(--primary); }
.sidebar-post-date { font-size: 11px; color: var(--gray-light); }
.sidebar-post-date i { margin-right: 4px; }

/* ---- Post Page ---- */
.post-page-section { padding: 40px 0 60px; }
.post-page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 32px; }

.post-main { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 36px; }
.post-cat-badge {
    display: inline-block;
    background: var(--primary); color: white;
    font-size: 12px; font-weight: 600;
    padding: 4px 14px; border-radius: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.post-cat-badge:hover { background: var(--primary-dark); }
.post-main-title { font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1.35; margin-bottom: 16px; }
.post-meta-bar {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: var(--gray);
    padding-bottom: 20px; margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.post-meta-bar i { margin-right: 5px; color: var(--primary); }
.post-featured-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.post-featured-img img { width: 100%; max-height: 420px; object-fit: cover; }

.post-content { line-height: 1.9; font-size: 15.5px; color: var(--dark-3); }
.post-content h1, .post-content h2, .post-content h3 { color: var(--dark); font-weight: 700; margin: 24px 0 12px; }
.post-content h1 { font-size: 1.6rem; }
.post-content h2 { font-size: 1.35rem; }
.post-content h3 { font-size: 1.15rem; }
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol { padding-left: 24px; margin-bottom: 16px; }
.post-content li { margin-bottom: 6px; }
.post-content img { border-radius: 8px; margin: 16px 0; max-width: 100%; }
.post-content a { color: var(--primary); text-decoration: underline; }
.post-content strong { color: var(--dark); }
.post-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    padding: 16px 20px; border-radius: 0 8px 8px 0;
    margin: 20px 0; color: var(--dark-3);
}

.post-share {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin-top: 32px; padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 14px; font-weight: 600; color: var(--gray);
}
.share-btn {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: white;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }

/* ---- Pagination ---- */
.pagination-wrap { padding: 32px 0 0; }
.custom-pagination {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px;
}
.page-btn {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    font-size: 14px; font-weight: 500;
    background: white; border: 1px solid var(--border);
    color: var(--dark-3);
    transition: var(--transition);
    cursor: pointer;
}
.page-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.disabled { opacity: .4; cursor: not-allowed; }
.page-btn.dots { cursor: default; border: none; background: none; }

/* ---- Footer ---- */
.site-footer { background: var(--dark); }
.footer-top { padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-name { color: white; font-size: 20px; }
.footer-logo .logo-tagline { color: rgba(255,255,255,.45); }
.footer-desc { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 20px; max-width: 280px; }

.footer-links h4, .footer-contact h4 {
    font-size: 15px; font-weight: 700; color: white;
    margin-bottom: 16px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 13.5px; color: rgba(255,255,255,.5); transition: var(--transition); }
.footer-links ul li a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact ul li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: rgba(255,255,255,.5);
    margin-bottom: 10px;
}
.footer-contact ul li i { color: var(--accent); margin-top: 2px; width: 14px; }

.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 14px;
    transition: var(--transition);
}
.social-link:hover { transform: translateY(-3px); }
.social-link.facebook { background: #1877f2; }
.social-link.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link.youtube { background: #ff0000; }
.social-link.tiktok { background: #000; border: 1px solid rgba(255,255,255,.15); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 16px 0;
    text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }

}
/* ---- Tablet ≤ 1024px ---- */
@media (max-width: 1024px) {
    .posts-grid { grid-template-columns: repeat(3, 1fr); }
    .recent-posts-grid { grid-template-columns: 1fr 1fr; }
    .recent-post-card.featured { grid-row: span 1; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-image { width: 48%; }
    .hero-title { font-size: 2rem; }
}


@media (max-width: 768px) {

    /* Topbar: only phone */
    .topbar-text:nth-child(2),
    .topbar-text.ms-auto { display: none; }

    /* Header: logo LEFT, hamburger RIGHT */
    .header-inner {
        justify-content: space-between;
        padding: 10px 0;
    }
    .header-search { display: none; }
    .main-nav { display: none; }
    .mobile-toggle {
        display: flex;
        margin-left: auto;
        order: 3;
    }
    .logo { order: 1; }

    /* Mobile Drawer */
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0; right: 0;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 2000;
        padding: 24px 20px 20px;
        box-shadow: -8px 0 40px rgba(0,0,0,.2);
        overflow-y: auto;
        gap: 6px;
    }
    .main-nav.open > a,
    .main-nav.open .nav-dropdown-toggle {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 10px;
        border: 1px solid var(--border);
    }
    .main-nav.open .nav-dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 0 4px 16px;
        background: transparent;
    }
    .main-nav.open .nav-dropdown-menu a {
        color: var(--gray);
        font-size: 14px;
        padding: 8px 10px;
    }

    /* Hero */
    .hero { min-height: auto; }
    .hero-content { flex-direction: column; min-height: auto; padding: 28px 20px; }
    .hero-text { padding: 0 0 24px 0; }
    .hero-image {
        position: relative;
        width: 100%;
        height: 220px;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
    }
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 14px; margin-bottom: 24px; }
    .hero-quick-links { gap: 10px; }
    .quick-link-card {
        min-width: calc(50% - 5px);
        flex: none;
        padding: 14px 10px;
    }
    .ql-icon { width: 44px; height: 44px; font-size: 20px; margin-bottom: 8px; }
    .ql-label { font-size: 13px; }
    .ql-sub { font-size: 10px; }

    /* Features Bar */
    .features-grid { grid-template-columns: 1fr 1fr; }
    .feature-item { border-right: none; border-bottom: 1px solid var(--border); }
    .feature-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .feature-item:last-child { border-bottom: none; }

    /* Category */
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .post-card { border-right: none; border-bottom: 1px solid var(--border); }
    .post-card-thumb { height: 130px; }
    .category-block-header { flex-direction: column; align-items: flex-start; gap: 12px; }

    /* Recent Posts */
    .recent-posts-grid { grid-template-columns: 1fr; }

    /* Category/Post Page */
    .category-page-layout { grid-template-columns: 1fr; }
    .post-page-layout { grid-template-columns: 1fr; }
    .post-card-lg-inner { flex-direction: column; }
    .post-card-lg-thumb { width: 100%; height: 180px; }
    .post-main { padding: 20px; }
    .post-main-title { font-size: 1.4rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-desc { max-width: 100%; }
}

/* ---- Mobile ≤ 480px ---- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    /* Topbar: hide everything except phone */
    .topbar-text:not(:first-child) { display: none; }
    .topbar { font-size: 12px; }

    /* Header */
    .logo-tagline { display: none; }

    /* Hero */
    .hero-title { font-size: 1.45rem; }
    .hero-quick-links { gap: 8px; }
    .quick-link-card {
        min-width: calc(50% - 4px);
        padding: 12px 8px;
    }

    /* Posts Grid */
    .posts-grid { grid-template-columns: 1fr; }
    .post-card { border-bottom: 1px solid var(--border); border-right: none; }

    /* Page hero title */
    .page-hero-title { font-size: 1.4rem; }
    .category-block-header { padding: 14px 16px; }
    .category-more-btn { padding: 12px 16px; }
}

