body{
    font-family: "Montaga", serif;
}

h4 {
    margin-bottom: 15px;
    color: #967805;
}


h1,h2{
    font-family: "Montaga", serif;
}

p{
    font-family: "Montaga", serif;
    color: black;
}

hr {
    margin: 5px auto 40px auto;
    width: 10%;
    height: 3px;
    background-color: black;
}

section{
    margin-bottom:40px ;
}

.top-container{
    backdrop-filter: brightness(40%);
    height: 12vh;
}

@media (min-width:1510px){
    .top-container{
        height: 16vh;
    }
}

@media (min-width:2000px){
    .top-container{
        height: 18vh;
    }
}

.top-container .links{
    margin-top: 0px;
    background-color: black;
}


.top-container .logo img{
    width: 20%;
    max-width: 327px;
}

.top-container.scrolled .logo img{
    width: 15%;
}

.top-container.scrolled{
    height: 10vh;
}

.hamburger-menu {
    z-index: 1;
    color: white;
    font-size: 2rem;
    display: block;
    position: absolute;
    left: 50px;
    top: 30px;
    cursor: pointer;
}

.fa-xmark{
    cursor: pointer;
    z-index: 99;
    display: none;
    color: white;
    position: absolute;
    right: 30px;
    top: 23px;
    font-size: 2.2rem;     
    transition: 0.3s linear;  
}


nav  .links{
    backdrop-filter: blur(10px) brightness(70%);
    z-index: 9;
    display: block;
    position: fixed;
    top: -7px;
    width: 100%;
    background-color: ;
    height: auto;
    background-color: transparent;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    flex-direction: column;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 10px white inset;
    transition: trans0.3s ease;
    transform: translateY(-400px);
    opacity: 0;
}

nav .links {
    transform: translateY(-100%);
    transition: 0.3s ease;
}

nav .links .link{
    padding: 10px 0;
}

nav .links .link a{
    font-weight: 600;
    color: #BF8F2C;

}

nav .links .link:hover{
    background-color: #BF8F2C;
}

nav .links .link:hover > a{
    color: white;
}


.links .link a:hover::before{
    width: 0;
}



/* Main Section */

#learning-hero{
    width: 100%;
    margin-top: 12vh;
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;    
}

#learning-hero .learning-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.learning-container .content{
    width: 40%;
}

.learning-container .content h1{
    margin-bottom: 10px;
    max-width: 1000px;
    width: 100%;
    font-size: clamp(1rem, 1.4rem + 2.5vw, 4rem);
}

.learning-container .content h1 span{
    color: #967805;
}

.learning-container .content p{
    width: 90%;
    font-size: clamp(0.5rem, 0.5rem + 0.9vw, 1rem);
}

.learning-container .image{
    width: 40%;
}

.learning-container .image img{
    width: 100%;
}

