/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Header Styling */
/* General Header Styling */
header {
    display: flex;
    justify-content: space-between; /* Push logo to the left and menu toggle to the right */
    padding: 10px 20px;
    background-color: #222;
    height: 50px;
    color: white;
    position: relative; /* To position dropdown correctly */
    z-index: 1000;
}

/* Logo Styling */
header .logo {
    font-weight: bold;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0; /* Prevent logo from shrinking */
    margin-top:10px;
}

/* Hamburger Icon (Menu Toggle) */
.menu-toggle {
    display: none; /* Hidden on larger screens */
    cursor: pointer;
    font-size: 2rem;
    color: white;
    border: none;
    background: none;
}

/* Navigation Links */
nav {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between links */
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #f39c12;
    transform: scale(1.1);
}

nav a.active {
    border-bottom: 2px solid #f39c12;
    padding-bottom: 5px;
}

/* Media Query for Smaller Screens */
@media (max-width: 768px) {
    /* Logo stays left, menu toggle moves right */
    header {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
        position: absolute; /* Fix it to the right */
        right: 20px; /* Align to the right corner */
    }

    nav {
        display: none; /* Hidden by default */
        flex-direction: column; /* Stack links vertically */
        background-color: #333;
        position: absolute;
        top: 50px; /* Position below header */
        left: 0;
        width: 100%; /* Full-width dropdown */
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        animation: slideDown 0.3s ease-in-out; /* Smooth dropdown animation */
    }

    nav a {
        margin: 10px 0; /* Space between links in the dropdown */
        text-align: center; /* Center align links */
    }

    /* Show nav when the toggle is active */
    nav.active {
        display: flex;
    }
}

/* Smooth dropdown animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



#hero {
    text-align: center;
    padding: 50px;
    background: url('logo.jpg.png') no-repeat center center; /* Use the correct image file name */
    background-size: contain; /* Adjusts the image size proportionally */
    color: black;
    position: relative;
    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Optional shadow effect */
    height: 200px; /* Adjust the height as needed */
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    #hero {
        height: 250px; /* Slightly reduced height */
        background-size: contain; /* Prevent cropping of the image */
        padding: 30px;
    }

    #hero h1 {
        font-size: 2.2rem; /* Adjusted for better readability */
    }

    #hero p {
        font-size: 1.2rem;
    }
}

/* Smaller Screens (Mobile Devices) */
@media (max-width: 768px) {
    #hero {
        height: 200px; /* Compact height */
        padding: 20px;
        background-size: contain; /* Maintain image aspect ratio */
    }

    #hero h1 {
        font-size: 1.8rem; /* Slightly smaller font size */
    }

    #hero p {
        font-size: 1rem;
    }
}

/* Very Small Screens (Compact Phones) */
@media (max-width: 480px) {
    #hero {
        height: 150px; /* Further reduced height */
        padding: 10px;
        background-size: contain; /* Ensure the image fits perfectly */
    }

    #hero h1 {
        font-size: 1.4rem; /* Compact but legible */
    }

    #hero p {
        font-size: 0.8rem;
    }
}


/* General Carousel Styling */
#courses-carousel {
    text-align: center;
    padding: 20px;
    background-color: #F1F0E8;  
}

.carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 10px;
}

.course img {
    width: 70px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Add animation to h2 */
h2 {
    font-size: 24px;
    color: #333;
    text-align: center;
    animation: fadeSlideDown 2s ease-in-out;
}

/* Keyframes for fade-in and slide-down animation */
@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Buttons */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 2;
    border-radius: 50%;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    display: flex;
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
}

.popup-left img {
    width: 200px;
    border-radius: 8px;
}

