body {
    font-family: 'Poppins', sans-serif;
    direction: rtl;
    text-align: right;
    color: #343a40; /* Dark graphite for general text */
    background-color: #f8f9fa; /* Light background */
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #0d47a1; /* Dark Blue */
    --secondary-color: #6c757d; /* Grey */
    --gold-color: #d4af37; /* Gold accent */
    --dark-blue-bg: #1a237e; /* Even darker blue for some sections */
    --light-brown-bg: #f2f0ed; /* Light brown/beige for services/tariffs */
    --dark-overlay-color: rgba(0, 0, 0, 0.6);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-gold {
    color: var(--gold-color) !important;
}

.bg-gold {
    background-color: var(--gold-color) !important;
}

.bg-dark-blue {
    background-color: var(--dark-blue-bg) !important;
}

.bg-light-brown {
    background-color: var(--light-brown-bg) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b3a8a;
    border-color: #0b3a8a;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.custom-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
}

/* Typography and Headings */
.main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.sub-title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.3;
    color: var(--dark-blue-bg);
}

.bg-dark-blue .section-heading {
    color: #fff;
}

.site-title {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
    color: var(--dark-blue-bg);
}

@media (min-width: 768px) and (max-width: 1023px) {
    .main-title {
        font-size: 2.2rem;
    }
    .sub-title {
        font-size: 1.2rem;
    }
    .section-heading {
        font-size: 2.2rem;
    }
    .site-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .main-title {
        font-size: 1.8rem;
    }
    .sub-title {
        font-size: 1rem;
    }
    .section-heading {
        font-size: 1.8rem;
    }
    .site-title {
        font-size: 1.25rem;
    }
}

/* Header */
.main-header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.main-header .navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.main-header .navbar-nav .nav-link {
    color: var(--dark-blue-bg);
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.offcanvas-header {
    direction: initial;
    background-color: var(--primary-color);
    color: #fff;
}

.offcanvas-title {
    color: #fff;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-toggler {
    border: none;
}


/* Hero Section */
.hero-section {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Adjust for fixed header */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-overlay-color);
}

/* About Us Section */
.about-section {
    position: relative;
    overflow: hidden;
}

.about-section img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

.experience-badge {
    transform: rotate(-90deg) translateY(-100%);
    transform-origin: top left;
    left: 0;
    top: 50%;
    white-space: nowrap;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.about-list li {
    font-size: 1.1rem;
    color: #495057;
}

/* Services Section */
.service-card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

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

.service-card .icon-wrapper {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card .card-title {
    color: var(--dark-blue-bg);
}

/* Advantages Section */
.advantages-section .advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.advantages-section .advantage-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.advantages-section .advantage-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Work Stages Section */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 50%;
    width: 4px;
    background-color: var(--primary-color);
    margin-right: -2px;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 30px);
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 30px);
    margin-right: 0;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 50%;
    margin-right: -30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    z-index: 1;
    box-shadow: 0 0 0 5px #fff;
}

.timeline-content {
    background-color: var(--light-brown-bg);
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    color: #343a40;
}

.timeline-content h3 {
    color: var(--dark-blue-bg);
}

@media (max-width: 767px) {
    .timeline::before {
        right: 20px;
        margin-right: 0;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 60px;
    }
    .timeline-icon {
        right: 20px;
        margin-right: -30px;
    }
}

/* Pricing Section */
.tariff-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tariff-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.tariff-card .card-header {
    border-bottom: none;
    border-radius: 1rem 1rem 0 0;
}

.tariff-card .card-header h3 {
    font-size: 1.75rem;
}

.tariff-card.featured-tariff .card-header {
    background-color: var(--gold-color) !important;
    color: var(--dark-blue-bg) !important;
}

.tariff-features li {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

/* Modal */
.modal-content {
    border-radius: 1rem;
}

.modal-header {
    direction: initial;
    border-radius: 1rem 1rem 0 0;
}

.reviews-section, .accordion-item{
    direction: initial;
}

.modal-title {
    color: #fff;
}

.form-label {
    font-weight: 600;
}

.invalid-feedback {
    text-align: right;
}

/* Reviews Section */
.review-card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    color: #fff;
}

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

