* {
    padding: 0;
    margin: 0;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
  }
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    padding: 0;
    margin: auto;
    z-index: 2;
}

nav img {
    width: 150px;
}

.logo img {
    width: 110px;
    height: 110px;
}

ul li {
    list-style: none;
    margin: 0 auto;
    display: inline-block;
    padding: 0 10px;
    position: relative;
    text-decoration: none;
    text-align: center;
    font-family: arvo;
}

li a {
    color: black;
}

li a:hover {
    color: #dc745c;
}

li:hover {
    cursor: pointer;
}

ul li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    padding-left: 0;
    left: 0;
    display: none;
    background: white;
    z-index: 2;
}

ul li:hover>ul,
ul li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
    min-width: 250px;
    text-align: left;
    padding-top: 20px;
    box-shadow: 0px 3px 5px -1px #ccc;
}

ul li ul li {
    clear: both;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
    border-style: none;
}

ul li ul li a:hover {
    padding-left: 10px;
    border-left: 2px solid #3ca0e7;
    transition: all 0.3s ease;
}


nav ul li a {

    text-decoration: none;

    &:hover {
        color: #dc745c;
    }

}

ul li ul li a {
    transition: all 0.5s ease;
}

/* Base styles for the navbar remain unchanged */

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Media query for mobile view */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    nav img {
        width: 100px;
    }

    /* Hide the nav links by default on mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
        
        z-index: 2;
    }

    /* Show the menu icon on mobile */
    .menu-icon {
        display: block;
    }

    /* When the nav is active, show the links */
    .nav-links.active {
        display: flex;
    }

    ul li {
        display: block;
        margin: 10px 0;
    }

    ul li ul {
        position: static;
        box-shadow: none;
        padding: 0;
    }

    ul li ul li {
        margin-bottom: 0;
    }

    ul li ul li a:hover {
        padding-left: 0;
        border-left: none;
    }
}


