/* Custom CSS */
:root {
    --primary-color: #8b0000;
    /* Deep Red */
    --accent-color: #ffcc00;
    /* Golden Yellow */
    --dark-bg: #1a1a1a;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #f4f4f4;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background-color: rgba(0, 0, 0, 0.829);
    border-bottom: 3px solid var(--accent-color);
}

.logo {
    width: 50px;
    /* লোগো অনুযায়ী অ্যাডজাস্ট করুন */
}

.logo img {
    width: 100%;
    height: auto;
}

.navbar ul li a {
    color: #fff;
}

.btn-custom {
    background-color: var(--accent-color);
    color: #000 !important;
    font-weight: 600;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
}

.btn-custom:hover {
    background-color: #e6b800;
    color: #000;
}

/* Section Title Style */
.section-title {
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 50%;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 25%;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://scba.org.bd/images/upload/slider/imgOnefdfde523d3.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}


/* Services Section Styles */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border-bottom: 5px solid transparent;
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--accent-color);
    box-shadow: 0 15px 30px rgba(139, 0, 0, 0.1) !important;
}





/* Card styling - premium lawyer & bar association card */
.card-lawyer {
    border: none;
    border-radius: 28px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.61);
    overflow: hidden;
    height: 100%;
}

.card-lawyer:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 42px -12px rgba(0, 32, 64, 0.493);
}

.lawyer-avatar {
    width: 80px;
    height: 80px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: #2c5a7a;
    margin-bottom: 1rem;
}

.badge-expertise {
    background-color: #eef2ff;
    color: #1e4a6e;
    font-weight: 500;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}


.section-title-custom {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title-custom:after {
    content: '';
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    position: absolute;
    bottom: -10px;
    border-radius: 4px;
}


.btn-outline-custom {
    border: 1.5px solid #cbd5e1;
    background: white;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: 0.2s;
}

.btn-outline-custom:hover {
    border-color: #1e4a6e;
    background: #f1f5f9;
}













/* Rules & Helpline Styles */
.rules-box h3 {
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background-color: #fff5f5;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.helpline-card {
    transition: transform 0.3s ease;
}

.helpline-card:hover {
    transform: translateY(-5px);
}

.h-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.helpline-box {
    position: sticky;
    top: 100px;
    /* স্ক্রল করার সময় এটি যাতে আটকে থাকে */
}

.list-group-item {
    font-size: 0.95rem;
    padding: 10px 0;
    border-bottom: 1px dashed #ccc !important;
}


/* Driver Dashboard Styles */
.driver-info-card {
    border-radius: 20px;
}

.btn-bkash {
    background-color: #e2136e;
    /* bKash Official Pink */
    color: white;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    transition: 0.3s;
}

.btn-bkash:hover {
    background-color: #b10e56;
    color: white;
    transform: scale(1.02);
}

.payment-amount {
    background: #fff9e6;
    padding: 10px 20px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-color);
}

.badge {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 50px;
}

/* Input design adjustment */
#driver-status input:focus {
    box-shadow: none;
    background-color: #fff;
}

/* কার্ড মেয়াদ শেষ হলে ড্রাউভারদের দৃষ্টি আকর্ষণ করার জন্য */
.text-danger.fw-bold {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0.5;
    }
}


/* Notice Board */
.notice-board {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-top: 5px solid var(--primary-color);
}

.notice-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.notice-item:hover {
    background-color: #fff9e6;
    padding-left: 25px;
}



/* Notice Section Full Width Background */
.notice-full-bg {
    background-color: #f1f1f1;
    border-bottom: 1px solid #e8b9b9;
}

/* আগের ডিজাইন বজায় রাখা হয়েছে */
.notice-board {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
}

