﻿@import url('../../variables.css');
.grid-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    align-items: start;
    margin-top: 2.5rem;
}
.item1 {
    grid-column: 1 / span 1;
}
.text-center h2 {
    font-size: 2.5rem;
}
.text-center p {
    color: #848484;
    font-size: 1.25rem;
}
.active-tab {
    border-left: .3125rem solid #024F82;
}
.tabs:not(:last-child) {
    border-bottom: .0625rem solid #D0D0D0;
}
.tabs {
    cursor: pointer;
    color: #024F82;
    font-size: 1.5rem;
    padding: 1.5rem;
}
.tap-overlay {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0.625rem;
    padding: 1.875rem 3.125rem;
    position: absolute;
    top: 14%;
    left: 10%;
    width: 29.4375rem;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.05);
}
.tap-overlay p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #848484;
}
.tap-overlay h2 {
    font-size: 1.5rem;
    color: #000000;
    line-height: 2.5;
}
.style-link {
    font-size: 1rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
}
.style-link:hover {
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
}
#tab4 {
    margin-bottom: 0.4375rem;
}
/* FadeIn animation for item2 in What Dose Azka Do Section */
.item2 {
    animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}
.tab-content .tab-pane {
    display: none;
    opacity: 0;
}
.tab-content .tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out forwards;
}
/* Responsive CSS Code For What Dose Azka Do */
@media (min-width:1367px){
    .tabs {
        padding: 2.1875rem;
    }
}

@media(min-width:1025px){
    .tab-pane img {
        min-height: 362px;
    }
}
@media (max-width: 1024px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
        margin-top: 1.25rem;
    }
    .item1 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        margin: auto;
        margin-bottom: 0.3125rem;
    }
    .tabs {
        flex: 0 0 auto;
        padding: 0.4rem;
        font-size: 0.45rem !important;
        text-align: center;
        border-bottom: none !important;
    }
    .tabs h3 {
        font-size: 1.2rem;
    }
    .active-tab {
        border-left: none;
        border-bottom: 3px solid #024F82 !important;
    }
    .tap-overlay {
        width: 90%;
        left: 5%;
        top: 12%;
        padding: 1.25rem;
    }
    .tap-overlay h2 {
        font-size: 1.25rem;
        line-height: 1.8;
    }
    .tap-overlay p {
        font-size: 0.875rem;
    }
}
@media(max-width:768px){
    .tap-overlay {
        width: 96%;
        left: 2%;
        top: 1%;
        padding: 1.5rem;
    }
    .tab-pane img {
        height: 311px;
    }
    .tabs h3 {
        font-size: 0.9rem;
    }
}
@media (max-width: 576px) and (min-width:529px) {
    .subTitlePrimary {
        font-size: 1.75rem;
    }
    .p-color {
        font-size: 1rem;
    }
    .item1 {
        gap: 0.3125rem;
    }
    .tabs {
        padding: 0.5rem;
    }
    .tabs h3 {
        font-size: 0.70rem;
    }
    .tap-overlay {
        width: 90%;
        left: 5%;
        top: 8%;
        padding: 1.8rem;
    }
    .tap-overlay h2 {
        font-size: 1.125rem;
        margin:0;
    }
    .tap-overlay p {
        font-size: 0.75rem;
        margin-bottom:0;
    }
    .style-link {
        font-size: 0.75rem;
    }
}
@media (max-width: 528px){
    .subTitlePrimary {
        font-size: 1.75rem;
    }
    .p-color {
        font-size: 1rem;
    }
    .item1 {
        gap: 0.3125rem;
    }
    .tabs {
        padding: 0.5rem;
    }
    .tabs h3 {
        font-size: 0.70rem;
    }
    .tap-overlay {
        width: 90%;
        left: 5%;
        top: 5%;
        padding: 1.8rem;
    }
    .tap-overlay h2 {
        font-size: 1.125rem;
        margin: 0;
    }
    .tap-overlay p {
        font-size: 0.75rem;
        margin-bottom: 0;
    }
    .style-link {
        font-size: 0.75rem;
    }
}
@media(max-width:471px) {
    .tap-overlay {
        width: 90%;
        left: 5%;
        top: 5%;
        padding-left: 1.5rem;
    }
    .tap-overlay h2 {
        font-size: 1rem;
        margin: 0;
    }
}
@media(max-width:465px) {
    .tabs {
        padding: 0.25rem;
    }
    .tabs h3 {
        font-size: 0.7rem;
    }
    .tap-overlay {
        width: 90%;
        left: 5%;
        top: 6%;
        padding: 1.5rem;
        line-height: 0.8;
    }
}
@media (max-width:430px){
    .tabs h3 {
        font-size: 0.55rem;
    }
    .tap-overlay {
        width: 95%;
        left: 3%;
        top: 9%;
        padding: 1.125rem;
        line-height: 0.8;
    }
}
@media (max-width:378px){
    .item1{
        gap:0.4rem;
    }
    .tabs {
        padding: 0;
    }
    .tabs h3 {
        font-size: 0.4rem;
    }
    .tap-overlay {
        width: 100%;
        left: 0%;
        top: 0%;
        padding: 1.125rem;
        line-height: 0.8;
    }
}
@media (max-width:377px) and (min-width:361px){
    .tap-overlay {
        width: 90%;
        left: 5%;
        top: 5%;
        padding: 1.125rem;
        line-height: 0.8;
    }
}
@media(max-width:360px) {
    .tap-overlay {
        width: 100%;
        left: 0%;
        top: 0%;
        padding: 1.125rem;
        line-height: 0.8;
    }
}

