:root {
    --mainColorBlack: #0a0c0d; 
    --mainColorBlue: #1A95D3; 
    --secondaryColorBlue: #1A95D3;
    --mainColorOrange: #E0A36F;
    --mainColorOrangedark: #d1813c;
    --mainColorGray: #e6e6e6;
}

body{
    overflow-x: hidden;
}
.main_nav {
    background-color: #F4F8FC;
    padding: 15px 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main_nav .nav-link{
    color: #1A95D3 !important;
    font-weight: 600 !important;
}

/* Logo styling */
.navbar-brand img {
    height: 40px;
    object-fit: contain;
}

/* Navigation links styling */
.nav-button {
    border-radius: 12px;
    padding: 8px 20px !important;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-button:hover,
.nav-button:focus,
.nav-item.active .nav-button {
    background-color: #1A95D3;
    color: white !important;
}

/* Sign in button styling */
.btn-sign-in {
    background-color: #1A95D3;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-sign-in:hover {
    background-color: #2d2f4d;
    color: white;
    transform: translateY(-1px);
}

/* Hero Section styles */
.hero-section {
    position: relative;
    background-color: #F4F8FC;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}


.hero-content {
    position: relative;
    z-index: 2;
}

.min-vh-80 {
    min-height: 80vh;
}




/* Card Styles */
.seminar-card {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}



/* Content Styles */
.seminar_Description {
    flex: 1;
    padding-right: 40px;
    z-index: 2;
    text-align: center;
}

.seminar_title {
    font-size: 1rem;
    font-weight: 700;
    color: #1A95D3;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.seminar_prof {
    font-size: 1rem;
    color: #1A95D3;
    font-weight: 600;
    margin-bottom: 1rem;
}

.seminar_date {
    display: inline-flex;
    align-items: center;
    background: rgba(59, 62, 101, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    color: #1A95D3;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.seminar_date i{
    color: #00AFC6;
}

.date-icon {
    margin-right: 8px;
}

.seminar_details {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.seminar_counter {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2rem;
}

.counter-item {
    background: #1A95D3;
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

.seminar_details_btn {
    background: #00AFC6;
    color: white;
    border: none;
    padding: 6px 50px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seminar_details_btn:hover {
    background: #00AFC6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.seminars_image {
    flex: 0 0 40%;
    z-index: 2;
    display: flex;
    align-items: center;
}

.seminars_image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    object-fit: cover; /* Maintain aspect ratio while covering area */
}

.about-section {
    position: relative;
    background-color: #FAFBFD;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 80px 0;
    color: #2e3133;
    font-weight: 600;
}



.min-vh-40 {
    min-height: 40vh;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.presentation-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.presentation-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.seminars-list h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.seminar-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.seminar-item:hover {
    transform: translateY(-5px);
}

.offline-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
}

.offline-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FFA500;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.voir-plus-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    background: white;
    color: #4c4177;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.voir-plus-btn:hover {
    background-color: #f0f0f0;
}

.caracteristics-section {
    position: relative;
    background-color: #e8e8e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
}

.min-vh-60 {
    min-height: 60vh;
}

/* Add display flex to the row to ensure equal height */
.carousel-item .row {
    display: flex;
    align-items: stretch;
    gap: 30px; /* Increased gap between items */
    justify-content: center;
    padding: 0 15px;
}

/* Make columns take full height and have equal width */
.carousel-item .col-md-4 {
    display: flex;
    margin-bottom: 20px;
    flex: 0 0 320px; /* Fixed width for all items */
    max-width: 400px; /* Maximum width */
}

.caracteristics-item {
    background-color: #1A95D3;
    color: #fff;
    border-radius: 20px; /* Increased border radius */
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    transition: all 0.3s ease-in-out;
    width: 100%;
    height: 250px; /* Fixed height for all items */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.item_head{
    display: flex;
    align-items: center;
    gap: 2%;

}

.caracteristics-item img {
    width: 30px;  /* Control the width of the image */
    height: 30px; /* Control the height of the image */
    object-fit: contain; /* Ensures the image keeps its aspect ratio */
    margin-bottom: 15px; /* Space between image and text */
}

.caracteristics-item h5 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.caracteristics-item p {
    font-size: 14px; /* Smaller font size */
    line-height: 1.5;
    margin: 0;
}

/* Position carousel controls on the sides */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
    background: none; /* Remove background */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent; /* Remove background */
    width: 40px;
    height: 40px;
    background-size: 100%;
    filter: invert(50%); /* Makes the icon gray */
}

/* Hover states */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(70%); /* Lighter gray on hover */
}

.caracteristics-title{
    color: #1A95D3;
    font-weight: 700 !important;
    font-size: 2em;
    text-align: center;

}

.services-section {
    position: relative;
    background-color: #FAFBFD;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
}

.min-vh-70 {
    min-height: 70vh;
}

.services-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-main-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partenair-section {
    position: relative;
    background-color: #ececec;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
}

.min-vh-30 {
    min-height: 30vh;
}


.partner-item {
    flex: 0 0 25%;  /* Each item takes up 25% of the container */
    padding: 15px;
    transition: transform 0.3s ease;
}

.partner-item img {
    max-width: 80%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    background-color: transparent; /* Remove default background */
    mix-blend-mode: multiply; /* Blends the image with the background */
}


.partner-item:hover img {
    filter: grayscale(0%);
}


.footer-section {
    background-color: #1A95D3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
}


.footer-section .container-fluid {
    position: relative;
    z-index: 2;
}

/* Footer Header Styles */
.footer-header {
    text-align: center;
    position: relative;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-right: 20px;
}

.footer-title {
    color: white;
    font-size: 1.8rem;
    margin-left: 20px;
}

/* Divider Styles */
.footer-divider {
    border:white solid 1px;
    width: 100%;
    margin: 0;
}

.vertical-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
}

.footer-content .col-lg-3 {
    position: relative;
    padding-right: 30px;
    padding-left: 30px;
}

/* Logo and Title Containers */
.logo-container, .title-container {
    display: flex;
    align-items: center;
}

/* Existing Footer Styles */
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

.footer-link:hover {
    color: white;
    text-decoration: none;
}

.input-group .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}



.input-group .btn-primary {
    background-color: white;
    border-color: white;
    color: #302b63;
}

.social-links a {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.btn-primary,.bg-primary{
    background-color: #1A95D3 !important;
    border-color: #1A95D3 !important; /* Optional, to match the border color */
    color: #fff !important;
  }
  
  .text-primary{
    color: #1A95D3 !important;
  }
  
  .btn-outline-primary {
  color: #1A95D3 !important; /* Text color */
  border-color: #1A95D3 !important; /* Border color */
  }
  .card{
    background-color: #F4F8FC !important;
  }
  
  .btn-outline-primary:hover {
    background-color: #1A95D3 !important; /* Background color on hover */
    color: #fff !important; /* Text color on hover */
  }

/* Responsive adjustments */

@media (max-width: 1290px) {
    .main_nav {
        padding: 10px 40px; /* Adjust padding for smaller screens */
    }

    .main_nav .nav-link {
        font-size: 14px; /* Reduce font size for smaller screens */
    }
}
@media (max-width: 1145px) {
    .main_nav {
        padding: 10px 20px; /* Adjust padding for smaller screens */
    }

    .main_nav .nav-link {
        font-size: 12px; /* Reduce font size for smaller screens */
    }
}
@media (max-width: 1034px) {
    .main_nav {
        padding: 10px 0px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 991px) {
    .vertical-divider {
        display: none;
    }

    .footer-content .col-lg-3 {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .footer-content .col-lg-3:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .footer-header {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .footer-title {
        margin-left: 0;
        font-size: 1.5rem;
    }
}
/* Add responsive adjustments if needed */
@media (max-width: 768px) {
    .services-main-image {
        width: 90%; /* Slightly smaller on mobile */
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    .carousel-item .row {
        gap: 15px; /* Smaller gap on mobile */
    }

    .carousel-item .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .seminar-card {
        flex-direction: column;
        padding: 30px;
    }

    .seminar_Description {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }

    .seminar_title {
        font-size: 2rem;
    }

    .seminar_counter {
        justify-content: center;
    }

    .seminars_image {
        /* width: 80%;
        margin: 0 auto; */
        display: none;
    }
}

@media (max-width: 767px) {
    .seminar_title {
        font-size: 1rem;
    }

    .seminar_details {
        font-size: 1rem;
    }

    .counter-item {
        padding: 8px 15px;
        font-size: 1.2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

    .nav-button {
        margin: 5px 0;
        text-align: center;
    }

    .btn-sign-in {
        margin-top: 10px;
        width: 100%;
        font-size: 12px; /* Ajuster la taille du texte */
    }
}


/* Custom styles */
.mainSlide {
    height: 90vh;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-indicators {
    bottom: 30px;
    z-index: 2;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: #fff;
}

.btn-primary-test {
    background-color: #00AFC6;
    border-color: #00AFC6;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff;
}

.title_main_orange {
    background-color: #00AFC6;
    border-color: #00AFC6;
    border-radius: 50px;
    font-weight: 600;
    color: #fff;
    padding: 0px 20px;
}

.btn-primary-test:hover {
    background-color: #00AFC6;
    border-color: #00AFC6;
}

.display-4 {
    font-size: 3.5rem;
    line-height: 1.2;
}

/* Make carousel caption visible on mobile */
@media (max-width: 768px) {
    .carousel-caption.d-none.d-md-block {
        display: block !important;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .caption-content h2{
        font-size: 1.4rem;
    }
}

.truncated-description {
    font-size: 1rem;
    line-height: 1.6;
}

/* Media query for mobile devices */
@media (max-width: 767.98px) {
    .truncated-description {
        font-size: 0.85rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Show only 3 lines of text */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 3.6em; /* Fallback for browsers that don't support line-clamp */
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .truncated-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2; /* Show only 2 lines on very small devices */
        max-height: 2.4em; /* Fallback */
    }
}
