/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary-color: #0b2e65;
  --secondary-color: #041d88;
  --dark-color: #212121;
  --light-color: #faf9f4;
  --text-color: #333;
  --text-light: #ffffff;
  --accent-color: #604b33;
  
  /* Spacing */
  --section-padding: 80px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== UTILITY CLASSES ========== */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: var(--border-radius);
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* ========== HEADER SECTION ========== */
.header {
  position: relative;
  min-height: 400px;
  background: 
    linear-gradient(180deg, rgba(135, 134, 134, 0.5) 53.37%, rgba(33, 33, 33, 0.7) 100%),
    url('../assets/images/services-hero-bg.jpg') center/cover no-repeat;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
}

.header-content {
  position: relative;
  z-index: 2;
  padding: 20px 72px;
  box-sizing: border-box;
  flex-direction: column;
  flex-grow: 1;
}

.logo-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logo Brand Styles */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.logo {
  width: 102.5px;
  height: 55px;
  object-fit: contain;
}

.company-name {
  color: var(--text-light);
  text-align: left;
  white-space: nowrap;
  margin-left: -8px;
}

.company-name-main {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: block;
  line-height: 1.2;
}

.company-name-sub {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: block;
  line-height: 1.2;
}

/* Navigation and Button Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-grow: 1;
}

.main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav li {
  flex-shrink: 0;
}

.main-nav a {
  color: var(--text-light);
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s;
  text-decoration: none;
  white-space: nowrap;
  display: block;
  padding: 8px 0;
}

.main-nav a.active {
  color: var(--secondary-color);
  font-weight: 900;
}

.main-nav a:hover {
  color: var(--secondary-color);
}

/* Dropdown Menu */
.main-nav .dropdown {
  position: relative;
}

.main-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 4px;
  padding: 10px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  min-width: 200px;
  display: none;
  z-index: 1000;
}

.main-nav .dropdown:hover .dropdown-menu {
  display: block;
}

.main-nav .dropdown-menu li {
  padding: 8px 20px;
}