/* Statistics Section */
.stats-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
    margin: 0;
}

#StatisticsSection {
    padding-top:40px;
    padding-bottom:40px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.stats-slider-items {
    display: flex;
    transition: transform 0.5s ease;
}

.stats-slide-item {
    min-width: 100%;
    flex-shrink: 0;
    text-align: center;
    padding: 2.5rem;
    color: white;
    font-size: 1.5rem;
}

    .stats-slide-item h3 {
        font-size: 4rem;
    }

.stats-icon {
    margin-bottom: 0.625rem;
    width: 100px;
    height: 100px;
}

.stats-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
}

.stats-iconbtn {
    width: 40px;
    height: 40px;
    color: #fff;
}

.stats-arrow.stats-prev {
    left: 10px;
    top: 55%;
    width: 40px;
}

.stats-arrow.stats-next {
    right: 10px;
    height: 40px;
}

@media (min-width: 577px) and (max-width: 992px) {
    .stats-slide-item {
        min-width: 50%;
    }
}

@media (min-width: 993px) {
    .stats-slide-item {
        min-width: 33.3333%;
    }
}


@media (max-width: 518px) {
    .stats-slide-item {
        padding: 1.25rem 0px 0px;
    }
    .stats-slide-item h3 {
        font-size: 2rem;
    }

    .stats-slide-item p {
        font-size: 1rem;
    }
}


/* Our Client Section */

.clients-carousel {
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px; 
    flex-shrink: 0;
    box-sizing: border-box;
}

.carousel-slide img {
        max-height: 100px;
        object-fit: contain;
        width: 100%;
 }

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 0.625rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

/* Responsive media */
@media (min-width: 1200px) {
    .carousel-slide {
        flex-basis: calc(17% - 15px); 
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-slide {
        flex-basis: calc(25% - 10px); 
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-slide {
        flex-basis: calc(33.33% - 10px); 
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .carousel-slide {
        flex-basis: calc(50% - 10px); 
    }
}

@media (max-width: 575px) {
    .carousel-slide {
        flex-basis: calc(100% - 10px); 
    }

    .carousel-prev, .carousel-next {
        padding: 0.5rem;
        font-size: 1rem;
    }
}