@charset "UTF-8";

/*
 Theme Name:   AmarBangladesh.com Child Theme
 Theme URI:    https://amarbangladesh.com
 Description:  A premium custom child theme for amarbangladesh.com
 Author:       Ahmed Towfiq 
 Author URI:   https://amarbangladesh.com
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  amarbd-child
*/

/* Custom CSS এখান থেকে শুরু */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('fonts/SolaimanLipi-Normal.ttf') format('truetype'); /* ফাইলের নাম অনুযায়ী */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'SolaimanLipi', Arial, sans-serif !important;
}

html, body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   হেডারের জন্য প্রয়োজনীয় সিএসএস [Header Final Live.txt]
============================================= */
:root { 
    --primary-green: #006a4e;
    --primary-red: #bd0034;
    --transition: all 0.3s ease;
}

/* Base Wrapper */
.ab-header-wrapper { 
    width: 100% !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    transition: all 0.3s ease !important;
}
body {
    padding-top: 45px; /* আপনার হেডারের হাইট অনুযায়ী এটি অ্যাডজাস্ট করুন */
}

.ab-main-header { 
    background: #fff;
    border-bottom: 3px solid var(--primary-green); 
    padding: 10px 0; 
    transition: var(--transition);
}

.header-container { 
    max-width: 1240px; 
    margin: 0 auto;
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 15px; 
}

.logo-img { 
    height: 40px !important;
    width: auto !important; 
    max-width: 180px !important;
    display: block !important;
    transition: all 0.3s ease !important;
}
.logo-box a:hover .logo-img {
    transform: scale(1.15);
}

/* Shrink State */
.shrink .ab-main-header { 
    padding: 5px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.shrink .logo-img { 
    height: 34px;
}

/* Desktop Nav */
.main-nav ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    margin: 0; 
    padding: 0;
}
.nav-link { 
    text-decoration: none; 
    color: #333; 
    font-weight: 600; 
    font-size: 15px; 
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.nav-link:hover { 
    color: var(--primary-red); 
    border-bottom: 2px solid var(--primary-red);
}
.home-icon { font-size: 18px; color: var(--primary-red); }

/* Directory Desktop */
.header-directory { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    background: #f1f5f9; 
    padding: 4px 10px;
    border-radius: 25px; 
    border: 1px solid #ddd; 
}
.header-directory select { 
    border: none; 
    background: transparent; 
    font-size: 13px;
    outline: none; 
}
.dir-search-btn { 
    background: var(--primary-green); 
    color: white; 
    border: none; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: var(--transition);
}
.dir-search-btn:hover { background: var(--primary-red); }

/* Actions & Search */
.header-actions { display: flex; align-items: center; gap: 15px; }
.search-wrapper { display: flex; align-items: center; position: relative; }
#site-search-input { 
    width: 0; 
    opacity: 0; 
    transition: var(--transition); 
    border: 1px solid var(--primary-green); 
    border-radius: 20px; 
    outline: none;
    position: absolute; 
    right: 35px; 
    background: white; 
    height: 32px; 
}
#site-search-input.active { width: 160px; opacity: 1; padding: 0 12px; }
#search-toggle-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--primary-green); }

/* Mobile Menu Button */
.mobile-toggle-btn { 
    display: none; 
    background: #f8f9fa; 
    border: 1px solid #ddd;
    padding: 6px 10px; 
    border-radius: 5px; 
    font-size: 20px; 
    color: var(--primary-green); 
}

