/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Top bar styling */
.top-bar {
    background-color: #5e1e1e; /* Dark brown color */
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

.contact-info span {
    margin-right: 10px;
}

/* Main header styling */
.custom-header .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 50px; /* Adjust logo size as needed */
}

ul a {
    list-style: none;
    color: #4A0F0F;
    padding: 0;
    margin: 0;
    font-weight: bold;
    text-decoration: none;
}

ul li {
    display: inline-block;
    padding: 28px;
    position: relative; /* Allows dropdown to position itself relative to parent */
}

ul li:hover {
    background-color: green;
    color: white;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Position directly below the parent li */
    left: 0;
    background-color:  #4A0F0F;
    width: 150px; /* Set width for dropdown */
    z-index: 1000; /* Brings dropdown in front of other content */
}

ul li:hover .dropdown {
    display: block;
}

.dropdown ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown ul li {
    display: block;
    padding: 10px;
    background-color: white;
    color: white;
    
}

.dropdown ul li:hover {
    background-color: green;
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') center center/cover no-repeat;
    color: black;
    text-align: center;
    padding: 60px 20px;
    margin-top: -40px; /* Reduced margin-top */
}

.hero h1 {
    font-size: 36px;
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    margin: 10px 0;
}

.cta-button {
    background-color: #FF5733;
    color: #fff;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #C70039;
}

/* Slider Section */
.slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 10px auto; /* Reduced margin to decrease space */
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 300px; /* Reduced height */
}

.slide {
    min-width: 100%;
    transition: opacity 1s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Popular Courses Section */
.popular-courses {
    text-align: center;
    padding: 50px 20px;
    background-color: #F3F4F6;
}

.popular-courses h2 {
    color: #FF5733;
    font-size: 28px;
}

.popular-courses p {
    font-size: 16px;
    margin-bottom: 30px;
}

.course-list {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Success Story Section */
.success-story {
    background-color: #EFEFEF;
    padding: 50px 20px;
    text-align: center;
}

.success-story h2 {
    color: #FF5733;
    font-size: 28px;
}

.success-story p {
    font-size: 16px;
    margin-bottom: 30px;
}
.popular-courses {
    text-align: center;
    padding: 50px 20px;
    background-color: #F3F4F6;
}

.popular-courses h2 {
    color: #FF5733;
    font-size: 28px;
}

.popular-courses p {
    font-size: 16px;
    margin-bottom: 30px;
}

.course-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-item {
    background-color: #fff;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 190px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    height: 300px; /* Fixed height for consistency */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure proper alignment of content */
}

.course-item:hover {
    transform: translateY(-10px);
}

.course-item img {
    width: 100%;
    height: 100%; /* Ensures images fill the space without shifting */
    object-fit: cover; /* Ensures the images cover the area, maintaining aspect ratio */
    border-bottom: 1px solid #ddd;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.course-item .hover-img {
    display: none;
}

.course-item:hover .default-img {
    display: none;
}

.course-item:hover .hover-img {
    display: block;
}

.course-item h3 {
    font-size: 18px;
    color: #333;
    padding: 10px 0;
    z-index: 2;
    position: relative;
}



/* Footer styles */
.site-footer {
    background-color: #2C3E50; /* Dark background for contrast */
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* Ensures sections are responsive */
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FF5733; /* Accent color for headings */
}

.footer-section p, .footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #FF5733; /* Hover effect */
}

.footer-bottom {
    background-color: #34495E; /* Slightly darker background for the bottom */
    padding: 15px 0;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
    color: #BDC3C7; /* Light color for the copyright text */
}

/* Responsive styling */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 20px;
        text-align: center;
    }
}


.slides-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease;
}



/* inqueryform design  */



        /* Basic CSS for styling */
        form {
            max-width: 400px;
            margin: auto;
            padding: 20px;
            border: 1px solid #ccc;
            border-radius: 10px;
        }
        input, textarea {
            width: 100%;
            padding: 10px;
            margin: 10px 0;
            border-radius: 5px;
            border: 1px solid #ccc;
        }
        button {
            padding: 10px;
            color: #fff;
            background-color: #4CAF50;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }





        