/* public/assets/css/style.css */

/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ========== SKIP LINK - Accessibility ========== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1a5f7a;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* ========== HEADER ========== */
.site-header {
  background: #1a5f7a;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo h1 {
  color: white;
  font-size: 1.5rem;
  margin: 0;
}

.logo a {
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.main-nav li a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  display: block;
  transition: background 0.3s;
  font-weight: 500;
}

.main-nav li a:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* ========== HERO SECTION ========== */
.hero {
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background: linear-gradient(135deg, #0e3d4f 0%, #1a5f7a 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #e67e22;
  color: white;
}

.btn-primary:hover {
  background: #d35400;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  color: #1a5f7a;
  border: 2px solid #1a5f7a;
}

.btn-outline:hover {
  background: #1a5f7a;
  color: white;
}

/* ========== CERTIFICATIONS SECTION ========== */
.certifications {
  padding: 60px 0;
  background: white;
  text-align: center;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.section-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.certification-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

.certification-logos img {
  max-height: 60px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.certification-logos img:hover {
  opacity: 1;
}

/* ========== SERVICES PREVIEW SECTION ========== */
.services-preview {
  padding: 60px 0;
  background: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.service-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: #1a5f7a;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
}

.service-link {
  color: #e67e22;
  text-decoration: none;
  font-weight: 600;
}

.service-link:hover {
  text-decoration: underline;
}

/* ========== ABOUT PREVIEW SECTION ========== */
.about-preview {
  padding: 60px 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
}

.checklist {
  list-style: none;
  margin: 25px 0;
}

.checklist li {
  margin: 12px 0;
  padding-left: 25px;
  position: relative;
}

.checklist li:before {
  content: "✓";
  color: #e67e22;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
  padding: 60px 0;
  background: #f8f9fa;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-text p {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author p {
  margin: 0;
  color: #1a5f7a;
  font-weight: 500;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, #1a5f7a 0%, #0e3d4f 100%);
  color: white;
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4,
.footer-certifications h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-about p {
  line-height: 1.6;
  color: #bdc3c7;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #e67e22;
}

.footer-contact address {
  font-style: normal;
  color: #bdc3c7;
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-certifications {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-certifications img {
  max-width: 80px;
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #95a5a6;
}

.footer-bottom a {
  color: #95a5a6;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #e67e22;
}

/* ========== TEXT CENTER UTILITY ========== */
.text-center {
  text-align: center;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 768px) {
  .site-header .container {
    display: flex;
    text-align: center;
  }

  .logo {
    margin-bottom: 0px;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav li a {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: justify;
  }

  .footer-certifications {
    align-items: justify;
  }

  .footer-newsletter {
    align-items: justify;
  }
}

/* ========== TABLET RESPONSIVE ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 30px;
  }
}

/* ========== MOBILE MENU STYLES ========== */

/* Hide mobile toggle button on desktop */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    position: relative;
}

/* Hamburger icon container */
.hamburger-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Top bar */
.hamburger-icon::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    top: -8px;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Bottom bar */
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    bottom: -8px;
    left: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* When menu is open - transform to X */
.mobile-menu-toggle.active .hamburger-icon {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* MOBILE STYLES (max-width: 768px) */
@media (max-width: 768px) {
  /* Show hamburger button on mobile */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide navigation by default on mobile */
  .main-nav {
    display: none;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Show navigation when active */
  .main-nav.active {
    display: block;
  }

  /* Stack navigation vertically */
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav li a {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
  }

  /* Header layout - Logo left, Hamburger right */
  .site-header .container {
    display: flex;
    justify-content: space-between; /* Pushes logo left, button right */
    align-items: center;
    flex-wrap: wrap;
  }

  /* Logo stays on left */
  .logo {
    flex: 1;
  }

  /* Menu button stays on right */
  .mobile-menu-toggle {
    margin-left: auto; /* Pushes button to the right */
  }
}

/* ========== ABOUT PAGE STYLES ========== */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1a5f7a 0%, #0e3d4f 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Our Story */
.our-story {
  padding: 60px 0;
  background: white;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-content h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.story-content p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.8;
}

.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.milestone {
  text-align: center;
}

.milestone-number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #e67e22;
}

.milestone-label {
  font-size: 0.85rem;
  color: #666;
}

.story-image img,
.image-placeholder {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* Mission & Vision */
.mission-vision {
  padding: 60px 0;
  background: #f8f9fa;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mission-card,
.vision-card,
.values-card {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.mv-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.mission-card h3,
.vision-card h3,
.values-card h3 {
  color: #1a5f7a;
  margin-bottom: 15px;
}

.values-card ul {
  list-style: none;
  text-align: left;
  margin-top: 15px;
}

.values-card li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}

.values-card li:before {
  content: "✓";
  color: #e67e22;
  position: absolute;
  left: 0;
}

/* Certifications Detail */
.certifications-detail {
  padding: 60px 0;
  background: white;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.cert-item {
  text-align: center;
  padding: 20px;
}

.cert-badge {
  font-size: 3rem;
  margin-bottom: 15px;
}

.cert-item h4 {
  color: #1a5f7a;
  margin-bottom: 10px;
}

.cert-item p {
  font-size: 0.9rem;
  color: #666;
}

/* Team Section */
.team-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.team-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
}

.team-card:hover {
  transform: translateY(-5px);
}

.team-image {
  background: #1a5f7a;
  padding: 30px;
}

.avatar-placeholder {
  font-size: 4rem;
  color: white;
}

.team-card h3 {
  margin: 15px 0 5px;
  color: #2c3e50;
}

.team-title {
  color: #e67e22;
  font-weight: 600;
  margin-bottom: 10px;
}

.team-bio {
  padding: 0 15px 15px;
  font-size: 0.9rem;
  color: #666;
}

.team-social {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  text-decoration: none;
  color: #1a5f7a;
  font-weight: bold;
}

/* Why Choose Us */
.why-choose-us {
  padding: 60px 0;
  background: white;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.why-item {
  text-align: center;
  padding: 20px;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.why-item h4 {
  color: #1a5f7a;
  margin-bottom: 10px;
}

.why-item p {
  color: #666;
  font-size: 0.9rem;
}

/* Stats Section */
.stats-section {
  background: linear-gradient(135deg, #1a5f7a 0%, #0e3d4f 100%);
  color: white;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.stat-item .stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

/* Mobile Responsive for About Page */
@media (max-width: 768px) {
  .story-grid,
  .mv-grid,
  .cert-grid,
  .team-grid,
  .why-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .milestones {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .team-grid {
    gap: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .team-grid,
  .cert-grid,
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== CONTACT PAGE STYLES ========== */

.contact-section {
  padding: 60px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

/* Contact Info Side */
.contact-info h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.contact-info > p {
  color: #666;
  margin-bottom: 30px;
}

.info-details {
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.info-icon {
  font-size: 1.5rem;
  min-width: 40px;
}

.info-item h4 {
  color: #1a5f7a;
  margin-bottom: 5px;
}

.info-item p {
  color: #666;
  line-height: 1.5;
}

.emergency-badge {
  background: #f8f9fa;
  border-left: 4px solid #e67e22;
  padding: 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  border-radius: 4px;
}

.emergency-badge span {
  font-size: 2rem;
}

/* Contact Form Side */
.contact-form-wrapper {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
}

.contact-form-wrapper h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a5f7a;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
}

/* Alerts */
.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-error ul {
  margin: 0;
  padding-left: 20px;
}

/* Map Section */
.map-section {
  padding: 60px 0;
  background: #f8f9fa;
}

.map-container {
  margin-top: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background: white;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.faq-item h4 {
  color: #1a5f7a;
  margin-bottom: 10px;
}

.faq-item p {
  color: #666;
  line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .contact-grid,
  .form-row,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 20px;
  }

  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .emergency-badge {
    justify-content: center;
  }
}

/* ========== DROPDOWN MENU STYLES (Fixed) ========== */

/* Desktop Styles */
@media (min-width: 769px) {
  .dropdown {
    position: relative;
  }

  .dropdown-toggle {
    cursor: pointer;
  }

  .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
  }

  .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-menu {
    position: absolute;
    top: 100%; /* Positions below the parent */
    left: 0; /* Aligns to the left edge */
    right: auto; /* Don't push to the right */
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
    margin-top: 5px;
  }

  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
  }

  .dropdown-menu li {
    margin: 0;
  }

  .dropdown-menu li a {
    color: #333;
    padding: 10px 20px;
    display: block;
    transition: background 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .dropdown-menu li a {
    white-space: nowrap;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dropdown-menu li a:hover {
    background: #f0f0f0;
    color: #1a5f7a;
  }

  .dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static !important;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 20px;
    margin-top: 0;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    color: white;
    padding: 8px 0 8px 20px;
    font-size: 0.9rem;
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .dropdown-divider {
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
  }

  .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
  }
}

/* ========== SERVICES PAGE STYLES ========== */

.services-overview {
  padding: 60px 0;
  background: white;
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.services-intro h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.services-grid-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-group-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-group-card:hover {
  transform: translateY(-5px);
}

.service-group-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-group-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.service-group-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-list-preview ul {
  list-style: none;
  margin: 20px 0;
}

.service-list-preview li {
  padding: 8px 0;
  color: #555;
  font-size: 0.9rem;
}

.service-list-preview li.more {
  color: #e67e22;
  font-style: italic;
}

/* Service Detail Page */
.service-detail-header {
  padding: 60px 0;
  color: white;
  text-align: center;
}

.service-header-content h1 {
  font-size: 2.5rem;
  margin: 20px 0 15px;
}

.service-header-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.service-details {
  padding: 60px 0;
  background: white;
}

.service-detail-item {
  margin-bottom: 50px;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  background: none;
  padding: 0;
  text-align: left;
}

.service-detail-header h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
}

.service-detail-content {
  padding-left: 60px;
}

.service-description {
  margin-bottom: 30px;
}

.service-description h3 {
  color: #1a5f7a;
  margin-bottom: 15px;
}

.service-grid-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.service-benefits ul,
.service-process ol {
  background: #f8f9fa;
  padding: 20px 20px 20px 40px;
  border-radius: 8px;
  margin-top: 10px;
}

.service-benefits li,
.service-process li {
  margin: 10px 0;
  color: #555;
}

.service-cta {
  margin-top: 30px;
}

.service-divider {
  height: 1px;
  background: #eee;
  margin: 40px 0;
}

/* Related Services */
.related-services {
  padding: 60px 0;
  background: #f8f9fa;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.related-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.related-card h4 {
  margin-bottom: 10px;
  color: #1a5f7a;
}

.related-card p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.related-link {
  color: #e67e22;
  text-decoration: none;
  font-weight: 600;
}

/* Why Services Section */
.why-services {
  padding: 60px 0;
  background: #f8f9fa;
}

.why-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.why-service-item {
  text-align: center;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .services-grid-large,
  .service-grid-details,
  .related-grid,
  .why-services-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-content {
    padding-left: 0;
  }

  .service-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .service-detail-header h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== SERVICE DETAIL PAGE STYLES ========== */

.service-intro {
  padding: 60px 0;
  background: white;
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.service-details {
  padding: 60px 0;
  background: #f8f9fa;
}

.service-detail-item {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.service-detail-header h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin: 0;
}

.service-detail-content {
  padding-left: 60px;
}

.service-description {
  margin-bottom: 35px;
}

.service-description h3 {
  color: #1a5f7a;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-description p {
  color: #555;
  line-height: 1.8;
}

.service-grid-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 35px 0;
}

.service-benefits ul,
.service-process ol {
  background: #f8f9fa;
  padding: 25px 25px 25px 45px;
  border-radius: 10px;
  margin: 15px 0 0;
}

.service-benefits li,
.service-process li {
  margin: 12px 0;
  color: #555;
  line-height: 1.6;
}

.service-faq {
  margin: 35px 0;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #e67e22;
}

.service-faq h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.faq-box strong {
  display: block;
  margin-bottom: 10px;
  color: #1a5f7a;
  font-size: 1.1rem;
}

.faq-box p {
  color: #555;
  margin: 0;
}

.service-cta {
  margin-top: 35px;
  text-align: center;
}

.why-choose-section {
  padding: 60px 0;
  background: white;
  text-align: center;
}

.why-choose-content {
  max-width: 800px;
  margin: 0 auto;
}

.why-choose-content h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
}

.why-choose-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  .service-detail-item {
    padding: 25px;
  }

  .service-detail-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .service-detail-content {
    padding-left: 0;
  }

  .service-grid-details {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-detail-header h2 {
    font-size: 1.5rem;
  }

  .intro-content h2 {
    font-size: 1.5rem;
  }

  .why-choose-content h2 {
    font-size: 1.5rem;
  }
}

/* ========== SINGLE DROPDOWN FIX - ADD AT BOTTOM ========== */
@media (min-width: 769px) {
  .main-nav .dropdown .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    background: white !important;
    min-width: 260px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    margin-top: 5px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    display: block !important;
  }

  .main-nav .dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 0 !important;
  }

  .main-nav .dropdown-menu li a {
    color: #333 !important;
    padding: 10px 20px !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 769px) {
  .main-nav .dropdown .dropdown-menu {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

/* ========== FORCE MOBILE DROPDOWN TO CLOSE ========== */
@media (max-width: 768px) {
  /* Ensure dropdown starts closed */
  .dropdown .dropdown-menu {
    display: none !important;
  }

  /* Only show when active */
  .dropdown.active .dropdown-menu {
    display: block !important;
  }

  /* Remove any lingering visibility */
  .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.footer-newsletter input {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 10px;
}

.footer-newsletter button {
  background: #e67e22;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.footer-newsletter button:hover {
  background: #d35400;
}

/* Logo Image Styles */
.logo-img {
  height: auto;
  width: auto;
  max-width: 200px;
  display: block;
}

/* Mobile responsive logo */
@media (max-width: 768px) {
  .logo-img {
    height: auto;
    max-width: 150px;
  }
}

/* Service detail header with background image */
.service-detail-header {
  padding: 80px 0;
  color: white;
  text-align: center;
  position: relative;
}

.service-header-content {
  position: relative;
  z-index: 2;
}

.service-icon-large {
  margin-bottom: 20px;
}

.service-header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.service-header-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

/* Dark overlay for better text readability */
.service-detail-header::before {
  display: none;
}

.service-group-img img {
    border-radius: 8px;
    width: 100%; 
    height: auto;
}


/* Responsive */
@media (max-width: 768px) {
  .service-detail-header {
    padding: 50px 0;
  }

  .service-header-content h1 {
    font-size: 1.8rem;
  }
}