.learning-container .learning-btn{
    width: 34%;
    margin: 10px 0;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.learning-container .learning-btn button{
    background-color: #CDB041;
    font-family: "Montaga", serif;
    font-size: 1rem;
    padding: 10px 15px ;
    font-weight: bold;
    color: black;
    border: 1px solid #CDB041;
}

.learning-container .learning-btn button:nth-child(2){
    background-color: #FBD300;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.learning-container .learning-btn button:hover{
    color: #CDB041;
    border: 1px solid #CDB041;
    background-color: transparent;
}


/* Related Courses */

.related {
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.related .related-container {
    width: 90%; /* Added margin from the left and right */
    margin: 20px auto; /* Center the container */
    display: flex;
    justify-content: center;
    align-items: center;
}

.related-container .related-cards {
    display: grid;
    gap: 5%;
    grid-template-columns: repeat(3, 1fr); 
}

.related-container .related-cards .related-card {
    width: 100%;
    cursor: pointer;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 1px 1px 3px black;
    background: linear-gradient(to right bottom,#EDE5DB 50%, #F8F3ED );
    transition: 0.2s linear;
}

.related-container .related-cards .related-card:hover{
    background: linear-gradient(to right bottom, #F8F3ED 50%,#EDE5DB  );
    transform: translateY(-5px);
    backdrop-filter: brightness(10%);
}

.related-cards .related-card img {
    width: 60px;
    margin: 10px 0;
    height: 60px;
    border-radius: 50%;
    background-color: #967805;
}

.related-card h2 {
    width: 100%;
    margin: 10px 0;
}

.related-card p {
    margin: 10px 0;
    width: 85%;
}


/* Points */

.learning-points { /* Align h1 and hr to the left */
    width: 90%;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.learning-points h1 {
    margin-bottom: 10px;
}

.learning-points hr {
    margin-bottom: 30px;
}

/* Container for the points */
.points-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for desktop */
    gap: 20px;
    margin: 0 auto;
    padding: 0 20px; /* Add some padding on both sides */
}

/* Styling each point */
.point {
    display: flex;
    justify-content: flex-start;
    text-align: center; /* Center text inside each point */
    padding:  0;
    background-color: transparent;
    border-radius: 8px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); */
}

/* Style the icons */
.point i {
    color: green;
    font-size: 24px;
    margin-right: 15px;
}

/* Adjustments for paragraphs */
.point p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    text-align: start;
    }


/* Course Description */

.course-description{
    width: 100%;
    height: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 40px 0 40px 0;
}

.course-description button{
    margin-top: 10px;
    display: flex;
    gap: 6px;
    font-weight: bold;
    border: none;
    padding: 15px 15px;
    border-radius:10px ;
    border: 1px solid #BF8F2C;
    background-color: #BF8F2C;
    color: white;
}

.course-description button:hover{
    border: 1px solid #BF8F2C;
    background-color: transparent;
    color: #BF8F2C;

}


.course-container {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 20px;

}

/* Styling for course content and form to have the same height */
.course-content, .course-form {
    /* flex: 1; */
    padding: 20px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course-form{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.course-content{
    width: 50%;
}

.course-content h3, .course-content p{
    margin: 5px 0;
    text-align: start;
}

.course-content h3{
    font-weight: 700;
}

.course-content p{
    margin: 10px 0;
}

/* Styling for the course units */
.course-units {
    margin-top: 20px;
}

.course-unit {
    margin-bottom: 10px;
}

/* Replacing the default arrow with Font Awesome chevron */
.course-unit summary {
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #967805;
    border-radius: 5px;
    user-select: none;
    position: relative;
    transition: background-color 0.3s ease;
}

.course-unit summary:hover {
    background-color: #BF8F2C;
    color: white;
}

/* Custom chevron icon */
.course-unit summary::after {
    font-family: "Font Awesome 6 Free";
    content: "\f078"; /* Font Awesome chevron-down icon */
    font-weight: 900;
    transition: transform 0.3s ease;
}

.course-unit[open] summary::after {
    transform: rotate(180deg);
}

.course-unit p {
    padding: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    border-top-style: none;
    border: 1px solid #BF8F2C;
    background-color: transparent;
    display: none; /* Hidden initially */
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.course-unit[open] p {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Form styles */
.course-form{
    width: 20%;
}
.course-form img {
    width: 100%;
    margin-bottom: 20px;
    margin-top: 5px; /* Added margin for larger screens */
}

.course-form input, .course-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd  ;
    border-radius: 5px;
}

.course-form button{
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

.course-form p {
    font-size: 12px;
    color: #666;
}


/* Feedback */
/* Main feedback section */
.fdback {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to the top */
    padding: 50px;
    background-color: transparent;
}

/* Feedback container holding the testimonial card */
.fdback-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Testimonial card styling */
.testimonial-card {
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    height: 40vh;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-card-content {
    position: absolute;
    margin: 10px;
    top: 0;
    left: 100%; /* Hidden by default */
    width: 90%;
    opacity: 0;
    height: 100%;
    transition: all 0.5s ease-in-out;
}

.testimonial-card-content.active {
    left: 0;
    opacity: 1;
}

.testimonial-card-content.out {
    left: -100%;
    opacity: 0;
}

/* Testimonial text and quote styling */
.testimonial-text i {
    font-size: 50px;
    color: #b58900;
}

.testimonial-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Profile section styling */
.testimonial-profile {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

/* Profile info with name and rating */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-info h4 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

.profile-info p {
    color: #ffa500; /* Star color */
    margin: 0;
}

/* View profile link styling */
.view-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0077b5;
    font-weight: bold;
    text-decoration: none;
}

.view-profile i {
    font-size: 18px;
}

/* Feedback content section (right side) */
.fdback-content {
    flex: 1;
    padding-left: 20px;
    align-self: flex-start; /* Ensures the content is aligned to the top */
}

/* Heading style */
.fdback-content h1 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Paragraph style */
.fdback-content p {
    font-size: 16px;
    color: #666;
}


.testimonial-profile {
    margin-top: 10px;
}


/* FAQ */


.faq {
    padding: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}


.questions-container {
    max-width: 1200px;
    margin: 0 auto;
}

.questions-card {
    background-color: transparent;
    border: 1px solid #BF8F2C;
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 5px 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

.questions-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question {
    display: flex;
    align-items: center;
    padding: 15px;
    font-size: 18px;
    color: #333;
}

.question i {
    color: #b58900;
    margin-right: 10px;
    font-size: 20px;
    transition: transform 0.3s ease-in-out;
}

.question h4 {
    margin: 0;
    flex: 1;
    text-align: left;
}

.description {
    max-height: 0;
    text-align: start;
    padding-left: 40px;
    padding-right: 20px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.description p{
    color: #897213;

}

.questions-card.active .description {
    max-height: 200px; /* Adjust this depending on content size */
}

.questions-card.active .question i {
    transform: rotate(45deg);
}

/* Profile Section */



@media (min-width: 1880px) {
    .profile-card {
        max-width: 18%;
    }
}


/*Opportunity */

#opportunity {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;

}

.org-container {
    width: 100%;
    height: auto;
    display: grid;
    padding: 0 2%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
}

.org-container .org-card {
    background-color: white;
    position: relative;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.2s linear;
    overflow: hidden;
}

.org-container .org-card:hover {
    transform: translateY(-5px);
}



/* Overlay on hover */
.org-card .overlay {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.org-card:hover .overlay {
    opacity: 1;
}

.org-container .org-card .card-container {
    display: flex;
    min-width: 340px;
    width: 100%;
    gap: 30px;
    margin: 0 2%;
    border-radius: 10px;
    justify-content: start;
    align-items: center;
}

.org-container .card-container .card-image {
    width: 150px;
    height: 100%;
    padding: 5px;
    overflow: hidden;
    border-radius: 10px;
}

.org-container .card-container .card-image img {
    width: 100%;
    height: 100%;
}

.org-container .card .card-container .card-details {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.card-container .card-details h3,
.card-details .card-rating {
    font-size: clamp(1rem, 1.5vw, 1.5rem); /* Adjusted font size */
    letter-spacing: 2px;
}

.card-container .card-location {
    font-size: clamp(0.8rem, 1vw, 1.2rem); /* Adjusted font size */
}

.org-container .card i {
    font-size: 1.5rem;
}

.org-container .card-location {
    margin: 10px 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.overlay i{
    color: #BF8F2C;
    font-size: 3rem;
}

.org-container .card-rating {
    color: #eecb3e;
}

/* Responsive adjustments */
@media (max-width: 996px) {
    .org-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .org-container .org-card {
        padding: 15px;
    }

    .card-container .card-details h3 {
        font-size: clamp(0.9rem, 1.3vw, 1.4rem);
    }
}

@media (max-width: 440px) {
    .org-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .org-container .org-card {
        padding: 10px;
    }

    .card-container .card-details h3 {
        font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    }
}



open-popup-btn {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .open-popup-btn:hover {
    background-color: #2980b9;
  }
  
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    width: 90%;
    max-width: 400px;
    text-align: center;
  }
  
  h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
  }
  
  .buttons {
    display: flex;
    justify-content: space-around;
  }
  
  .download-btn {
    color: white;
    border: none;
    width: 200px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .download-btn img{
    width: 100%;
  }
  
  .download-btn:hover {
    background-color: #BF8F2C;
  }
  
  .close-popup-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #333;
    border: none;
    background: none;
    cursor: pointer;
  }
  
  .hidden {
    display: none;
  }

  .popup-content{
    height: auto;
  }
  
  /* Responsive Design */
  @media (max-width: 600px) {
    .popup-content {
      width: 90%;
      padding: 20px;
    }
  
    .download-btn {
      width: 100px;
    }
  }



@media (min-width:1880px) {

    .fdback {
        padding: 70px;
    }

    .testimonial-card {
        height: 50vh; /* Increase height for larger screens */
    }

    .testimonial-text p {
        font-size: 18px; /* Increase text size */
    }

    .testimonial-profile img {
        width: 70px; /* Larger profile image */
        height: 70px;
    }

    .view-profile i {
        font-size: 20px; /* Larger icon */
    }

    #learning-hero{
        margin-top: 12vh;
        min-height: 50vh;
    }
}

@media (min-width:1440px) {

    .fdback {
        padding: 60px;
    }

    .testimonial-card {
        height: 45vh; /* Adjust height for medium-large screens */
    }

    .testimonial-text p {
        font-size: 17px; /* Slightly larger text */
    }

    .testimonial-profile img {
        width: 65px; /* Adjust profile image size */
        height: 65px;
    }

    .view-profile i {
        font-size: 19px; /* Adjust icon size */
    }

    #learning-hero{
        margin-top: 12vh;
        min-height: 50vh;
    }
}


@media (max-width:996px) {

    hr{
        display: block;
    }

    .fdback-content h1 {
        font-size: 28px;
    }

    .testimonial-text p {
        font-size: 12px; /* Smaller text for mobile */
    }

    .fdback {
        flex-direction: column-reverse;
        align-items: center;
    }

    .fdback-container, .fdback-content {
        padding: 20px;
        width: 100%;
        height: 100%;
    }

    .fdback-content {
        padding-left: 20px;
        text-align: start;
    }


    .course-container {
        flex-direction: column;
    }

    .course-content, .course-form {
        margin: 0 auto;
        width: 80%;
    }

    

    .course-form img {
        margin-top: 10px; /* Adjust margin for smaller screens */
    }

    .points-container {
        margin: 10px 20px;
        grid-template-columns: 1fr; /* Single column for smaller screens */
        padding: 0 10px;
    }

    .related .related-container {
        width: 95%; /* Reduced width for smaller screens */
    }

    .related-container .related-cards {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
        gap: 5%;
    }

    
    .login-lang .login{
        margin-top: -15px;
    }
    
    .hamburger-menu{
        top: 15px;
        margin-top: -10px;
    }

    .choose-container{
        margin-top: 80px;
    }

    .top-container{
        height: 8vh;
    }
    .top-container.scrolled{
        height: 8vh;
    }

    #learning-hero{
        margin-top: 0px;
    }
    
    .learning-container{
        display: flex;
        margin-top: 10vh;
        flex-direction: column;
    }

    
    .learning-container{
        margin-top: 10vh;
    }

    .learning-container .learning-btn{
        width: 30%;
    }

    .learning-container .content{
        width: 80%;
    }

    .learning-container .image{
        width: 60%;
    }
    


}

@media (max-width:768px){

    
.faq {
    padding: 50px 20px;
}

    .testimonial-text i {
        font-size: 40px; /* Smaller quote icon */
    }

    .testimonial-card {
        height: 35vh;
    }

    .testimonial-profile img {
        width: 50px; /* Smaller profile image */
        height: 50px;
    }

    .course-content, .course-form {
        margin: 0 auto;
        width: 100%;
    }

    .points-container {
        padding: 0 5px; /* Less padding for small screens */
    }

    .point p {
        font-size: 14px;
    }

    .point i {
        font-size: 20px;
    }

    .related .related-container {
        width: 100%; /* Full width on mobile */
        padding: 0 15px; /* Add padding for small screens */
    }

    .related-container .related-cards {
        grid-template-columns: repeat(1, 1fr); /* 1 card per row */
        gap: 20px; /* Increase gap for spacing */
    }
}


@media (max-width:440px){

    .faq {
        padding: 50px 10px;
    }

    .fdback-content h1 {
        font-size: 24px; /* Smaller heading */
    }

    .testimonial-text p {
        font-size: 10px; /* Smaller paragraph text */
    }

    .testimonial-profile .profile-info h4{
        font-size: 10px;
    }
    

    .view-profile {
        font-size: 10px; /* Smaller profile link */
    }


    .testimonial-profile img {
        width: 40px; /* Even smaller profile image */
        height: 40px;
    }

    .top-container{
        height: 8vh;
    }

    .learning-container{
        margin-top: 10vh;
    }

    .learning-container .learning-btn{
        width: 45%;
    }

    .learning-container .content{
        width: 90%;
    }

    .learning-container .image{
        width: 60%;
    }
    
}


