/* ----------NAVBAR-----------------*/


/* General reset and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Body Styles */
body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-image: url('images/background.jpg'); /* Set a background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #333;
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(244, 246, 247, 0.8); /* 80% opacity */
    ; /* Semi-transparent background */
    padding: 0px 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%; /* Set to full width */
    margin: 0; /* Remove margin to prevent centering */
}

/* Logo and Site Name */
.logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    margin-left: 70px; /* Add margin to the right of the logo */
}
.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* popup effect */
}

.site-name {
    font-size: 20px;
    font-weight: 700;
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.nav-links li {
    margin: 0 15px; /* Increased margin for better spacing */
}

.nav-links li a {
    color: #444; /* Text color */
    text-decoration: none;
    font-family: 'Roboto', sans-serif; /* Use Roboto font */
    font-size: 16px; /* Font size */
    font-weight: 500; /* Font weight */
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-links li a:hover {
    color: #fff;
    background-color: #007BFF; /* Background color on hover */
}

/* Dropdown Styles */
.nav-links .dropdown {
    position: relative; /* Positioning context for the dropdown */
}

.nav-links .dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Position it below the dropdown button */
    background-color: #f9f9f9; /* Background color */
    min-width: 200px; /* Minimum width */
    z-index: 1; /* Stack on top */
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2); /* Shadow effect */
    border-radius: 5px; /* Rounded corners */
    margin-top: 5px; /* Space above the dropdown */
    padding: 0; /* Remove padding if you want content to dictate size */
}

.nav-links .dropdown-content a {
    color: black; /* Link color */
    padding: 10px 15px; /* Padding for the links */
    text-decoration: none; /* Remove underline */
    display: block; /* Make links block elements for full width */
}

/* Add hover effect */
.nav-links .dropdown-content a:hover {
    background-color: #f1f1f1; /* Change background on hover */
}

/* Show dropdown on hover */
.nav-links .dropdown:hover .dropdown-content {
    display: block; /* Show dropdown on hover */
}


/* Style the search form */
.search-tab {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
}

.search-form input[type="text"] {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.search-form button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    padding: 5px;
}

.search-form button i {
    font-size: 18px;
    color: #333;
}

/* Optional: Adjust margin for spacing */
.nav-links .search-tab {
    margin-left: 20px;
}

/* Search and Profile Icon including login image */
.search-and-profile {
    display: flex;
    align-items: center;
}

.profile-icon {
    position: relative; /* Needed for absolute positioning of the comment box */
    margin-right: 70px; /* Space between search input and profile icon */
}

.profile-icon img {
    width: 40px; /* Adjusted size for the profile icon */
    height: 40px; /* Adjusted size for the profile icon */
    cursor: pointer; /* Change cursor to indicate hoverable element */
}

.comment-box {
    display: none; /* Initially hide the comment box */
    position: absolute; /* Position relative to the profile icon */
    bottom: -40px; /* Adjust as necessary to position it below the icon */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Centering the box */
    background-color: #fff; /* Background color for the box */
    border: 1px solid #ccc; /* Optional border */
    border-radius: 5px; /* Rounded corners */
    padding: 5px 10px; /* Padding around the text */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
    white-space: nowrap; /* Prevent text wrapping for the link */
}

.profile-icon:hover .comment-box {
    display: block; /* Show the comment box on hover */
}

.welcome-message {
    margin-top: 5px; /* Space between the link and the welcome message */
    font-size: 12px; /* Font size for the welcome message */
    color: #000; /* Set text color to black or desired color */
    text-align: center; /* Center text */
}

/* Input (Search bar) Styles */
.search-and-profile input {
    width: 100%; /* Set to 100% to allow full width */
    max-width: 600px; /* Increase the maximum width as needed */
    height: 50px; /* Adjust height */
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-left: 20px; /* Adjust spacing on the left */
    margin-top: 5px; /* Adjust this value to move the search bar down */
}


/* ----------moving image -----------------*/

/* First Section */
.hero-container {
    position: relative;
    height: 80vh;
    width: 100%;
    max-width: 85%; /* Set a max-width less than 100% */
    margin: 0 auto;  /* Center it */
    overflow: hidden;
}


.image-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 30px; /* Increased value for more pronounced curves */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Optional: soft shadow for depth */
}



.slide:nth-child(1) { animation: fade 25s infinite; }
.slide:nth-child(2) { animation: fade 25s infinite 5s; }
.slide:nth-child(3) { animation: fade 25s infinite 10s; }
.slide:nth-child(4) { animation: fade 25s infinite 15s; }
.slide:nth-child(5) { animation: fade 25s infinite 20s; }

@keyframes fade {
    0% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}


/* ----------programs four grids -----------------*/

/* Import Google Fonts (Add this to the top of your CSS file) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Programs Section */
.programs-section {
    background-color: white;
    padding: 50px 20px;
    text-align: center; /* Center text for the section */
    font-family: 'Roboto', sans-serif; /* Apply the font to the section */
}

.programs-container {
    max-width: 1230px;
    margin: 0 auto;
}