.review-card .text-warning {
    color: var(--gold-color) !important;
}

.review-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Numbers Section */
.number-item {
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.number-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.number-item i {
    color: var(--primary-color);
}

.number-item .display-4 {
    color: var(--dark-blue-bg);
}

.number-item p {
    color: #495057;
}

/* Contact Section */
.contact-section .contact-info-col {
    background-color: var(--dark-blue-bg);
}

.contact-section .contact-form-col {
    background-color: #fff;
}

.contact-section .contact-info-col span {
    color: rgba(255, 255, 255, 0.9);
}

.contact-section .contact-form-col .form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
}

.contact-section .contact-form-col .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 71, 161, 0.25);
}

/* Footer */
.footer-section {
    background-color: var(--dark-blue-bg);
}

.footer-section .accordion-button {
    font-size: 1.1rem;
    color: #fff !important;
}

.footer-section .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.footer-section .accordion-button::after {
    filter: invert(1);
}

.footer-section .accordion-body {
    padding-top: 0;
}

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

.footer-section .list-unstyled a:hover {
    color: #fff;
}

.footer-section p.word-break-all {
    word-break: break-all;
}

/* General utility classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Responsive adjustments for button text */
.btn {
    white-space: normal;
    word-break: break-word;
    text-align: center;
}

/* Scrollbar for offcanvas */
.offcanvas-body {
    overflow-y: auto;
}

/* Styles for the main content block container */
.legalDomeBlock {
    margin-top: 2.5rem; /* Top margin for separation from preceding content */
    padding-left: 1.25rem; /* Left padding for content inside the block */
    padding-right: 1.25rem; /* Right padding for content inside the block */
}

/* Heading styles - designed for readability, not overly large */
.legalDomeBlock h1 {
    font-size: 2.25rem; /* H1 font size, moderate */
    line-height: 1.2; /* Line height for H1 */
    margin-top: 2.5rem; /* Top margin for H1 */
    margin-bottom: 1.5rem; /* Bottom margin for H1 */
}

.legalDomeBlock h2 {
    font-size: 1.75rem; /* H2 font size */
    line-height: 1.3; /* Line height for H2 */
    margin-top: 2rem; /* Top margin for H2 */
    margin-bottom: 1.25rem; /* Bottom margin for H2 */
}

.legalDomeBlock h3 {
    font-size: 1.5rem; /* H3 font size */
    line-height: 1.4; /* Line height for H3 */
    margin-top: 1.5rem; /* Top margin for H3 */
    margin-bottom: 1rem; /* Bottom margin for H3 */
}

.legalDomeBlock h4 {
    font-size: 1.25rem; /* H4 font size */
    line-height: 1.5; /* Line height for H4 */
    margin-top: 1.25rem; /* Top margin for H4 */
    margin-bottom: 0.75rem; /* Bottom margin for H4 */
}

.legalDomeBlock h5 {
    font-size: 1.125rem; /* H5 font size */
    line-height: 1.5; /* Line height for H5 */
    margin-top: 1rem; /* Top margin for H5 */
    margin-bottom: 0.5rem; /* Bottom margin for H5 */
}

/* Paragraph style */
.legalDomeBlock p {
    font-size: 1rem; /* Base paragraph font size */
    line-height: 1.6; /* Line height for paragraphs for better readability */
    margin-bottom: 1rem; /* Space between paragraphs */
}

/* Unordered list styles */
.legalDomeBlock ul {
    list-style: disc; /* Default bullet style */
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.5rem; /* Indentation for bullet points */
}

/* List item styles */
.legalDomeBlock li {
    font-size: 1rem; /* List item font size, consistent with paragraph */
    line-height: 1.6; /* Line height for list items */
    margin-bottom: 0.5rem; /* Space between individual list items */
}


/* @media (max-width: 768px) {
    body{
        direction: initial;
    }
} */