.popup-right {
    padding: 0 20px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

.register-btn {
    background-color: #ff9800;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: None;
}

@media (max-width: 768px) {
    .popup-content {
        flex-direction: column; /* Stack the content vertically */
        width: 50%; /* Reduce width on smaller screens */
        padding: 15px; /* Reduce padding for better fit */
    }

    .popup-left img {
        width: 100%; /* Adjust the image to occupy the full width */
        margin-bottom: 15px; /* Add spacing below the image */
    }

    .popup-right {
        padding: 10px; /* Adjust padding for better spacing */
        text-align: center; /* Center-align text for smaller screens */
    }

    .register-btn {
        width: 100%; /* Make the button take full width */
        padding: 12px 0; /* Adjust button padding */
        font-size: 1rem; /* Adjust font size for smaller screens */
        text-decoration: none;
    }

    .close-btn {
        top: 10px; /* Adjust the position for better visibility */
        right: 10px;
        font-size: 2rem; /* Adjust size of close button */
    }
}

/* General Styling for the Courses Section */
#courses-carousel {
    background-color:#F1F0E8; /* Light gray background for improved readability */
    padding: 40px 0;
    text-align: center;
}

#courses-carousel h2 {
    color: BLack; /* Orange text to match theme */
    font-size: 1.5rem   ;
    margin-bottom: 20px;
    margin-top:10px;
    
}

.carousel-container {
    position: relative;
    width: 70%; /* Decrease the section width */
    margin: 0 auto;
    overflow: hidden;
 background-color: #F1F0E8; /* White background for the carousel */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for better visual separation */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.course {
    flex: 0 0 100%;
    text-align: center;
}

.course img {
    width: 50%; /* Decreased size for better proportions */
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow around images */
}

/* Buttons Styling */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    color: black;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: #a0274b; /* Darker shade on hover */
}

/* Media Queries for Smaller Screens */
@media (max-width: 768px) {
    .carousel-container {
        width: 60%; /* Ensure full-width container */
        padding: 0 10px; /* Add padding to prevent overlap */
    }

    .carousel-track {
        gap: 5px; /* Reduce gap between images */
    }

    .course {
        flex: 0 0 100%; /* Make each image take full width */
        text-align: center;
    }

    .course img {
        width: 90%; /* Ensure images fit within the container */
        height: auto; /* Maintain aspect ratio */
        margin: 0 auto; /* Center align images */
    }

    .prev-btn, .next-btn {
        font-size: 18px;
        padding: 8px 12px;
        position: absolute;
        top: 50%; /* Center vertically */
        transform: translateY(-50%);
        z-index: 100; /* Ensure buttons are above images */
    }

    .prev-btn {
        left: 5%; /* Place at the left of the container */
    }

    .next-btn {
        right: 5%; /* Place at the right of the container */
    }

    .prev-btn:hover, .next-btn:hover {
        background-color: #f39c12; /* Optional hover effect */
    }
}

/* General Wrapper Adjustments for Small Screens */
@media (max-width: 768px) {
    .wrapper {
        padding: 0 10px; /* Reduce padding on smaller screens */
    }
}

/* Hero Section for Tablets and Smaller Devices */
@media (max-width: 768px) {
    #hero {
        padding: 30px; /* Reduce padding on smaller screens */
        text-align: center;
        background-position: center;
    }

    #hero h1 {
        font-size: 2rem; /* Scale down heading size */
    }

    #hero p {
        font-size: 1.2rem; /* Adjust paragraph size */
        line-height: 1.4;
    }

    #hero button {
        font-size: 0.9rem;
        padding: 8px 16px; /* Adjust button padding */
    }
}

/* Hero Section for Mobile Screens (Below 480px) */
@media (max-width: 480px) {
    #hero {
        padding: 20px;
        background-size: cover; /* Ensure the image still covers the section */
    }

    #hero h1 {
        font-size: 1.8rem; /* Further scale down heading */
    }

    #hero p {
        font-size: 1rem;
    }

    #hero button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}


