/* Custom styles */
:root {
    --primary-rgb: 43, 118, 187;
    --secondary-rgb: 185, 145, 110;
    --header-height: 87px;
    --primary-color: rgb(var(--primary-rgb));
    /* Adjust based on your header height */
}

html {

    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;


}

* {
    text-align: start;
}

body {
    font-family: "Inter", sans-serif !important;
}

.ps-2 {
    padding-inline-start: 8px;
}

.ps-3 {
    padding-inline-start: 16px;
}

.gap-3 {
    gap: 1rem;
}

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 7px;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(var(--primary-rgb), 0.401);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.form-control :focus {
    border-color: var(--primary-color);
    box-shadow: var(--primary-color);
}

.section {
    padding-block: 47px 50px;

}

.section img {
    max-width: 100%;
}

.section .heading {
    text-transform: capitalize;
    color: #283034;
    font-size: 30px;
    line-height: 52.8px;

    font-weight: 600;
    margin-bottom: 20px;
    text-align: start;

}

.section .desc {
    font-size: 14px !important;
    color: #283034;
    line-height: 25px;
    font-weight: 300;
    margin-bottom: 20px;

}

.bg {
    background: var(--primary-color);
    color: white;

}

.animated-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Final state (visible and in place) */
.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn.send {
    display: inline-block;
    padding: 10px 30px;
    text-align: center;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.7px;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    border-radius: 35px;
    background: var(--primary-color);
    transition: all 500ms ease;
    cursor: pointer;
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin-top: 25px;
    text-decoration: none;
    transition: all 0.4s ease-in-out 0s;
}

.btn.send:hover {
    color: var(--primary-color);
    background: transparent;
}

/* Header */
.header {
    background-color: white;
    transition: background-color 0.3s ease;
}

.rtl-logo {
    display: none;
}


.header-scrolled {
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header img.header-logo {
    width: 90px;
}


.btn-register {
    display: inline-block;
    margin-inline-start: 30px;
    padding-inline: 20px !important;
    color: white !important;

    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    border-radius: 5px;
    transition: all 0.4s ease-in-out 0s;


}


.btn-register:hover {

    color: var(--primary-color) !important;

    background: transparent;

}

.header .lngs {
    text-align: end;
    width: 100px;
    padding-inline-start: 40px;
}

/* End Header */



/* home */
.home {
    margin-top:var(--header-height);
    /* Header Height*/


    /* height: 600px; */
    height:calc( 100vh - var(--header-height)); /* Full height of the viewport */
background-color: #eee;
}

.home-content .button {
    box-shadow: none;
}

.carousel-item img {
    object-fit: cover;
    /* height: 600px; */
    height:calc( 100vh - var(--header-height)); /* Full height of the viewport */

}

.carousel-caption {

    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.2);

    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    padding: 0;
    right: 0;
}

.carousel-caption .carousel-caption__wrapper {
    padding-inline: 20px;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}


.scale {
    transform: scaleX(-1);
}

/*End Of home  */

#courses,
#calcs,
#locations {
    background-color: #eeeeee7c;
}


.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th, .table td {
    white-space: nowrap;
    text-align: center; /* Center-align the content */
}

@media (max-width: 768px) {
    .table th, .table td {
        font-size: 14px; /* Reduce font size for smaller screens */
        padding: 8px; /* Reduce padding */
    }

    .table th.bg, .table td {
        display: block;
        width: 100%;
        text-align: start; /* Align text to the left for easier reading */
        padding-inline-start: 10px;
        border: none;
    }

    .table thead {
        display: none; /* Hide table header on small screens */
    }

    .table tbody tr {
        margin-bottom: 15px; /* Add space between rows */
        display: block;
        border-bottom: 1px solid #ddd;
    }

    .table tbody tr td {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 8px;
        border-top: 1px solid #ddd;
    }

    .table tbody tr td::before {
        content: attr(data-label); /* Use the 'data-label' attribute for headers */
        flex-basis: 50%;
        font-weight: bold;
    }

    .table tbody tr td select, .table tbody tr td input {
        width: 100%;
    }
    
}



.bg-yellow {
    background-color: rgba(var(--secondary-rgb), .71);
}

.text-yellow {
    color: rgba(var(--secondary-rgb), .71)
}

.bg-blue {
    background-color: rgba(var(--primary-rgb), 0.51);
}

.text-blue {
    color: rgba(var(--primary-rgb), 0.51);
}





/* .bg2{
    background-color: rgb( 185,145,110);
} */


/* Start Location */
#locations {
    padding-block: 50px;

}

.locations .list {
    border-right: 1px solid #ddd;
    border-left: unset;
    overflow-y: auto;
}

.locations .list ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.locations .list ul li {
    display: flex;
    gap: 10px;
    align-items: center;

}

.locations .list ul li .number {
    display: inline-block;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;

    width: 45px;
    height: 45px;
    text-align: center;
    border: 1px solid #eee;
    color: var(--primary-color);


}

.locations .list li .branch {

    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.locations .list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
}

.locations .list li:hover .branch,
.locations .list li:hover .number {
    color: white;
}



.locations .list li:hover {
    background-color: rgba(var(--primary-rgb), 0.318);
    color: white;
}


