
/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #ff6b35;
  --primary: #ff8c42;
  --primary-dark: #e65100;
  --secondary-color: #2c3e50;
  --text-dark: #333;
  --text-light: #666;
  --background-light: #f8f9fa;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ===== LOADING ANIMATION ===== */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== NAVBAR STYLES ===== */
.navbar-area {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-area.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-light);
}

.navbar-brand img {
  height: 40px;
  transition: var(--transition);
}

/* Simple underline effect */
.navbar-nav .nav-link {
  font-weight: 600;
  font-size: 18px; /* Add this line - adjust the value as needed */

  color: var(--text-dark);
  padding: 10px 15px !important;
  margin: 0 5px;
  transition: var(--transition);
  position: relative;
  border-radius: 0;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  background: transparent;
  transform: none;
}

.navbar-toggler {
  border: none;
  padding: 4px 8px;
  transition: var(--transition);
}

/* ===== SECTION STYLES ===== */
section {
  padding: 100px 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--background-light);
}

/* ===== HEADER/HERO STYLES START===== */
.header-area {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 100px 0; /* Match other sections */
  padding-top: 180px; /* Account for fixed navbar */
}
.header-area .row {
  align-items: center;
}
.header-content h1 {
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
}
.header-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s both;
}
.header-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  animation: fadeInRight 1s ease 0.4s both;
}
.header-area .col-lg-6:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-image {
  animation: fadeInRight 1s ease 0.4s both;
}
  /* Hero CTA Button */
  .hero-cta {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .hero-cta:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

/* ===== HEADER/HERO STYLES END===== */


/* About image rounded corners */
.about-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  animation: fadeInRight 1s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== PAGE HEADER (NEWS PAGES) ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  padding: 150px 0 100px;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white;
  padding: 150px 0 80px;
  text-align: center;
}
section.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  padding: 150px 0 80px;
  text-align: center;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.meta-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.article-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-area {
  background: var(--background-light);
  padding: 20px 0;
}

.breadcrumb {
  background: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-dark);
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
}

/* section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
} */

/* ===== SERVICES STYLES ===== */
.services .row {
  margin-left: -15px;
  margin-right: -15px;
}
.single-services {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 0px; /* Remove bottom margin since we're using row-gap */
}

.single-services:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.single-services:hover .service-icon {
  transform: scale(1.1);
}

.service-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.services .col-lg-4,
.services .col-md-6 {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
}

/* ===== PORTFOLIO STYLES ===== */
.portfolio .row {
  row-gap: 30px;
}