/* About Us Section */
#about {
    padding: 50px 20px;
    background-color: #1c1c1e; /* Dark charcoal for a modern background */
    color: #eaeaea; /* Light gray for general text */
    text-align: center;
    font-family: 'Arial', sans-serif;
    overflow: hidden; /* Ensure animations stay contained */
}

#about h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white; /* Vibrant green for the heading */
    overflow: hidden; /* Hide extra text during typing */
    white-space: nowrap; /* Prevent line break for typing effect */
    border-right: 3px solid #eaeaea; /* Cursor effect in light gray */
    width: fit-content;
    margin: 0 auto;
    animation: typing 3s steps(30, end), blink 0.5s step-end infinite alternate; /* Typing and blinking cursor animation */
}

.about-content {
    max-width: 800px; /* Restrict content width for better readability */
    margin: 0 auto; /* Center the content */
    line-height: 1.8; /* Line height for better spacing */
    font-size: 16px;
    text-align: justify; /* Add text justification */
    color: #cfd8dc; /* Subtle light blue-gray for body text */
    animation: zoom-in 8s ease-in-out; /* Zoom-in animation for content */
}

.about-content strong {
    color: #fdd835; /* Bright golden yellow for highlights */
}

.about-content .quote {
    font-style: italic;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2c2c2e; /* Slightly lighter charcoal for contrast */
    border-left: 5px solid #4caf50; /* Vibrant green left border for emphasis */
    color: #b0bec5; /* Soft light blue-gray for the quote text */
    text-align: justify; /* Justify the quote text */
    animation: float 3s ease-in-out infinite; /* Floating animation for quote */
}

.about-content p {
    margin-bottom: 15px; /* Space between paragraphs */
    text-align: justify; /* Justify paragraph text */
}


/* Typing Animation for Heading */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from {
        border-color: transparent;
    }
    to {
        border-color: #f5f5f5;
    }
}

/* Zoom-in Animation for Content */
@keyframes zoom-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Floating Animation for Quotes */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    #about h2 {
        font-size: 28px;
    }

    .about-content {
        font-size: 14px; /* Adjust font size for smaller screens */
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
    }
    #courses .course-card {
        width: 90%;
        margin: 10px auto;
    }
}
/* Contact Section */
#contact {
    padding: 50px 20px;
    background: #F1F0E8; /* Soft pastel gradient for approachability */
    text-align: center;
    color: #444; /* Darker gray for readability */
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: Black; /* Deep blue for a professional tone */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow for emphasis */
}

#contact p {
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.8; /* Increased line spacing for readability */
    color: #555; /* Medium gray for paragraph text */
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    background: #f8f9fa; /* Light gray for card background */
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for a clean look */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Border for structure */
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); /* Slightly darker shadow on hover */
    border-color: gray; /* Accent border on hover */
}

/* Icons */
.contact-item i {
    color: #ff6600; /* Vibrant orange for icons to draw attention */
    font-size: 1.5rem; /* Larger icons for visual impact */
}

/* Text Styling within Contact Items */
.contact-item span {
    color: #333; /* Dark gray for text */
    font-weight: bold; /* Emphasis on contact text */
}
#contact h6{
    font-size: 10px;
    color:black;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    #contact h2 {
        font-size: 2rem;
    }

    #contact p {
        font-size: 0.9rem;
    }
    

    .contact-item {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    #contact p {
        font-size: 0.9rem;
    }

    .contact-item {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    #contact h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    #contact p {
        font-size: 0.8rem;
    }

    .contact-item {
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
    }

    #contact h2 {
        font-size: 1.6rem;
    }
}

/* Text overlay container */
/* Hover Effects for Course Images */
.carousel-track .course img {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
}

/* On Hover - Scale and Add Shadow */
.carousel-track .course img:hover {
    transform: scale(1.1); /* Slightly enlarge the image */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Add a shadow effect */
}

/* Optional: Add hover border effect */
.carousel-track .course img:hover {
    border: 2px solid #F1F0E8; /* Add border color matching theme */
}
