
/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #32cd32;
  --title-color: hsl(228, 12%, 15%);
  --text-color: hsl(228, 8%, 50%);
  --body-color: #ebf6f7;
  --container-color: #ebf6f7;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Barlow", sans-serif;
  --normal-font-size: .938rem;
}
html{
  scroll-behavior: smooth;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
        url('https://images.pexels.com/photos/33029968/pexels-photo-33029968.jpeg') no-repeat center center / cover;
    opacity: 0.78; /* Very light for a soft effect */
    filter: blur(18px); /* More blur = smoother visual */
    background-attachment: fixed;
}


body {
    font-family:  "Barlow", sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--body-color);
}

header {
    background-color: var(--first-color);
    color: white;
    text-align: center;
    padding: 1em 0;
}

 h1 {
    margin: 0;
    padding: 10px 0;
    font-size: 2em;
    animation: fadeIn 2s ease-in-out;
    text-align: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--first-color);
    color: white;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    animation: slideInLeft 1s ease-in-out;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    padding: 2px;
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s;
    border: 1px solid var(--body-color);
    border-radius: 5px;
}

.nav-links a:hover {
    color: #FFD700;
}

.search-container {
    position: relative;
    margin: 20px auto;
    max-width: 600px;
    padding: 0 20px;
    animation: fadeIn 2s ease-in-out;
}

#search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}

#search-input:focus {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    outline: none;
}



.dropdown-content {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-content div {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-content div:hover {
    background-color: #f1f1f1;
}

.course-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-in-out;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.course-card h2 {
    margin-top: 0;
}

.course-card p {
    margin: 5px 0;
}

.contact-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--first-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact-link:hover {
    background-color: var(--first-color);
}

footer {
    text-align: center;
    padding: 10px 0;
    background-color: var(--first-color);
    color: white;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 10px 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/*================= About section ==================*/
.about-container {
    background-color: var(--body-color);
    padding: 60px;
    text-align: center;
  }
  .about-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
  }
  .about-image {
    margin-top: 30px;
  }
  .about-image img {
    max-width: 20%;
    height: 10%;
    margin-left: 38%;
  }
  .about-content span{
    color: #1F7502;
  }
  .about-content {
    padding: 1rem;
    color: var(--text-color);
    border-width: 3px;
    border-style: solid;
    border-image: 
      linear-gradient(
        to bottom, 
        
        #0AD328, 
        rgba(0, 0, 0, 0)
      ) 1 100%;
  }

  
/*------------Terms--------------*/
.terms-policies {
    margin-top: 40px;
    text-align: center;
  }
  .team-section {
    text-align: center;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .team-member {
    margin: 20px;
    max-width: 300px;
  }
  
  .team-member img {
    border-radius: 50%;
    max-width: 100%;
  }
  
  .team-member h3 {
    margin: 10px 0;
  }
  
  .team-member p {
    color: #555;
  }
  
  @media (min-width: 768px) {
    .team-member {
        flex: 0 0 calc(33.33% - 40px);
    }
  }
  
  @media screen and (max-width: 768px) {
    .about-content {
      padding: 0 20px;}
    .social-media-links{
      margin-bottom: 40px;
      }
    
    
  }
  
  .about-iMeriConnect{
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: 5vw;
    margin-right: 20px;
    margin-bottom: 15vh;
  }
  .about-iMeriConnect img{
    height: 150px;
    width: 150px;
  }
  /*================= Contact section ==================*/
  .contact-details-section {
  
    text-align: center;
    max-width: 100vw;
  }
  
  .contact-details-container {
   
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .contact-item {
    margin: 30px;
  }
  
  .contact-item i {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--first-color);
  }
  
  .contact-item p {
    font-size: 16px;
    color: #333;
    
  }
  
  
  
  .contact-section {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .contact-section p h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    width: 80%;
    margin-left: 50px;
  }
  
  .intermen {
    margin-left: 3.5vw;
    text-align: center;
    
  }
    
    .intermen img {
      max-width: 100%; 
      border-radius: 8px; 
  }

  /*===========1st title============*/
.creative-title {
    font-size: 1rem;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative; /* Added for positioning the image */
    margin-bottom: 80px;
  }
  
  .creative-title img {
    max-height: 3vh;
    width: 3vw;
    position: absolute; /* Positioned relative to the .creative-title container */
    bottom: 0; /* Positioned at the bottom of the .creative-title container */
    animation: wave 1s infinite alternate;
  }
  
  .animated-word {
    font-weight: bolder;
      background: linear-gradient(to right, limegreen, #d9d9d9, rgb(90, 135, 82)); /* Gradient color */
      -webkit-background-clip: text; /* Clip the text to the gradient background */
      color: transparent; /* Make the text transparent */
      animation: bounce 1s infinite alternate;
      display: inline-block;
  }
  
  .animated-word::after {
    content: ''; /* Create a pseudo-element for the underline */
    position: absolute;
    left: 0;
    bottom: -5px; /* Adjust the distance of the underline from the text */
    width: 100%;
    height: 4px; /* Adjust the thickness of the underline */
    background: linear-gradient(to right, limegreen, white, black);
    background-size: 200% 100%; /* Increase the size for the paintbrush effect */
    background-position: 100% 0; /* Start from the right side */
    animation: paintbrush 2s infinite alternate;
  }
  
  @keyframes bounce {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
  }
  
  @keyframes wave {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(10deg);
    }
  }
  
  @keyframes paintbrush {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
  }
  
  /* Responsive Styles */
  @media only screen and (max-width: 600px) {
    .creative-title {
        font-size: .8em;
    }
  }



  #tutor-admin {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    gap: 20px; /* Space between sections */
}


  #add-course, #delete-course{
    border: 2px solid var(--first-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Limits the width of the section */
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin: 20px 0;
    box-sizing: border-box; /* Ensures padding and border are included in the element's total width and height */
}

/* Title styling */
#add-course h3 {
    margin-top: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #add-course {
        padding: 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    #add-course {
        padding: 10px;
        margin: 10px 0;
    }
}
    #search-bar {
        margin-bottom: 20px;
        padding: 10px;
        width: 100%;
        border-radius: 5px;
        border: 2px solid #ccc;
        box-sizing: border-box;
    }

    .course-listing {
        border: 2px solid #ccc;
        background-color: #f7f7f7;
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 8px;
        box-sizing: border-box;
        margin: 10px;
    }

    .course-listing h2 {
        margin-top: 0;
    }

    .whatsapp-button {
        display: inline-block;
        background-color: #25D366; /* WhatsApp green color */
        color: white;
        padding: 10px 15px;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        border: 2px solid #25D366;
        font-weight: bold;
        cursor: pointer;
    }

    @media (max-width: 768px) {
        .course-listing {
            padding: 10px;
        }

        #search-bar {
            padding: 8px;
        }
    }