* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root{
    --primary-color: #0054d3;
    --light-color: #f4f4f6;
    --dark-color: #111;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.header {
    background: #0054d3;
    color: white;
    padding: 0px 10px;
    text-align: center;
    font-size: 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    
}
.container {
    display: flex;
    flex: 1;
}
.sidebar {
    background: #f4f4f4;
    padding: 20px;
    background: #f4f4f4;
    width: 250px;
    height: 100vh; /* Make sidebar full height */
    padding: 20px;
    position: fixed; /* Fix the sidebar */
    left: 0; /* Position at the left side */
    top: 60px; /* Stick to the top */
    overflow-y: auto;
}
.content {
    flex: 1;
    padding: 20px;
    margin-left: 250px; 
    margin-top: 60px;
}

.footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 10px;
    margin-left: 160px;
}


body{
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background: #ffffff;
    color: #111;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

a{
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

li {
    list-style: none;
}

img{
    max-width: 100%;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}




/* header */


.header .h-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header .h-flex .logo {
    max-width: 80px; /* Adjusted size */
}

.header .h-flex .logo img {
    width: 100%;
    border-radius: 50%;
    padding: 5px;
}

/* Search Bar */
.header .h-flex .search-form {
    flex: 1; /* Takes available space */
    background-color: var(--light-bg);
    padding: 10px;
    border-radius: 5px;
}

.header .h-flex .search_box {
    font-size: 2rem;
    border: 2px solid #c7c7c7;
    border-radius: 5px;
    width: 60%;
    padding: 10px;
    text-align: center;

}

.header .h-flex  .btn-src {
    background-color: white;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid #c7c7c7;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}


.header .h-flex .search_box:hover {
    border: 2px solid #0054d3;
}

.header .h-flex .btn-src:hover{
    color: #0040a0;
    transition-duration: 0.4s;
}

.header .h-flex .search_box:hover {
    border: 2px solid #0054d3;
    transition-duration: 0.4s;
}


.header .h-flex .btn-main {
    background-color: white;
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid #c7c7c7;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}


.header .h-flex .icon .btn:hover {
    background-color: #0040a0;
}


 /* siebar */
 
.sidebar .profile{
    padding:0rem 3rem;
    text-align: center;
}
 
.sidebar .btn{
font-size: 1.5rem;
width: 100%;
text-align: center;
padding: 10px;
}

.sidebar .btn i{
    padding-left: 10px;
    }

.sidebar .profile .image{
    width: 70%;
    border-radius: 50%;
    margin-bottom: 1rem;
}
 
.sidebar .profile .name{
    font-size: 2rem;
}


.sidebar .navbar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-content: flex-end;
    gap: 25px;
    margin-top: 30px;

}
 
.sidebar .navbar .txt{
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    font-size: 1.7rem;
    color: #111 ;
}


.sidebar .navbar .txt:hover{
    color: #0054d3 ;
    transition-duration: 0.4s;
}


.sidebar .navbar .space{
    margin-top: 30px;
}


.sidebar .navbar .button-nav{
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}


/* content */


.content .title{
    text-align: center;
    margin: 30px;
    font-size: 3rem;
    color: #0040a0;
}

.content .text{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 5px 80px;
}


.card {
    flex: 0 0 300px; 
    min-height: 400px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;    
    min-height: 400px;
    text-align: center;
    background: #ffffff;
    font-size: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);
    scroll-snap-align: center;
    margin: 0px 50px;
}

.card .card-title{
    direction: rtl;
    text-align:right;
    font-size: 1.9rem;
    color: #0054d3;
    padding-bottom: 5px;
    border-bottom: 2px solid #dbdbdb;

}

.card .card-img{
    margin: 30px;
    width: 50%;
    height: 150px; 
    object-fit: cover;
}

.card .card-imgQ{
    margin: 30px;
    width: 50%;
    object-fit: cover;
}


.card .info{
    direction: rtl;
    text-align:center;
    font-size: 1.9rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #dbdbdb;
}

.card .card-button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.card .card-button .btn{
width: 100%;
}

.card .links{
    margin: 20px 0px;
    font-size: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.card .links a:hover{
    font-weight: 600;
    color: #0054d3 ;
    transition-duration: 0.4s;
}

.card .choose{
    font-size: 2rem;
    direction: rtl;
    gap: 20px;
    padding: 50px 80px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: right;
}

.card .question{
    gap: 10px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.card .review {
    text-align: right;
    padding-top: 10px;
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    font-size: 2rem;
    align-items: center;
    color: #0054d3;

}

.card-sigin{
    box-sizing: border-box;
    margin: 50px;
    display: flex;
    flex-direction: row;
    gap: 0px;
}

.cardin {
    padding: 30px;    
    background: #ffffff;
    font-size: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);
    margin: 0px 20px;
}

.cardin .card-title{
    direction: rtl;
    text-align:right;
    font-size: 1.9rem;
    color: #0054d3;
    padding-bottom: 5px;
    border-bottom: 2px solid #dbdbdb;

}

.cardin .card-img{
    margin: 30px;
    width: 80%;
    height: 180px; 
    object-fit: cover; 
}


.cardin .info{
    direction: rtl;
    text-align:center;
    font-size: 1.9rem;
    padding: 30px 0px;
    border-bottom: 2px solid #dbdbdb;
}

.cardin .card-button{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.cardin .review {
    text-align: right;
    padding-top: 10px;
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
    font-size: 2rem;
    align-items: center;
    color: #0054d3;

}

.pay-card{
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);
    margin: 20px;
    padding: 20px;
    border-radius: 20px;
    width: 50%;
}

.pay-content{
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
}

.paytitle{
   text-align: center; 
   padding: 20px;
   margin: 20px;
   color: #0040a0;
}

.card-sigincont{
    margin: 20px;
    display: flex;
    flex-direction: row;
    gap: 70px;
    width: 100%;
    font-size: 4rem;
    border-radius: 100%;

}

.card-sigincont i:hover{
    border-radius: 100%;
    color: #0040a0;
    box-shadow: 0 0 20px rgba(0, 26, 255, 0.618);
    transition-duration: 0.4s;

}

.pay-content input{
    border-style: none;
    border-bottom: 2px solid #c7c7c7;
    padding: 10px 30px;
    margin: 20px;
    width: 100%;
    font-size: 2rem;
}

.pay-content input:hover{
    color: #0040a0;
    border-bottom: 2px solid #0040a0;
    transition-duration: 0.2s;
}


/* functions */

.midd{
    display: flex;
    justify-content: center;
    align-items: center;
}



/* buttons */

.btn{
    background-color: white; 
    font-size: 2rem;
    cursor: pointer;
    border: 2px solid #c7c7c7;
    border-radius: 5px;
    padding: 10px;
    width: 60%;
    text-align: center;
}

.btn:hover{
    background-color: #0054d3;
    border: 2px solid #0054d3;
    color: white;
    transition-duration: 0.4s;
 }

 
 @media (max-width: 900px) {
    
    .scroll {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-left: 0px;
        justify-content: center;
        margin-left: auto; 
        margin-right: auto;
        padding: 10px;
    }

    .text-b{
        font-size: 1.4rem !important;
    }

    .text-h{
        font-size: 1.2rem;
    }

    .card {
        flex: 0 0 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 30px;    
        min-height: 400px;
        text-align: center;
        background: #ffffff;
        font-size: 2.5rem;
        border-radius: 20px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.16);
        scroll-snap-align: center;
        margin: 0px 50px;
    }

    .card .info {
        direction: rtl;
        text-align: center;
        font-size: 1.4rem;
        padding-bottom: 15px;
        border-bottom: 2px solid #dbdbdb;
    }
    
    .card .card-title {
        direction: rtl;
        text-align: right;
        font-size: 1.4rem;
        color: #0054d3;
        padding-bottom: 5px;
        border-bottom: 2px solid #dbdbdb;
    }

    .card .card-img{
        margin: 30px;
        width: 30%;
        padding-bottom: 10px;
    }

    .content .text {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 5px 10px;
    }

    .card .card-button .btn{
        font-size: 1.4rem;
    }
    .content{
        margin-left: 220px;
    }
}
@media (max-width: 768px) {
    .scroll {
        width: 100%;
        flex-direction: column;
    }
    .card {
        width: 90%;
        margin: 10px auto;
    }
}
@media (max-width: 600px) {
    .scroll {
        width: 100%;
        padding: 5px;
    }

    .content{
        margin-left: 220;
    }
}

@media (max-width: 1260px) {
    .scroll {
        width: 75%;
        margin-left: 100px;
        
    }
    .content{
        margin-left: 140px;
    }

}

@media (max-width: 1160px) {
    .scroll {
        width: 80%;
        margin-left: 50px;
    }
    .content{
        margin-left: 120px;
    }
}

@media (max-width: 1060px) {
    .scroll {
        width: 80%;
        margin-left: -20px;
    }

    .content{
        margin-left: 100px;
    }
}
/* here */
@media (max-width: 1024px) {
    .card-sigin{
        flex-direction: column;
        gap: 20px;
        width: 50%;
    }

    .cardin {
        padding: 10px;
        font-size: 1.5rem;
        margin: 0px 10px;
    }

    .cardin .card-title {
        font-size: 1.4rem;
      }

    .cardin .card-img {
        margin: 30px;
        padding: 85px;
        max-height: 167px;
    }

    .cardin .info {
        font-size: 1.2rem;
        padding: 10px 0px;
      }

      .pay-content input {
        font-size: 1.5rem;
        width: 80%;
      }

    .container {
        flex-direction: column;
        margin-top: 60px;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
        padding: 15px;
    }
    .content {
        margin-left: -130px;
        padding: 15px;
    }
    .scroll {
        width: 90%;
        margin: 0 auto;
        padding: 10px;
    }
    .sidebar .profile .image {
        width: 20%;
        border-radius: 50%;
        margin-bottom: 1rem;
    }
    .content {
        margin-top: 150px;
        margin-left: 0px;
        padding: 10px;
      }
    .footer{
        margin: 0px;
    }
}

@media (max-width: 768px) {
    .header .h-flex {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }
    .header .h-flex .search-form,
    .header .h-flex .btn-src,
    .header .h-flex .btn-main {
        width: 100%;
        text-align: center;
    }
    .sidebar {
        display: none;
    }
    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 2000;
    }
    .sidebar.active {
        display: block;
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        background: #f4f4f4;
        padding: 15px;
    }
    .content {
        margin-top: 150px;
        margin-left: -130px !important;
        padding: 10px;
      }
    .footer{
        margin: 0px;
    }
}

@media (max-width: 480px) {
    .card {
        margin: 10px auto;
        width: 95%;
    }
    .card .card-title,
    .card .info {
        font-size: 1.2rem;
    }
    .btn {
        font-size: 1.2rem;
        padding: 8px;
    }
}

.menu-toggle {
    width: 30px;
    height: 25px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: #fff;  
    border-radius: 2px;
}

@media (max-width: 768px) {
    .header {
        padding: 5px 10px;
        font-size: 1.2rem;
    }
    .header .h-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px;
    }
    .header .h-flex .search-form,
    .header .h-flex .btn-src,
    .header .h-flex .btn-main {
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        padding: 8px;
    }
    .sidebar {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .sidebar.active {
        display: block;
        position: fixed;
        left: 0;
        top: 60px;
        width: 100%;
        background: #f4f4f4;
        padding: 15px;
        z-index: 1500;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 5px 10px;
        font-size: 1.2rem;
    }
    .header .h-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
    }
    .header .h-flex .search-form,
    .header .h-flex .btn-src,
    .header .h-flex .btn-main {
        width: 100%;
        text-align: center;
        font-size: 1rem;
        padding: 8px;
    }
    
    .menu-toggle {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        left: auto;
        width: 30px;
        height: 25px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 2000;
    }
    .menu-toggle span {
        display: block;
        height: 4px;
        background-color: #fff;
        border-radius: 2px;
    }
    
    .sidebar {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        background: #f4f4f4;
        padding: 15px;
        z-index: 1500;
    }
    .sidebar.active {
        display: block;
    }
    
    .container {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 480px) {
    .card {
        margin: 10px auto;
        width: 95%;
    }
    .card .card-title,
    .card .info {
        font-size: 1.1rem;
    }
    .btn {
        font-size: 1.1rem;
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 5px 5px;
        font-size: 1rem;
    }
    .header .h-flex {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 5px;
    }
    .header .h-flex .search-form {
        width: 90%;
        padding: 5px;
    }
    .header .h-flex .search_box {
        font-size: 1rem;
        padding: 5px;
        width: 100%;
    }
    .header .h-flex .btn-src,
    .header .h-flex .btn-main {
        font-size: 0.9rem;
        padding: 5px 8px;
        margin: 0 auto;
        width: auto;      
        max-width: 200px; 
        text-align: center;
        display: inline-block;
    }
    .content {
        margin-top: 150px; 
        margin-left: 0;
        padding: 10px;
    }
    
    .menu-toggle {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        left: auto;
        width: 30px;
        height: 25px;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 2000;
    }
    .menu-toggle span {
        display: block;
        height: 4px;
        background-color: #fff;
        border-radius: 2px;
    }
}

.header .h-flex .logo img {
    width: 70%;
    border-radius: 50%;
    padding: 5px;
  }