/* Insurance Advice Website - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.ad-space {
    text-align: center;
    padding: 10px;
    background: #fff3cd;
    border: 2px dashed #ffc107;
    margin: 0 auto;           /* আগের 0 20px এর জায়গায় */
    border-radius: 5px;
    color: #856404;
    font-size: 14px;
    font-weight: 500;

    max-width: 1200px;        /* প্রস্থ 1200px */
    height: 90px;             /* উচ্চতা 90px */
    display: flex;             /* flex দিয়ে সেন্টার */
    align-items: center;       /* উল্লম্বভাবে সেন্টার */
    justify-content: center;   /* আড়াআড়ি সেন্টার */
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FF6B35;
    font-size: 24px;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: linear-gradient(45deg, #FF6B35, #FFA500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: #FF6B35;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 82, 130, 0.8), rgba(44, 82, 130, 0.8)), 
                url('https://images.unsplash.com/photo-1511895426328-dc8714191300?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.content-area {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    height: fit-content;
}

/* Featured Articles Section */
.featured-section {
    background: #2C5282;
    color: white;
    padding: 40px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: white;
    color: #333;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-tag {
    background: #FF6B35;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* Blog Page Styles */
.blog-header {
    background: #2C5282;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
}

/* Contact Form Styles */
.contact-section {
    padding: 60px 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B35;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #FF6B35;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #e55a2b;
}

/* Sidebar Styles */
.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2C5282;
    font-weight: 700;
}

.poll-option {
    margin-bottom: 10px;
}

.poll-option input[type="radio"] {
    margin-right: 10px;
}

.poll-button {
    background: #2C5282;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

.poll-button:hover {
    background: #1e3a5f;
}
.ad-mid {
    max-width: 728px;
    height: 90px;
    margin: 24px auto;        /* পোস্টের মাঝে সেন্টার */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e3e5;
    border: 2px dashed #adb5bd;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

/* মোবাইল রেস্পন্সিভ */
@media (max-width: 768px) {
    .ad-mid {
        max-width: 320px;
        height: 50px;
    }
}

/* Footer */
.footer {
    background: #2C5282;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #FF6B35;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF6B35;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Privacy Policy & Terms Page */
.legal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.legal-content h2 {
    color: #2C5282;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.legal-content h3 {
    color: #FF6B35;
    margin-bottom: 15px;
    margin-top: 30px;
    font-size: 1.3rem;
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.legal-content ul li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .featured-section {
        padding: 20px;
    }

    .contact-form {
        padding: 20px;
    }

    .ad-space {
        margin: 0 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
