@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --bg-color: #1e1e2f;
    --primary-text: #ffffff;
    --secondary-text: #a0a0b0;
    --dark-text: #333;
    --container-bg: #2a2a3c;
    --accent-color: #00f5d4;
    --dashed-border: #4a4a5a;
    --content-bg: #f8f9fa;
    --card-border: #e9ecef;
    --btn-bg: #ffffff;
    --btn-text: #334155;
    --btn-border: #dee2e6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
}

/* Header / Navbar */
.navbar {
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-text);
    text-decoration: none;
    display: inline-block;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-color);
}
.logo img {
    height:40px; /* আপনি আপনার প্রয়োজন অনুযায়ী লোগোর উচ্চতা পরিবর্তন করতে পারেন */
    width: auto;  /* To maintain aspect ratio */
    display: block;
}


/* ================================================= */
/* HERO SECTION WITH ABSOLUTE POSITIONED AD SLOTS    */
/* ================================================= */

.hero-section {
    /* This is the key for absolute positioning of children */
    position: relative; 
    
    /* Keep original styles for centering the main content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5vh 20px 8vh 20px;
    /* overflow: hidden; optional, helps if something unexpected goes out of bounds */
}

.hero-ad-slot {
    /* This will not be displayed on mobile/tablet devices */
    display: none; 
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px; /* Adjust width as needed */
    height: 250px; /* Standard ad size, adjust as needed */
    
    /* For centering the ad content inside the slot */
    justify-content: center;
    align-items: center;
}

.hero-ad-slot.ad-left {
    left: 50px; /* Adjust spacing from the left edge */
}

.hero-ad-slot.ad-right {
    right: 50px; /* Adjust spacing from the right edge */
}

.hero-ad-slot img, 
.hero-ad-slot iframe {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 8px;
}

/* Show ads only on large screens (e.g., desktops) where there's enough space.
  1400px is a good starting point. You can adjust this value.
*/
@media (min-width: 1000px) { /* 1400px থেকে 1000px এ পরিবর্তন করা হয়েছে */
    .hero-ad-slot {
        display: flex; 
    }
}

.email-container {
    width: 100%;
    max-width: 650px;
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #00f5d47d;
    border-radius: 15px;
}

