/*
 * ----------------------------------------------------
 * Basic Reset and Global Styles
 * ----------------------------------------------------
 */
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@400;700&display=swap'); /* Using a common Arabic font */

:root {
    --primary-color: #6a1b9a; /* Deep Purple (from video aesthetics) */
    --secondary-color: #fdd835; /* Yellow/Gold accent for contrast */
    --call-color: #e53935; /* Red for Call button */
    --whatsapp-color: #25D366; /* WhatsApp Green */
    --text-color: #333;
    --light-bg: #f5ffef; /* Very light background for sections */
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Changa', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.8; /* Increased line-height for better Arabic readability */
    text-align: right; /* Default text alignment for RTL */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ----------------------------------------------------
 * Typography & Headings
 * ----------------------------------------------------
 */
h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 15px; }
h3 { font-size: 1.5rem; }

.section-heading {
    text-align: center;
    margin-bottom: 15px;
    padding-top: 10px;
}

.section-subtext {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* ----------------------------------------------------
 * Buttons and Links
 * ----------------------------------------------------
 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    text-align: center;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-call {
    background-color: var(--call-color);
    color: var(--white);
    border: 2px solid var(--call-color);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: var(--white);
    border: 2px solid var(--whatsapp-color);
}

.btn-primary:hover, .btn-secondary:hover, .btn-call:hover, .btn-whatsapp:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-details {
    background: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
}

/* ----------------------------------------------------
 * Header and Navigation (Menu Bar)
 * ----------------------------------------------------
 */
.top-bar {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 0;
    text-align: center;
    font-size: 1.1rem;
}

.top-contact-number {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.top-contact-number:hover {
    color: var(--white);
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 60px; /* Increased size for better visibility */
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    display: block;
    font-weight: 700;
    border-radius: 5px;
    transition: color 0.3s, background-color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--white);
    background-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ----------------------------------------------------
 * Hero Section
 * ----------------------------------------------------
 */
.hero-section {
    /* এইভাবে পরিবর্তন করুন: এক ধাপ উপরে (..) উঠুন, তারপর images/hero-bg.jpg */
    background: url('../images/hero-bg.jpg') no-repeat center center/cover; 
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 50px 15px;
}
/* ... বাকি কোড একই থাকবে ... */

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55); /* Darker overlay for text clarity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.hero-heading {
    color: var(--secondary-color); /* Bright color for H1 clarity */
    font-size: 3.2rem;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-subtext {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--white);
}

.hero-actions a {
    margin: 10px;
}

/* ----------------------------------------------------
 * Featured Services
 * ----------------------------------------------------
 */
.featured-services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.service-card {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 50px;
}

.service-image {
    width: 40%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    width: 60%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-card.reverse .service-image {
    order: 2;
}

.service-card.reverse .card-content {
    order: 1;
}

.card-description {
    margin-bottom: 20px;
}

/* ----------------------------------------------------
 * Why Choose Us Section (Features)
 * ----------------------------------------------------
 */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: box-shadow 0.3s, background-color 0.3s;
    background-color: #fcfcfc;
}

.feature-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #fffbe6;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ----------------------------------------------------
 * Latest Articles
 * ----------------------------------------------------
 */
