/* Import English Font First */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* Define Self-Hosted Arabic Font Second */
@font-face {
  font-family: 'Madani';
  font-style: normal;
  font-weight: 400; /* Regular weight */
  src: url('/fonts/alfont_com_Madani-Arabic-Regular-1.woff2') format('woff2'); /* --- PATH CORRECTED --- */
}
/* General Styles */
body {
    font-family: 'Madani', sans-serif;
    background-color: #ffffff;
}
:lang(en) body {
    font-family: 'Poppins', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Madani', sans-serif;
    font-weight: 700;
    color: #2c398a;
}

/* Header (Corrected Structure) */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-nav, .header-utilities {
    flex: 1 1 0;
}
.header-nav .navbar-nav {
    margin: 0;
}
.header-utilities {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.navbar-brand {
    padding: 0;
}
.navbar-brand img {
    max-height: 95px; /* Logo Enlarged */
}
.nav-link {
    color: #2c398a !important;
    font-weight: 600;
    text-align: center;
}
.nav-link.active {
    color: #2aace2 !important;
}
@media (max-width: 991.98px) {
    .navbar .container { flex-wrap: wrap; }
    .header-nav { order: 3; width: 100%; flex-basis: 100%; }
    .navbar-brand { order: 1; }
    .header-utilities { order: 2; flex-basis: auto; }
}

/* --- All other styles below are clean --- */

.btn-cta { background-color: #2aace2; color: white; border-radius: 30px; padding: 10px 20px; font-weight: 700; transition: background-color 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.btn-cta:hover { background-color: #2c398a; }
:lang(en) .btn-cta { flex-direction: row-reverse; }
.lang-switcher a { font-size: 1.1rem; color: #2c398a; text-decoration: none; font-weight: 600; }
.hero-section img { max-height: 550px; width: 100%; object-fit: cover; }
.hero-section-background { width: 100%; padding: 120px 0; background-image: url('https://suhailco.sa/images/hero-bg.webp'); background-size: cover; background-position: center center; text-align: center; }
.hero-section-background h1, .hero-section-background h2 { color: white; text-shadow: 2px 2px 8px rgba(0,0,0,0.6); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 15px; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(to right, #2aace2, #64ee85); }
.value-box, .product-box { padding: 25px; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.07); text-align: center; height: 100%; background-color: #fff; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-box:hover, .product-box:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.slider-container { background-color: #fff; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.08); }
.carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(44, 57, 138, 0.7); border-radius: 50%; padding: 25px; }
/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px; /* --- تم التعديل هنا لوضعه في الأسفل --- */
    z-index: 1000;
    display: none; /* ستبقى مخفية وتظهر بالجافاسكريبت */
}
:lang(ar) .floating-buttons {
    left: 20px; /* في اليسار للصفحة العربية */
}
:lang(en) .floating-buttons {
    right: 20px; /* في اليمين للصفحة الإنجليزية */
}
.floating-buttons a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 60px;
    font-size: 2rem;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.whatsapp-btn { 
    background-color: #25D366; 
}
.call-btn { 
    background-color: #2aace2; 
}
.footer { background-color: #f8f9fa; padding: 50px 0 30px 0; border-top: 5px solid #2c398a; }
.footer .navbar-brand img { max-height: 90px; }
.copyright { background-color: #e9ecef; padding: 15px 0; text-align: center; font-size: 0.9rem;}
.accordion-button:not(.collapsed) { background-color: #2c398a; color: white; }
/* --- UNIFIED STYLING FOR ALL PRODUCT DISPLAYS --- */

/* Styles for homepage product boxes */
.product-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-box img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.product-box h4 {
    margin-top: auto;
}

/* Styles for "products page" cards */
.product-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card img {
    height: 250px; /* Set a fixed height for all images */
    width: 100%;
    object-fit: cover; /* Ensure images cover the area without distortion */
}

.product-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-body ul {
    text-align: right;
    padding-right: 20px;
    flex-grow: 1;
}

:lang(en) .product-card-body ul {
    text-align: left;
    padding-right: 0;
    padding-left: 20px;
}

.product-card-body .btn-whatsapp {
    background-color: #25D366;
    color: white;
    width: 100%;
    font-weight: bold;
}

.product-card-body .btn-whatsapp:hover {
    background-color: #128C7E;
}
/* Homepage Experience Slider Styling */
.experience-slider .slider-container {
    background-color: #64ee85; /* Light green background */
}

.experience-slider .carousel-control-prev,
.experience-slider .carousel-control-next {
    display: none; /* Hide slider arrows */
}

.experience-slider .carousel-item p {
    padding-bottom: 2rem; /* Add space below text to avoid overlap */
}

/* Make carousel indicators stand out on the new background */
.experience-slider .carousel-indicators [data-bs-target] {
    background-color: #2c398a; 
}
/* Homepage Testimonials Slider Styling */
.testimonials-section .slider-container {
    background-color: #64ee85; /* Light green background for the container */
    padding: 3rem 2rem;
    border-radius: 15px;
}

.testimonials-section .carousel-item {
    /* Make the slide itself transparent to show the green background */
    background-color: transparent; 
}

.testimonials-section .carousel-item blockquote p {
    color: #2c398a; /* Dark blue text for better readability on green */
    font-weight: 600;
}

.testimonials-section .carousel-item .blockquote-footer {
    color: #2c398a;
    opacity: 0.8;
}

/* Make carousel indicators stand out on the new background */
.testimonials-section .carousel-indicators [data-bs-target] {
    background-color: #ffffff;
    border: 1px solid #2c398a;
}
/* Homepage Projects Slider Styling */
.projects-slider-section .slider-container {
    background-color: #64ee85; /* Light green background for the slider box */
    padding: 2rem;
    border-radius: 15px;
}

.projects-slider-section .carousel-item {
    background-color: #ffffff; /* White background for each individual slide */
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #2c398a; /* Primary color for text inside the slide */
}

.projects-slider-section .carousel-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.projects-slider-section .carousel-control-prev,
.projects-slider-section .carousel-control-next {
    display: none; /* Hide slider arrows */
}
/* Homepage Testimonials Slider Styling */
.testimonials-section .slider-container {
    background-color: #64ee85; /* Light green background for the container */
    padding: 3rem 2rem;
    border-radius: 15px;
}

.testimonials-section .carousel-item {
    background-color: #ffffff; /* White background for each individual slide */
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.testimonials-section .carousel-item blockquote {
    color: #2c398a; /* Dark blue text for better readability */
}

.testimonials-section .carousel-item .blockquote-footer {
    color: #2c398a;
    opacity: 0.8;
}

.testimonials-section .carousel-control-prev,
.testimonials-section .carousel-control-next {
    display: none; /* Hide slider arrows */
}

/* Make carousel indicators stand out on the new background */
.testimonials-section .carousel-indicators [data-bs-target] {
    background-color: #2c398a;
}
/* Styling for the Unified "Why Choose Us" Section */
.why-choose-us-column {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    height: 100%;
    border-top: 4px solid #64ee85; /* Green accent */
}

.why-choose-us-column h4 {
    color: #2c398a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.why-choose-us-column ul {
    list-style: none;
    padding-right: 0;
    margin-bottom: 0;
}

.why-choose-us-column ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.why-choose-us-column ul li i {
    color: #2aace2; /* Blue icon */
    margin-left: 12px;
    margin-top: 5px;
    font-size: 1.2em;
}
/* إصلاح الفريم الفارغ على الجوال */
@media (max-width: 768px) {
    .contact-card iframe {
        height: 5px !important; /* تصغير الارتفاع */
        margin-bottom: 0.5rem; /* تقليل المسافة السفلية */
    }
    
    /* إزالة المساحة الزائدة تحت الفريم */
    .contact-card .col-lg-6:first-child {
        padding-bottom: 1rem !important;
    }
    
    /* جعل نموذج الاتصال يبدأ مباشرة */
    .contact-card .col-lg-6:last-child {
        padding-top: 1rem !important;
    }
}
