/* ---------------------------------------------------------
   Variables & Reset
   --------------------------------------------------------- */
:root {
  --primary-color: #223035;    /* Dark Slate */
  --secondary-color: #38464A;  /* Muted Blue-Grey */
  --tertiary-color: #20282D;   /* Darker Grey */
  --text-color: #7A868A;       /* Body Text */
  --white: #ffffff;
  --black: #000000;
  --bg-color: #ffffff;
  --bg-light: #F4F8FA;
  --border-color: #EEEEEE;
  --teal: #65BBBB;
  --heading-color: #223035;
  --text-muted: #7A868A;
  
  --gradient-start: #65BBBB;   /* Teal */
  --gradient-end: #6F8DA3;     /* Soft Blue */
  --gradient-primary: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Heebo', sans-serif;

  --transition: all 0.3s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--gradient-start);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 80px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
}

.btn-primary:hover {
  color: var(--white);
}

.btn-primary::before {
  background-color: var(--tertiary-color);
}

.btn-primary:hover::before {
  width: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-outline::before {
  background-color: var(--primary-color);
}

.btn-outline:hover::before {
  width: 100%;
}

/* ---------------------------------------------------------
   Hero Wrapper (New)
   --------------------------------------------------------- */
.hero-wrapper {
  background: linear-gradient(rgba(34, 48, 53, 0.8), rgba(34, 48, 53, 0.8)), url('/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  position: relative;
}

/* ---------------------------------------------------------
   Top Bar
   --------------------------------------------------------- */
.top-bar {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 15px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-bar-left a {
  color: rgba(255, 255, 255, 0.8);
}

.top-bar-left a:hover {
  color: var(--gradient-start);
}

.top-bar-left i {
  margin-right: 8px;
  color: var(--gradient-start);
}

.divider {
  width: 1px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--gradient-start);
}

/* ---------------------------------------------------------
   Header Navigation
   --------------------------------------------------------- */
.main-header {
  background-color: transparent;
  padding: 20px 0;
  position: relative;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo h2 {
  margin-bottom: 0;
  font-size: 24px;
  color: var(--white);
}

.logo img {
  height: 140px;
  width: auto;
}

.footer-logo img {
  height: 120px;
  width: auto;
  margin-bottom: 25px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
  font-optical-sizing: none;
  color: var(--white);
  position: relative;
  padding: 10px 0;
}

.main-nav a.active, .main-nav a:hover {
  color: var(--gradient-start);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.main-nav a:hover::after, .main-nav a.active::after {
  width: 100%;
}

.main-nav ul li {
  position: relative;
}


/* Submenu Styles */
.main-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  background-color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 99;
  padding: 15px 0;
  border-top: 3px solid var(--gradient-start);
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
}

.main-nav li:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .submenu li {
  margin: 0;
  width: 100%;
}

.main-nav .submenu a {
  padding: 10px 20px;
  display: block;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
}

.main-nav .submenu a::after {
  display: none; /* remove hover line */
}

.main-nav .submenu a:hover {
  background-color: var(--bg-light);
  color: var(--gradient-start);
  padding-left: 25px; /* slight indent on hover */
  transition: all 0.2s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-action {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-action .icon-wrap {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.contact-info strong {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 16px;
}

.nav-toggle {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
  display: none;
}

/* ---------------------------------------------------------
   Hero Section
   --------------------------------------------------------- */
.hero {
  background-color: transparent;
  padding: 160px 0 200px;
  position: relative;
  overflow: hidden;
}

/* Adding a subtle background pattern/gradient shape */
.hero::before {
  content: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gradient-start);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 50px;
}

.hero-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--gradient-start);
}

.hero-title {
  font-size: 68px;
  margin-bottom: 35px;
  line-height: 1.08;
  color: var(--white);
}

.hero-description {
  font-size: 18px;
  margin-bottom: 45px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

/* ---------------------------------------------------------
   Service Overviews (3 Columns)
   --------------------------------------------------------- */
.service-overviews {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding-bottom: 100px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.overview-card {
  background-color: var(--white);
  padding: 45px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.overview-card:hover::before, .overview-card.active::before {
  transform: scaleX(1);
}

.overview-card:hover, .overview-card.active {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--gradient-start);
  margin-bottom: 25px;
  transition: var(--transition);
}

.overview-card:hover .card-icon, .overview-card.active .card-icon {
  background: var(--gradient-primary);
  color: var(--white);
}

/* ---------------------------------------------------------
   Icon Hover Animations (site-wide)
   --------------------------------------------------------- */
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes icon-heartbeat {
  0%  { transform: scale(1); }
  10% { transform: scale(1.25); }
  20% { transform: scale(1); }
  30% { transform: scale(1.2); }
  40% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes icon-wiggle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
}

@keyframes icon-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes icon-ring {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(-13deg); }
  30% { transform: rotate(10deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
  70% { transform: rotate(2deg); }
  100% { transform: rotate(0deg); }
}

.contact-action .icon-wrap i {
  display: inline-block;
  transition: transform 0.3s ease;
}

.contact-action:hover .icon-wrap i {
  animation: icon-ring 0.8s ease;
}

.card-icon i,
.feature-icon i,
.stat-icon i,
.td-social a i,
.svc-card .card-icon i {
  transition: transform 0.4s ease;
  display: inline-block;
}

.overview-card:hover .card-icon i,
.svc-card:hover .card-icon i {
  animation: icon-bounce 0.6s ease;
}

.feature-item:hover .feature-icon i {
  animation: icon-pulse 0.5s ease;
}

.stat-item:hover .stat-icon i {
  animation: icon-wiggle 0.6s ease;
}

/* Per-icon animations — applied universally to any hoverable container */
.overview-card:hover .fa-heart-pulse,
.svc-card:hover .fa-heart-pulse,
.feature-item:hover .fa-heart-pulse,
.stat-item:hover .fa-heart-pulse {
  animation: icon-heartbeat 1.4s ease infinite;
}

.overview-card:hover .fa-plane,
.svc-card:hover .fa-plane,
.feature-item:hover .fa-plane {
  animation: icon-fly 0.6s ease;
}

.overview-card:hover .fa-home,
.svc-card:hover .fa-home,
.feature-item:hover .fa-home {
  animation: icon-pop 0.5s ease;
}

.overview-card:hover .fa-chart-line,
.svc-card:hover .fa-chart-line,
.feature-item:hover .fa-chart-line {
  animation: icon-bounce 0.6s ease;
}

.overview-card:hover .fa-piggy-bank,
.svc-card:hover .fa-piggy-bank,
.feature-item:hover .fa-piggy-bank {
  animation: icon-pop 0.5s ease;
}

.overview-card:hover .fa-shield-halved,
.svc-card:hover .fa-shield-halved,
.feature-item:hover .fa-shield-halved {
  animation: icon-wiggle 0.5s ease;
}

.overview-card:hover .card-icon .fa-chart-line,
.svc-card:hover .card-icon .fa-chart-line {
  animation: icon-bounce 0.6s ease;
}

.overview-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.overview-card p {
  color: var(--text-color);
  margin-bottom: 25px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  transition: var(--transition);
}

.overview-card:hover .read-more, .overview-card.active .read-more {
  background: var(--gradient-primary);
  color: var(--white);
  border-color: transparent;
}

/* ---------------------------------------------------------
   About Section
   --------------------------------------------------------- */
.about {
  padding: 140px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-placeholder {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-placeholder img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

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

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--gradient-primary);
  color: var(--white);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 10px solid var(--white);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.experience-badge .years {
  font-size: 40px;
  font-weight: 700;
  font-family: var(--font-heading);
  line-height: 1;
}

.experience-badge .text {
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gradient-start);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  font-size: 18px;
}

.section-title {
  font-size: 44px;
  margin-bottom: 30px;
  line-height: 1.2;
}

.about-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

.about-list {
  margin-bottom: 35px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary-color);
}

.about-list li i {
  color: var(--gradient-start);
  margin-top: 5px;
  margin-right: 15px;
  font-size: 18px;
}

/* ---------------------------------------------------------
   Page Hero (Subpages)
   --------------------------------------------------------- */
.page-hero {
  padding: 80px 0 100px;
}

.page-hero .hero-inner {
  text-align: center;
}

.page-hero .hero-content {
  max-width: 100%;
}

.page-hero .hero-title {
  font-size: 48px;
  margin-bottom: 0;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 16px;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero .breadcrumb a:hover {
  color: var(--gradient-start);
}

.page-hero .breadcrumb .separator {
  color: rgba(255, 255, 255, 0.4);
}

.page-hero .breadcrumb .current {
  color: var(--gradient-start);
}

/* ---------------------------------------------------------
   Sticky Header
   --------------------------------------------------------- */
.main-header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-bottom-color: transparent;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* ---------------------------------------------------------
   Contact Section
   --------------------------------------------------------- */
.contact-section {
  padding: 140px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-list {
  margin-top: 30px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-info-item i {
  color: var(--gradient-start);
  font-size: 24px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.contact-info-item span {
  font-size: 18px;
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gradient-start);
}

/* ---------------------------------------------------------
   Team Details Section (Gurus-style)
   --------------------------------------------------------- */
.team-details {
  padding: 140px 0;
}

/* Main 2-column layout */
.td-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

/* Left sidebar */
.td-sidebar {}

.td-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
}

.td-name {
  font-size: 28px;
  margin-bottom: 5px;
}

.td-role {
  color: var(--gradient-start);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.td-contact-info {
  margin-bottom: 30px;
}

.td-contact-item {
  margin-bottom: 20px;
}

.td-label {
  display: block;
  color: var(--gradient-start);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.td-value {
  display: block;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 500;
}

.td-social {
  display: flex;
  gap: 10px;
}

.td-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.td-social a:hover {
  background: var(--primary-color);
  color: var(--white);
}

/* Right content */
.td-content {}

.td-section {
  margin-bottom: 50px;
}

.td-section:last-child {
  margin-bottom: 0;
}

.td-section-title {
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--gradient-start);
  display: inline-block;
}

.td-section > p {
  color: var(--text-color);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Work Experience grid */
.td-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.td-exp-item {
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 500;
}

.td-exp-item i {
  color: var(--gradient-start);
  margin-right: 10px;
  font-size: 13px;
}

/* Education grid */
.td-edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.td-edu-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.td-edu-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 16px;
  flex-shrink: 0;
}

.td-edu-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.td-edu-item p {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Skills progress bars */
.td-skills {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.td-skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-color);
}

.td-skill-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.td-skill-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1s ease;
}

/* Awards */
.td-awards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.td-award {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-color);
}

.td-award i {
  color: var(--gradient-start);
  margin-right: 8px;
}

/* Responsive */
@media (max-width: 992px) {
  .td-layout { grid-template-columns: 1fr; gap: 60px; }
  .td-sidebar { max-width: 400px; }
}

@media (max-width: 768px) {
  .td-experience-grid,
  .td-edu-grid { grid-template-columns: 1fr; }
  .td-awards { flex-direction: column; gap: 15px; }
}

/* Legacy support */
.team-details-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.expertise-list {
  list-style-type: disc;
  margin-left: 20px;
  font-size: 18px;
  color: var(--text-color);
  line-height: 1.8;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 992px) {
  .container { padding: 0 40px; }
  .logo img { height: 100px; width: auto; }
  .hero-title { font-size: 48px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 80px; }
  .about-image-wrapper { max-width: 600px; margin: 0 auto; }
  .features-inner { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-action { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .top-bar { display: none !important; }
  .main-nav { display: none !important; }
  .contact-action { display: none !important; }
  .enroll-btn { display: none !important; }
  .nav-toggle {
    display: block !important;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 10;
  }
  .logo img { height: 70px; width: auto; }
  .header-inner { padding: 10px 0; }
  .hero { padding: 80px 0 120px; }
  .hero-title { font-size: 32px; }
  .hero-buttons { flex-direction: column; }
  .overview-grid { grid-template-columns: 1fr; }
  .service-overviews { margin-top: -60px; }
  .section-title { font-size: 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-skills-inner { grid-template-columns: 1fr !important; gap: 30px !important; }
  .faq-skills { padding: 60px 0 !important; }
  .skills-wrapper { order: -1; }
  .skills-grid { flex-direction: column; align-items: center; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { flex-direction: column; text-align: center; }
  .newsletter-form-wrapper { width: 100%; margin-top: 30px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input,
  .newsletter-form button { border-radius: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-details-grid { grid-template-columns: 1fr; }
  .page-hero .hero-title { font-size: 28px; }
  .td-layout { grid-template-columns: 1fr; }
  .blog-post-header h2 { font-size: 26px; }

  /* Force ALL inline grid layouts to single column on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(5"],
  [style*="grid-template-columns:repeat(5"] {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* Reduce excessive inline gaps and padding on mobile */
  [style*="gap: 80px"] { gap: 30px !important; }
  [style*="gap: 60px"] { gap: 25px !important; }
  [style*="gap: 40px"] { gap: 20px !important; }
  [style*="padding: 30px 40px"] { padding: 20px !important; }

  /* Ensure images and media don't overflow */
  img, video, iframe { max-width: 100%; height: auto; }

  .team-grid { grid-template-columns: 1fr !important; }
  .stats-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 576px) {
  .container { padding: 0 15px; }
  .logo img { height: 55px; width: auto; }
  .hero-title { font-size: 28px; }
  .stats-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .skills-grid { flex-direction: column; align-items: center; }
}

/* ---------------------------------------------------------
   Dark Mode (Static Site)
   --------------------------------------------------------- */
/* --- Dark mode variable overrides --- */
/* Only override bg/border vars — text vars stay dark so white-card content stays readable */
.dark {
  --bg-color: #0f1419;
  --bg-light: #1a2028;
  --border-color: #2a3440;
  --text-light: rgba(255,255,255,0.75);
  /* --text-color, --heading-color, --text-muted stay original for white-card contexts */
}

/* --- Base: dark bg = white text --- */
.dark body,
.dark { background-color: #0f1419; color: #ffffff; }
.dark .hero-wrapper { background: linear-gradient(rgba(15,20,25,0.85), rgba(15,20,25,0.85)), url('../images/hero-bg.jpg') center/cover no-repeat; }
.dark .main-header { border-bottom-color: rgba(255,255,255,0.05); }
.dark .main-header.sticky { background-color: #1a2028; box-shadow: 0 5px 20px rgba(0,0,0,0.4); }
.dark .page-hero { background: linear-gradient(135deg, #0f1419 0%, #1a2028 100%); }

/* --- Cards: white bg = dark text --- */
.dark .overview-card,
.dark .case-card,
.dark .blog-card,
.dark .sidebar-widget,
.dark .td-content,
.dark .td-sidebar { background: #ffffff; border-color: #EEEEEE; }
.dark .sidebar-widget h3,
.dark .sidebar-widget .widget-title { color: #1a1a1a; }
.dark .sidebar-widget p,
.dark .sidebar-widget a,
.dark .sidebar-widget li { color: #333333; }
.dark .sidebar-widget a:hover { color: #65BBBB; }
.dark .td-content h3 { color: #1a1a1a; }
.dark .td-content p { color: #333333; }
.dark .td-sidebar h3,
.dark .td-sidebar .td-name { color: #1a1a1a !important; }
.dark .td-sidebar p,
.dark .td-sidebar .td-value { color: #333333 !important; }
.dark .td-sidebar .td-skill-bar { background-color: #EEEEEE; }
.dark .accordion-item { background-color: #141c22; border-color: #2a3440; }
.dark .overview-card h3,
.dark .case-content h3,
.dark .blog-card-content h3 a { color: #1a1a1a; }
.dark .overview-card p,
.dark .case-content p,
.dark .blog-card-content p { color: #333333; }
.dark .overview-card:hover,
.dark .case-card:hover,
.dark .blog-card:hover { background: #ffffff; box-shadow: 0 15px 40px rgba(0,0,0,0.3); }
.dark .overview-card:hover::before,
.dark .overview-card.active::before { transform: scaleX(1); }

/* --- Card icons: light circle + teal icon on white cards --- */
.dark .card-icon { background-color: #F4F8FA; color: var(--gradient-start); }
.dark .overview-card:hover .card-icon,
.dark .overview-card.active .card-icon { background: var(--gradient-primary); color: #fff; }

/* --- Inline white cards: force dark text on #fff backgrounds --- */
.dark [style*="background: #fff"] h3,
.dark [style*="background:#fff"] h3 { color: #1a1a1a !important; }
.dark [style*="background: #fff"] p,
.dark [style*="background:#fff"] p { color: #333333 !important; }
.dark [style*="background: #fff"] strong,
.dark [style*="background:#fff"] strong { color: #1a1a1a !important; }
.dark [style*="background: #fff"] div,
.dark [style*="background:#fff"] div { color: #333333; }

/* --- Services page cards (inline <style> uses vars, override for white cards) --- */
.dark .svc-card { background: #ffffff !important; }
.dark .svc-card h3 { color: #1a1a1a !important; }
.dark .svc-card p { color: #333333 !important; }
.dark .svc-tab { color: #ffffff; border-color: #2a3440; }
.dark .svc-tab:hover, .dark .svc-tab.active { color: #fff; }
.dark #tab-label { color: #ffffff !important; }

/* --- Read-more on white cards --- */
.dark .overview-card .read-more,
.dark .case-card .read-more,
.dark .svc-card .read-more-link { color: #1a1a1a; border-color: #EEEEEE; }
.dark .overview-card .read-more:hover,
.dark .svc-card .read-more-link:hover { color: #65BBBB; }

/* --- Section backgrounds --- */
.dark .service-overviews,
.dark .about,
.dark .faq-skills,
.dark .team,
.dark .team-details,
.dark .blog-section,
.dark .blog-post-section,
.dark .contact-section { background-color: #0f1419; }
.dark .features,
.dark .stats { background-color: #141c22; }

/* --- Text on dark backgrounds: white --- */
.dark .section-title,
.dark .td-name,
.dark h1, .dark h2, .dark h3 { color: #ffffff; }
.dark .section-subtitle { color: #65BBBB; }
.dark .text-color,
.dark p,
.dark .td-value,
.dark .breadcrumb .current { color: #ffffff; }
.dark .breadcrumb a { color: rgba(255,255,255,0.7); }
.dark .breadcrumb a:hover { color: #ffffff; }

/* --- Footer: dark bg = white text --- */
.dark .main-footer { background-color: #0a0f13; }
.dark .footer-top { border-top: 1px solid #1a2028; }
.dark .footer-bottom { background-color: #070b0e; border-top-color: #1a2028; }
.dark .widget-title { color: #ffffff; }
.dark .footer-links a,
.dark .footer-desc,
.dark .footer-address,
.dark .footer-copyright p { color: rgba(255,255,255,0.75); }
.dark .footer-links a:hover { color: #65BBBB; }
.dark .footer-contact p { color: rgba(255,255,255,0.75); }

/* --- Newsletter --- */
.dark .newsletter { background: linear-gradient(135deg, #1a2028 0%, #223035 100%); }

/* --- Accordion: dark header = white text, dark content = white text --- */
.dark .accordion-header { background-color: #1a2028; }
.dark .accordion-header h3 { color: #ffffff !important; }
.dark .accordion-content { background-color: #141c22; }
.dark .accordion-content p { color: #ffffff !important; }
.dark .accordion-item.active .accordion-header { background: linear-gradient(135deg, #65BBBB 0%, #6F8DA3 100%); }
.dark .accordion-item.active .accordion-header h3 { color: #ffffff !important; }
.dark .accordion-header i { color: #65BBBB; }
.dark .accordion-item.active .accordion-header i { color: #ffffff; }
.dark .newsletter-form input { background-color: #1a2028; border-color: #2a3440; color: #ffffff; }
.dark .newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

/* --- Team --- */
.dark .team-card { background-color: #1a2028; }
.dark .team-info h3 { color: #ffffff; }
.dark .team-info p { color: rgba(255,255,255,0.75); }
.dark .team-social a { background-color: #223035; color: rgba(255,255,255,0.75); }
.dark .team-social a:hover { background-color: #65BBBB; color: #fff; }

/* --- Blog --- */
.dark .blog-post-body { color: #ffffff; }
.dark .blog-post-body p { color: rgba(255,255,255,0.9); }
.dark .blog-post-body h3 { color: #ffffff; }
.dark .blog-meta { color: rgba(255,255,255,0.6); }
.dark .blog-card .blog-meta { color: #7A868A; }
.dark .blog-card .blog-meta i { color: var(--teal); }
.dark .sidebar-cta { background: linear-gradient(135deg, #65BBBB 0%, #6F8DA3 100%); }

/* --- Contact --- */
.dark .contact-info-card { background-color: #1a2028; border-color: #2a3440; }
.dark .contact-info-card h3 { color: #ffffff; }
.dark .contact-info-card p { color: rgba(255,255,255,0.75); }
.dark .contact-info-item span { color: #ffffff; }
.dark .contact-form input,
.dark .contact-form textarea { background-color: #1a2028; border-color: #2a3440; color: #ffffff; }
.dark .contact-form input::placeholder,
.dark .contact-form textarea::placeholder { color: rgba(255,255,255,0.4); }

/* --- Skill circles --- */
.dark .skill-circle { border-color: #2a3440; }
.dark .skill-circle span { color: #ffffff; }
.dark .skill-circle::before { background-color: #1a2028; }
.dark .skill-item h4 { color: #ffffff; }

/* --- Elements with var(--bg-light) background go dark — override all text inside --- */
.dark .faq-cta,
.dark [style*="background:var(--bg-light)"],
.dark [style*="background: var(--bg-light)"] { background-color: #1a2028 !important; color: #ffffff !important; }
.dark [style*="background:var(--bg-light)"] h3,
.dark [style*="background: var(--bg-light)"] h3,
.dark .faq-cta h3 { color: #ffffff !important; }
.dark [style*="background:var(--bg-light)"] p,
.dark [style*="background: var(--bg-light)"] p,
.dark .faq-cta p { color: rgba(255,255,255,0.75) !important; }
.dark [style*="background:var(--bg-light)"] a,
.dark [style*="background: var(--bg-light)"] a,
.dark .faq-cta a { color: #ffffff !important; }
.dark [style*="background:var(--bg-light)"] span,
.dark [style*="background: var(--bg-light)"] span { color: rgba(255,255,255,0.75) !important; }
.dark [style*="background:var(--bg-light)"] strong,
.dark [style*="background: var(--bg-light)"] strong { color: #ffffff !important; }

/* --- Mobile nav dark --- */
.dark .mobile-menu-panel { background-color: #0f1419; }
.dark .mobile-menu-panel a { color: #ffffff; }

/* --- Submenu --- */
.dark .main-nav .submenu { background-color: #1a2028; border-top-color: #65BBBB; }
.dark .main-nav .submenu a { color: rgba(255,255,255,0.85); }
.dark .main-nav .submenu a:hover { background-color: #141c22; color: #65BBBB; }

/* --- Nav links on dark header --- */
.dark .main-nav > ul > li > a { color: #ffffff; }
.dark .main-nav > ul > li > a:hover { color: #65BBBB; }

/* --- About section text on dark bg --- */
.dark .about-content p { color: #ffffff; }
.dark .about-content li { color: #ffffff; }
.dark .features .feature-item h3 { color: #ffffff; }
.dark .features .feature-item p { color: rgba(255,255,255,0.85); }

/* --- Stats on dark bg --- */
.dark .stat-number { color: #ffffff; }
.dark .stat-label { color: rgba(255,255,255,0.75); }

/* Read more links */
.dark .read-more { color: #e1e8ed; border-color: #2a3440; }
.dark .read-more-link { color: #65BBBB; }

/* Borders */
.dark .border-color,
.dark .accordion-item,
.dark .td-skill-bar { border-color: #2a3440; }

/* ---------------------------------------------------------
   General Styles for sections
   --------------------------------------------------------- */
/* ---------------------------------------------------------
   Mobile Menu Panel (built by JS)
   --------------------------------------------------------- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.mobile-menu-overlay.open { display: block; }

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background-color: var(--primary-color);
  z-index: 9999;
  padding: 30px;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}
.mobile-menu-panel.open { right: 0; }

.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 25px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-panel > ul > li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-panel a {
  display: block;
  padding: 15px 0;
  color: #fff;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a:active {
  color: var(--gradient-start);
  padding-left: 8px;
}

.mobile-menu-expand {
  display: block;
  width: 100%;
  padding: 15px 0;
  color: #fff;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mobile-menu-expand::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  transition: transform 0.2s ease;
}
li.open > .mobile-menu-expand::after {
  content: '−';
  color: var(--gradient-start);
}

.mobile-submenu {
  display: none;
  padding-left: 15px;
}
li.open > .mobile-submenu {
  display: block;
}
.mobile-submenu a {
  font-size: 14px;
  color: rgba(255,255,255,0.7) !important;
  padding: 10px 0;
}
.mobile-submenu a:hover {
  color: var(--gradient-start) !important;
}

.mobile-menu-cta {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.2) !important;
  border-bottom: none !important;
}
.mobile-menu-cta a {
  color: var(--gradient-start) !important;
  font-weight: 700;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.section-header { margin-bottom: 60px; }

/* ---------------------------------------------------------
   Features Section
   --------------------------------------------------------- */
.features {
  padding: 140px 0;
  background-color: var(--bg-light);
}

.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-item {
  display: flex;
  margin-bottom: 35px;
}

.feature-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
}

.feature-text h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature-text p {
  color: var(--text-color);
  margin-bottom: 0;
}

.features-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------
   Case Studies / Services
   --------------------------------------------------------- */
.case-studies {
  padding: 140px 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.case-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: var(--white);
}

.case-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.case-card:hover img {
  transform: scale(1.05);
}

.case-content {
  padding: 35px;
  position: relative;
  background-color: var(--white);
  z-index: 1;
}

.case-content .category {
  display: inline-block;
  font-size: 14px;
  color: var(--gradient-start);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.case-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.case-content h3 a {
  color: var(--primary-color);
}

.case-content h3 a:hover {
  color: var(--gradient-start);
}

.case-content p {
  color: var(--text-color);
  margin-bottom: 20px;
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

.read-more-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.read-more-link:hover {
  color: var(--gradient-start);
}

.read-more-link:hover i {
  transform: translateX(5px);
}

/* ---------------------------------------------------------
   Stats Section
   --------------------------------------------------------- */
.stats {
  padding: 110px 0;
  background: var(--gradient-primary);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--white);
  opacity: 0.8;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 10px;
  line-height: 1;
}

.stat-item p {
  font-size: 18px;
  margin-bottom: 0;
  opacity: 0.9;
}

/* ---------------------------------------------------------
   FAQ & Skills Section
   --------------------------------------------------------- */
.faq-skills {
  padding: 140px 0;
}

.faq-skills-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.accordion-item {
  border: 1px solid var(--border-color);
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header h3 {
  font-size: 18px;
  margin-bottom: 0;
  transition: var(--transition);
}

.accordion-header i {
  color: var(--primary-color);
  transition: var(--transition);
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background-color: var(--white);
}

.accordion-item.active .accordion-header {
  background: var(--gradient-primary);
}

.accordion-item.active .accordion-header h3 {
  color: var(--white);
}

.accordion-item.active .accordion-header i {
  color: var(--white);
  transform: rotate(45deg); /* Turns plus into cross */
}

.accordion-item.active .accordion-content {
  padding: 20px;
  max-height: 500px;
}

/* Skills */
.skills-grid {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.skill-item {
  text-align: center;
}

.skill-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--bg-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  position: relative;
  /* Visual simulation of progress */
  background: conic-gradient(var(--gradient-start) var(--progress, 0%), transparent 0);
  padding: 4px;
}

.skill-circle::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: 4px;
  left: 4px;
  background-color: var(--white);
  border-radius: 50%;
  z-index: 1;
}

.skill-circle span {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--primary-color);
}

.skill-item:nth-child(1) .skill-circle { --progress: 100%; }
.skill-item:nth-child(2) .skill-circle { --progress: 100%; }
.skill-item:nth-child(3) .skill-circle { --progress: 100%; }

.skill-item h4 {
  font-size: 16px;
  color: var(--text-color);
  font-weight: 500;
}

/* ---------------------------------------------------------
   Blog Section
   --------------------------------------------------------- */
.blog-section {
  padding: 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.blog-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-category {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card-image .blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
}

.blog-card-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta i {
  color: var(--teal);
  font-size: 12px;
}

.blog-card-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card-content h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.blog-card-content h3 a:hover {
  color: var(--primary-color);
}

.blog-card-content p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 18px;
}

/* Blog Post Detail */
.blog-post-section {
  padding: 100px 0;
}

.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
}

.blog-post-header {
  margin-bottom: 30px;
}

.blog-post-header .blog-category {
  margin-bottom: 16px;
}

.blog-post-header h2 {
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.blog-post-image {
  margin-bottom: 35px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-post-body h3 {
  font-size: 22px;
  margin: 35px 0 15px;
  color: var(--heading-color);
}

.blog-post-body p {
  margin-bottom: 18px;
  color: var(--text-light);
}

.blog-post-body ul {
  margin: 15px 0 25px 20px;
  color: var(--text-light);
}

.blog-post-body ul li {
  margin-bottom: 10px;
  padding-left: 8px;
}

.blog-post-body a {
  color: var(--teal);
  text-decoration: underline;
  transition: var(--transition);
}

.blog-post-body a:hover {
  color: var(--primary-color);
}

.blog-post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-light);
  padding: 28px;
  border-radius: 12px;
}

.sidebar-widget .widget-title {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
}

.sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-posts li {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-posts a {
  text-decoration: none;
  display: block;
}

.sidebar-post-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 4px;
  transition: var(--transition);
  line-height: 1.4;
}

.sidebar-posts a:hover .sidebar-post-title {
  color: var(--teal);
}

.sidebar-post-date {
  font-size: 13px;
  color: var(--text-light);
}

.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  margin-bottom: 10px;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-size: 15px;
  padding: 8px 0;
  transition: var(--transition);
}

.sidebar-categories a:hover {
  color: var(--teal);
  padding-left: 8px;
}

.sidebar-categories span {
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 12px;
}

.sidebar-cta {
  background: var(--gradient-primary);
  color: #fff;
  text-align: center;
}

.sidebar-cta h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 20px;
}

.sidebar-cta .btn {
  background: #fff;
  color: var(--primary-color);
}

.sidebar-cta .btn:hover {
  background: var(--teal);
  color: #fff;
}

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-post-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-post-header h2 { font-size: 26px; }
}

/* ---------------------------------------------------------
   Team Section
   --------------------------------------------------------- */
.team {
  padding: 140px 0;
  background-color: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.team-card {
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
  transition: var(--transition);
  display: block;
  text-decoration: none;
  color: inherit;
}

.team-card:hover {
  transform: translateY(-10px);
}

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

.team-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(34, 48, 53, 0.9) 0%, transparent 100%);
  padding: 40px 0 20px;
  transition: bottom 0.4s ease;
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social a {
  width: 40px;
  height: 40px;
  background-color: var(--white);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-social a:hover {
  background: var(--gradient-primary);
  color: var(--white);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.team-info p {
  color: var(--gradient-start);
  font-weight: 500;
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   Newsletter Section
   --------------------------------------------------------- */
.newsletter {
  background: var(--tertiary-color);
  padding: 110px 0;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.newsletter-content {
  flex: 1;
}

.newsletter-content .section-subtitle {
  color: var(--gradient-start);
}

.newsletter-content .section-title {
  margin-bottom: 0;
}

.newsletter-form-wrapper {
  flex: 1;
  max-width: 500px;
}

.newsletter-form {
  display: flex;
  position: relative;
  width: 100%;
}

.newsletter-form input {
  width: 100%;
  padding: 15px 150px 15px 25px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border-radius: 0 4px 4px 0;
  padding: 0 25px;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.main-footer {
  background-color: var(--primary-color);
  color: #abb8c3;
}

.footer-top {
  padding: 110px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-logo h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 25px;
}

.footer-desc {
  margin-bottom: 25px;
  font-size: 19px;
}

.footer-contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-contact p i {
  color: var(--gradient-start);
  margin-right: 15px;
  font-size: 18px;
  width: 20px;
}

.widget-title {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--gradient-start);
}

.footer-address {
  line-height: 1.8;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: #abb8c3;
  display: flex;
  align-items: center;
}

.footer-links a::before {
  content: '\f105'; /* FontAwesome angle-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-right: 10px;
  color: var(--gradient-start);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gradient-start);
  transform: translateX(5px);
}

.footer-bottom {
  background-color: var(--tertiary-color);
  padding: 25px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright p {
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #abb8c3;
}

.footer-legal a:hover {
  color: var(--gradient-start);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.footer-social a:hover {
  background: var(--gradient-primary);
  color: var(--white);
}