.notice-item {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.notice-item:last-child {
    border-bottom: none;
    /* শেষ নোটিশের নিচের বর্ডার থাকবে না */
}

.notice-item:hover {
    background-color: #fff9e6;
    /* হালকা গোল্ডেন আভা */
    padding-left: 25px;
}

.date-box {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* মোবাইল ভিউর জন্য ছোট অ্যাডজাস্টমেন্ট */
@media (max-width: 576px) {
    .notice-item {
        flex-direction: column;
        text-align: center;
    }

    .date-box {
        margin-bottom: 10px;
        margin-right: 0 !important;
    }
}




/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: #ddd;
    padding: 70px 0 30px 0;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.main-footer ul li {
    margin-bottom: 12px;
}

.main-footer ul li a {
    color: #bbb;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.95rem;
}

.main-footer ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: 0.3s;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Map Container */
.map-container {
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    filter: grayscale(0.2) contrast(1.1);
    /* ম্যাপে একটু ডার্ক থিম ভাইব দেওয়ার জন্য */
    transition: 0.5s;
}

.map-container iframe:hover {
    filter: grayscale(0);
}



/* Message Cards (Left Side) */
.message-card {
    background: #efefef;
    border: 1px solid #dcdcdc;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
}

.profile-img-container {
    flex-shrink: 0;
    background: white;
    padding: 4px;
    border: 1px solid #ccc;
    margin-right: 20px;
}

.profile-img-container img {
    width: 130px;
    height: auto;
    display: block;
}

.message-content h5 {
    color: #44546a;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 1.25rem;
}

.designation {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.separator {
    width: 60px;
    height: 1px;
    background-color: #999;
    margin: 10px 0;
}

.quote-text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
    margin-top: 10px;
}

.quote-mark {
    font-weight: bold;
    font-size: 1.2rem;
    color: #222;
}

.read-more {
    color: #0099ff;
    text-decoration: none;
}

/* Notices Section (Right Side) */
.notices-wrapper {
    background-color: #efefef;
    border: 1px solid #dcdcdc;
    min-height: 400px;
    position: relative;
}

.notices-title {
    background-color: #0099ff;
    color: white;
    display: inline-block;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: -1px;
    /* Align with top border */
}

.notices-body {
    padding: 15px 20px;
}

.notice-entry {
    margin-bottom: 20px;
}

.notice-date {
    display: block;
    color: #0099ff;
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.notice-link {
    color: #2e86de;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.3;
    display: block;
}

.notice-link:hover {
    text-decoration: underline;
}

/* "All Notices" Button fixed at bottom center */
.btn-holder {
    width: 100%;
    text-align: center;
    padding-bottom: 15px;
}

.btn-blue {
    background-color: #0099ff;
    color: white;
    border: none;
    padding: 6px 40px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.btn-blue:hover {
    background-color: #007acc;
    color: white;
}

/* Mobile responsiveness adjustments */
@media (max-width: 768px) {
    .message-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-img-container {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .separator {
        margin-left: auto;
        margin-right: auto;
    }
}


/* --- Unique Home Hero Redesign --- */
.main-hero-home {
    position: relative;
    background: url('https://scba.org.bd/images/upload/slider/imgOnefdfde523d3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    height: 50vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(44, 62, 80, 0.6) 100%);
    z-index: 1;
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
    font-size: 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Redesigned Contact Info Card --- */
.contact-info-card {
    background-color: #2c3e50;
    color: white;
}

.info-header {
    background: rgba(255, 255, 255, 0.05);
}

.icon-circle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    border-color: #ffc107 !important;
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f1f1;
    color: #2c3e50;
    text-decoration: none;
    transition: 0.3s;
}

.social-btn:hover {
    color: white;
    transform: translateY(-3px);
}

.social-btn.facebook:hover {
    background: #3b5998;
}

.social-btn.youtube:hover {
    background: #ff0000;
}

.social-btn.whatsapp:hover {
    background: #25d366;
}

/* Form improvements */
.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.15);
}


/* --- Member Photocard styles --- */
.member-photocard {
    background: transparent;
    padding: 10px;
    transition: transform 0.3s ease;
}

.member-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    /* Keeps all professional portraits uniformly proportioned */
    background-color: #f8f9fa;
}

.member-img-wrapper img {
    transition: transform 0.4s ease;
}

/* Hover dynamic animations */
.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    /* Matches your bar association dark blue theme */
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease-in-out;
}

.member-photocard:hover .member-overlay {
    opacity: 1;
    transform: translateY(0);
}

.member-photocard:hover img {
    transform: scale(1.06);
}

/* Rounded quick-action triggers inside card overlays */
.action-circle-btn {
    width: 42px;
    height: 42px;
    background-color: #ffffff;
    color: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.action-circle-btn:hover {
    background-color: #ffc107;
    /* Matches theme accent gold */
    color: #2c3e50;
    transform: translateY(-2px);
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Unified Hero Base */
/* আগের Hero Base স্টাইল ঠিক থাকবে */
.law-hero {
    position: relative;
    background: url('https://scba.org.bd/images/upload/slider/imgOnefdfde523d3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    height: 50vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.law-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(24, 36, 48, 0.75) 100%);
    z-index: 1;
}

.law-hero-content {
    position: relative;
    z-index: 2;
}

/* সার্চ বক্স ছোট করার মূল অংশ (750px) */
.search-box-container.compact-search {
    max-width: 750px;
    width: 100%;
}

.search-input-col {
    border-right: 1px solid #e9ecef;
}

/* ইনপুট ও ড্রপডাউন রিসেট */
.search-box-container .hero-input,
.search-box-container .hero-dropdown {
    border: none !important;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0;
    color: #333;
    height: 100%;
}

.search-box-container .hero-dropdown {
    background-position: right 1rem center;
    cursor: pointer;
}

.search-box-container .hero-input:focus,
.search-box-container .hero-dropdown:focus {
    box-shadow: none;
    background-color: #f8f9fa;
}

/* সার্চ বাটন */
.btn-search-submit {
    background-color: #d32f2f;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    transition: background-color 0.2s ease;
}

.btn-search-submit:hover {
    background-color: #b71c1c;
    color: #fff;
}

/* কুইক ট্যাগস */
.quick-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.hero-tag-pill {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.hero-tag-pill:hover {
    background: #fff;
    color: #182430;
    border-color: #fff;
    transform: translateY(-1px);
}

/* মোবাইল রেসপনসিভ */
@media (max-width: 767.98px) {
    .search-input-col {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .search-box-container .hero-input,
    .search-box-container .hero-dropdown {
        padding: 0.75rem 1rem;
    }

    .btn-search-submit {
        border-radius: 0 0 4px 4px !important;
    }
}