/* Home Page Specific Styles */

/* Section Title Styles */
.section-title {
    text-align: center;
}

.section-title h2 {
    color: var(--primary);
    font-size: 40px;
    font-weight: 300;
}

.section-title h2 span {
    font-weight: bold;
}

.section-title p {
    color: #111;
    font-size: 16px;
    padding-bottom: 25px;
}

/* Who We Are Section */
.who-we-are-section-v2 {
    background: linear-gradient(90deg, var(--quaternary) 25%, #013855 75%);
    color: #111;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.who-we-are-section-v2::before {
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

.who-we-are-section-v2 .content-box {
    border-radius: 10px;
}

.who-we-are-section-v2 .WhoWeAreHeader {
    color: var(--tertiary);
    font-size: 25px;
}

.who-we-are-section-v2 p.lead {
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.who-we-are-section-v2 .btn-orange {
    background-color: var(--secondary);
    border: none;
    border-radius: 4px;
    color: var(--white);
    padding: 6px 45px;
}

.who-we-are-section-v2 .btn-orange:hover {
    background-color: var(--tertiary);
    color: #111;
}

.section-title-1 {
    color: var(--white);
    display: inline-block;
    font-size: 90px;
    font-weight: 200;
    line-height: 1.1;
    padding-left: 10px;
    text-transform: uppercase;
}

.section-title-1 span {
    font-weight: bold;
}

.who-we-are-title {
    align-items: center;
    background-size: cover;
    display: flex;
    height: 100%;
    justify-content: center;
}

@media (max-width: 767px) {
    .section-title-1 {
        font-size: 48px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .who-we-are-section-v2 {
        padding: 50px 0;
    }

    .who-we-are-section-v2 .WhoWeAreHeader {
        font-size: 20px;
    }

    .who-we-are-section-v2 p.lead {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .section-title-1 {
        font-size: 36px;
    }
}

/* Brochure Section */
.brochure-container {
    background-color: var(--primary);
    margin: 0 auto;
    padding: 25px 0;
    width: 100%;
}

.brochure-text-center {
    text-align: center;
    text-transform: uppercase;
}

.brochure-heading {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 20px;
}

.brochure-heading .bold-text {
    font-weight: bold;
}

.brochure-slider {
    align-items: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.brochure-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 300%;
}

.brochure-slide {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 100%;
}

.brochure-content {
    align-items: center;
    background-color: var(--white);
    border: 5px solid #f3c613;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    height: 450px;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
}

.brochure-content img {
    border-radius: 35px;
    height: 100%;
    margin-right: 10px;
    object-fit: cover;
    padding: 25px;
    width: 45%;
}

html[dir="rtl"] .brochure-content img {
    margin-left: 20px;
    margin-right: 0;
}

.brochure-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 55%;
}

html[dir="rtl"] .brochure-text {
    text-align: right;
}

.brochure-text h3 {
    color: var(--gray-1925);
    font-size: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.brochure-text h2 {
    color: var(--primary);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.brochure-text p {
    color: var(--gray-675);
    font-size: 18px;
    margin-bottom: 20px;
}

.brochure-btn-download {
    background-color: var(--primary);
    border-radius: 4px;
    bottom: 30px;
    color: var(--white);
    padding: 6px 50px;
    position: absolute;
    text-decoration: none;
}

.brochure-btn-download:hover {
    background-color: var(--tertiary);
}

.brochure-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    background-color: var(--white);
    border: 5px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 20px;
    margin: 0 5px;
    width: 20px;
}

.dot.active {
    background-color: var(--secondary);
}

/* Responsive Styles for Brochure */
@media (max-width: 767px) {
    .brochure-content {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    .brochure-content img {
        height: auto;
        margin-bottom: 20px;
        margin-right: 0;
        width: 100%;
    }

    html[dir="rtl"] .brochure-content img {
        margin-left: 0;
    }
}

/* News Section */
.news-container {
    background-image: url('/assets/img/about us background vector.png');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 0;
}

.news-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.news-card {
    flex: 1;
    height: 600px;
    margin: 10px;
    overflow: visible;
    position: relative;
}

.news-card:first-child,
.news-card:last-child {
    padding-top: 50px;
}

.news-card .cards {
    height: 100%;
    width: 100%;
}

.news-card img {
    height: 80%;
    object-fit: cover;
    width: 100%;
}

.news-card .overlay {
    background: rgba(0, 0, 0, 0.5);
    bottom: -25px;
    color: var(--white);
    padding: 25px;
    position: absolute;
    text-align: left;
    width: 85%;
    z-index: 10;
}

html[dir="rtl"] .news-card .overlay {
    text-align: right;
}

.news-card:nth-child(1) .overlay {
    background-color: var(--primary);
}

.news-card:nth-child(2) .overlay {
    background-color: var(--secondary);
}

.news-card:nth-child(3) .overlay {
    background-color: var(--primary);
}

.news-card .overlay .date {
    font-size: 14px;
    margin-bottom: 10px;
}

.news-card .overlay h3 {
    color: var(--gray-3750);
    font-size: 16px;
    margin-bottom: 10px;
}

.news-card .overlay .description {
    color: var(--gray-3750);
    font-size: 14px;
    line-height: normal;
    margin-bottom: 10px;
}

.btn-read-more {
    background-color: var(--secondary);
    border-radius: 4px;
    color: var(--white);
    padding: 6px 45px;
    text-decoration: none;
}

.btn-read-more-1 {
    background-color: var(--white);
    border-radius: 4px;
    color: #111;
    padding: 6px 45px;
    text-decoration: none;
}

.btn-view-all {
    background-color: var(--secondary);
    border-radius: 4px;
    color: var(--white);
    margin-top: 60px;
    padding: 6px 60px;
    text-decoration: none;
}

.btn-read-more:hover {
    background-color: var(--tertiary-dark);
}

.btn-read-more-1:hover {
    background-color: var(--tertiary-dark);
}

.btn-view-all:hover {
    background-color: var(--tertiary-dark);
}

.news-card .overlay::after {
    background-repeat: no-repeat;
    background-size: contain;
    bottom: -65px;
    content: '';
    display: block;
    height: 100px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 100%;
    z-index: -1;
}

.news-card:nth-child(1) .overlay:after {
    background-image: url('/assets/img/Icons/News 01.png');
}

.news-card:nth-child(2) .overlay:after {
    background-image: url('/assets/img/Icons/News 02.png');
}

.news-card:nth-child(3) .overlay:after {
    background-image: url('/assets/img/Icons/News 01.png');
}

.btn-view-div {
    padding-top: 60px;
}

/* News hover styles */
.news-card:nth-child(1) a:hover,
.news-card:nth-child(3) a:hover {
    color: var(--secondary) !important;
}

.news-card:nth-child(2) a:hover {
    color: var(--primary) !important;
}

/* Responsive - Hide news on mobile */
@media (max-width: 767px) {
    .news-container {
        display: none;
    }
}

/* Clients Section */
.clients-container {
    padding: 50px 0;
    position: relative;
}

.customer-logos {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.customer-logos .slide {
    flex: 1;
    margin: 0 10px;
}

.customer-logos .slide img {
    height: auto;
    object-fit: contain;
    width: 150px;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

.btn-view-allClients {
    background-color: var(--secondary);
    border-radius: 4px;
    color: var(--white);
    padding: 9px 30px;
    text-decoration: none;
}

.btn-view-allClients:hover {
    background-color: var(--tertiary-dark);
}

.slick-prev:before,
.slick-next:before {
    color: var(--black);
}

/* Featured Projects Section */
.featured-projects-container {
    align-items: center;
    background-image: url('/assets/img/Key Projects.webp?width=1261&rmode=Max');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
    display: flex;
    height: 90vh;
    position: relative;
}

.featured-projects-container:before {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    content: "";
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.featured-projects-content {
    color: var(--white);
    position: relative;
    text-align: left;
    z-index: 2;
}

/* Keep text on right side for Arabic too */
html[dir="rtl"] .featured-projects-content {
    color: var(--white);
    position: relative;
    text-align: right;
    z-index: 2;
}

/* Prevent Bootstrap RTL from flipping the columns */
html[dir="rtl"] .featured-projects-container .row {
    direction: ltr;
}

/* But keep the text direction RTL for Arabic text */
html[dir="rtl"] .featured-projects-content {
    direction: rtl;
}

.featured-projects-content h2 {
    color: var(--white);
    font-size: 80px;
    line-height: 1;
}

.featured-projects-content .bold-text {
    font-weight: bold;
}

.projects-description {
    font-size: 20px;
    margin-bottom: 30px;
}

.projects-btn-discover {
    background-color: var(--secondary);
    border-radius: 4px;
    color: var(--white);
    font-size: 18px;
    padding: 12px 24px;
    text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

.projects-btn-discover:hover {
    background-color: var(--tertiary);
}

/* Responsive for Featured Projects */
@media (max-width: 767px) {
    .featured-projects-container {
        height: auto;
    }

    .featured-projects-container::before {
        width: 100%;
    }

    .featured-projects-content {
        padding: 20px;
    }

    .featured-projects-content h2 {
        font-size: 36px;
    }

    .projects-description {
        font-size: 16px;
    }
}

/* Why Choose Us Section */
#why-choose-us {
    background-image: url('/assets/img/about us background vector.png');
    background-position: top;
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    margin-top: 50px;
    min-height: 50vh;
    padding-bottom: 50px;
}

.choose-us-heading .bold-text {
    font-weight: bold;
}

.choose-us-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.choose-us-item {
    box-sizing: border-box;
    flex: 1 1 calc(25% - 30px);
    height: 300px;
    min-width: 200px;
    overflow: hidden;
    position: relative;
    text-align: center;
    transition: height 0.6s ease;
}

.choose-us-item p {
    margin: 15px !important;
}

.choose-us-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    transition: transform 0.6s ease;
    width: 100%;
}

.choose-us-description {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    height: 100%;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    transition: transform 0.6s ease;
    width: 100%;
}

.choose-us-description {
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.choose-us-item:hover .choose-us-content {
    transform: translateY(-100%);
}

.choose-us-item:hover .choose-us-description {
    opacity: 1;
    transform: translateY(0);
}

.choose-us-content h3 {
    font-size: 20px;
    margin: 15px 0;
    text-transform: uppercase;
}

.choose-us-item:nth-child(1) {
    background-color: var(--secondary);
    color: var(--white);
}

.choose-us-item:nth-child(2) {
    background-color: var(--gray-3175);
    color: var(--black);
}

.choose-us-item:nth-child(3) {
    background-color: var(--primary);
    color: var(--white);
}

.choose-us-item:nth-child(4) {
    background-color: var(--gray-3750);
    color: var(--black);
}

.choose-us-item .icon img {
    margin-bottom: 15px;
    max-width: 100px;
}

@media (max-width: 767px) {
    .choose-us-item {
        flex: 1 1 100%;
        min-width: 100%;
        width: 100%;
        height: auto;
        min-height: 250px;
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .choose-us-items {
        flex-direction: column;
    }

    /* Show description always on mobile (no hover needed for touch devices) */
    .choose-us-description {
        opacity: 1 !important;
        transform: translateY(0) !important;
        position: relative;
        margin-top: 20px;
    }

    /* Prevent content from sliding up on mobile */
    .choose-us-content {
        position: relative;
        transform: none !important;
    }

    .choose-us-item:hover .choose-us-content {
        transform: none !important;
    }
}

/* ========== STATISTICS SECTION ========== */
.statistics-section {
    background: linear-gradient(135deg, var(--primary) 0%, #024a6b 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.stat-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--tertiary);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-icon {
    font-size: 70px;
    color: var(--secondary);
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    .statistics-section {
        padding: 50px 0;
    }

    .stat-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stat-items {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #c74a2a 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn-primary {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--white);
}

.cta-btn-primary:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn-secondary:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .cta-section {
        padding: 50px 20px;
    }

    .cta-content h2 {
        font-size: 32px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ========== SERVICE SECTION IMPROVEMENTS ========== */
.service-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.service-tab {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    min-height: 48px;
}

.service-tab:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.service-tab.active {
    background: var(--primary);
    color: var(--white);
}

.service-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-tab-content.active {
    display: block;
    opacity: 1;
}

/* Service Item Cards */
.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: var(--white);
}

.service-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.service-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-item:hover img {
    transform: scale(1.1);
}

.service-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(1, 56, 85, 0.95) 0%, rgba(1, 56, 85, 0.8) 60%, transparent 100%);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-item .overlay h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-item .overlay .service-btn-discover {
    background: var(--tertiary);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-item .overlay .service-btn-discover:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .service-item img {
        height: 240px;
    }

    .service-item .overlay h3 {
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .service-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .service-tab {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    .service-item {
        margin-bottom: 20px;
    }

    .service-item img {
        height: 220px;
    }

    .service-item .overlay {
        padding: 20px 15px;
    }

    .service-item .overlay h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .service-item .overlay .service-btn-discover {
        padding: 9px 24px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-item img {
        height: 200px;
    }
}
/* ========== NEWS SECTION MOBILE FIX ========== */
@media (max-width: 991px) {
    .news-container.hide-on-mobile {
        display: block !important;
    }

    .news-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        width: 100%;
    }
}
@media (max-width: 991px) {
    .featured-projects-container::before {
        right: 0;
        background: rgba(0, 0, 0, 0.7);
    }

    html[dir="rtl"] .featured-projects-container::before {
        left: 0;
        background: rgba(0, 0, 0, 0.7);
    }

    .featured-projects-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .featured-projects-container {
        min-height: 400px;
    }

    .featured-projects-content {
        padding: 30px 20px;
        text-align: center;
    }

    .featured-projects-content h2 {
        font-size: 32px;
    }

    .featured-projects-content .projects-description {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .featured-projects-content h2 {
        font-size: 28px;
    }

    .featured-projects-content .projects-description {
        font-size: 15px;
    }

    .featured-projects-content .btn-read-more {
        padding: 10px 30px;
        font-size: 13px;
    }
}
/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
.service-tab:focus,
.cta-btn:focus,
.btn-read-more:focus {
    outline: 3px solid var(--tertiary);
    outline-offset: 2px;
}

/* Keyboard navigation for sliders */
.dot:focus {
    outline: 2px solid var(--tertiary);
    outline-offset: 4px;
}

/* Better touch targets for mobile */
@media (max-width: 767px) {
    .service-btn-discover,
    .btn-read-more,
    .brochure-btn-download {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}