.email-container h2 {
    color: var(--secondary-text);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.email-display {
    background-color: var(--container-bg);
    border-radius: 12px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

#temp-email {
    flex-grow: 1;
    padding: 10px 15px;
    font-size: 18px;
    color: var(--primary-text);
    text-align: left;
}

.icon-btn {
    background-color: transparent;
    border: none;
    color: var(--secondary-text);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.refresh-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.refresh-btn:hover {
    background-color: #00d4b5;
}

.tagline {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.6;
    max-width: 500px;
    margin: 15px auto 0 auto; /* Margin-top যোগ করা হয়েছে */
    text-align: center; /* Text alignment নিশ্চিত করা হয়েছে */
}

/* Page Content (Light Background Area) */
.page-content {
    background-color: var(--content-bg);
    color: var(--dark-text);
    padding-bottom: 50px;
}


/* Controls Section */
.controls-section {
    width: 100%;
    padding: 25px 20px;
    border-bottom: 1px solid var(--card-border);
    background-color: #fff;
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.action-btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-border);
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    /* --- MODIFICATION START --- */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* হালকা ছায়া যোগ করা হলো */
    transition: all 0.3s ease;
    /* --- MODIFICATION END --- */
}

.action-btn:hover {
    background-color: #f1f3f5;
    border-color: #ced4da;
    /* --- MODIFICATION START --- */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* হোভার করলে ছায়া আরেকটু বাড়বে */
    /* --- MODIFICATION END --- */
}




/* --- New Styles for Inbox Area Layout with Ads 3 & 4 (FINAL CENTERING FIX) --- */

/* 1. Ad Slot 3 (Above Inbox) Style */
.ad-above-inbox {
    max-width: 800px; /* ইনবক্স কার্ডের max-width এর সমান */
    width: 100%;
    margin: 0 auto 20px auto; /* কেন্দ্রে রেখে নিচে ২০px দূরত্ব */
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* 2. Container for Inbox and the Right Ad Slot (Ad Slot 4) - THE FINAL FIX */
.inbox-ads-container {
    /* এটি কোনো max-width দেবে না, বরং ইনবক্স এবং বিজ্ঞাপনকে পজিশন করবে */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 40px 20px; 
    
    display: flex; 
    flex-direction: column; 
    align-items: center; /* এটি নিশ্চিত করে যে ইনবক্স কার্ড (যা max-width দ্বারা সীমাবদ্ধ) সব সময় কেন্দ্রে থাকবে */
    gap: 20px;
    position: relative; /* ডানদিকের বিজ্ঞাপনকে position: absolute করার জন্য দরকার */
}

/* বড় স্ক্রিনে লেআউট */
@media (min-width: 1200px) {
    /* এই সেকশনটিকে center করার দরকার নেই, কারণ ভেতরের inbox-area নিজেই center হয়ে যাচ্ছে */
    .inbox-ads-container {
        align-items: center; 
        padding: 0 20px 40px 20px; /* পজিশনিং এর জন্য পর্যাপ্ত padding নিশ্চিত করুন */
        min-height: 300px; /* বিজ্ঞাপনকে ধরে রাখার জন্য পর্যাপ্ত উচ্চতা নিশ্চিত করুন */
    }
}

/* 3. Inbox Area (The core content) - MUST REMAIN CENTERED */
.inbox-area {
    padding: 0; 
    width: 100%; 
    max-width: 800px; /* ইনবক্স কার্ডের প্রস্থ ঠিক রাখা হলো */
    /* যেহেতু parent-এর align-items: center আছে, তাই এটি স্বয়ংক্রিয়ভাবে কেন্দ্রে থাকবে */
    z-index: 10; /* নিশ্চিত করতে যে এটি বিজ্ঞাপনের উপরে থাকবে */
}

.inbox-card {
    max-width: none; 
    margin: 0;
}

/* 4. Style for the Ad Slot to the Right of the Inbox (Ad Slot 4) - ABSOLUTE POSITIONING */
.ad-right-inbox {
    display: none; /* ছোট স্ক্রিনে লুকানো */
    width: 300px; 
    height: 600px; 
    
    position: absolute; /* চূড়ান্ত ফিক্স: ইনবক্সকে না সরিয়ে, বিজ্ঞাপনটিকে তার ডানদিকে স্থাপন করুন */
    top: -100px;
    /* ডানদিকে পজিশন করার লজিক */
    left: calc(50% + 400px + 20px); /* (50% of container) + (Half of Inbox Max Width) + (Gap) */
    
    justify-content: center; 
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    z-index: 5; 
}

/* 5. Show Ad Slot 4 on large desktop */
@media (min-width: 1200px) {
    .ad-right-inbox {
        display: flex;
    }
}

/* 6. Media query to adjust the absolute positioning on smaller desktops (if needed) */
@media (min-width: 1000px) and (max-width: 1199px) {
    /* যখন স্ক্রিন ছোট, তখন বিজ্ঞাপনটিকে তার জায়গায় রেখে পুরো জিনিসটি center এ আনার চেষ্টা করা হবে
       কিন্তু 1200px এর কম স্ক্রিনে ইনবক্স কার্ড 100% (800px) দখল করে না, তাই এটিকে 
       right-edge এর তুলনায় position করতে হবে, অথবা কেবল display: none রাখা ভালো।
       আমরা ধরে নিচ্ছি, 1200px এর উপরেই বিজ্ঞাপন দেখাবো, তাহলে এটিই সবচেয়ে নিরাপদ।
    */
    .ad-right-inbox {
        display: none; /* ছোট স্ক্রিনে লুকানো */
    }
}

/* General image/iframe size fix */
.ad-above-inbox img, 
.ad-right-inbox img,
.ad-right-inbox iframe,
.ad-above-inbox iframe {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 8px;
}





/* Inbox Area */
.inbox-area {
    padding: 3px 3px;
}

.inbox-card {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.inbox-header {
    background-color: #343a40;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
    display: flex;
    font-weight: bold;
    font-size: 14px;
}
.header-item.sender { width: 30%; }
.header-item.subject { width: 55%; }
.header-item.view { width: 15%; text-align: right; }

.inbox-body {
    padding: 60px 20px;
}

.empty-inbox-placeholder {
    text-align: center;
    color: #6c757d;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #f1f3f5;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    font-size: 32px;
    color: #adb5bd;
}

.empty-inbox-placeholder h3 {
    font-size: 22px;
    color: #343a40;
    margin-bottom: 8px;
}

/* Info Area */
.info-area {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: center;
    padding: 0 20px;
}

.info-area h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.info-area p {
    color: #495057;
    line-height: 1.8;
}

/* =================================== */
/* New Style for Ad Slot 5 (Below Articles) */
/* =================================== */

.ad-below-articles {
    width: 100%;
    /* এটি আর্টিকেলের max-width (1100px) এর সাথে সামঞ্জস্য রেখে কেন্দ্রিক করবে */
    max-width: 1100px; 
    margin: 10px auto 10px auto; /* আর্টিকেলের সাথে দূরত্ব এবং ফুটারে যাওয়ার আগে দূরত্ব */
    min-height: 60px; /* ব্যানার বিজ্ঞাপনের জন্য ন্যূনতম উচ্চতা */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 6px;
}

.ad-below-articles img, 
.ad-below-articles iframe {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    border-radius: 8px;
}




/* =================================== */
/* POPULAR ARTICLES SECTION       */
/* =================================== */

.articles-section {
    padding: 50px 0;
    background-color: var(--content-bg); /* Uses the same light background */
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    color: var(--dark-text);
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.article-content {
    padding-right: 20px;
}

.article-content h3 {
    font-size: 18px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.article-content p {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.6;
}

.article-image {
    width: 150px;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-card {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }

    .article-image {
        width: 100%;
    }

    .article-content {
        padding-right: 0;
    }
}

.article-image {
    width: 150px;
    height: 100px; /* একটি নির্দিষ্ট উচ্চতা যোগ করা হয়েছে */
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%; /* উচ্চতা 100% করা হয়েছে */
    object-fit: cover; /* ছবিকে বিকৃত না করে কন্টেইনার পূরণ করতে বলা হয়েছে */
    border-radius: 8px;
    display: block;
}


/* =================================== */
/* FOOTER SECTION           */
/* =================================== */

.site-footer {
    background-color: var(--bg-color); /* Uses the dark background from root */
    color: var(--secondary-text);
    padding: 40px 0;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.footer-nav a {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-text);
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: var(--dashed-border);
    opacity: 0.5;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-legal {
    color: var(--secondary-text);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-btn {
    background-color: #3a3a4c;
    color: var(--primary-text);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.store-btn:hover {
    background-color: #4a4a5c;
}

.store-btn i {
    font-size: 20px;
}

.social-icon {
    background-color: #3a3a4c;
    color: var(--primary-text);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #4a4a5c;
}

.lang-switcher {
    background-color: #3a3a4c;
    color: var(--primary-text);
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.lang-switcher i.fa-globe {
    font-size: 16px;
}
.lang-switcher i.fa-caret-down {
    font-size: 12px;
}


/* Responsive Footer */
@media (max-width: 992px) {
    .footer-bottom {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =================================== */
/* HERO SECTION MOBILE STYLES          */
/* =================================== */

/* Initially hide mobile buttons on desktop */
.hero-actions-mobile {
    display: none;
}

/* Styles for screens smaller than 576px */
@media (max-width: 576px) {
    /* Hide the small icon buttons inside the email display on mobile */
    .email-display .icon-btn {
        display: none;
    }
    
    /* Make the email text smaller to fit */
    #temp-email {
        font-size: 16px;
        word-break: break-all; /* Allow email to wrap if too long */
    }

    /* Show and style the new mobile action buttons */
    .hero-actions-mobile {
        display: flex;
        gap: 15px;
        width: 100%;
        margin-top: 20px;
    }

    .hero-btn {
        flex: 1; /* Make buttons take equal width */
        padding: 15px;
        font-size: 16px;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transition: transform 0.2s ease;
    }
    
    .hero-btn:active {
        transform: scale(0.98);
    }

    /* Style for the "Refresh" button (dark) */
    .mobile-refresh-btn {
        background-color: #3a3a4c;
        color: var(--primary-text);
    }

    /* Style for the "Copy" button (accent color) */
    .mobile-copy-btn {
        background-color: var(--accent-color);
        color: var(--bg-color);
    }
}

/* =================================== */
/* 10 MINUTE MAIL HERO SECTION STYLES  */
/* =================================== */

.hero-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.email-display-10min {
    flex: 1;
    background-color: var(--container-bg);
    border-radius: 50px;
    padding: 8px 10px 8px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#temp-email-10min {
    flex-grow: 1;
    padding-right: 15px;
    font-size: 18px;
    color: var(--primary-text);
    text-align: left;
}

.timer-container {
    background-color: #3a3a4c;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--primary-text);
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timer-reset-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    font-size: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timer-reset-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.copy-btn-circular {
    background-color: #3b82f6;
    color: #fff;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.copy-btn-circular:hover {
    background-color: #2563eb;
}

/* Hide mobile buttons on desktop */
.hero-actions-mobile-10min {
    display: none;
}


/* =============================================== */
/* 10 MINUTE MAIL - MOBILE RESPONSIVE STYLES     */
/* =============================================== */

@media (max-width: 576px) {
    /* --- Styles for 10minutemail.html hero on mobile --- */

    /* Keep the email display bar, but adjust its margin and content alignment */
    .ten-minute-mail-hero .email-display-10min {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }

    /* Hide the desktop-specific timer and circular copy button */
    .ten-minute-mail-hero .timer-container,
    .ten-minute-mail-hero .copy-btn-circular {
        display: none;
    }

    /* Show and style the mobile-specific button container */
    .ten-minute-mail-hero .hero-actions-mobile-10min {
        display: flex;
        gap: 15px;
        width: 100%;
    }

    /* Style the timer button for mobile */
    .timer-button-mobile {
        padding: 12px 20px;
        background-color: #3a3a4c;
        color: var(--primary-text);
        border-radius: 10px;
        font-size: 18px;
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Style the copy button for mobile */
    .copy-button-mobile {
        flex-grow: 1;
        background-color: #3b82f6;
        color: #fff;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .copy-button-mobile:active {
        background-color: #2563eb;
    }
}

/* === Privacy Policy Section === */
.privacy-policy-section {
    padding: 40px 20px;
}

.privacy-policy-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden; /* This is important for the header's top corners */
}

.policy-header {
    background-color: #212529; /* Black background for header */
    color: #ffffff;
    padding: 15px 25px;
    font-weight: 700;
}

.policy-content {
    padding: 25px;
    color: var(--dark-text); /* Using root variable for dark text */
    line-height: 1.7;
}

.policy-content p {
    margin-bottom: 1em;
}

.policy-content p:last-child {
    margin-bottom: 0;
}

.policy-content a {
    color: #0d6efd; /* A standard blue for links */
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}



/* === FAQ Section (Final Design) === */
.faq-section {
    padding: 60px 20px;
    background-color: var(--content-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    background-color: #212529;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px; /* Rounded corners for the header */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    /* This will now take the full width of its container */
    display: block; 
    text-align: center;
}

.faq-header p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.7;
}

.faq-accordion .faq-item {
    background-color: #fff;
    border-radius: 50px; /* Increased border-radius as requested */
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.faq-accordion .faq-item:hover {
     box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 15px 20px; /* Adjusted padding for the new shape */
    cursor: pointer;
    gap: 20px;
}

.faq-question span {
    background-color: #f1f3f5;
    color: #868e96;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-question h3 {
    flex-grow: 1;
    font-size: 17px;
    color: var(--dark-text);
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-question i {
    font-size: 14px;
    color: #adb5bd;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq-answer p {
    padding: 0px 20px 20px 75px;
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

/* --- Active State Styles --- */
.faq-item.active .faq-question h3 {
    color: var(--accent-color);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}



/* === Contact Section === */
.contact-section {
    padding: 2px 2px;
}

.contact-card {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}

.contact-header {
    background-color: #212529;
    color: #fff;
    padding: 15px 25px;
    font-weight: 700;
}

.contact-body {
    padding: 30px;
}

.contact-intro {
    color: var(--dark-text);
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-intro p {
    margin-bottom: 1em;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-column {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #f1f3f5;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.contact-form select {
    color: #6c757d;
}
.contact-form select option[disabled] {
    display: none;
}

.contact-form textarea {
    resize: vertical;
    flex-grow: 1;
}

.form-full-width {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.send-btn {
    background-color: var(--accent-color);
    color: #1e1e2f;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.send-btn:hover {
    background-color: #00d4b5; /* Slightly darker accent */
}


/* ===================================
   Message View Modal (Well Designed)
   =================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 47, 0.7); /* Darker overlay from theme */
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background-color: #ffffff;
    color: var(--dark-text);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.modal-close-btn {
    background-color: #f1f3f5;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #868e96;
    transition: all 0.2s;
}
.modal-close-btn:hover {
    background-color: #e9ecef;
    color: #495057;
    transform: rotate(90deg);
}

.modal-meta {
    background-color: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid var(--card-border);
    font-size: 14px;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}
.meta-item:not(:last-child) {
    margin-bottom: 8px;
}

.meta-label {
    font-weight: 600;
    color: #495057;
    width: 50px; /* Fixed width for alignment */
}

.modal-body {
    overflow: hidden;
    flex-grow: 1;
    display: flex;
}

#modal-body-content {
    flex-grow: 1;
    overflow-y: auto;
}

#modal-body-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    padding: 12px 25px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.modal-action-btn {
    background-color: #fff;
    border: 1px solid var(--btn-border);
    color: var(--btn-text);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.modal-action-btn:hover {
    background-color: #f1f3f5;
    border-color: #ced4da;
}

.modal-action-btn i {
    color: #6c757d;
}

/* Policy Page Specific Fixes - Email Container Width Reduction */
.policy-hero .email-container {
    max-width: 500px;
}


/* tem-mail/style.css */

/* ... (অন্যান্য CSS কোড) ... */

/* Animation for spinning circle (Clockwise) */
@keyframes spin-circle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation for counter-spinning circle (Counter-Clockwise) */
@keyframes counter-spin-circle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

/* Style for the custom loading icon container */
.loading-mail-icon {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2em; 
    height: 2em; 
    font-size: 1.5rem; 
    vertical-align: middle;
}

.loading-mail-icon .mail-icon {
    z-index: 10; /* Ensure mail icon is above the circles */
    color: #888; 
}

/* Base style for both rotating circles */
.loading-mail-icon .refresh-circle,
.loading-mail-icon .refresh-circle-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    box-sizing: border-box;
    z-index: 0;
    opacity: 0.5; /* Always slightly visible for a static look */
}
.refresh-circle{
    display: none;;
}
/* --- OUTER Circle (Bigger/Slower/Blue) --- */
.loading-mail-icon .refresh-circle {
    border-top-color: var(--sidebar-active); /* Blue */
    border-width: 3px; /* Slightly thicker */
    animation: none; /* Off by default */
}

/* --- INNER Circle (Smaller/Faster/Accent) --- */
.loading-mail-icon .refresh-circle-inner {
    width: 80%; /* Smaller */
    height: 80%; /* Smaller */
    top: 10%; /* Center adjustment */
    left: 10%; /* Center adjustment */
    border-top-color: var(--accent-color); /* Cyan/Accent */
    border-right-color: var(--accent-color); /* Add a second visible edge for visual effect */
    border-width: 2px;
    opacity: 0; /* Hidden by default */
    transform-origin: center center;
    animation: none; /* Off by default */
}

/* --- WAITING/CONTINUOUS SPIN STATE --- */
.loading-mail-icon.waiting .refresh-circle {
    opacity: 1; /* Fully visible */
    animation: spin-circle 4s linear infinite; /* Slow spin clockwise */
}
.loading-mail-icon.waiting .refresh-circle-inner {
    opacity: 1; 
    animation: counter-spin-circle 2s linear infinite; /* Fast spin counter-clockwise */
}

/* --- REFRESHING/ACTIVE SPIN STATE (Faster Overall Spin) --- */
.loading-mail-icon.refreshing .refresh-circle {
    opacity: 1;
    animation: spin-circle 1s linear infinite; /* Fast spin clockwise */
}
.loading-mail-icon.refreshing .refresh-circle-inner {
    opacity: 1;
    animation: counter-spin-circle 0.5s linear infinite; /* Very fast spin counter-clockwise */
}

/* Ensure the empty inbox placeholder also uses this new spinner style */
.empty-inbox-placeholder .loading-mail-icon {
    font-size: 3rem; /* Make it larger for empty state */
}

/* Hide the old fa-arrows-rotate icon if it still appears somehow */
.empty-inbox-placeholder .fa-arrows-rotate {
    display: none; 
}
.refresh-circle-inner{
    display: none;
}

.article-list-header{
    display: none;
}





/* tem-mail/style.css: CSS FOR INLINE DETAIL VIEW & BACK BUTTON FIX */

/* --- নতুন ইনলাইন মেসেজ ডিটেইল ভিউ এর জন্য প্রয়োজনীয় স্টাইল --- */
.inbox-area {
    padding: 0; 
}
.inbox-card {
    box-shadow: none; 
    border: none;
    border-radius: 0;
}
.message-list {
    padding: 0px 0px; 
    display: flex;
    flex-direction: column;
}
.message-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}
.message-item:hover {
    background-color: #f1f3f5;
}
.message-sender { width: 30%; font-weight: 600; color: #343a40; }
.message-subject { width: 55%; color: #495057; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-view { width: 15%; text-align: right; color: #000 }




/* --- ডিটেইল ভিউ এর সময় Header এর রূপান্তর --- */

/* 1. Detail View Active হলে Sender Header Item এর স্টাইল পরিবর্তন */
.inbox-card.detail-view-active .inbox-header .header-item.sender {
    width: 100% !important; 
    padding: 0;
    /* FIX: ফন্ট সাইজ 0 করে দিলাম যাতে 'SENDER' লেখাটি না দেখা যায়, কিন্তু বাটনটির লেখা দেখা যাবে */
    font-size: 0; 
}

/* 2. Hide other list headers when in detail view */
.inbox-card.detail-view-active .inbox-header .header-item.subject,
.inbox-card.detail-view-active .inbox-header .header-item.view {
    display: none; 
}

/* 3. Back Button Style - এটিই মূল FIX */
.inbox-card.detail-view-active .inbox-header .header-item.sender button.back-to-inbox-btn {
    width: 100%;
    padding: 15px 25px; 
    text-align: left;
    background: transparent;
    color: #fff; 
    border: none;
    /* FIX: নিশ্চিত করা হলো যে বাটনটি flex ডিসপ্লে পাচ্ছে */
    display: flex;
    align-items: center;
    gap: 10px;
    /* FIX: বাটনটির নিজস্ব ফন্ট সাইজ সেট করা হলো, যা parent এর 0 ফন্ট সাইজকে ওভাররাইড করবে */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
.inbox-card.detail-view-active .inbox-header .header-item.sender button.back-to-inbox-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* --- ইনলাইন ডিটেইল ভিউ কন্টেইনার স্টাইল (Unchanged) --- */
.message-detail {
    background-color: #fff; 
    border: 1px solid var(--card-border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 0px 0px rgba(0,0,0,0.05);
    overflow: hidden;
}
.message-detail-header {
    background-color: #f8f9fa00;
    padding: 20px 25px;
    border-bottom: 1px solid var(--card-border);
}
.message-detail-header h3 {
    font-size: 20px;
    color: var(--dark-text);
    margin-bottom: 15px;
    line-height: 1.4;
}
.message-detail-meta {
    font-size: 14px;
    color: #6c757d;
}
.message-detail-meta p { margin: 0 0 5px 0; }
.message-detail-meta strong {
    color: var(--dark-text);
    display: inline-block;
    min-width: 60px;
}
.message-detail-body {
    padding: 20px;
    background-color: #fff;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.message-detail-iframe {
    width: 100%;
    height: 600px !important;
    border: none;
}
.message-detail .modal-footer { 
    padding: 12px 25px;
    border-top: 1px solid var(--card-border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px; 
}
.message-detail .modal-footer button {
     background-color: #fff;
    border: 1px solid var(--btn-border);
    color: var(--btn-text);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}
.message-detail .modal-footer button:hover {
     background-color: #f1f3f5;
}
.empty-inbox-placeholder {
    padding: 60px 20px; 
}


/* tem-mail/style.css (Line 524 onwards) */

/* --- নতুন ইনলাইন মেসেজ ডিটেইল ভিউ এর জন্য প্রয়োজনীয় স্টাইল --- */
.inbox-card.detail-view-active .inbox-header .header-item.sender {
    width: 100% !important; 
    padding: 0;
    /* FIX: ফন্ট সাইজ 0 করে দিলাম যাতে 'SENDER' লেখাটি না দেখা যায়, কিন্তু বাটনটির লেখা দেখা যাবে */
    font-size: 0; 
}

/* 2. Hide other list headers when in detail view */
.inbox-card.detail-view-active .inbox-header .header-item.subject,
.inbox-card.detail-view-active .inbox-header .header-item.view {
    display: none; 
}

/* 3. Back Button Style - এটিই মূল FIX */
.inbox-card.detail-view-active .inbox-header .header-item.sender button.back-to-inbox-btn {
    width: 100%;
    padding: 15px 25px; 
    text-align: left;
    background: transparent;
    color: #fff; 
    border: none;
    /* FIX: নিশ্চিত করা হলো যে বাটনটি flex ডিসপ্লে পাচ্ছে */
    display: flex;
    align-items: center;
    gap: 10px;
    /* FIX: বাটনটির নিজস্ব ফন্ট সাইজ সেট করা হলো, যা parent এর 0 ফন্ট সাইজকে ওভাররাইড করবে */
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
/* tem-mail/style.css (Added to the end or within the inbox-related sections) */

/* --- NEW STYLES FOR BACK TO INBOX BUTTON --- */

/* 1. Wrapper to take full width and hide list headers */
.inbox-card.detail-view-active .inbox-header {
    /* Set the header to display flex to stretch the wrapper */
    display: flex;
    padding: 0; /* Remove existing padding for full control */
}

/* 2. Hide all regular list header items when in detail view */
.inbox-card.detail-view-active .inbox-header .header-item {
    display: none !important;
}

/* 3. Style for the injected button wrapper */
.back-to-inbox-wrapper {
    /* This element takes up the full width of the header */
    width: 100%;
}

/* 4. Style for the actual button */
.back-to-inbox-btn {
    width: 100%;
    padding: 15px 25px; 
    text-align: left;
    background: transparent;
    color: #fff; 
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.back-to-inbox-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}