/* ====== General Body & Container Styles ====== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0px;
  padding: 0px;
  background: #f8f9fa;
  color: #343a40;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
  background: #fff;
   
}

h1, h2, h3, h4, h5, h6 {
  color: #0056b3;
  margin: 0 0 15px;
}

p {
  margin: 0 0 10px;
}

/* ====== Top Contact Bar ====== */
.top-contact-bar {
  background: #f2f2f2;
  color: #555;
  font-size: 0.9em;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 8px 20px;
}

.contact-info span {
  margin-left: 20px;
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 8px;
  color: #007bff;
}

/* ====== Navbar ====== */
.navbar {
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 0 !important;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.logo a {
  color: #020000;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  z-index: 1050;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  display: inline-block;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar-nav .nav-item {
  margin-left: 15px;
  color: black !important;
}

.navbar-nav .nav-link {
  color: rgba(2, 0, 0, 0.75) !important;
  padding: 15px 1rem;
  transition: 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #000000 !important;
  background: rgba(255, 255, 255, 0.1);
}

/* Dropdown */
.dropdown-menu {
  background: #343a40;
  border: none;
  padding: 0;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 10px 15px;
}

.dropdown-item:hover {
  background: #e9e9ea;
  color: #fff !important;
}

/* Company Logos Slider */
#company-logos-slider {
  background-color: #ffffff; /* Or keep bg-light for consistency */
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
  padding-top: 2rem; /* Adjust padding as needed */
  padding-bottom: 2rem; /* Adjust padding as needed */
}

.logo-item {
  width: 100px; /* Set your desired fixed width */
  height: 60px; /* Set your desired fixed height */
  object-fit: contain; /* Ensures the logo scales within the fixed size without cropping */
  opacity: 0.7; /* Makes them slightly transparent */
  transition: all 0.3s ease-in-out;
  margin: auto; /* Center the logo within its flex item */
}

.logo-item:hover {
  opacity: 1; /* Fully opaque on hover */
  transform: scale(1.05); /* Slightly enlarge on hover */
}

/* Ensure the section-title style is applied */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0056b3; /* Primary color */
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #007bff; /* Accent color */
  border-radius: 2px;
}

/* Responsive adjustments for logos if needed */
@media (max-width: 768px) {
  .logo-item {
    width: 80px; /* Adjust for smaller screens */
    height: 48px; /* Adjust for smaller screens */
  }
}

@media (max-width: 576px) {
  .logo-item {
    width: 60px; /* Adjust for even smaller screens */
    height: 36px; /* Adjust for even smaller screens */
  }
  #company-logos-slider .d-flex {
    justify-content: center !important; /* Center logos on small screens if they wrap */
  }
}

/* ====== Responsive Navbar ====== */
@media (max-width: 550px) {
  .navbar-collapse {
    background: #f6f8fa;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    z-index: 1040;
  }

  .nav-links.navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin-left: 0;
  }

  .navbar-nav .nav-link {
    padding: 10px 15px;
  }

  .dropdown-menu {
    position: static !important;
    background: #495057;
    width: 100%;
  }

  .dropdown-item {
    padding-left: 30px;
  }

  .logo {
    flex: 1;
    text-align: left;
  }

  .menu-toggle {
    margin-left: auto;
  }
}

/* ====== Hero Section ====== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/modi_background.jpg') no-repeat center center/cover;
  position: relative;
  color: #fff;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  text-align: left;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.hero-text {
  flex: 1 1 60%;
}

.hero-image {
  flex: 1 1 35%;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  max-width: 80%;
  margin-bottom: 25px;
}

.hero .buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero .btn {
  background: #007bff;
  color: #fff;
  padding: 12px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.3s ease;
}

.hero .btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.hero .btn.secondary {
  background: transparent;
  border: 2px solid #fff;
}

.hero .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text, .hero-image {
    flex: 1 1 100%;
    text-align: center;
  }
  .hero p {
    max-width: 100%;
  }
  .hero-image img {
    margin-top: 20px;
  }
}

/* ====== Sections & Grids ====== */
.section-inner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: #0056b3;
}

.features, .courses, .testimonials, .about-us, .contact-us, .enquiry-form-section {
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.feature-grid, .course-list, .testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-item, .course-item, .testimonial-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  transition: 0.2s ease;
}

.feature-item:hover, .course-item:hover, .testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.feature-item h3, .course-item h2 {
  color: #007bff;
}

.testimonial-item {
  text-align: left;
}

.testimonial-item p {
  font-style: italic;
  color: #555;
}

.testimonial-item span {
  display: block;
  font-weight: bold;
  color: #007bff;
  text-align: right;
}

/* ====== Forms ====== */
.form-container {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  max-width: 600px;
  margin: 20px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ced4da;
  border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
  outline: none;
}

.form-group button {
  background: #28a745;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.form-group button:hover {
  background: #218838;
  transform: translateY(-2px);
}

.error-message {
  background: #f8d7da;
  color: #dc3545;
  padding: 15px 25px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
}

.success-message {
  background: #d4edda;
  color: #28a745;
  padding: 15px 25px;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
}