.latest-articles {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.blog-preview-card {
    display: flex;
    background-color: var(--white);
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 30%;
    height: 250px;
    object-fit: cover;
}

.article-content {
    width: 70%;
    padding: 25px;
}

.article-date {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.article-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* ----------------------------------------------------
 * CTA Section
 * ----------------------------------------------------
 */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 15px;
    text-align: center;
}

.cta-heading {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.cta-subtext {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cta-actions a {
    margin: 10px;
    font-size: 1.2rem;
}

/* ----------------------------------------------------
 * Footer
 * ----------------------------------------------------
 */
.main-footer {
    background-color: #222;
    color: #eee;
    padding: 40px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-widget h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.footer-widget a:hover {
    color: var(--white);
    margin-right: 5px; /* Slight movement for RTL effect */
}

.social-links a {
    font-size: 1.8rem;
    margin-left: 15px;
    transition: color 0.3s;
    color: #ccc;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    background-color: #111;
}

/* ----------------------------------------------------
 * 📱 Floating Contact Buttons (বাম পাশে)
 * ----------------------------------------------------
 */
.floating-contact {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-contact a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    /* ফোকাস আউটলাইন অপসারণ */
    outline: none; 
}

.floating-contact a:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
}

.floating-contact a:focus {
    /* ফোকাস করার সময়ও দাগ বা বর্ডার দূর করুন */
    outline: none; 
    border: none;
}

.float-call {
    background-color: var(--call-color);
}

.float-whatsapp {
    background-color: var(--whatsapp-color);
}
/* ----------------------------------------------------
 * Scroll Top Button (ডান পাশে)
 * ----------------------------------------------------
 */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 160px; /* ওভারল্যাপ এড়াতে পজিশন বাড়ানো হলো */
    right: 25px; /* <--- ডান পাশে সেট করা হলো */
    z-index: 1000;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background-color 0.3s;
}

#scrollTopBtn:hover {
    background-color: #555;
}

/* ----------------------------------------------------
 * General Content Sections (For other pages like services/blog/contact)
 * ----------------------------------------------------
 */
.content-section {
    padding: 60px 0;
}

/* Service Detail Block for services.html */
.service-detail-block {
    margin-bottom: 50px;
}
.service-detail-block h2 {
    color: #388e3c;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.detail-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.detail-content img {
    width: 40%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.detail-content p {
    flex: 1;
    margin-bottom: 15px;
}
.detail-content ul {
    list-style: none;
    padding-right: 0;
    margin-top: 15px;
}
.detail-content ul li {
    padding: 5px 0;
}
.detail-content ul li i {
    color: var(--whatsapp-color);
    margin-left: 10px;
}

/* Blog List Grid for blog.html */
.blog-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.blog-card-full {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.blog-card-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.blog-card-full .article-image {
    width: 30%;
    height: 250px;
    object-fit: cover;
}
.blog-card-full .article-content {
    width: 70%;
}
.blog-card-full .article-title {
    font-size: 1.4rem;
}


/* About Page Specific Styles */
.about-block {
    margin-bottom: 40px;
}
.about-block .about-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 20px;
}
.values-section ul {
    list-style: none;
    padding-right: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.values-section ul li {
    background-color: #f7f7f7;
    padding: 15px;
    border-right: 4px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
}
.values-section ul li i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px 0;
}
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    direction: rtl;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-left: 15px; /* Adjust margin for RTL */
    margin-right: 0;
}
.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    direction: rtl; /* Ensure input text direction is correct */
    text-align: right;
}
.map-container {
    margin-top: 40px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}


/* ----------------------------------------------------
 * 📱 Media Queries (Mobile Friendly)
 * ----------------------------------------------------
 */
@media (max-width: 992px) {
    .hero-heading {
        font-size: 2.5rem;
    }
    .service-image, .card-content {
        width: 100%;
        order: initial !important;
    }
    .service-image {
        height: 250px;
    }
    .blog-preview-card {
        flex-direction: column;
    }
    .article-image {
        width: 100%;
        height: 200px;
    }
    .article-content {
        width: 100%;
    }
    .detail-content {
        flex-direction: column;
    }
    .detail-content img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
    }

    .main-nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 80px; /* Adjust based on header height */
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        border-top: 1px solid #eee;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
        text-align: right;
    }

    .menu-toggle {
        display: block;
    }
    
    .hero-heading {
        font-size: 2rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* ফ্লোটিং বাটন মোবাইলে বামে থাকবে */
    .floating-contact {
        left: 15px;
        right: initial;
    }

    .floating-contact a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    /* স্ক্রল টপ বাটন মোবাইলে ডানে থাকবে */
    #scrollTopBtn {
        bottom: 120px;
        right: 20px; 
        left: initial; /* বামের কোনো ভ্যালু বাতিল করা হলো */
    }
}