/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navigation bar styling */

body {
    background-image: url('/Assets/Main_Asset/Background_Image.png'); /* Replace with the path to your image */
    background-size: cover; /* Ensures the image covers the entire viewport */
    background-repeat: no-repeat; /* Prevents tiling */
    background-attachment: fixed; /* Keeps the background fixed during scrolling */
    background-position: center; /* Centers the image */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255); /* Slight transparency */
    padding: 1rem 2rem;
    border-bottom: 1px solid #ccc;
    position: fixed;
    transition: opacity 0.3s ease-in-out, background-color 0.3s ease-in-out;
    z-index: 1000;
    width: 100%;
}

.logo img {
    width: 8rem;
    height: auto;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #6a1b9a;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #4CAF50;
}

/* Drop Down Menu for the Services Component */
.nav-links .dropdown {
    position: relative; /* Position the parent relative for proper alignment */
}

.nav-links .dropdown .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Aligns the dropdown directly below the parent */
    left: 0;
    background-color: #ffffff; /* Dropdown background */
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px; /* Adjust as needed */
}

.nav-links .dropdown .dropdown-menu li {
    padding: 10px 20px;
}

.nav-links .dropdown .dropdown-menu li a {
    text-decoration: none;
    color: #6a1b9a;
    font-size: 1rem;
    display: block;
    transition: color 0.3s ease;
}

.nav-links .dropdown .dropdown-menu li a:hover {
    color: #4CAF50; /* Green on hover */
}

/* Show dropdown menu on hover */
.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

/* Menu toggle button (hidden on larger screens) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background-color: #6a1b9a;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.3s;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 2000; /* Increased to ensure sidebar overlays other elements */
    padding-top: 20px;
    display: none;
    flex-direction: column;
}

.sidebar.active {
    display: flex;
    right: 0;
}

.sidebar .close-btn {
    font-size: 2rem;
    color: #000000;
    cursor: pointer;
    text-align: center;
    margin: 10px 20px;
}

.sidebar .sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar .sidebar-links li a {
    text-decoration: none;
    font-size: 1rem;
    color: #6a1b9a;
    font-weight: bold;
    display: block;
    text-align: center;
    transition: color 0.3s ease;
}

.sidebar .sidebar-links li a:hover {
    color: #4CAF50;
}

/* Sidebar Dropdown */
.sidebar .dropdown {
    position: relative;
}

.sidebar .dropdown .dropdown-menu {
    display: none; /* Hidden by default */
    list-style: none;
    margin-bottom: 0;
    padding-top: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    background-color: #ffffff;
    line-height: 1.3rem;
}

.sidebar .dropdown.open .dropdown-menu {
    display: flex; /* Show the dropdown */
}

.sidebar .dropdown .plus-symbol {
    float: right;
    font-size: 1.2rem;
    color: #6a1b9a;
    cursor: pointer;
    transition: transform 0.3s;
}

.sidebar .dropdown.open .plus-symbol {
    transform: rotate(45deg); /* Rotate "+" to "x" */
}



/* Hero Section Styling (updated for smooth transitions) */
/* Hero Section Slider */
#hero {
    width: 100%;
    height: 100vh; /* Adjust to your desired height */
    position: relative;
    overflow: hidden;
}

#hero .slider {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.slide {
    flex: 0 0 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the slide area */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.9;
}

/* overlay translucent effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(40, 37, 3, 0.5); /* Translucent black */
    z-index: 1;
    pointer-events: none;
}

/* Caption Styling */
.caption {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 1rem;
    border-radius: 5px;
}

.caption h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.caption p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.caption .cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #6a1b9a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.caption .cta:hover {
    background-color: #4CAF50;
}

/* Arrow Buttons */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1000; /* Lowered to ensure sidebar overlaps */
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}

.arrow:hover {
    background: #6a1b9a;
}

/* Indicators */
.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}   

.indicators .dot {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicators .dot.active {
    background-color: #6a1b9a;
}

/* Contents styling */
/* Contents Section */
#contents {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Centering the Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
    margin: 0 auto;
    max-width: 800px; /* Limits the content width */
}

.content-section h2 {
    font-size: 2.5rem;
    color: #6a1b9a; /* Purple color for the heading */
    margin-bottom: 1rem;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 2;
    color: #333333;
    margin-bottom: 1.5rem;
}

