/**
 * Priyo Directory Theme - Modernized Layout & Drawer Stylesheet
 * Author: মো. মোস্তফা খান
 */

:root {
    --primary-color: #047857;
    --primary-hover: #065f46;
    --primary-light: #ecfdf5;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-desktop: #f1f5f9;
    --bg-app: #ffffff;
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --danger-color: #ef4444;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.06);
    --app-max-width: 1200px;
    --radius-card: 16px;
    --radius-btn: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-desktop);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 85px;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ১. স্টিকি হেডার */
.app-header-sticky {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    width: 100%;
}

.header-inner-box {
    max-width: var(--app-max-width);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-icon-btn {
    background: none;
    border: none;
    padding: 6px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
}

.app-brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
}

.default-logo-text { text-align: center; }
.site-main-title { font-size: 1.4rem; font-weight: 800; color: var(--primary-color); display: block; line-height: 1.2; }
.site-sub-title { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: block; }

.notification-btn { position: relative; }
.notification-btn .red-dot {
    position: absolute; top: 2px; right: 2px;
    width: 9px; height: 9px; background: var(--danger-color);
    border-radius: 50%; border: 1.5px solid #ffffff;
}

/* ২. মূল কন্টেইনার */
.app-main-container {
    max-width: var(--app-max-width);
    margin: 0 auto;
    padding: 16px;
    background: var(--bg-app);
    min-height: calc(100vh - 150px);
}

@media (min-width: 1201px) {
    .app-main-container {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
    }
}

/* ৩. হিরো ইমেজ স্লাইডার */
.hero-slider-section {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    background: #000;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
}

@media (min-width: 600px) {
    .slider-wrapper { height: 280px; }
}

@media (min-width: 900px) {
    .slider-wrapper { height: 360px; }
}

.slider-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slider-slide.active { opacity: 1; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }

.slider-dots {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}

.slider-dots .dot {
    width: 8px; height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%; cursor: pointer;
}

.slider-dots .dot.active {
    background: #ffffff;
    width: 22px;
    border-radius: 10px;
}

/* ৪. চলন্ত নোটিশ টিকার */
.app-ticker-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 14px 6px 6px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.ticker-badge {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    margin-right: 12px;
    z-index: 2;
}

.ticker-track-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.ticker-content { display: inline-block; white-space: nowrap; }

.ticker-text-marquee {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    padding-left: 100%;
    animation: marquee-anim 16s linear infinite;
}

.ticker-track-wrapper:hover .ticker-text-marquee {
    animation-play-state: paused;
}

@keyframes marquee-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-arrow-btn {
    font-size: 1.6rem;
    color: var(--primary-color);
    font-weight: 700;
    padding-left: 8px;
    line-height: 1;
    z-index: 2;
}

/* ৫. লাইভ সার্চ বার */
.app-search-section { position: relative; margin-bottom: 16px; }
.search-input-group { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 16px; color: var(--text-muted); pointer-events: none; }

.search-input-group input {
    width: 100%;
    padding: 13px 18px 13px 48px;
    border: 1.5px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
}

.search-input-group input:focus { border-color: var(--primary-color); }

.search-results-dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #ffffff; border: 1px solid var(--border-color);
    border-radius: 14px; box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.12);
    z-index: 110; display: none; max-height: 320px; overflow-y: auto;
}

.search-results-dropdown ul { list-style: none; }
.search-results-dropdown li a { display: block; padding: 12px 18px; border-bottom: 1px solid var(--border-light); }
.search-results-dropdown li a:hover { background: var(--border-light); }
.search-results-dropdown .res-title { font-size: 1rem; font-weight: 700; color: var(--text-main); }
.search-results-dropdown .res-sub { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }

/* ৬. উপজেলা ফিল্টার চিপস */
.app-upazila-filter { margin-bottom: 16px; }
.section-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.section-heading h4 { font-size: 1.05rem; font-weight: 800; color: var(--primary-color); }

.upazila-chips-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.upazila-chips-scroll::-webkit-scrollbar { display: none; }

.upazila-chip {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.upazila-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ৭. ক্যাটাগরি গ্রিড (পিসিতে ৫/৬ কলাম, মোবাইলে ৩ কলাম) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

.service-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 16px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--primary-color);
}

.service-card:active { transform: scale(0.97); }

.card-icon-wrap {
    width: 65px; height: 65px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}

.card-icon-wrap img { max-width: 58px; max-height: 58px; object-fit: contain; }

.card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.3;
}

.card-count-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    border: 1px solid rgba(4, 120, 87, 0.2);
}

/* ৮. পেজ ও যোগাযোগ কার্ড স্টাইল */
.category-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.back-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.category-header-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

.contact-cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

@media (min-width: 768px) {
    .contact-cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-quick-card {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.contact-quick-card .c-icon {
    font-size: 1.8rem;
}

.contact-quick-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.contact-highlight {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.page-content-wrapper {
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ৯. সাইডবার ড্রয়ার মেনু */
.side-drawer {
    position: fixed; top: 0; left: -340px;
    width: 320px; height: 100%; background: #ffffff;
    z-index: 1001; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    display: flex; flex-direction: column;
}

.side-drawer.open { left: 0; }
.drawer-header-box { display: flex; justify-content: space-between; align-items: center; padding: 18px; border-bottom: 1px solid var(--border-color); }
.close-drawer-btn { background: none; border: none; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.drawer-scroll-body { flex-grow: 1; overflow-y: auto; padding: 16px; }
.drawer-section { margin-bottom: 20px; }
.section-badge-title { font-size: 0.82rem; font-weight: 800; color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px; display: block; }
.drawer-links-list { list-style: none; }
.drawer-links-list li a { display: block; padding: 10px 12px; font-size: 0.95rem; font-weight: 700; color: var(--text-main); border-radius: 8px; transition: all 0.15s ease; }
.drawer-links-list li a:hover { background: var(--border-light); color: var(--primary-color); padding-left: 16px; }

/* সাইডবারে আমাদের সম্পর্কে কার্ড */
.drawer-about-box {
    background: var(--bg-desktop);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
}

.drawer-about-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.drawer-about-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 8px;
}

.drawer-about-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ডেভেলপার ক্রেডিট */
.drawer-dev-credits {
    border-top: 1.5px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.dev-line {
    margin-top: 4px;
}

.dev-line strong {
    color: var(--primary-color);
}

.drawer-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45); z-index: 1000; display: none;
}
.drawer-overlay.open { display: block; }

/* ১০. স্টিকি বটম বার */
.app-bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    height: 64px;
    background: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1.5px solid var(--border-color);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.06);
    z-index: 998;
}

@media (min-width: 1201px) {
    .app-bottom-navbar {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}

.bottom-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    flex: 1;
}

.bottom-nav-link.active { color: var(--primary-color); }
.center-floating-profile { position: relative; top: -14px; }
.floating-circle-btn {
    width: 50px; height: 50px; background: var(--primary-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.38); border: 3px solid #ffffff;
}