/* General Styles */
body {
    
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
   
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header Styles */
/* Hero Section Styles */
.hero {
    
    background-image: url('/static/imgs/bg_1.jpg'); /* Replace with your image URL */
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center; /* Centers the background image */
    color: white;
    padding: 100px 20px 50px;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Black overlay for the background */
.hero::before {
    content: ''; 
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Black color with transparency */
    z-index: 1; /* Layer this beneath the text */
}

/* Navigation Styles */
.nav-container {
 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(3, 104, 153, 0.7); /* Transparent background for nav */
    z-index: 3; /* Ensure the navigation is on top of the overlay */
}

.logo img {
    
    height: 50px;
    width: auto;
}

.navigation {
    display: flex;
    gap: 20px;
}

.navigation a {

    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.navigation a:hover {
    background-color: #6CA311;
    transform: scale(1.1);
}

/* Hero Content */
.hero-content {
    margin-top: 140px;
    animation: fadeIn 2s ease-out;
    position: relative; /* Ensure text is above overlay */
    z-index: 2; /* Text should appear in front of the overlay */
}

.hero h1 {
    font-size: 3em;
    margin: 0;
    color: #EAC000; /* Yellow text color to stand out */
}

.hero p {
    font-size: 1.2em;
    margin-top: 10px;
    color: #f4f4f4; /* Light text color */
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 60px 20px;
    text-align: center;
    background-color: white;
    border-bottom: 2px solid #6CA311;
}

.section h2 {
    color: #036899;
    margin-bottom: 20px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service img {
    width: 100%;
    border-radius: 10px;
}

.service h3 {
    color: #EAC000;
}

.service p {
    color: #333;
}

.service:hover {
    background-color: #f9f9f9;
    border: 2px solid #6CA311;
    border-radius: 10px;
    padding: 10px;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.course-card {
    border: 2px solid #036899;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.course-card img {
    width: 100%;
    border-radius: 10px;
}

.course-card:hover {
    transform: scale(1.05);
    border-color: #6CA311;
}


/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

/* Back to Top Button Styles */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #036899;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    display: none; /* Initially hidden */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999; /* Ensures it's on top of all other elements */
}

#backToTop:hover {
    background-color: #6CA311;
    transform: scale(1.1);
}
/* About Us Section */
#about .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

#about .text h2 {
    font-size: 1.7em;
    margin-bottom: 20px;
}

#about .text p {
    font-size: 1.2em;
    margin: 15px 0;
    color: #555;
}

.founder {
    padding: 40px 20px;
    background-color: #f5f5f5;
}

.founder-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.founder-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
}

.founder-details h3 {
    font-size: 2.5em;
    margin-top: 10px;
}

.founder-details p {
    font-size: 1.2em;
    color: #555;
    max-width: 800px;
    margin: 10px auto;
}


/* About Us Section Styles */
.about-section {
    position: relative;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(3, 104, 153, 0.2) 25%, rgba(3, 104, 153, 0.8) 25%, rgba(3, 104, 153, 0.8) 50%, rgba(3, 104, 153, 0.2) 50%);
    background-size: 40px 40px;
    animation: stripes 3s linear infinite;
}

.about-section:hover {
    background: #036899;
    animation: none; /* Stop stripes animation */
}

@keyframes stripes {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 40px 40px;
    }
}

.about-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 0 auto;
    max-width: 800px;
}

.about-card .text h2,
.about-card .founder h2 {
    color: #036899;
}

.about-card .text p,
.about-card .founder p {
    color: #333;
}

.founder-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

.founder-image img {
    width: 150px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.founder-details h3 {
    color: #036899;
}

.founder-details p {
    margin: 5px 0;
}
/* General Styling */
#services {
    font-family: 'Arial', sans-serif;
    background-color: #f3f4f6;
    padding: 60px 0;
    text-align: center;
}

#services h2 {
    font-size: 36px;
    color: #036899;
    margin-bottom: 40px;
}

/* Grid Styling */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    padding: 20px;
    width: 300px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
}

.service img {
    width: 100%;
    height: 180px;
    object-fit: contain;  /* Ensure image fits without cropping */
    border-radius: 8px;
    margin-bottom: 15px;
}

.service h3 {
    font-size: 24px;
    color: #036899;
    margin-bottom: 10px;
    font-weight: bold;
}

.service p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Hover Effect - Make Service Card Larger */
.service:hover {
    box-shadow: 0 8px 15px rgba(3, 104, 153, 0.3);
    background: linear-gradient(135deg, #036899, #4facfe);
    color: #fff;
}

.service:hover h3,
.service:hover p {
    color: #fff;
}

/* General Styling */
#courses {
    font-family: 'Arial', sans-serif;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Video Background Styling */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#bg-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.4; /* Make the video slightly transparent */
}