.locations .list li.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.locations .list ul li.active .branch {

    color: white;


}

.locations .list ul li.active .number {

    color: white;


}

.locations .details {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;

}

.locations .details .working-hours ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}


.locations .details .location-name {
    font-size: 1.2525rem;
    font-weight: 500;
    color: var(--primary-color);


}

.locations .details .address {
    display: flex;
    justify-content: space-between;

}

.locations .details .address i,
.locations .details .phone i {
    margin-inline-end: 12px;
    color: var(--primary-color);
}

.locations .details .address a {
    background-color: var(--primary-color);
    color: white;
    height: fit-content;
    gap: 5px;
    flex-wrap: wrap;


}

.locations .details .working-hours ul {
    padding: 0;

}

.locations .details .working-hours .working-hours-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);

}


/* End Of Location */

/* contact */
#contact {
    padding-block: 0;
}

.contact {

    background-color: #f8f9fb;
    padding-block: 30px;

}



.contact .form-container .form-heading {
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 12px;

}

.contact .form-container .form-desc {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 12px;

}


/* Courses */
.courses {
    max-height: 300px;
    overflow: auto;
}

.courses .course {
    padding: 20px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 20px;
}

.courses .course .course-name {
    font-size: 20px;
    font-weight: 500;
}

.courses .course .icon {

    font-size: 22px;
    /* Adjust size as needed */
    color: var(--primary-color);
    /* Adjust color as needed */
}

/* register */
#register {
    background: url('./assets/pexels-pixabay-247819.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* .register {
    padding-block: 50px;

} */

.register-container {
    padding: 40px;
    background-color: white;
    border-radius: 6px;
}

.register .heading {
    color: white;
}

.register .desc {
    color: white;
}


/* Calc */

.btn-calc {
    display: block;
    width: 100%;
    padding-inline: 20px !important;
    color: white !important;

    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    border-radius: 5px;
    transition: all 0.4s ease-in-out 0s;
    margin-bottom: 1rem;

}

.note {
    font-size: 14px;
    margin-bottom: 10px;

}

.note-icon {
    padding-inline-end: 20px;
}

.error-message {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 4px;
   
  }
  
  .is-invalid {
    border-color: red;
  }
.btn-calc:hover {

    color: var(--primary-color) !important;

    background: transparent;

}







/* footer section start */

#footer {


    padding-block: 40px 80px;
}

#footer2 {
    padding: 3rem;
    margin-top: 0px;
    padding-top: 7rem;
    padding-bottom: 80px;
}

.logo-footer {
    max-width: 80px;
}

.footer-desc {


    font-size: 14px !important;
    color: #777777;
    line-height: 25px;
    font-weight: 500;
}



.social-links h2 {
    font-size: 20px;
    font-weight: 600;
}

.social-links img {
    padding-bottom: 25px;
}

.social-icons {

    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: #777777;
}

.social-icons a {

    color: #777777;
}

.social-icons a:hover {
    color: #000;
}

.social-icons a i {
    box-shadow: rgb(0 0 0 / 8%) 0px 4px 12px;
    padding: 0.4rem 1rem 0.4rem 1rem;
    border-radius: 3px;
    color: var(--primary-color);
    ;
    font-size: 16px;
    margin-inline-end: 12px;
}

li {
    list-style: none;
}

.useful-link h2 {
    font-size: 20px;
    font-weight: 600;
}

.useful-link img {
    padding-bottom: 15px;
}

.use-links {
    line-height: 32px;
}

.use-links li i {
    font-size: 14px;
    padding-inline-end: 8px;
    color: #898989;
}

.use-links li a {
    color: #303030;
    font-size: 15px;
    font-weight: 500;
    color: #777777;
}

.use-links li a:hover {
    color: #000;
}

.address h2 {
    /* padding-bottom: 15px; */
    font-size: 20px;
    font-weight: 600;
}

.address img {
    padding-bottom: 15px;
}

.address-links li a {
    color: #303030;
    font-size: 15px;
    font-weight: 500;
    color: #777777;

}

.address-links li i {
    font-size: 16px;
    padding-inline-end: 8px;
    color: var(--primary-color);
    ;

}

.address-links li i:nth-child(1) {
    padding-top: 9px;
}

.address-links .address1 {
    font-weight: 500;
    font-size: 15px;
    line-height: normal;
    display: flex;
}

.address-links {
    line-height: 32px;
    color: #777777;
}

.copy-right-sec {
    padding: 1.8rem;
    background: var(--primary-color);
    ;
    color: #fff;
    text-align: center;
}



a {
    text-decoration: none;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #9b2121;
    border-bottosm-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* footer section end */
@media (max-width: 991px) {
    .btn-register {
        margin-inline-start: unset;

    }

    .header .lngs {
        text-align: unset;
        margin-block: 20px;
        padding-inline-start: unset;
    }




    .carousel-caption .carousel-caption__wrapper {
        width: 100%;
    }

    .section,
    #locations {
        padding-block: 15px 15px;

    }

    .section .heading {
        line-height: 32px;
        font-size: 26px;

    }

    

    #footer {

        padding-block: 15px 15px;

    }

}