.main-nav .dropdown-menu li a {
  color: var(--dark-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.main-nav .dropdown-menu li a:hover {
  background-color: #f2f2f2;
  color: var(--primary-color);
}

/* Page Title */
.page-title {
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  text-align: center;
  text-transform: uppercase;
  margin: 100px auto 0;
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  /* position: absolute; */
  /* left: 50%; */
  /* top: 50%; */
  /* transform: translate(-50%, -50%); */
  opacity: 1;
  transform: none;
  transition: all 0.8s ease-out;
}

/* .page-title.animate {
  opacity: 1;
  transform: scale(1) translate(-50%, -50%);
} */

.page-title.animate {
  transform: scale(1.1);
  transition: transform 0.8s ease-out;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  padding: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 2px 0;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ========== BLOG GRID STYLES ========== */
.container {
  display: flex;
  max-width: 1440px;
  margin: 40px auto;
  padding: 0 72px;
  gap: 40px;
}

.sidebar {
  width: 300px;
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.main-content {
  flex: 1;
  min-width: 0; /* Prevent flex item overflow */
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  width: 100%;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(11, 46, 101, 0.1);
  height: 100%; /* Ensure all cards have same height */
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  border-color: rgba(11, 46, 101, 0.3);
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.date {
  color: #888;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.card-content h3 {
  color: var(--primary-color);
  font-size: clamp(1.2rem, 1.5vw, 1.5rem); /* Responsive font size */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.card-content p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
  margin-top: auto;
}

.read-more i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Recent Posts */
.recent-posts {
  list-style: none;
  margin-bottom: 30px;
}

.recent-posts li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.recent-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-posts a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-posts a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  align-items: center;
}

.pagination-info {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--primary-color);
  margin: 0 15px;
  min-width: 100px;
  text-align: center;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #ccc;
  border-color: #ccc;
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .container {
    flex-direction: column;
    padding: 0 40px;
  }
  
  .sidebar {
    width: 100%;
    position: static;
    margin-bottom: 30px;
  }
  
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .blog-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr; /* Single column on small screens */
  }
  
  .blog-card {
    padding: 20px;
  }
}

/* ========== SOCIAL SECTION STYLES ========== */
.social-section {
  margin-top: 30px;
}

.social-section h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* Social Icons Styles */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
}

/* Specific icon colors */
.social-icons a.facebook {
  background-color: #3b5998;
}

.social-icons a.instagram {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.social-icons a.linkedin {
  background-color: #0077b5;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ================= FOOTER STYLES ================= */
.footer {
  background-color: dimgray;
  color: var(--text-light);
  padding: 60px 72px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.footer.animate {
  opacity: 1;
  transform: translateY(0);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 40px;
  align-items: flex-start;
}

/* ===== Left Side (Logo, Description, Social, Quick Links) ===== */
.footer-main {
  flex: 1;
  min-width: 300px;
  max-width: 360px;
}

.footer-main img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.footer-main p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Added Follow Us heading */
.follow-us-heading {
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icons a {
  color: var(--text-light);
  font-size: 18px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ===== Quick Links ===== */
.footer-quick-links {
  margin-top: 10px;
}

.footer-quick-links h3 {
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.footer-quick-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap !important; /* Changed from nowrap to wrap */
  /* Removed overflow-x: auto to eliminate scrollbar */
}

.footer-quick-links li {
  display: inline-block;
}

.footer-quick-links li a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.footer-quick-links li a:hover {
  color: var(--accent-color);
}

/* ===== Right Side (Find Us & Contact) ===== */
.footer-right-section {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-find-us {
  flex: 2;
  min-width: 320px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-contact {
  flex: 1;
  min-width: 220px;
  padding: 15px 0;
  margin: 20px 0;
}

.footer-find-us h3,
.footer-contact h3 {
  font-family: 'Mulish', sans-serif;
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 18px;
  color: var(--text-light);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
}

.contact-item i {
  color: var(--text-light);
  font-size: 16px;
  margin-top: 3px;
  min-width: 16px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 3px;
}

.contact-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light);
}

/* ===== Bottom Copyright ===== */
.footer-copyright {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .footer {
    padding: 40px 20px 20px;
  }

  /* Hide desktop elements on mobile */
  .desktop-logo,
  .desktop-description,
  .desktop-follow-us,
  .desktop-social,
  .desktop-quick-links,
  .footer-main,
  .footer-right-section {
    display: none !important;
  }

  /* Show mobile layout */
  .mobile-footer-layout {
    display: block;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  /* Mobile Footer Top Section */
  .mobile-footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  /* Mobile Logo + Text (row) */
  .mobile-logo-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }

  .mobile-logo {
    width: 80px;
    height: auto;
    display: block;
  }

  .mobile-company-name {
    display: flex;
    flex-direction: column;
    color: var(--text-light);
  }

  .mobile-company-name-main {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
  }

  .mobile-company-name-sub {
    font-family: 'Mulish', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
  }

  /* Mobile Quick Links */
  .mobile-quick-links {
    flex: 1;
    padding-right: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5); /* Bold vertical separator */
  }

  .mobile-quick-links h3 {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-light);
  }

  .mobile-quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-quick-links li {
    margin-bottom: 8px;
  }

  .mobile-quick-links li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .mobile-quick-links li a:hover {
    color: var(--accent-color);
  }

  /* Mobile Right Section */
  .mobile-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Mobile Follow Us */
  .mobile-follow-us h3 {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-light);
  }

  .mobile-social-icons {
    display: flex;
    gap: 15px;
  }

  .mobile-social-icons a {
    color: var(--text-light);
    font-size: 18px;
    transition: all 0.3s ease;
  }

  .mobile-social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
  }

  /* Mobile Contact */
  .mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .mobile-contact-item h3 {
    font-family: 'Mulish', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-light);
  }

  .mobile-contact-detail {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-contact-detail i {
    color: var(--text-light);
    font-size: 14px;
  }

  .mobile-contact-detail span {
    color: var(--text-light);
    font-size: 14px;
    text-decoration: underline;
  }

  /* Mobile Addresses */
  .mobile-addresses {
    margin-top: 20px;
  }

  .mobile-addresses .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
  }

  .mobile-addresses .contact-item i {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 2px;
    min-width: 14px;
  }

  .mobile-addresses .contact-item span {
    color: var(--text-light);
  }
}

/* Hide mobile layout on desktop */
@media (min-width: 769px) {
  .mobile-footer-layout {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .footer-quick-links ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer-copyright {
    font-size: 13px;
    margin-top: 10px;
    padding-top: 12px;
  }

  .contact-label {
    font-size: 13px;
  }
  
  .contact-value {
    font-size: 14px;
  }

  /* Mobile footer adjustments for very small screens */
  .mobile-footer-top {
    flex-direction: column;
    gap: 25px;
  }

  .mobile-quick-links,
  .mobile-right-section {
    width: 100%;
  }

  .mobile-quick-links {
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    padding-right: 0;
    padding-bottom: 20px;
  }

  .mobile-quick-links h3,
  .mobile-follow-us h3 {
    font-size: 16px;
  }

  .mobile-quick-links li a {
    font-size: 13px;
  }

  .mobile-contact-item h3 {
    font-size: 14px;
  }

  .mobile-contact-detail span {
    font-size: 13px;
  }

  .mobile-addresses .contact-item {
    font-size: 12px;
  }

  .mobile-addresses .contact-item i {
    font-size: 12px;
  }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1200px) {
  .container {
    padding: 0 40px;
  }
  
  .header-content {
    padding: 20px 40px;
  }
  
  .about-content .container,
  .mission-content-wrapper {
    flex-direction: column;
  }
  
  .about-image,
  .mission-image {
    width: 100%;
    margin-top: 40px;
  }
  
  .stats-container {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .stat-item {
    flex: 0 0 calc(50% - 20px);
  }
  
  .footer-links {
    gap: 40px;
  }
}

@media (max-width: 992px) {
  .header {
    min-height: 400px;
  }
  
  .logo-nav-container {
    margin-bottom: 30px;
  }
  
  .page-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  .header-content {
    padding: 15px 20px;
  }
  
  .logo-nav-container {
    margin-bottom: 20px;
  }
  
  .nav-container {
    justify-content: space-between;
    width: 100%;
    order: 1;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .page-title {
    font-size: 1.8rem;
  }
  
  .cta-button {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .video-container {
    height: 300px;
  }
  
  .video-container h3 {
    font-size: 24px;
    bottom: 80px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .play-button img {
    width: 20px;
  }
  
  .team-members {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 40px;
  }
  
  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--dark-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    padding: 40px 20px;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .main-nav a {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .header {
    min-height: 300px;
  }
  
  .page-title {
    font-size: 1.5rem;
  }
  
  .logo {
    width: 80px;
    height: 43px;
  }
  
  .company-name-main {
    font-size: 16px;
  }
  
  .company-name-sub {
    font-size: 14px;
  }
  
  .logo-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .company-name {
    white-space: normal;
  }
  
  .stat-item {
    flex: 0 0 100%;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .mission-content h2, 
  .about-text h2,
  .section-header h2 {
    font-size: 32px;
  }
  
  .mission-content p, 
  .about-text p {
    font-size: 16px;
  }
}

/* ========== MOBILE MENU GRADIENT STYLES ========== */
@media (max-width: 768px) {
  /* Mobile menu styling */
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0b2e65, #0a265a, #08308a);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 40px;
    display: flex;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 25px;
    width: 100%;
    text-align: center;
  }
  
  .main-nav a {
    font-size: 18px;
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a.active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
  }
  
  /* Dropdown menu for mobile */
  .main-nav .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    display: none;
    padding: 10px 0;
    margin-top: 10px;
  }
  
  .main-nav .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .main-nav .dropdown-menu li {
    padding: 8px 0;
  }
  
  .main-nav .dropdown-menu li a {
    color: var(--text-light);
    font-size: 16px;
    padding: 10px 0;
  }
  
  /* Mobile menu toggle animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Overlay for when menu is open */
  .header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  
  .header-overlay.active {
    display: block;
  }
}

/* Hide Contact Us button on mobile */
@media (max-width: 768px) {
  .cta-button {
    display: none;
  }
  
  /* Mobile services section */
  .mobile-services {
    display: block;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .mobile-services h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Mulish', sans-serif;
  }
  
  .mobile-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .mobile-service-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
  }
  
  .mobile-service-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  
  .mobile-service-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: block;
    height: 100%;
  }
  
  .mobile-service-item:hover a {
    color: white;
  }
  
  /* Hide sidebar on mobile */
  .sidebar {
    display: none;
  }
}

/* Desktop view - hide mobile services */
@media (min-width: 769px) {
  .mobile-services {
    display: none;
  }
}

/* ========== MOBILE MENU STYLES ========== */
@media (max-width: 768px) {
  /* Mobile menu styling */
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #0b2e65, #0a265a, #08308a);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 80px 20px 40px;
    display: flex;
    overflow-y: auto;
  }
  
  .main-nav.active {
    left: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 25px;
    width: 100%;
    text-align: center;
  }
  
  .main-nav a {
    font-size: 18px;
    padding: 12px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a.active {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
  }
  
  /* Dropdown menu for mobile */
  .main-nav .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    display: none;
    padding: 10px 0;
    margin-top: 10px;
    width: 100%;
  }
  
  .main-nav .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .main-nav .dropdown-menu li {
    padding: 8px 0;
  }
  
  .main-nav .dropdown-menu li a {
    color: var(--text-light);
    font-size: 16px;
    padding: 10px 0;
    border-bottom: none;
  }
  
  /* Mobile menu toggle animation */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Overlay for when menu is open */
  .header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    transition: opacity 0.3s ease;
  }
  
  .header-overlay.active {
    display: block;
  }
  
  /* Prevent scrolling when menu is open */
  body.no-scroll {
    overflow: hidden;
  }
}

/* Rest of your CSS remains the same */

/* Hide mobile-only elements on desktop */
.mobile-only {
  display: none;
}

/* Show mobile-only elements on mobile */
@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  /* Optional: Hide the CTA button in mobile view if needed */
  .header .cta-button {
    display: none;
  }
}

/* ========== ENHANCED MOBILE CATEGORIES ========== */
.mobile-services {
  display: block;
  margin-bottom: 30px;
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.mobile-services h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Mulish', sans-serif;
  position: relative;
  padding-bottom: 10px;
}

.mobile-services h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.mobile-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mobile-service-item {
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  overflow: hidden;
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.mobile-service-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-color);
  transition: height 0.3s ease;
}