.portfolio-style {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-style:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.portfolio-image {
  overflow: hidden;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-style:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-text {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-title {
  margin-bottom: 10px;
}

.portfolio-title a {
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.portfolio-title a:hover {
  color: var(--primary-color);
}

.portfolio-text .text {
  flex: 1;
}

/* ===== TEAM STYLES ===== */
.team-style {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 30px;
}

.team-style:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.team-image {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-style:hover .team-image img {
  transform: scale(1.1);
}

/* ===== NEWS STYLES ===== */
.news-area .row {
  row-gap: 30px;
}
.single-news {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.single-news:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.single-news .image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.single-news .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.single-news:hover .image img {
  transform: scale(1.05);
}
.meta-details {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.meta-details span {
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.content-body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.content-body .title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.content-body .title a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}
.content-body .title a:hover {
  color: var(--primary-color);
}
.content-body p {
  color: var(--text-light);
  flex: 1;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== NEWS GRID (NEWS PAGE) ===== */
.news-grid {
  padding: 80px 0;
}

.news-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.news-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-item:hover .news-image img {
  transform: scale(1.05);
}

.news-meta {
  position: absolute;
  bottom: 15px;
  left: 15px;
}

.news-meta span {
  background: var(--primary-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.news-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.news-title a:hover {
  color: var(--primary-color);
}

.news-excerpt {
  color: var(--text-light);
  flex: 1;
  margin-bottom: 15px;
}

.news-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: auto;
}

.news-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: var(--transition);
  display: inline-block;
}

.news-link:hover {
  color: var(--primary-color);
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  text-align: center;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  padding: 10px 20px;
  margin: 0 5px 10px;
  font-size: 18px; /* Add this line */
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--primary-color);
  background: transparent;
}
/* ===== ARTICLE CONTENT ===== */
.article-content {
  padding: 80px 0;
}
.article-container {
  max-width: 800px;
  margin: 0 auto;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-light);
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body strong {
  color: var(--secondary-color);
}

/* ===== BACK BUTTON ===== */
.simple-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 40px;
}

.simple-link:hover {
  color: var(--primary-color);
}

.back-button:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
}

/* ===== SHARE SECTION ===== */
.share-section {
  margin: 40px 0;
  text-align: center;
  padding: 30px;
  background: var(--background-light);
  border-radius: 15px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.share-btn:hover {
  transform: translateY(-3px);
  color: white;
}

.share-btn.linkedin { background: #0077b5; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #4267b2; }
.share-btn.email { background: var(--secondary-color); }

/* ===== RELATED ARTICLES ===== */
.related-articles {
  background: var(--background-light);
  padding: 80px 0;
}

.related-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 30px;
}

.related-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.related-image {
  height: 200px;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.related-item:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 20px;
}

.related-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.related-title a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
}

.related-title a:hover {
  color: var(--primary-color);
}

/* ===== CLIENT LOGOS ===== */
.clients-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.single-image {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  transition: var(--transition);
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 250px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single-image:hover {
  box-shadow: var(--shadow-light);
  transform: translateY(-5px);
}

.single-image img {
  max-height: 90px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

.single-image:hover img {
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .single-image {
    height: 120px;
    padding: 20px;
  }

  .single-image img {
    max-height: 80px;
    max-width: 160px;
  }
}

/* ===== CONTACT STYLES ===== */
/* ===== IMPROVED CONTACT STYLES ===== */
/* Replace your existing contact styles with these: */

.contact-section {
  background: var(--background-light);
  color: var(--text-dark);
  padding: 100px 0;
}

/* Add section title styling */
.contact-section .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.contact-section .section-title h2 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.contact-section .section-title p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Contact item wrapper */
.contact-item-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-item {
  background: white;
  border-radius: 15px;
  padding: 40px 30px;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  margin-bottom: 30px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.contact-icon i {
  font-size: 2rem;
  color: white;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-content {
  text-align: center;
}

.contact-content h4 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.contact-content p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.contact-content a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.contact-content a:hover {
  color: var(--primary-color);
}

/* Special styling for map link */
.map-link {
  display: inline-block;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .contact-item {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  .contact-content h4 {
    font-size: 1.2rem;
  }

  .contact-content p {
    font-size: 1rem;
  }
}

/* ===== FOOTER STYLES ===== */
.footer-area {
  background: white;
  color: var(--text-dark);
  padding: 50px 0 20px;
  border-top: 1px solid #eee;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: #e55a2b;
  transform: translateY(-3px);
}

/* ===== ACCESSIBILITY ===== */
.nav-link:focus,
.contact-item a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .header-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .article-title {
    font-size: 2.2rem;
  }

  section {
    padding: 60px 0;
  }

  .news-grid {
    padding: 60px 0;
  }

  .article-content {
    padding: 60px 0;
  }

  .article-body {
    font-size: 1rem;
  }

  .related-articles {
    padding: 60px 0;
  }

  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .single-image {
    height: 100px;
    padding: 15px;
  }

  .single-image img {
    max-height: 60px;
    max-width: 120px;
  }

  .filter-btn {
    margin: 0 2px 10px;
    padding: 8px 15px;
    font-size: 18px;
    font-weight: 600;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
}
/* Add these styles to your existing filter-btn section or replace it
.filter-btn {
  background: transparent;
  border: 2px solid #ddd;
  color: var(--text-dark);
  padding: 12px 24px;
  margin: 0 8px 10px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 25px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
} */

/* ===== NEWS ITEM FILTERING ANIMATIONS ===== */
.news-item {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  margin-bottom: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-item.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Ensure hidden items don't interfere */
.news-item.hidden:hover {
  transform: translateY(20px);
}

/* ===== PAGE HEADER OVERRIDE FOR NEWS PAGE ===== */
/* Update your existing .page-header styles with these */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  color: white !important;
  padding: 150px 0 100px; /* Increased padding to match article pages */
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: white;
  opacity: 0.95;
}

/* Hamburger menu styling */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
  transition: var(--transition);
  background: transparent;
  border-radius: 4px;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--primary-color);
}

/* Hamburger lines */
.navbar-toggler .toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger animation when active */
.navbar-toggler.active .toggler-icon:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler.active .toggler-icon:nth-child(2) {
  opacity: 0;
}

.navbar-toggler.active .toggler-icon:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* ===== TABLET AND MOBILE (991px and below) ===== */
@media (max-width: 991px) {
  /* Navigation changes */
  .navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .navbar-brand {
    order: 1 !important;
  }

  .navbar-toggler {
    order: 2 !important;
    margin-left: auto !important;
    position: static !important;
  }

  .navbar-collapse {
    order: 3 !important;
    width: 100% !important;
    display: none;
    background: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    position: absolute;
    top: 100%;
    left: 15px;
    right: 15px;
    z-index: 1000;
  }

  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-nav .nav-link {
    padding: 15px 0 !important;
    margin: 0;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 16px;
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Client logos grid adjustment */
  .clients-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* ===== MOBILE PHONES (768px and below) ===== */
@media (max-width: 768px) {
  /* Typography adjustments */
  .header-content h1 {
    font-size: 2.5rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .article-title {
    font-size: 2.2rem;
  }

  /* Section padding */
  section {
    padding: 60px 0;
  }

  .news-grid {
    padding: 60px 0;
  }

  .article-content {
    padding: 60px 0;
  }

  .related-articles {
    padding: 60px 0;
  }

  /* Hero section mobile fixes */
  .header-area {
    padding: 120px 0 60px;
    text-align: center;
  }

  .header-area .row {
    flex-direction: column-reverse;
  }

  .header-content {
    margin-top: 40px;
    text-align: center;
  }

  .header-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .hero-cta {
    margin-top: 30px;
    margin-bottom: 40px;
  }

  .header-image img {
    max-width: 80%;
    height: auto;
  }

  /* About section */
  .about-area {
    padding: 60px 0;
  }

  .about-area .row {
    margin-top: 40px;
  }

  .about-image {
    margin-bottom: 40px;
  }

  .about-content {
    text-align: center;
  }

  /* News page improvements */
  .news-grid .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .news-item {
    margin-left: 15px;
    margin-right: 15px;
  }

  .news-grid .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .news-grid .col-lg-4,
  .news-grid .col-md-6 {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Filter buttons */
  .filter-btn {
    min-height: 44px;
    min-width: 44px;
    margin: 5px 3px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 600;
  }

  /* Contact section */
  .contact-item {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  .contact-content h4 {
    font-size: 1.2rem;
  }

  .contact-content p {
    font-size: 1rem;
  }

  .contact-content a {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
  }

  /* Card spacing */
  .single-services {
    margin-bottom: 20px;
    padding: 30px 20px;
  }

  .portfolio-style {
    margin-bottom: 20px;
  }

  .news-item,
  .single-news {
    margin-bottom: 20px;
  }

  /* Client logos */
  .clients-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .single-image {
    height: 100px;
    padding: 15px;
  }

  .single-image img {
    max-height: 60px;
    max-width: 120px;
  }

  /* Page headers */
  .page-header {
    padding: 120px 0 80px;
  }

  /* Article formatting */
  .article-body {
    font-size: 1rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  /* Override news grid spacing completely */
  .news-grid .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .news-grid .row {
    margin-left: 0;
    margin-right: 0;
  }

  .news-grid .col-lg-4,
  .news-grid .col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
  }

  /* Remove conflicting margins from news items */
  .news-item {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
  }
}
/* ===== CONTACT CARDS MOBILE SPACING ===== */
@media (max-width: 768px) {
  .contact-section {
    padding: 60px 0;
  }

  .contact-section .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact-item-wrapper .row {
    margin-left: 0;
    margin-right: 0;
  }

  .contact-item-wrapper .col-12,
  .contact-item-wrapper .col-md-6,
  .contact-item-wrapper .col-xl-6 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 20px;
  }

  .contact-item {
    padding: 30px 20px;
    margin-bottom: 0; /* Remove extra margin since we're using column margin */
    width: 100%;
  }

  /* Ensure consistent spacing between contact cards */
  .contact-item:last-child {
    margin-bottom: 0;
  }

  /* Icon adjustments for mobile */
  .contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .contact-icon i {
    font-size: 1.5rem;
  }

  /* Text adjustments */
  .contact-content h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }

  .contact-content p {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  /* Touch-friendly links */
  .contact-content a {
    display: inline-block;
    min-height: 44px;
    line-height: 1.4;
    padding: 8px 0;
  }
}
/* ===== ARTICLE HEADER MOBILE FIXES ===== */
@media (max-width: 768px) {
  .article-header {
    padding: 120px 20px 60px 20px; /* Add horizontal padding and adjust top padding */
  }

  .article-title {
    font-size: 2rem; /* Reduce font size for mobile */
    line-height: 1.3;
    margin-bottom: 15px;
    padding: 0 10px; /* Add extra side padding */
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .meta-item {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Ensure container has proper padding */
  .article-header .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}