.content {
    position: relative;
    /* Sets the background color */
    background-image: url('../images/canada2.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom right;
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 50px;
}

.content nav {
    flex: 2;
} 

.content::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(4, 0, 255, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.content::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.300);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.content .text {
    color: white;
    width: 45%;
    z-index: 1;
}

.content .text h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.content .text p {
    font-size: 18px;
    margin: 20px 0;

}

.button-6 {
    align-items: center;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
    box-sizing: border-box;
    color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
    display: inline-flex;
    font-family: system-ui, -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    justify-content: center;
    line-height: 1.25;
    margin: 0;
    min-height: 3rem;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    position: relative;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}

.button-6:hover,
.button-6:focus {
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    color: rgba(0, 0, 0, 0.65);
}

.button-6:hover {
    transform: translateY(-1px);
}

.button-6:active {
    background-color: #F0F0F1;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
    color: rgba(0, 0, 0, 0.65);
    transform: translateY(0);
}

.content .div-form {

    background-color: #fff;
    padding: 40px;
    width: 30%;
    margin: 0;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-popup .form-container form{
    width: 100%;
}

.form-container h2 {
    font-size: 28px;
    font-weight: 600;
    color: #223b74;
}

.form-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

form textarea {
    resize: vertical;
    height: 100px;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    background-color: #e7352b;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.card-container {
    display: flex;
    justify-content: center;
    margin: 10px auto;
    flex-flow: row wrap;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 30%;
    min-width: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover{
    border-top: #dba100 solid 2px;
}

.text2 {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    margin: 20px;
}

.text2 h2 {
    width: 40%;
    font-family: "Poppins";
    font-weight: 600;
    text-align: center;
    font-size: 25px;
    color: #010a47;
}

.text2 p {
    width: 40%;
    text-align: center;
    color: rgb(0, 0, 0, 0.5);
}

.card-content {
    height: 300px;
    padding: 20px;
    text-align: center;
}

.card-content h3 {
    color: #0d1c79;
    font-size: 19px;
    margin-bottom: 10px;
}

.card-content p {
    color: #6f7284;
    margin-bottom: 20px;
    font-size: 15px;
}

.card-highlight {
    background-color: #dba100;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    height: 100px;
}

.card a {
    display: inline-block;
    margin-top: auto;
    padding: 10px;
    color: #0d1c79;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 20px;
}

.card a:hover {
    text-decoration: underline;
}

.icon {
    font-size: 2rem;
    color: #0d1c79;
    margin-bottom: 10px;
}

.text3 {
    background-color: #001A57;
    height: 300px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}

.text3 .text3-title {
    width: 60%;
}

.text3 .text3-title h2 {
    color: #FFFFFF;
    font-size: 27px;
    font-weight: 600;
    line-height: 37px;
    margin: 10px 15px;

}

.text3 .text3-title p {
    font-size: 14px;
    color: #ffffff;
    margin: 10px 15px;
}

.button-37 {
    background-color: #dba100;
    border: 1px solid #dba100;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-37:hover {
    box-shadow: #dba100 0 3px 9px 0;
    transform: translateY(-2px);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 50px;
    max-width: 100%;
    background-color: #001A57;
}

.service-card {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}

.service-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    filter: invert(32%) sepia(75%) saturate(5692%) hue-rotate(354deg) brightness(105%) contrast(105%);
    /* Red icon color */
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.service-card p {
    font-size: 16px;
    color: #dcdcdc;
}


.journey-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.journey {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    align-items: center;
    gap: 30px;
}

.journey-text {
    flex: 1;
}

.journey h2 {
    font-size: 24px;
    color: #0C2146;
    /* Navy blue color */
    margin-bottom: 20px;
}

.journey p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.timeline {
    margin-top: 20px;
}

.timeline-item {
    margin-bottom: 20px;
}

.timeline-item h3 {
    font-size: 22px;
    color: #0C2146;
    margin-bottom: 5px;
}

.timeline-item p {
    font-size: 16px;
    color: #666;
}

.journey-image {
    flex: 0 0 250px;
}

.journey-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.cta-section {
    text-align: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-section h1 {
    font-size: 28px;
    color: #0C2146;
    /* Navy blue color */
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cta-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    flex: 1;
}

.cta-card.large-card {
    max-width: 700px;
    text-align: center;
}

.cta-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    filter: invert(32%) sepia(75%) saturate(5692%) hue-rotate(354deg) brightness(105%) contrast(105%);
    /* Red icon color */
}

.cta-card h3 {
    font-size: 20px;
    color: #0C2146;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cta-card button {
    background-color: #dba100;
    /* Red button */
    color: #fff;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.cta-card a {
    display: inline-block;
    font-size: 16px;
    color: #0C2146;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.cta-card a:hover {
    border-bottom: 1px solid #0C2146;
}


.footer {
    background-color: #001A57;
    padding: 20px;
    color: white;
    height: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* محاذاة العناصر من الأعلى */
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 1200px; /* لضبط الحد الأقصى للعرض */
}

.footer-section {
    flex: 1;
    text-align: left;
    min-width: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* محاذاة المحتوى في الأعلى */
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* محاذاة الشعار والنص إلى اليسار */
}

.footer-logo img {
    width: 150px; /* تعديل عرض الشعار */
    height: auto;
    margin-bottom: 10px; /* مسافة أسفل الشعار */
}

.footer-logo p {
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    margin: 0; /* إزالة أي مسافات إضافية */
    padding-top: 10px;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: left;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    line-height: 2;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #dc745c;
}

.consultation-button {
    display: inline-block;
    background-color: #F1453D;
    color: #fff;
    padding: 10px 20px;
    margin-bottom: 15px; /* مسافة بين الزر والبريد الإلكتروني */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.footer-section p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #fff;
    font-size: 12px;
    color: #9BA7C2;
}

/* Styles for success messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Green bar style for success messages */
.alert-success {
    background-color: #28a745; /* Bootstrap green color or your preferred shade */
}
#whatsapp-icon {
    position: fixed;
    bottom: 70px;
    right: 20px;
    color: #25d366;
    font-size: 4rem;
    border-radius: 50%;
    z-index: 1000;
  }
  
  #whatsapp-icon:hover {
    transform: scale(1.2);
  }
  #whatsapp-icon.scrolled {
    animation: bounce 1.5s infinite;
  }

  .contact-button {
    position: fixed;
    bottom: 5px;
    right: 20px;
    color: #e0d206;
    font-size: 4rem;
    border-radius: 50%;
    z-index: 1000;
  }
  
  .contact-button:hover {
    transform: scale(1.2);
  }

  .form-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: hidden; /* Prevent automatic scrolling */
  }
  
  /* Form Container */
  .form-container {
    background-color: white;
    padding: 15px; /* Reduced padding */
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    margin: auto;
    max-height: 100vh; /* Limit the form's height */
    overflow-y: auto; /* Allow vertical scrolling */
  }
  
  /* Reduced Spacing for Inputs */
  input[type="text"],
  input[type="email"],
  select,
  textarea {
    width: 100%;
    padding: 8px; /* Reduced padding */
    margin: 5px 0; /* Reduced margin */
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  /* Submit and Close Buttons */
  button[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 8px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button[type="submit"]:hover {
    background-color: #218838;
  }
  
  .close-button {
    background-color: #dc3545;
    color: white;
    padding: 8px;
    margin-top: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .close-button:hover {
    background-color: #c82333;
  }
      

@media (max-width:800px) {
    .content {
        flex-direction: column;
        height: auto;
        padding: 20px;
        align-items: flex-start;
    }

    .content .text {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .content .div-form {
        width: 100%;
        margin-top: 20px;
        box-shadow: none;
    }

    .form-container {
        padding: 20px;
    }

    .content .text h2 {
        font-size: 32px;
    }

    .content .text p {
        font-size: 16px;
    }

    .button-6 {
        display: block;
        margin: 0 auto 10px;
    }

    .secondary-link {
        display: block;
        margin: 0 auto;
    }

    .button-37 {
        padding: 10px 30px;
    }

    .services-container {
        grid-template-columns: 1fr;
    }

    .service-card img {
        margin: 0 auto;
    }

    .journey {
        flex-direction: column;
        text-align: center;
    }

    .journey-image {
        flex: none;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        width: 80%;
    }

    .cta-card.large-card {
        max-width: 100%;
    }

    .button-6 {
        width: 250px;
    }
    .consultation-button{
        width: 250px;
    }
    .text2 h2{
        width: auto;
    }
    .text2 p {
        width: auto;
    }
    .card-highlight{
        height: auto;
    }
    .card-content{
        height: auto;
    }
    .text3{
        height: 300px;
    }
    .text3 .text3-title{
        width: auto;
        height: auto;
        
    }
    
}