/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right; /* Default text alignment for Arabic */
    color: #343a40; /* Standard text color */
    background-color: #f8f9fa; /* Light background for the page */
}

/* Custom Colors & Buttons */
:root {
    --primary-color: #0056b3; /* Deep Blue */
    --secondary-color: #FF8C00; /* Dark Orange for accent */
    --text-dark: #212529;
    --text-light: #f8f9fa;
    --bg-dark: #212529; /* Dark background for sections */
    --bg-light: #f8f9fa; /* Light background for sections */
}

.custom-btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-btn-primary:hover {
    background-color: #003f7f; /* Darker blue on hover */
    border-color: #003f7f;
    color: var(--text-light);
}

.custom-btn-success {
    background-color: #28a745; /* Bootstrap success green */
    border-color: #28a745;
    color: var(--text-light);
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.custom-btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: var(--text-light);
}

/* Header Styles */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-brand .logo-img {
    height: 50px; /* Adjust as needed */
    width: auto;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 15px; /* Adjust for RTL */
    margin-left: 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/uploads/hero-speaker-bg.jpg') no-repeat center center/cover;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0; /* Add padding for content */
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-light);
}

.hero-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-product-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); /* Add a subtle shadow */
}

/* Product Item Card Section */
.product-section {
    background-color: var(--bg-light);
}

.product-card {
    border-radius: 15px;
    overflow: hidden;
}

.product-main-image {
    border-radius: 15px 0 0 15px; /* Adjust for RTL */
    object-fit: contain;
    height: 100%;
    min-height: 400px; /* Ensure image has some height */
}

.product-card .card-body {
    text-align: right;
}

.product-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
}

.product-details ul {
    padding-right: 20px; /* Adjust for RTL */
    list-style: none;
}

.product-details ul li {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-details ul li i {
    font-size: 1.2rem;
}

.product-options .form-check-label {
    margin-right: 0.5rem; /* Adjust for RTL */
    margin-left: 0;
}

.product-price {
    color: var(--secondary-color);
}

/* Store Info Section */
.store-info-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/uploads/store-info-bg.webp') no-repeat center center/cover;
    color: var(--text-light);
    padding: 80px 0;
}

.founder-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
}

.certification-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

.stats-row .stat-box {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.stats-row .stat-box:hover {
    transform: translateY(-5px);
}

.stats-row .stat-box i {
    color: var(--secondary-color) !important; /* Override Bootstrap primary */
}

/* Payment Methods Section */
.payment-methods-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.payment-card {
    background-color: #ffffff;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.payment-card i {
    color: var(--primary-color);
}

/* Delivery Info Section */
.delivery-info-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/uploads/delivery-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding: 80px 0;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%; /* Center the line for RTL */
    transform: translateX(50%); /* Adjust for centering */
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 0;
    display: none; /* Hide on small screens, will be block on md+ */
}

.timeline-item {
    position: relative;
    padding-bottom: 50px;
    z-index: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%; /* Adjust for RTL */
    transform: translateX(50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--text-light);
    display: none; /* Hide on small screens, will be block on md+ */
}

@media (min-width: 768px) {
    .timeline::before,
    .timeline-item::before {
        display: block;
    }
    .timeline-item {
        text-align: center;
    }
    .timeline-item:nth-child(odd) {
        text-align: right;
        padding-right: 30px;
    }
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 30px;
    }
    .timeline-item:nth-child(odd)::before {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .timeline-item:nth-child(even)::before {
        right: 50%;
        left: auto;
        transform: translateX(50%);
    }
    .timeline::before {
        right: 50%;
        transform: translateX(50%);
    }
}


/* Guarantee Section */
.guarantee-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.guarantee-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.guarantee-card h3 {
    font-weight: 700;
}

.guarantee-card ul {
    padding-right: 0; /* Remove default padding for RTL */
    list-style: none;
}

.guarantee-card ul li {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.guarantee-card ul li i {
    font-size: 1.3rem;
    vertical-align: middle;
}

/* Customer Reviews Section */
.reviews-section {
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('img/uploads/reviews-bg.jpg') no-repeat center center/cover;
    color: var(--text-light);
    padding: 80px 0;
}

.review-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.review-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.review-card .text-warning {
    color: var(--secondary-color) !important; /* Ensure stars are visible */
}

/* Footer Section */
.footer-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 50px 0;
    text-align: right; /* Align text right for RTL */
}

