/*
Theme Name: Bangla Dainik
Theme URI: https://www.bangladainik.com
Author: Md Zahedul Islam
Version: 1.0.0
Description: Professional Bengali news portal theme inspired by leading newspapers.
*/

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'SolaimanLipi', Arial, sans-serif; background-color: #f7f7f7; color: #333; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: #d11324; }

/* Header Design */
.site-header { background: #fff; border-bottom: 3px solid #006a4e; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.top-bar { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: #555; border-bottom: 1px solid #eee; }
.logo-area { text-align: center; padding: 20px 0; }
.logo-area h1 { font-size: 40px; color: #d11324; font-weight: 700; letter-spacing: -1px; }

/* Navigation & Mobile Menu */
.main-nav { background: #56a3ec; position: relative; }
.nav-menu { display: flex; list-style: none; justify-content: center; }
.nav-menu li a { display: block; color: #fff; padding: 12px 20px; font-size: 16px; transition: background 0.3s; }
.nav-menu li a:hover { background: #ffd966; color: #ef0404; }

/* Hamburger Menu Icon (Hidden on Desktop) */
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; padding: 10px 15px; }

/* Home Grid Layout */
.home-grid { display: grid; grid-template-columns: 2.3fr 1fr; gap: 25px; margin-top: 25px; }
.lead-news { background: #fff; padding: 15px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px; }
.lead-news img { width: 100%; height: auto; border-radius: 4px; transition: transform 0.3s; }
.lead-news:hover img { transform: scale(1.01); }
.lead-news h2 { font-size: 28px; margin: 15px 0 10px 0; line-height: 1.3; }

.sub-news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.news-card { background: #fff; padding: 12px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: box-shadow 0.3s; }
.news-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.news-card img { width: 100%; height: 130px; object-fit: cover; border-radius: 3px; }
.news-card h3 { font-size: 16px; margin-top: 10px; line-height: 1.4; }

/* Footer */
.site-footer { background: #fff; color: #bbb; padding: 35px 0; margin-top: 50px; text-align: center; } 

/* Responsive Media Queries for Mobile & Tablets */
@media (max-width: 992px) {
    .home-grid { grid-template-columns: 1fr; }
    .category-sections .cat-section > div:last-child { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .top-bar { flex-direction: column; text-align: center; gap: 5px; }
    .logo-area h1 { font-size: 30px; }
    
    /* Mobile Menu Toggle Display */
    .menu-toggle { display: block; }
    .nav-menu { display: none; flex-direction: column; width: 100%; background: #004d38; }
    .nav-menu.active { display: flex; }
    .nav-menu li a { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }

    .sub-news-grid { grid-template-columns: 1fr; }
    .category-sections .cat-section > div:last-child { grid-template-columns: 1fr !important; }
    .lead-news h2 { font-size: 22px; }
}

/* Footer Professional Styling */
.site-footer {
    background: #4eb2f5;
    color: #d11324;
    padding: 40px 0 20px 0;
    margin-top: 50px;
    border-top: 4px solid #006a4e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    color: #ff0000;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #d11324;
    display: inline-block;
    padding-bottom: 5px;
}

.footer-logo {
    color: #d11324;
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-about {
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
}

.footer-links, .default-footer-links {
    list-style: none;
}

.footer-links li, .default-footer-links li {
    margin-bottom: 8px;
}

.footer-links a, .default-footer-links a {
    color: #fff; 
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover, .default-footer-links a:hover {
    color: #1877f2; 
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.social-icon {
    display: inline-block;
    padding: 6px 12px;
    background: #222;
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    transition: background 0.3s;
}

.social-icon.fb:hover { background: #1877f2; }
.social-icon.yt:hover { background: #ff0000; }
.social-icon.x:hover { background: #333; }

.contact-info {
    font-size: 13px;
    line-height: 1.8;
    color: #fff;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    font-size: 13px;
    color: #fff;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* আমার খবর পেজ কার্ড ও ফর্ম ডিজাইন */
.amar-khabor-container {
    font-family: 'SolaimanLipi', Arial, sans-serif;
}

.news-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #d9381e; /* আপনার ওয়েবসাইটের ব্র্যান্ড কালার (লাল) */
}

.form-title {
    font-size: 24px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #444444;
    margin-bottom: 8px;
    font-size: 15px;
}

.required {
    color: #d9381e;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* ফোকাস এফেক্ট (Focus Effect) */
.form-control:focus {
    border-color: #d9381e;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 56, 30, 0.15);
    outline: none;
}

textarea.form-control {
    resize: vertical;
}

.form-file-input {
    padding: 10px 0;
    font-size: 14px;
}

.help-text {
    display: block;
    color: #777777;
    margin-top: 5px;
    font-size: 13px;
}

/* সাবমিশন বাটন স্টাইল */
.submit-btn {
    background-color: #d9381e;
    color: #ffffff;
    border: none;
    padding: 14px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #b82d16;
}

/* সাকসেস অ্যালার্ট মেসেজ */
.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
    margin-bottom: 20px;
    font-size: 15px;
}


/* সাবমিশন বাটন আকর্ষণীয় ডিজাইন */
.submit-btn {
    background: linear-gradient(135deg, #d9381e, #b82d16);
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 4px 15px rgba(217, 56, 30, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #b82d16, #962210);
    box-shadow: 0 6px 20px rgba(217, 56, 30, 0.4);
    transform: translateY(-2px);
}

/* সাকসেস পপ-আপ মডাল ডিজাইন */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.popup-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scaleUp 0.3s ease-in-out;
}

.popup-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.popup-card h3 {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 10px;
    font-weight: bold;
}

.popup-card p {
    font-size: 15px;
    color:#77777;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-close-btn {
    background-color: #006a4e; /* বাংলার সবুজ কালার */
    color: #ffffff;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.popup-close-btn:hover {
    background-color: #00523c;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

@media (max-width: 768px) {
    body.single-post .full-banner-img {
        max-height: 54px !important;
    }
    body.single-post .header-side-ad {
        display: none;
    }
}


.bd-share-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bd-share-label {
    font-weight: 700;
    font-size: 13px;
    color: #0f172a;
}

.bd-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bd-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bd-share-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* সংবাদদাতার অংশে কমপ্যাক্ট স্টাইল */
.bd-share-top {
    margin: 10px 0 14px;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

/* পেজের শেষ অংশে হাইলাইট বক্স স্টাইল */
.bd-share-bottom {
    margin: 22px 0;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0d6e4e;
    border-radius: 6px;
}

.bd-fb { background: #1877f2; }
.bd-wa { background: #25d366; }
.bd-tw { background: #0f172a; }
.bd-tg { background: #0088cc; }
.bd-li { background: #0a66c2; }
.bd-copy { background: #d11324; }

@media (max-width: 768px) {
    .bd-share-btn {
        padding: 5px 9px;
        font-size: 11.5px;
    }
}