/* 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 */
}

/* 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;
}

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" */
}

/* About US */
/* About Us Contents */
.about-us {
    padding: 60px 10%;
    background-color: #f9f9f9;
    text-align: center;
}

.about-us h2 {
    margin-top: 5rem;
    font-size: 2.5rem;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 20px;
}

.about-us p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    padding-bottom: 2rem;
}

.about-section {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.about-box {
    flex: 1;
    text-align: center;
    padding: 30px;
}

.about-title {
    font-size: 2rem;
    text-align: center;
    color: #6a1b9a;
    font-weight: bold;
}

.about-box p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
}

/* Standardize image size */
.about-image img {
    width: 100%;
    max-width: 450px; /* Ensuring uniform size */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Add slide-in effect */
.about-section {
    opacity: 0;
    transform: translateX(-100px); /* Start off-screen */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When visible, slide into view */
.about-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Reverse direction for alternating sections */
.reverse {
    flex-direction: row-reverse;
    transform: translateX(100px); /* Start from the opposite side */
}

.reverse.visible {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }

    .about-box {
        text-align: center;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }

    .about-box, .about-image {
        text-align: center;
    }

    .about-title {
        font-size: 1.5rem;
    }

    .about-box p {
        font-size: 1rem;
    }
}

/* 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 */
}


/* Responsive styling */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .sidebar {
        display: flex;
    }
}