/* ====== Trendy Navbar ====== */
.navbar {
    /* Background and Spacing */
    background: #032448 !important; /* Dark slate-blue background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.5rem !important;
}

.navbar-brand .navbar-title {
    /* Logo and Brand Text */
    font-family: 'Poppins', sans-serif; /* Modern, bold font */
    font-weight: 600;
    color: #ecf0f1 !important; /* Light gray for brand text */
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

.navbar-nav .nav-link {
    /* Navigation Links */
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #007bff !important; /* Lighter gray for links */
    font-size: 1rem;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    /* Hover and Active State */
    color: #007bff !important; /* Bright blue on hover */
    background-color: transparent !important;
    border-bottom: 2px solid #3498db;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: #ecf0f1 !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28236, 240, 241, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Add Poppins font link to your <head> section */
/* You can also use another sans-serif font like 'Montserrat' or 'Roboto' */

/* ====== Footer Styles ====== */
footer {
    background-color: #00008B;
    color: #fff;
    padding: 2rem 1rem;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: #fff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.social-media a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-media a:hover {
    color: #007bff;
}

.map-container {
    height: 200px;
    border: 1px solid #555;
    overflow: hidden;
    border-radius: 5px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====== Responsive Footer ====== */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-section {
        min-width: 100%;
        margin-bottom: 1.5rem;
    }
}

/* ====== Visitor Counter Styles ====== */
.visitor-counter {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    color: #fff;
    font-size: 1.1em;
}

.visitor-count-number {
    /* Font Styling */
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: #ffffff; /* Bright white text */

    /* Background and Shape */
    background: linear-gradient(45deg, #007bff, #28a745); /* A beautiful gradient effect */
    padding: 0.25em 0.8em;
    border-radius: 50px; /* Pill shape */
    display: inline-block; /* Allows padding and alignment */
    
    /* Dynamic Effects */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visitor-count-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navbar Title Styling */
.navbar-brand .navbar-title {
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;
    color: #00008B; /* Dark Blue */
    /* You might want to adjust font-size if needed */
    /* font-size: 1.5rem; */
}

/* Ensure other navbar styles don't override, if necessary */
/* For example, if you find it's not dark enough due to Bootstrap's .navbar-light .navbar-brand */
/* You might need to make it more specific if not working: */
/*
.navbar-light .navbar-brand .navbar-title {
    color: #00008B !important;
}
*/

/* --- About Section Specific Enhancements (NEW ADDITIONS) --- */
#about {
    padding-top: 4rem; /* More vertical padding */
    padding-bottom: 4rem;
    background-color: #f8f9fa; /* Consistent light background */
}

/* Style for the main description paragraphs */
#about .col-lg-7 p:not(.lead) {
    /* Using your body's preferred font-family by default, or you can specify */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem; /* Slightly larger font size for readability */
    line-height: 1.8; /* Increased line height for better readability of justified text */
    text-align: justify; /* Justify the text content */
    color: #343a40; /* Darker text for better contrast */
    margin-bottom: 1.5rem; /* Add some space between paragraphs */
}

/* Styling for the blockquote (Narendra Modi quote) */
#about blockquote {
    border-left: 5px solid #007bff; /* Add a prominent blue border on the left */
    padding-left: 20px; /* Space between border and text */
    margin-left: 0; /* Remove any default left margin */
    background-color: #e9ecef; /* Slightly different background for the quote block */
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 5px; /* Slightly rounded corners */
}

#about blockquote p {
    font-family: 'Georgia', serif; /* Use a classic serif font for quotes */
    font-size: 1.15rem; /* Slightly larger quote text */
    line-height: 1.7;
    margin-bottom: 0.5rem; /* Space before the footer */
    color: #495057; /* Darker color for quote text */
    text-align: left; /* Quotes are generally left-aligned for readability */
    font-style: italic; /* Keep italic for the quote itself */
}

#about figcaption {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Consistent with body font */
    font-size: 0.95rem; /* Adjust attribution font size */
    color: #6c757d; /* Muted color for attribution */
    text-align: right; /* Align attribution to the right */
    padding-right: 10px; /* Small padding from the right edge of the blockquote */
}

/* Responsive adjustments for text and image spacing */
@media (min-width: 992px) { /* Adjustments for desktop view (lg breakpoint) */
    #about .col-lg-7 {
        padding-right: 3rem; /* Add more space between text and image on desktop */
    }
    #about .col-lg-5 {
        padding-left: 3rem; /* Add more space between image and text on desktop */
    }
    /* Ensure image top margin is reset for desktop */
    #about .col-lg-5 img {
        margin-top: 0;
        margin-bottom: 0; /* Also reset bottom margin on desktop if it was added for mobile */
    }
}

/* Small adjustments for image margin on smaller screens if they stacked vertically */
@media (max-width: 991.98px) { /* Applies to tablets and phones */
    #about .col-lg-5 img {
        margin-top: 2rem; /* Add space above image when it stacks below text */
        margin-bottom: 1.5rem; /* Add space below image */
    }
}