/* Content Row Styling */
.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    margin-bottom: 2rem;
    padding: 2rem; /* Add padding inside the container */
    background-color: #f8ebf5; /* White background */
    border-radius: 16px; /* Rounded corners */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow */
    overflow: hidden; /* Ensures child elements stay within the rounded corners */
    position: relative; /* Allows for decorative shapes */
    opacity: 0; /* Hidden initially */
    transform: translateY(50px); /* Positioned slightly lower */
    transition: opacity 0.8s ease, transform 0.8s ease; /* Smooth transition */
}

.content-row.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Return to normal position */
}

/* Content Image */
.content-image img {
    width: 50vw; /* Adjust image width */
    height: 80vh;
    border-radius: 12px; /* Rounded corners for images */
    object-fit: cover; /* Ensures image fills its container without distortion */
}

/* Content Text */
/* Content Text Styling */
.content-text {
    width: 55%; /* Adjust text width */
    color: #333333;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center-align all elements vertically */
    align-items: center; /* Center-align text and button horizontally */
    gap: 1.5rem; /* Add spacing between elements */
    text-align: center; /* Center-align the text */
}


.content-text h4 {
    font-size: 3rem;
    color: #f39c12; /* Yellow for subtitles */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-align: center;
}


.content-text h3 {
    font-size: 2rem;
    color: #6a1b9a; /* Purple heading */
    margin-bottom: 1rem;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555555;
}

/* Learn More Button Styling */
.learn-more-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    color: #ffffff;
    background-color: #6a1b9a; /* Purple button */
    border: none;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.learn-more-btn:hover {
    background-color: #4CAF50; /* Green on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}


/* Footer Styling */
footer {
    background-color: #eee5ee;
    color: #333;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-about,
.footer-links,
.footer-programs,
.footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer-about h3 {
    color: #27ae60; /* Green color */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links h3,
.footer-programs h3 {
    color: #8e44ad; /* Purple color */
    font-size: 1.2rem;
    margin-bottom: 1rem;
    gap: 2rem;
}

.footer-contact h3 {
    color: #3498db; /* Blue color */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-links ul,
.footer-programs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li a,
.footer-contact a {
    text-decoration: none;
    color: #8e44ad;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover,
.footer-contact a:hover {
    color: #27ae60; /* Green hover effect */
}

.footer-programs ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #6a1b9a; /* Purple button */
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.blog:hover {
    background-color: #4CAF50; /* Green on hover */
    transform: scale(1.05); /* Slight zoom on hover */
}

.footer-contact p {
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.footer-socials a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.footer-socials a img:hover {
    transform: scale(1.2); /* Zoom in on hover */
}

/* Footer Copyright Section */
.footer-copyright {
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #ccc;
    background-color: #f8f8f8; 
    font-size: 0.85rem;
    color: #666;
    font-family: Arial, sans-serif;
}

.footer-copyright p {
    margin: 0.2rem 0;
}

/* Back-to-Top Arrow Styling */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #6a1b9a; /* Purple background */
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

#back-to-top img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* Makes the arrow white */
    cursor: pointer;
}

#back-to-top:hover {
    background-color: #4CAF50; /* Green background on hover */
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}


/* Responsive styling */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar {
        display: flex;
    }
}

/* Responsive Styling for Content Rows */
@media (max-width: 1024px) {
    .content-text h4 {
        font-size: 2.5rem; /* Smaller subtitle font size */
    }

    .content-text h3 {
        font-size: 1.5rem; /* Reduce heading size */
    }

    .content-text p {
        font-size: 1rem; /* Reduce paragraph text size */
    }
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
    }

    .content-image img {
        width: 80%; /* Adjust image width for smaller screens */
        height: 80%;
        margin: 0 auto; /* Center the image */
    }

    .content-text {
        width: 100%; /* Full width for text */
    }

    .content-text h4 {
        font-size: 2rem; /* Further reduce subtitle font size */
    }

    .content-text h3 {
        font-size: 1.2rem; /* Further reduce heading size */
    }

    .content-text p {
        font-size: 0.9rem; /* Further reduce paragraph text size */
    }
}



@media (max-width: 480px) {
    .content-text h4 {
        font-size: 1.5rem; /* Subtitle font size for very small screens */
    }

    .content-text h3 {
        font-size: 1rem; /* Heading font size for very small screens */
    }

    .content-text p {
        font-size: 0.8rem; /* Paragraph font size for very small screens */
    }

}


