/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #40547a;
    color: #333;
}

/* Header - Perfect Alignment */
header {
  display: flex;
  justify-content: space-between; /* Logo on left, nav on right */
  align-items: center; /* Align items vertically */
  padding: 10px 20px; /* Adjust padding as needed */
  background: #4b0082;
  color: #2c3e50;
}

/* Logo Styling */
.logo {
  width: 150px; /* Adjust size as needed */
  height: auto;
  display: block; /* Ensures the logo behaves as a block element */
}

/* Navigation Menu */
.header-right nav ul {
  list-style: none;
  display: flex;
  gap: 20px; /* Spacing between menu items */
  margin: 0; /* Reset margin */
  padding: 0; /* Reset padding */
}

.header-right nav ul li {
  display: inline;
}

.header-right nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.1em; /* Slightly smaller font for mobile */
}

.header-right nav ul li a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
    background: url('we.webp') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 300px 0;
}

.hero h2 {
    font-size: 100px;
    color: white;
    margin-bottom: 0px;
}

.hero p {
    font-size: 35px;
    margin-bottom: 200px;
}

.cta-btn {
    background-color: #f39c12;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
}

/* About Us Section */
#about {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

#about h2 {
    font-size: 32px;
    color: #004080;
    margin-bottom: 10px;
}

#about p:first-of-type {
    font-size: 20px;
    font-weight: bold;
    color: #2793ff;
    margin-bottom: 15px;
}

#about p {
    font-size: 24px;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section - Full Width and Equal Height */
.services {
  background-color: #fff;
  padding: 50px 0;
  overflow: hidden; /* Prevents horizontal overflow */
}

.services h2 {
  text-align: center;
  font-size: 32px;
  color: #004080;
  margin-bottom: 40px;
}

.service-item h3 {
  font-size: 24px; /* Adjust title size */
  font-weight: bold;
  color: #002147; /* Navy Blue */
  margin-bottom: 10px;
}

.service-item p {
  font-size: 22px; /* Adjust paragraph size */
  line-height: 1.5; /* Improve readability */
  color: White; /* Dark Grey */
  max-width: 80%; /* Limit width for readability */
  margin: center; /* Center the text */
}

.service-list {
  display: flex;
  flex-wrap: wrap; /* Allows items to wrap on smaller screens */
  justify-content: center; /* Centers items horizontally */
  gap: 10; /* No gap between items */
}

.service-item {
  background-color: white;
  padding: 20px;
  width: calc(25% - 40px); /* 4 items per row on desktop (minus gap) */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 25px; /* Remove border radius for full-width effect */
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 450px; /* Same height as subject items */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers content vertically */
  align-items: center; /* Centers content horizontally */
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth hover effect */
}

.service-item:hover {
  transform: translateY(-10px); /* Lift the item slightly on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Add a stronger shadow on hover */
}

.service-item h3 {
  font-size: 28px;
  margin-top: 0px; /* Removed negative margin */
}

.service-item p {
  font-size: 20px;
}

/* Specific Service Item Background Images */
.service-item:nth-child(1) {
    background-image: url('one.webp');
}

.service-item:nth-child(2) {
    background-image: url('gr.webp');
}

.service-item:nth-child(3) {
    background-image: url('on.webp');
}

.service-item:nth-child(4) {
    background-image: url('ex.webp');
}

/* Subjects Section */
.subject {
    padding: 50px 0;
    background-color: #fff;
}

.subjects h2 {
    text-align: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 40px;
}

.subject-gallery {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: row;
    gap: 1px;
    flex-wrap: wrap;
    width: 100%;
}

.subject-item {
    flex: 1;
    max-width: 500px;
    background-color: #168bff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.subject-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.subject-item:hover img {
    transform: scale(1.1);
}

.subject-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    text-align: center-right;
}

/* Testimonials */
#testimonials h2 {
    text-align: center;
    font-size: 32px;
    color: #fff;
    margin-top: 30px;
}

blockquote {
    font-style: italic;
    font-size: 30px;
    color: #fff;
    background: #2a3750;
    padding: 40px;
    border-left: 5px solid #1c2435;
    margin: 5px auto;
    max-width: 600px;
}

/* Contact Section */
#contact {
    background-color: #1c2435;
    padding: 40px;
    text-align: center;
}

#contact h2 {
    font-size: 28px;
    color: #fff;
    font-weight: bold;
    margin-bottom: -20px;
}

#contact p {
    font-size: 22px;
    color: #fff;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#contact a {
    color: white;
    text-decoration: none;
    font-weight: normal;
}

#contact ul li {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 0px;
}

.icon {
    width: 50px;
    height: 40px;
    margin-top: 50px;
}

#contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #192130;
    color: white;
    text-align: center;
    padding: 15px;
    position: relative;
    bottom: 0;
    width: 100%;
	box-sizing: border-box; /* Ensures padding is included in the width */
    overflow: hidden; /* Prevents horizontal overflow */
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.whatsapp-icon {
    width: 85px;
    height: 85px;
    border-radius: 60%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
}

/* Mobile-Friendly Adjustments */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
  header {
    padding: 10px; /* Reduce padding for mobile */
    flex-direction: row; /* Keep logo and nav in a row */
    align-items: flex-start; /* Align items to the top */
  }

  .logo {
    width: 120px; /* Slightly smaller logo for mobile */
  }

  .header-right nav ul {
    flex-direction: column; /* Stack menu items vertically */
    gap: 10px; /* Reduce spacing between menu items */
    align-items: flex-end; /* Align menu items to the right */
    max-height: 200px; /* Limit height for scrolling */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Add padding to prevent overlap */
  }

  .header-right nav ul li a {
    font-size: 1em; /* Smaller font size for mobile */
  }
}

    .hero {
        padding: 150px 0;
    }

    .hero h2 {
        font-size: 50px;
    }

    .hero p {
        font-size: 20px;
        margin-bottom: 100px;
    }

    .cta-btn {
        padding: 10px 20px;
        font-size: 16px;
    }

    /* Media Query for Mobile Screens */
@media (max-width: 768px) {
  .service-list {
    flex-direction: column; /* Stacks items vertically on mobile */
    align-items: center; /* Centers items horizontally */
    gap: 10px; /* Reduces gap for mobile */
  }

  .service-item {
    width: 90%; /* Takes up 90% of the screen width */
    padding: 15px; /* Further reduced padding for mobile */
  }

  .service-item h3 {
    font-size: 24px; /* Smaller font size for mobile */
  }

  .service-item p {
    font-size: 18px; /* Smaller font size for mobile */
  }
}

    .subject-gallery {
        flex-direction: column;
        align-items: center;
    }

    .subject-item {
        max-width: 100%;
    }

    .subject-item img {
        height: 300px;
    }

    blockquote {
        font-size: 20px;
        padding: 20px;
    }

    #contact h2 {
        font-size: 24px;
    }

    #contact p {
        font-size: 18px;
    }

    .icon {
        width: 40px;
        height: 30px;
        margin-top: 30px;
    }

    .whatsapp-icon {
        width: 60px;
        height: 60px;
    }
}