/* Title Style */
.section-title {
    font-size: 2.5rem;
    color: #ff7a59;
    margin-bottom: 30px;
    font-weight: 700; /* Bold weight for the title */
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Grid Item */
.grid-item {
    display: flex;
    flex-direction: column; /* Stack image, text, and button vertically */
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
    align-items: center; /* Center content */
    text-align: center; /* Center text within the grid item */
    font-family: 'Roboto', sans-serif; /* Apply the font to grid items */
}

/* Image Styles */
.grid-item img {
    width: 100%; /* Change to 100% for full container width */
    height: 200px; /* Fixed height */
    object-fit: cover; /* Cover the space while maintaining aspect ratio */
    border-radius: 8px; /* Optional, if you want rounded corners */
    margin-bottom: 20px; /* Space between image and text */
}

/* Grid Content */
.grid-content {
    text-align: justify; /* Center text and button */
}

/* Title and Paragraph */
.grid-content h3 {
    margin-top: 0;
    font-size: 1.5rem; /* Adjusted font size for titles */
    font-weight: 700; /* Bold weight for h3 */
}

.grid-content p {
    margin: 10px 0;
    font-size: 1rem; /* Font size for paragraphs */
    line-height: 1.5; /* Improve line spacing for readability */
}

/* Button Styles */
.grid-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    transition: background-color 0.3s;
}

/* Button Color Classes */
.grid-btn.orange {
    background-color: rgb(196, 113, 80);
}

.grid-btn.yellow {
    background-color: rgb(202, 214, 68);
    color: black;
}

.grid-btn.blue {
    background-color: rgb(62, 191, 224);
}

.grid-btn.green {
    background-color: rgb(141, 211, 141);
}

.grid-btn:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Stack items in a single column */
    }
}


/* ---------- Blogs Section ---------- */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Blogs Section */
.blogs-section {
    background-color: #fdfdfd;
    padding: 50px 20px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.blogs-container {
    max-width: 1230px;
    margin: 0 auto;
}

/* Title Style */
.blogs-title {
    font-size: 2.5rem;
    color: #4a90e2;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Grid Container */
.blogs-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Blog Content */
.grid-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.grid-content p {
    margin: 0;
    display: inline;
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.blog-card-summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Link Style (for 'Learn More' links) */
.blog-link {
    color: #4a90e2;  /* Adjust color to match your theme */
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #ff5722;  /* Color change on hover */
    text-decoration: underline;
}



/* ----------About section  -----------------*/

/* About Us Section */
.about-us-section {
    background-color: white;
    padding: 50px 20px;
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1270px;
    margin: 0 auto; /* Center the section */
    font-family: 'Roboto', sans-serif; /* Ensure consistent font across the section */
}

.about-us-content {
    flex: 1;
    display: flex;
    align-items: flex-start; /* Align items at the start */
}

.about-us-image {
    width: 40%; /* Adjust image width */
    height: 240px; /* Fixed height for image */
    object-fit: cover; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between image and text */
    margin-top: 40px; /* Top margin for alignment */
}

.grid-content {
    flex: 1; /* Allow text container to take available space */
    margin-left: 20px; /* Space to the left of the text */
    text-align: left; /* Align text to the left for a better reading experience */
}

.about-us-title {
    font-size: 2.2rem; /* Title font size */
    color: #ff7a59; /* Title color */
    margin-bottom: 10px; /* Space below the title */
}

.about-text {
    font-size: 1rem; /* Font size for paragraph */
    color: #555; /* Text color */
    line-height: 1.4; /* Line height for readability */
    text-align: justify; /* Justify text alignment */
}

.highlight {
    color: #ff7a59; /* Highlight color for emphasis */
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-us-content {
        flex-direction: column; /* Stack image and text on smaller screens */
        align-items: center; /* Center align items */
    }

    .about-us-image {
        width: 80%; /* Adjust image width for mobile */
        height: auto; /* Allow height to adjust */
        margin-top: 20px; /* Space above image on mobile */
    }

    .grid-content {
        margin-left: 0; /* Remove margin on mobile */
        text-align: justify; /* Center text on mobile */
    }
}


/* ----------Footer  -----------------*/

footer {
    background-color: #daa5a8;
    color: #120f0f;
    padding: 50px 0;
    text-align: center;
    width: 100%; /* Ensure full width */
}

.footer-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-link {
    color: #120f0f;
    text-decoration: none;
}

.footer-link:hover {
    color: #ff7a59;
    text-decoration: underline;
}


/* CSR section */

.csr-section {
    background: #f5fff7;
    padding: 80px 20px;
    text-align: center;
    border-top: 2px solid #2f8f3f10;
  }

  .csr-container {
    max-width: 900px;
    margin: 0 auto;
  }

  .csr-title {
    font-size: 2em;
    color: #2f8f3f;
    margin-bottom: 15px;
  }

  .csr-text {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
  }

  .csr-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .csr-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .csr-btn.primary {
    background-color: #2f8f3f;
    color: #fff;
  }

  .csr-btn.primary:hover {
    background-color: #267f36;
  }

  .csr-btn.secondary {
    background-color: #fff;
    color: #2f8f3f;
    border: 2px solid #2f8f3f;
  }

  .csr-btn.secondary:hover {
    background-color: #2f8f3f;
    color: #fff;
  }



/* Responsive Design */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column; /* Stack items on smaller screens */
        align-items: center; /* Center align */
    }

    .footer-link {
        margin: 5px 0; /* Add space between links */
    }
}