.footer-section .logo-img-footer {
    height: 60px; /* Adjust as needed */
    width: auto;
    filter: brightness(0) invert(1); /* Make logo white for dark background */
}

.footer-section h5 {
    color: var(--text-light);
    font-weight: 600;
}

.footer-section ul {
    padding-right: 0; /* Remove default padding for RTL */
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-social-icon {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-social-icon:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal-content {
    background-color: #ffffff;
    color: var(--text-dark);
    border-radius: 10px;
    text-align: right; /* Adjust for RTL */
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between; /* To place close button correctly */
    align-items: center;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body i.bi {
    font-size: 4rem;
    color: #28a745;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    justify-content: center; /* Center button */
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    body {
        text-align: center;
    }
    .hero-section .text-md-end {
        text-align: center !important;
    }
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .hero-product-image {
        max-width: 100%;
        margin-top: 30px;
    }
    .product-main-image {
        border-radius: 15px 15px 0 0; /* Adjust for small screens */
        min-height: 250px;
    }
    .product-card .card-body {
        text-align: center;
    }
    .product-details ul {
        padding-right: 0;
    }
    .store-info-section .text-md-start {
        text-align: center !important;
    }
    .footer-section {
        text-align: center;
    }
    .footer-section ul {
        padding-right: 0;
    }
}/* Styles for the main content block container */
.legalDomeBlock {
    padding: 60px 20px; /* Top/bottom padding and side padding for the block */
    max-width: 1200px; /* Maximum width for content readability on large screens */
    margin: 0 auto; /* Center the block horizontally */
    box-sizing: border-box; /* Ensures padding is included in the element's total width and height */
    text-align: right; /* Default text alignment for RTL content */
}

/* Headings within .legalDomeBlock */
.legalDomeBlock h1 {
    font-size: 2.2rem; /* Moderate size for main heading */
    margin-bottom: 1.5rem; /* Space below the heading */
    line-height: 1.2; /* Tighter line height for headings */
    font-weight: 700; /* Bold font weight */
    color: var(--primary-color); /* Assumes --primary-color is defined */
}

.legalDomeBlock h2 {
    font-size: 1.8rem; /* Slightly smaller heading */
    margin-bottom: 1.2rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-dark); /* Assumes --text-dark is defined */
}

.legalDomeBlock h3 {
    font-size: 1.5rem; /* Sub-heading size */
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
}

.legalDomeBlock h4 {
    font-size: 1.25rem; /* Smaller heading */
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-dark);
}

.legalDomeBlock h5 {
    font-size: 1.1rem; /* Smallest heading */
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-dark);
}

/* Paragraphs within .legalDomeBlock */
.legalDomeBlock p {
    font-size: 1rem; /* Standard paragraph font size */
    line-height: 1.7; /* Generous line height for readability */
    margin-bottom: 1rem; /* Space below each paragraph */
    color: var(--text-dark);
}

/* Unordered lists within .legalDomeBlock */
.legalDomeBlock ul {
    list-style: disc; /* Default disc style for list items */
    padding-right: 20px; /* Indent list items from the right for RTL */
    margin-bottom: 1rem; /* Space below the entire list */
    color: var(--text-dark);
}

/* List items within .legalDomeBlock */
.legalDomeBlock ul li {
    font-size: 1rem; /* Standard list item font size */
    line-height: 1.6; /* Line height for readability */
    margin-bottom: 0.5rem; /* Space between individual list items */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .legalDomeBlock {
        padding: 40px 15px; /* Reduce padding on smaller screens */
    }
    .legalDomeBlock h1 {
        font-size: 1.8rem; /* Adjust heading sizes for mobile */
    }
    .legalDomeBlock h2 {
        font-size: 1.5rem;
    }
    .legalDomeBlock h3 {
        font-size: 1.3rem;
    }
    .legalDomeBlock h4 {
        font-size: 1.1rem;
    }
    .legalDomeBlock h5 {
        font-size: 1rem;
    }
    .legalDomeBlock p,
    .legalDomeBlock ul li {
        font-size: 0.95rem; /* Slightly smaller text for mobile */
    }
    .legalDomeBlock ul {
        padding-right: 15px; /* Adjust list indent for mobile */
    }
}

.timeline-item .text-muted,
.review-card .text-muted {
    color: #f1f0f0 !important;
}