/* Content Overlay */
.content-overlay {
    z-index: 2;
    position: relative;
    text-align: center;
}

/* Heading */
#courses h2 {
    font-size: 36px;
    color: #036899;
    margin-bottom: 40px;
}

/* Grid Styling */
.courses-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Course Card Styling */
.course-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    padding: 20px;
    width: 280px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.course-card h3 {
    font-size: 22px;
    color: #036899;
    margin-bottom: 10px;
    font-weight: bold;
}

.course-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Dynamic Hover Effect */
.course-card:hover {
    transform: scale(1.1);  /* Makes the card 10% larger */
    box-shadow: 0 8px 15px rgba(3, 104, 153, 0.3);
    background: #036899;
    color: #fff;
    opacity: 1;
}

.course-card:hover .description {
    display: block; /* Show detailed description on hover */
    transform: translateY(0);
}

.course-card .description {
    display: none;
    font-size: 14px;
    color: #fff;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(3, 104, 153, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.course-card:hover .description {
    opacity: 1;
}

/* Contact Section Styling */
#contact {
    font-family: 'Arial', sans-serif;
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(135deg, #036899, #1E3A8A);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Heading Styling */
#contact h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    animation: fadeIn 1s ease-out;
}

/* Contact Message Styling */
.contact-message {
    font-size: 22px;
    color: white;
    font-weight: 500;
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeIn 1s ease-out 0.5s;
}

.contact-message:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Contact Container Styling */
.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

/* Email Box Styling */
.email-box {
    background-color: #036899; /* Using your specified blue */
    padding: 25px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover Effect on Email Box */
.email-box:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Email Link Styling */
.email-link {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: color 0.3s ease;
}

/* Hover Effect on Email Link */
.email-link:hover {
    color: #ffcc00; /* Gold color for hover */
}

/* Icon Styling */
.icon-container i {
    font-size: 40px;
    color: white;
    transition: transform 0.3s ease;
}

/* Hover Effect on Icon */
.email-link:hover .icon-container i {
    transform: rotate(15deg);
}

/* Email Text Styling */
.email-text span {
    font-size: 26px;
    font-weight: 500;
    color: white;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

/* Hover Effect on Email Text */
.email-box:hover .email-text span {
    transform: scale(1.1);
}

/* Email Box Animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Ensure the page is mobile-friendly */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em; /* Smaller heading */
    }

    .hero-content p {
        font-size: 1em; /* Smaller text */
    }

    .nav-container {
        padding: 10px 20px;
    }

    .navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .navigation a {
        padding: 8px 10px;
        font-size: 1.2em;
    }

    .services-grid, .courses-grid {
        grid-template-columns: 1fr; /* Stack services and courses */
    }

    .course-card, .service {
        padding: 15px;
    }

    footer {
        font-size: 0.8em;
    }

    #backToTop {
        bottom: 10px;
        right: 10px;
    }
}

/* For very small devices (portrait mode phones) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .service, .course-card {
        padding: 10px;
        font-size: 0.9em;
    }

    .navigation a {
        font-size: 1.1em;
        padding: 6px 8px;
    }
}
/* Carousel Container */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: auto;
  }
  
  /* Carousel Slide */
  .carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  /* Service Items */
  .service {
    flex: 1 0 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
  }
  
  /* Images inside the Service Cards */
  .carousel-container .service img {
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 10px;
    object-fit: cover;
  }
  
  /* Headings */
  .carousel-container .service h3 {
    color: #036899;
    font-size: 1.5rem;
    margin: 10px 0;
  }
  
  /* Descriptions */
  .carousel-container .service p {
    color: #333;
    font-size: 1rem;
  }
  
  /* Arrows */
  .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
  }
  
  .carousel-arrow.left {
    left: 10px;
  }
  
  .carousel-arrow.right {
    right: 10px;
  }
  
  /* Media Query for Smaller Screens */
  @media (max-width: 768px) {
    .carousel-container .service img {
      max-height: 200px;
    }
  
    .carousel-arrow {
      width: 30px;
      height: 30px;
      font-size: 1.2rem;
    }
  }
  .marquee-container {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    z-index: 9999;
    position: static; /* Allow the marquee to appear naturally below the footer */
}

marquee {
    font-size: 18px;
    font-weight: bold;
}

.marquee-logo {
    height: 30px;  /* Adjust the logo size */
    margin-right: 10px;  /* Space between the logo and text */
    vertical-align: middle;  /* Align logo with text */
}