.mobile-service-item:hover:before {
  height: 100%;
}

.mobile-service-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  padding: 12px 10px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  gap: 8px;
}

.mobile-service-item a i:first-child {
  font-size: 14px;
  width: 20px;
  text-align: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-service-item a span {
  flex: 1;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.mobile-service-item a .arrow-icon {
  font-size: 10px;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.mobile-service-item:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(11, 46, 101, 0.15);
}

.mobile-service-item:hover a {
  color: white;
}

.mobile-service-item:hover a i:first-child {
  color: white;
  transform: scale(1.1);
}

.mobile-service-item:hover a .arrow-icon {
  opacity: 1;
  transform: translateX(2px);
}

/* Animation for category items */
@keyframes categoryPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.mobile-service-item {
  animation: categoryPulse 3s infinite ease-in-out;
}

.mobile-service-item:nth-child(2n) {
  animation-delay: 0.2s;
}

.mobile-service-item:nth-child(3n) {
  animation-delay: 0.4s;
}

.mobile-service-item:nth-child(4n) {
  animation-delay: 0.6s;
}

/* Active state for selected category */
.mobile-service-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.mobile-service-item.active a {
  color: white;
}

.mobile-service-item.active a i {
  color: white;
}

/* Responsive adjustments for mobile categories */
@media (max-width: 380px) {
  .mobile-services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .mobile-service-item a {
    padding: 10px 8px;
    font-size: 12px;
  }
  
  .mobile-service-item a i:first-child {
    font-size: 12px;
    width: 18px;
  }
}

/* Desktop view - hide mobile services */
@media (min-width: 769px) {
  .mobile-services {
    display: none;
  }
}

/* ========== MOBILE FOOTER QUICK LINKS HORIZONTAL ========== */
@media (max-width: 768px) {
  .footer-quick-links ul {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 15px 30px;
    justify-content: flex-start;
  }
  
  .footer-quick-links li {
    list-style-type: none;
    margin-right: 20px;
    position: relative;
  }
  
  /* Optional: Add separators between links */
  .footer-quick-links li:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -18px;
    top: 0;
    color: rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 576px) {
  .footer-quick-links ul {
    gap: 15px 20px;
  }
  
  .footer-quick-links li {
    margin-right: 15px;
  }
  
  .footer-quick-links li:not(:last-child)::after {
    right: -15px;
  }
}

@media (max-width: 480px) {
  .footer-quick-links ul {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px 15px;
  }
  
  .footer-quick-links li {
    margin-right: 10px;
    font-size: 14px;
  }
  
  .footer-quick-links li:not(:last-child)::after {
    right: -12px;
  }
}

/* Center copyright text on all devices */
.footer-copyright {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
}

/* Reduce gap between quick links and copyright on mobile */
@media (max-width: 768px) {
  .footer-content {
    margin-bottom: 30px; /* Reduced from 60px */
  }
  
  .footer-copyright {
    margin-top: 20px; /* Added to control spacing */
    padding-top: 15px; /* Reduced padding */
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .footer-copyright {
    margin-top: 15px;
    padding-top: 12px;
    font-size: 12px;
  }
}

/* Mobile View: Company name beside logo */
@media (max-width: 768px) {
  .logo-brand {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .company-name {
    margin-left: 5px;
    text-align: left;
    white-space: nowrap;
  }

  .company-name-main {
    font-size: 16px;
  }

  .company-name-sub {
    font-size: 14px;
  }
}

/* ========== BLOG FILTERING STYLES ========== */
.blog-card.filtered {
  display: none !important;
}

.blog-card.visible {
  display: flex !important;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-service-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.mobile-service-item.active a {
  color: white;
}

.mobile-service-item.active a i {
  color: white;
}

/* Mobile filter notification */
.filter-notification {
  display: none;
  background: var(--primary-color);
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 0 20px 20px;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.filter-notification .clear-filter {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 5px;
}

@media (max-width: 768px) {
  .filter-notification {
    display: block;
  }
  
  /* Hide sidebar categories on mobile */
  .sidebar {
    display: none;
  }
  
  .container {
    flex-direction: column;
  }
  
  .main-content {
    width: 100%;
  }
}

/* ===== EXTRA SMALL DEVICES (≤360px) ===== */
@media (max-width: 360px) {
  .footer {
    padding: 25px 12px 15px;
  }
  
  /* Tighten footer spacing and prevent overflow */
  .footer-content {
    padding: 0 8px;
    gap: 20px;
  }
  
  /* Mobile footer layout adjustments */
  .mobile-footer-layout {
    padding: 0 8px;
  }
  
  .mobile-footer-top {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
  }
  
  .mobile-quick-links,
  .mobile-right-section {
    width: 50%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .mobile-quick-links {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: none;
    padding-right: 10px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .mobile-right-section {
    padding-left: 10px;
    gap: 10px;
  }
  
  /* Quick links styling */
  .mobile-quick-links h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .mobile-quick-links ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .mobile-quick-links li {
    margin-right: 0;
  }
  
  .mobile-quick-links li a {
    font-size: 13px;
    padding: 4px 0;
  }
  
  /* Right section adjustments */
  .mobile-right-section {
    width: 100%;
    gap: 15px;
  }
  
  .mobile-follow-us h3,
  .mobile-contact-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .mobile-social-icons {
    gap: 12px;
    margin-bottom: 5px;
  }
  
  .mobile-social-icons a {
    font-size: 16px;
  }
  
  .mobile-contact-detail {
    font-size: 13px;
  }
  
  .mobile-contact-detail i {
    font-size: 13px;
  }
  
  /* Address section */
  .mobile-addresses {
    margin-top: 15px;
  }
  
  .mobile-addresses .contact-item {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
    align-items: flex-start;
  }
  
  .mobile-addresses .contact-item i {
    font-size: 12px;
    margin-top: 3px;
    min-width: 12px;
  }
  
  /* Ensure long address lines wrap cleanly */
  .mobile-addresses .contact-item span {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  
  /* Copyright section */
  .footer-copyright {
    margin-top: 15px;
    padding-top: 12px;
    font-size: 11px;
    line-height: 1.4;
  }
  
  .footer-copyright a {
    font-size: 11px;
    margin: 0 3px;
  }
  
  /* Logo and company name adjustments */
  .mobile-logo-brand {
    margin-bottom: 15px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .mobile-logo {
    width: 65px;
    margin: 0 auto;
  }
  
  .mobile-company-name-main {
    font-size: 14px;
  }
  
  .mobile-company-name-sub {
    font-size: 12px;
  }
}

/* Additional adjustments for very small heights */
@media (max-width: 360px) and (max-height: 640px) {
  .footer {
    padding: 20px 12px 12px;
  }
  
  .mobile-addresses .contact-item {
    margin-bottom: 8px;
    font-size: 11px;
  }
}


/* ========== MOBILE CATEGORIES STYLES ========== */
.mobile-categories-container {
  display: none;
  margin-bottom: 20px;
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
}

.mobile-categories-container h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Mulish', sans-serif;
  position: relative;
  padding-bottom: 10px;
}

.mobile-categories-container h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.mobile-categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-category-item {
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  overflow: hidden;
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.mobile-category-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-color);
  transition: height 0.3s ease;
}

.mobile-category-item:hover:before,
.mobile-category-item.active:before {
  height: 100%;
}

.mobile-category-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 15px;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  gap: 12px;
}

.mobile-category-item a i:first-child {
  font-size: 16px;
  width: 24px;
  text-align: center;
  color: var(--primary-color);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.mobile-category-item a span {
  flex: 1;
  transition: all 0.3s ease;
  line-height: 1.3;
}

.mobile-category-item a .arrow-icon {
  font-size: 12px;
  transition: all 0.3s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.mobile-category-item:hover,
.mobile-category-item.active {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(11, 46, 101, 0.15);
}

.mobile-category-item:hover a,
.mobile-category-item.active a {
  color: white;
}

.mobile-category-item:hover a i:first-child,
.mobile-category-item.active a i:first-child {
  color: white;
  transform: scale(1.1);
}

.mobile-category-item:hover a .arrow-icon,
.mobile-category-item.active a .arrow-icon {
  opacity: 1;
  transform: translateX(2px);
}

/* Filter notification */
.filter-notification {
  display: none;
  background: var(--primary-color);
  color: white;
  padding: 12px 15px;
  border-radius: 5px;
  margin: 0 20px 20px;
  text-align: center;
  font-size: 14px;
  position: relative;
}

.filter-notification .clear-filter {
  color: white;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 5px;
  font-weight: 600;
}

/* Blog content container */
.blog-content-container {
  transition: all 0.3s ease;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
  .mobile-categories-container {
    display: block;
  }
  
  .sidebar {
    display: none;
  }
  
  .blog-grid {
    display: none; /* Initially hidden on mobile */
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }
  
  .blog-grid.active {
    display: grid;
  }
  
  .filter-notification {
    display: block;
  }
  
  .main-content {
    width: 100%;
    padding: 0 20px;
  }
  
  .container {
    flex-direction: column;
    padding: 0;
  }
}

@media (max-width: 768px) {
  .mobile-category-item a {
    font-size: 13px;
    padding: 12px;
  }
  
  .mobile-category-item a i:first-child {
    font-size: 15px;
    width: 20px;
  }
  
  .mobile-category-item a .arrow-icon {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .mobile-category-item {
    min-height: 55px;
  }
  
  .mobile-category-item a {
    font-size: 12px;
    padding: 10px;
  }
  
  .mobile-category-item a i:first-child {
    font-size: 14px;
    width: 18px;
  }
  
  .mobile-category-item a .arrow-icon {
    font-size: 10px;
  }
}