/* মোবাইল মেন্যু স্ক্রল করার জন্য আপডেট */
.mobile-nav-box { 
    position: absolute;
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: #fff; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    z-index: 999;
    
    /* স্ক্রল করার জন্য এই অংশটি যোগ করুন */
    max-height: 90vh; /* স্ক্রিনের ৮০% পর্যন্ত জায়গা নিবে */
    overflow-y: auto; /* কন্টেন্ট বেশি হলে ভেতরে স্ক্রল করার সুযোগ দিবে */
    -webkit-overflow-scrolling: touch; /* আইফোনে স্মুথ স্ক্রলিং এর জন্য */
}
.mobile-directory { padding: 15px; background: #f9f9f9; border-bottom: 1px solid #eee; }
.m-dir-fields { display: flex; flex-direction: column; gap: 8px; }
.m-dir-fields select, .m-dir-search-btn { padding: 10px; border-radius: 5px; border: 1px solid #ddd; width: 100%; }
.m-dir-search-btn { background: var(--primary-green); color: white; border: none; font-weight: bold; }
.mobile-links { list-style: none; padding: 0; margin: 0; }
.mobile-links li { border-bottom: 1px solid #f1f1f1; }
.mobile-links li a { text-decoration: none; color: #333; padding: 12px 20px; display: block; font-weight: 500; }

/* Responsive Settings */
@media (max-width: 991px) {
    .desktop-only { display: none !important; }
    .mobile-toggle-btn { display: block; }
    .logo-img { height: 35px; }
    .shrink .logo-img { height: 30px; }
    #site-search-input.active { width: 130px; }
}
/* ডিরেক্টরি ও মেন্যুকে বামে সরানো */
.header-directory {
    margin-right: auto; /* এটি লোগোর পাশের ডিরেক্টরিকে বামে রাখবে */
    margin-left: 15px;
}

.main-nav {
    margin-right: 20px; /* মেন্যুকে সোশ্যাল আইকন থেকে দূরে রাখবে */
}

/* সোশ্যাল মিডিয়া আইকন স্টাইল */
.header-social {
    display: flex;
    gap: 12px;
    margin-right: 15px;
}

.header-social a {
    color: var(--primary-green);
    font-size: 16px;
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--primary-red);
}

/* নতুন সার্চ বক্স স্টাইল (হেডারের নিচে) */
.search-dropdown-box {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid var(--primary-green);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 998;
}

.search-dropdown-box .header-container {
    display: flex;
    gap: 10px;
}

#site-search-input-new {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.search-dropdown-box button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* মোবাইল ভিউ অ্যাডজাস্টমেন্ট */
@media (max-width: 991px) {
    .header-social {
        margin-left: auto; /* মোবাইলে আইকনগুলো ডান দিকে থাকবে */
    }
}
/* ডেস্কটপ লেআউট অ্যাডজাস্টমেন্ট */
.header-container {
    justify-content: flex-start; /* সবকিছু বাম দিক থেকে শুরু হবে */
    gap: 15px; /* লোগো, ডিরেক্টরি ও মেন্যুর মাঝে গ্যাপ */
}

.header-directory.desktop-only {
    margin-left: 10px; /* লোগো থেকে সামান্য দূরে */
}

.main-nav.desktop-only {
    margin-left: 0; /* ডিরেক্টরির সাথেই লেগে থাকবে */
    flex-grow: 1; /* মেন্যু বাকি জায়গা নিয়ে ডানদিকের সোশ্যাল আইকনকে ঠেলে দেবে */
}

.header-social.desktop-only {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: auto; /* সোশ্যাল আইকনগুলো ডানে চলে যাবে */
}

/* মোবাইল মেন্যু ও সোশ্যাল মিডিয়া */
.mobile-social-menu {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.mobile-social-menu a {
    color: var(--primary-green);
    font-size: 20px;
}

/* মোবাইল ভিউতে উপরের সোশ্যাল আইকন হাইড করা */
@media (max-width: 991px) {
    .header-social.desktop-only {
        display: none !important;
    }
    
    .header-container {
        justify-content: space-between; /* মোবাইলে লোগো বামে আর বাটন ডানে থাকবে */
    }
}
/* =============================================
   ফুটারের জন্য প্রয়োজনীয় সিএসএস
============================================= */
        :root {
            --navy: #1b263b;
            --red: #e63946;
            --light-gray: #f8f9fa;
            --text-muted: #adb5bd;
        }

        .footer-wrapper {
            background-color: var(--navy);
            color: #ffffff;
            font-family: 'SolaimanLipi', sans-serif;
            padding: 60px 0 0 0;
            margin-top: 50px;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }

        .footer-column h3 {
            color: #ffffff;
            font-size: 20px;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background-color: var(--red);
        }

        .footer-column p {
            line-height: 1.8;
            font-size: 15px;
            color: var(--text-muted);
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links li a {
            color: var(--text-muted);
            text-decoration: none;
            transition: 0.3s;
            font-size: 15px;
            display: flex;
            align-items: center;
        }

        .footer-links li a:hover {
            color: #ffffff;
            padding-left: 8px;
        }

        .footer-links li a::before {
            content: '→';
            margin-right: 8px;
            color: var(--red);
        }

        .social-icons {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-icon {
            width: 35px;
            height: 35px;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: #fff;
            text-decoration: none;
            transition: 0.3s;
        }

        .social-icon:hover {
            background: var(--red);
            transform: translateY(-3px);
        }

        .newsletter-input {
            width: 100%;
            padding: 12px;
            border-radius: 5px;
            border: none;
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            margin-bottom: 10px;
            outline: none;
        }

        .newsletter-btn {
            width: 100%;
            padding: 12px;
            background: var(--red);
            color: #fff;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: 0.3s;
        }

        .newsletter-btn:hover {
            background: #c1121f;
        }

        /* Bottom Bar */
        .footer-bottom {
            background-color: rgba(0, 0, 0, 0.2);
            padding: 20px 0;
            margin-top: 60px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .bottom-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .copyright {
            font-size: 13px;
            color: var(--text-muted);
        }

        .bottom-links {
            display: flex;
            gap: 20px;
        }

        .bottom-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 13px;
            transition: 0.3s;
        }

        .bottom-links a:hover {
            color: #fff;
        }
       .footer-logo {
    margin-bottom: 10px;
    display: inline-block;
    overflow: hidden;
}

.footer-logo img {
    max-width: 140px; 
    height: auto;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-logo:hover img {
    transform: scale(1.15); 
    cursor: pointer;
}
	.footer-logo img {
        margin: 0 auto 15px; /* মোবাইলে লোগো সেন্টারে থাকবে */
    }

        /* মোবাইল ভিউ অপ্টিমাইজেশন */
@media (max-width: 768px) {
    .footer-wrapper {
        padding: 20px 0 0 0; /* প্যাডিং কমানো হয়েছে স্পেস বাঁচানোর জন্য */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px; /* কলামের মাঝখানের গ্যাপ কমানো হয়েছে */
        text-align: center; /* সব টেক্সট সেন্টারে */
    }

    .footer-column h3::after {
        left: 50%; /* আন্ডারলাইন মাঝখানে আনার জন্য */
        transform: translateX(-50%);
    }

    .footer-links li a {
        justify-content: center; /* লিঙ্কের এরো এবং টেক্সট সেন্টারে */
    }

    .footer-links li a::before {
        display: none; /* মোবাইল ভিউতে এরো সরিয়ে দিলে স্পেস কম লাগে এবং ক্লিন দেখায় */
    }

    .social-icons {
        justify-content: center; /* সোশ্যাল আইকন সেন্টারে */
    }

    .footer-bottom {
        margin-top: 30px;
    }

    .bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .bottom-links {
        justify-content: center;
        flex-wrap: wrap; /* ছোট ফোনে লিঙ্কগুলো ভেঙে নিচে আসবে */
        gap: 10px;
    }
}

/* =============================================
   গ্লোবাল পেজের ডিজাইন (Legal Pages) 
============================================= */

/* হিরো সেকশন - ফুল উইডথ ফিক্স */
.hero-splash {
    width: 100vw; /* স্ক্রিনের পুরো উইডথ নিশ্চিত করবে */
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw; /* মাঝখান থেকে বামে টেনে আনবে */
    margin-right: -50vw; /* মাঝখান থেকে ডানে টেনে আনবে */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0; 
    overflow: hidden;
    z-index: 1; /* হেডার বা অন্য এলিমেন্টের সাথে সংঘর্ষ এড়াতে */
}

/* ডার্ক ওভারলে ফিক্স */
.hero-splash .overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content { 
    position: relative;
    z-index: 5; 
    padding: 20px;
}

.hero-content .badge {
    background: var(--primary-red);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 15px;
    color: #fff;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-content .divider {
    height: 4px;
    width: 80px;
    background: #ffb400;
    margin: 15px auto;
    border-radius: 2px;
}

.hero-content .sub-title {
    font-size: 18px;
    opacity: 0.9;
}

/* কন্টেন্ট কন্টেইনার ফিক্স */
.legal-container {
    max-width: 1240px;
    margin: -60px auto 60px; /* হিরো ইমেজের ওপর তুলে আনা */
    padding: 0 15px;
    position: relative;
    z-index: 10;
}

.row-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* সাইডবার কার্ড */
.sidebar-nav-card {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 25px;
}

.sidebar-nav-card h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 20px;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* মেইন কন্টেন্ট কার্ড */
.main-article-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 45px;
    line-height: 1.8;
}

 /* ৩. সাইডবার */
        .sidebar {
            background: white;
            padding: 35px 25px;
            border-radius: 25px;
            box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
            height: fit-content;
            position: sticky;
            top: 100px;
            border: 1px solid rgba(0,106,78,0.1);
        }

        .sidebar-title {
            font-size: 18px;
            font-weight: 900;
            border-bottom: 4px solid var(--primary-green);
            padding-bottom: 12px;
            margin-bottom: 25px;
            color: var(--primary-green);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .sidebar-menu { list-style: none; padding: 0; margin: 0; }
        .sidebar-menu a {
            text-decoration: none; color: #475569; font-weight: 700;
            padding: 14px 18px; display: flex; align-items: center;
            gap: 15px; border-radius: 15px; transition: 0.3s;
        }
        .sidebar-menu a:hover, .sidebar-menu a.active {
            background: #f0f9f6; color: var(--primary-green); transform: translateX(10px);
        }

/* মোবাইলে সাইডবার লুকানোর নিয়ম */
@media (max-width: 991px) {
    .upazila-content-grid {
        grid-template-columns: 1fr;
    }
    .sidebar { display: none; }
    }
}

/* টেক্সট বিউটিফায়ার (গ্লোবাল ফর ACF & Legal Pages) */
.acf-rich-text p, 
.main-article-card p {
    font-size: 17px;
    line-height: 2;
    color: #333; 
    margin: 0 0 22px 0;
    text-align: justify;
}

.acf-rich-text p:first-of-type::first-letter,
.main-article-card p:first-of-type::first-letter {
    font-size: 64px;
    font-weight: 900;
    color: var(--primary-red);
    float: left;
    line-height: 0.8;
    margin: 6px 10px 0 0;
    font-family: 'SolaimanLipi', sans-serif;
}

.acf-rich-text strong, .acf-rich-text b,
.main-article-card strong, .main-article-card b {
    color: var(--primary-green); 
    font-weight: 800;
}

/* ToolTip সাইটেশন নাম্বারিং স্টাইল */
/* পুরো পেজের জন্য একবার কাউন্টার শুরু হবে */
body {
    counter-reset: source-counter;
}

/* নাম্বারিং এর মূল স্টাইল */
.nb-source {
    display: inline-block !important;
    position: relative !important;
    background: #e8f0fe !important;
    color: #1a73e8 !important;
    border: 1px solid #c2d7ff !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 18px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: bold !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin: 0 4px !important;
    vertical-align: middle !important;
    text-decoration: none !important;
}

/* এখানে counter-increment ঠিকভাবে কাজ করবে */
.nb-source::before {
    counter-increment: source-counter !important;
    content: counter(source-counter) !important;
}

/* বাকি কার্ড স্টাইল আগের মতোই থাকবে... */

/* কার্ড ডিজাইন */
.nb-card {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
    padding: 12px !important;
    z-index: 999999 !important;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
    border: 1px solid #d1d9e0 !important;
    pointer-events: auto !important;
    white-space: normal !important; /* টেক্সট র‍্যাপ হওয়ার জন্য */
    text-transform: none !important;
}

/* ইনভিজিবল ব্রিজ */
.nb-card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -15px;
    left: 0;
}

.nb-card p {
    font-size: 13px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
}

.nb-card a {
    font-size: 12px !important;
    color: #1a73e8 !important;
    display: block !important;
    border-top: 1px solid #eee !important;
    padding-top: 6px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    text-align: left !important;
}

/* হোভার ইফেক্ট */
.nb-source:hover .nb-card {
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 22px !important;
}