/* Home Page Responsive Styles */

/* Mobile responsive for Our Suppliers section */
@media (max-width: 767px) {
    .suppliers-container ul {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
    
    .suppliers-container ul li {
        height: 90px !important;
        padding: 15px !important;
    }
    
    .suppliers-container h3 {
        font-size: 28px !important;
    }
    
    .suppliers-container p {
        font-size: 14px !important;
    }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1200px) {
    .suppliers-container ul {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Why Safar section - white background */
.why {
    background-color: #ffffff !important;
}

/* Why Safar section - red titles and black text */
.why .title h4 {
    color: #E31E24 !important;
}

.why .title p {
    color: #000000 !important;
}

.why .why-tabs ul li h6 {
    color: #E31E24 !important;
}

.why .why-tabs ul li p {
    color: #000000 !important;
}

/* Featured Projects responsive */
@media (max-width: 767px) {
    .featured-projects .project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .featured-projects .project-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    .featured-projects .project-card img {
        width: 100% !important;
        height: 100% !important;
        flex: 1 !important;
        object-fit: cover !important;
    }
    
    .featured-projects .project-info {
        padding: 15px !important;
        flex-shrink: 0 !important;
    }
    
    .featured-projects .project-info h4 {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .featured-projects .project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
}

/* Featured Clients responsive */
@media (max-width: 767px) {
    .featured-clients .clients-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 10px !important;
    }
    
    .featured-clients .clients-grid li {
        height: 90px !important;
        padding: 15px !important;
    }
    
    .featured-clients h2 {
        font-size: 28px !important;
    }
    
    .featured-clients h3 {
        font-size: 22px !important;
    }
    
    .featured-clients p {
        font-size: 14px !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .featured-clients .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

/* Laptop size - slightly bigger */
@media (min-width: 1025px) and (max-width: 1440px) {
    .featured-clients .clients-grid li {
        height: 130px !important;
        padding: 30px !important;
    }
}


/* About Us section - square images */
.about#story .image img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}



/* Hide arrow from Value Added Services button */
.services-widget .content .btn.outlined::after {
    display: none !important;
}

.services-widget .content .btn.outlined::before {
    display: none !important;
}

/* Remove border radius from About Safar and Company Goals images */
.about-safar-image img,
.about.goals .image img {
    border-radius: 0 !important;
}
/* About Safar mobile responsive */
@media (max-width: 767px) {
    .about {
        padding: 40px 0 !important;
    }
    
    .about .about-container {
        flex-direction: column !important;
        text-align: center !important;
        padding: 0 20px !important;
        gap: 30px !important;
    }
    
    .about .about-container .content {
        order: 1;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .about .about-container .content span {
        font-size: 16px !important;
        display: block;
        margin-bottom: 10px;
    }
    
    .about .about-container .content h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word;
    }
    
    .about .about-container .content ul {
        text-align: left !important;
        padding-left: 20px !important;
        padding-right: 0 !important;
        margin: 20px 0 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }
    
    .about .about-container .content ul li {
        margin-bottom: 12px !important;
        word-wrap: break-word;
    }
    
    .about .about-container .image {
        order: 2;
        margin: 0 auto !important;
        max-width: 280px !important;
        width: 100% !important;
    }
    
    .about .about-container .image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
}

/* Tablet responsive */
@media (min-width: 768px) and (max-width: 1024px) {
    .about .about-container {
        padding: 0 30px !important;
    }
    
    .about .about-container .content h2 {
        font-size: 30px !important;
    }
    
    .about .about-container .content ul {
        font-size: 15px !important;
    }
}
/* Fix responsivity for About section with id="about" */
@media (max-width: 767px) {
    #about {
        margin-bottom: 50px !important;
        margin-top: 30px !important;
        padding: 0 20px !important;
    }
    
    #about .about-container {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #about .content {
        margin-right: 0 !important;
        margin-top: 0 !important;
        order: 1;
        text-align: center !important;
        margin-bottom: 30px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #about .content span {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        display: block;
        order: 1 !important;
    }
    
    #about .content h2 {
        font-size: 48px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        order: 2 !important;
        font-weight: bold !important;
    }
    
    #about .content ul {
        text-align: left !important;
        padding-left: 20px !important;
        margin: 20px 0 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        order: 3 !important;
    }
    
    #about .content ul li {
        margin-bottom: 12px !important;
        word-wrap: break-word !important;
    }
    
    #about .image {
        margin-top: 0 !important;
        order: 2;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    #about .image img {
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #about {
        padding: 0 30px !important;
    }
    
    #about .content {
        margin-right: 40px !important;
        margin-top: 50px !important;
    }
    
    #about .content h2 {
        font-size: 28px !important;
    }
}
/* Arabic About section - right align content on mobile */
@media (max-width: 767px) {
    html[lang="ar"] #about .content,
    .rtl #about .content {
        text-align: right !important;
    }
    
    html[lang="ar"] #about .content h2,
    .rtl #about .content h2 {
        text-align: right !important;
    }
    
    html[lang="ar"] #about .content span,
    .rtl #about .content span {
        text-align: right !important;
    }
    
    html[lang="ar"] #about .content ul,
    .rtl #about .content ul {
        text-align: right !important;
        padding-right: 20px !important;
        padding-left: 0 !important;
    }
}
/* Fix responsivity for Goals section with id="goals" */
@media (max-width: 767px) {
    #goals {
        margin-bottom: 50px !important;
        margin-top: 30px !important;
        padding: 0 20px !important;
    }
    
    #goals .about-container {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    #goals .content {
        margin-right: 0 !important;
        margin-top: 0 !important;
        order: 1;
        text-align: center !important;
        margin-bottom: 30px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    #goals .content span {
        font-size: 16px !important;
        margin-bottom: 10px !important;
        display: block;
        order: 1 !important;
    }
    
    #goals .content h2 {
        font-size: 48px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        order: 2 !important;
        font-weight: bold !important;
    }
    
    #goals .content p {
        text-align: left !important;
        margin: 20px 0 !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        order: 3 !important;
    }
    
    #goals .content p strong {
        font-weight: bold !important;
    }
    
    #goals .image {
        margin-top: 0 !important;
        order: 2;
        width: 100% !important;
        max-width: 500px !important;
        margin: 0 auto !important;
    }
    
    #goals .image img {
        width: 100% !important;
        max-width: 500px !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #goals {
        padding: 0 30px !important;
    }
    
    #goals .content {
        margin-right: 40px !important;
        margin-top: 80px !important;
    }
    
    #goals .content h2 {
        font-size: 28px !important;
    }
}

/* Arabic Goals section - right align content on mobile */
@media (max-width: 767px) {
    html[lang="ar"] #goals .content,
    .rtl #goals .content {
        text-align: right !important;
    }
    
    html[lang="ar"] #goals .content h2,
    .rtl #goals .content h2 {
        text-align: right !important;
    }
    
    html[lang="ar"] #goals .content span,
    .rtl #goals .content span {
        text-align: right !important;
    }
    
    html[lang="ar"] #goals .content p,
    .rtl #goals .content p {
        text-align: right !important;
    }
}