/*
Theme Name: Quant Data
Theme URI: https://quant-data.io
Author: Alam
Description: Quant Data theme
Version: 1.0
*/

:root {
  --primary-color: #00529b;
  --primary-color-darker: #003c75;
}

/* --- General & Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: #0b0f19;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

html {
  overflow-x: hidden;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

main.dark-bg {
  background-color: #1a253c;
  color: #fff;
}

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

/* --- Header & Navigation Styles --- */
.main-header {
  padding: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 999;
  transition: padding 0.3s ease-in-out;
}

.main-header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.main-nav {
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
  flex-grow: 1;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links .active-page {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  pointer-events: none;
}

.btn {
  text-decoration: none;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-primary,
.btn-contact {
  background-color: var(--primary-color);
}

.btn-primary:hover,
.btn-contact:hover {
  background-color: var(--primary-color-darker);
}

.nav-links .btn-contact {
  margin-left: 20px;
  color: #fff;
}

.nav-links .btn-contact:hover {
  color: #fff;
}

/* --- Hamburger Menu Styles --- */
.hamburger {
  display: none;
}

.hamburger i {
  position: absolute;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.hamburger .icon-xmark {
  opacity: 0;
  transform: rotate(-90deg);
}

.hamburger.active .icon-bars {
  opacity: 0;
  transform: rotate(90deg);
}

.hamburger.active .icon-xmark {
  opacity: 1;
  transform: rotate(0deg);
}

/* --- All Page-Specific Sections --- */
.hero-section,
.stats-section,
.about-section,
.services-page,
.case-studies-page,
.Blogs-page {
  padding: 40px 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 20px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 21px;
  color: #555;
  max-width: 900px;
  margin: 0 auto;
}

.case-studies-page .section-header p {
  color: #adb5bd;
}

/* Hero */
.hero-section {
  text-align: center;
  padding: 100px 0 60px;
}
.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-content .highlight {
  color: var(--primary-color);
}
.hero-subtitle {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #555;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 35px;
}
.btn-secondary {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #66c5f1;
}
.btn-secondary:hover {
  background-color: #000000;
  border-color: #802150;
}

/* Stats */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 40px 60px;
  text-align: center;
}
.stat-item {
  flex-grow: 2;
  flex-basis: 250px; /* Each item will try to be at least this wide */
}
.stat-item h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
}
.stat-item p {
  font-size: 16px;
  color: #555;
  font-weight: 600;
}

/* About */
.about-section {
  text-align: center;
}
.mission-statement {
  font-size: 18px;
  margin: 0 auto 30px auto;
  color: #555;
  line-height: 1.8;
}
.highlight-blue {
  color: #4a90e2;
  font-weight: 600;
}
.tagline {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 40px;
}
.locations {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.location-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background-color: #f7f9fa;
  border: 1px solid #eaecef;
  border-radius: 50px;
  font-weight: 600;
  color: #333;
}
.location-tag i {
  color: #4a90e2;
}

/* --- About Us Page v2 Styles --- */
.about-hero-section {
  padding: 80px 0;
}

.accordion {
  margin: 60px auto 0 auto;
  border-top: 1px solid #e9ecef;
}

.accordion-item {
  border-bottom: 1px solid #e9ecef;
}

.accordion-button {
  width: 100%;
  background-color: #fff;
  border: none;
  text-align: left;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background-color 0.3s ease;
}

.accordion-button:hover {
  background-color: #f7f9fa;
}

.accordion-button .chevron {
  margin-left: auto;
  transition: transform 0.3s ease;
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
  padding: 0 20px;
}

.accordion-panel p {
  padding: 0 0 20px 35px;
  color: #555;
  line-height: 1.8;
}

.icon-blue {
  color: #3498db;
}
.icon-green {
  color: #2ecc71;
}
.icon-purple {
  color: #9b59b6;
}

.mission-vision-section {
  background-color: #f7f9fa;
  padding: 80px 0;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.two-col-layout .col h3 {
  font-size: 28px;
  margin-bottom: 15px;
}
.two-col-layout .col p {
  color: #555;
  line-height: 1.8;
}

.tech-expertise-section {
  padding: 80px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.tech-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 30px;
}

.tech-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.tech-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* --- Responsive styles for new About Us sections --- */
@media (max-width: 992px) {
  .two-col-layout,
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
/* Add this new rule */
.services-grid.card-is-open {
  align-items: start;
}
.service-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.card-icon {
  width: 60px;
  height: 60px;
  background-color: #e3f2fd;
  color: var(--primary-color);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.service-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}
.learn-more {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
.learn-more:hover {
  text-decoration: underline;
}
/* --- Styles for Expanding & Shrinking Cards --- */

/* Add a transition to the base card for the shrink effect */
.service-card {
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
  min-height: 300px;
}

/* Hide the expanded content by default */
.card-expanded-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}

/* Show the expanded content when the card has the .expanded class */
.service-card.expanded .card-expanded-content {
  max-height: 500px; /* A large enough value to show all content */
  margin-top: 20px;
}

/* This is the new shrink effect for the other cards */
.services-grid.card-is-open .service-card:not(.expanded) {
  opacity: 0.6;
  transform: scale(0.95);
}

.card-expanded-content h4 {
  font-size: 16px;
  margin-bottom: 10px;
}

.card-expanded-content ul {
  list-style-position: inside;
  padding-left: 5px;
  margin-top: 10px;
}

.card-expanded-content li {
  margin-bottom: 5px;
  color: #555;
}

/* Case Studies */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.impact-card {
  background-color: #212d45;
  border: 1px solid #343a40;
  border-radius: 12px;
  padding: 30px;
}
.industry-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #adb5bd;
  margin-bottom: 20px;
}
.impact-metric {
  font-size: 60px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.impact-label {
  font-size: 14px;
  color: #adb5bd;
  margin-bottom: 30px;
}
.impact-details h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #adb5bd;
  margin-top: 20px;
  margin-bottom: 8px;
}
.impact-details p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
}

/* Blogs */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.blog-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image-placeholder {
  height: 200px;
  background-color: #212d45;
}
.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.category-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}
.tag-arch {
  background-color: #e0f2f1;
  color: #00796b;
}
.tag-ai {
  background-color: #e3f2fd;
  color: #1565c0;
}
.tag-cloud {
  background-color: #e8eaf6;
  color: #3949ab;
}
.date-meta {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  flex-grow: 1;
}
.blog-card h3 a {
  text-decoration: none;
  color: #0b0f19;
  transition: color 0.3s ease;
}
.blog-card h3 a:hover {
  color: var(--primary-color);
}
.read-more {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

/* --- Footer and CTA Styles --- */
.cta-section {
  background-color: #1a253c;
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-section .btn {
  background-color: var(--primary-color);
  color: #fff;
}

.cta-section .btn:hover {
  background-color: var(--primary-color-darker);
}

.cta-section h2 {
  font-size: 42px;
  margin-bottom: 15px;
}
.cta-section p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  font-size: 18px;
  opacity: 0.9;
}
.main-footer {
  background-color: #1a253c;
  color: #adb5bd;
  padding: 30px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-column .footer-logo img {
  height: 36px;
  margin-bottom: 20px;
}
.footer-column h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-column p {
  line-height: 1.8;
  margin-bottom: 10px;
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 10px;
}
.footer-column a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-bottom {
  background-color: #1a253c;
  padding: 20px 0;
  border-top: 1px solid #343a40;
  font-size: 14px;
  color: #adb5bd;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-legal-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #adb5bd;
  font-size: 16px;
  transition: color 0.3s ease;
}
.footer-legal-links a:hover {
  color: #fff;
}

/*
==============================================
--- Media Queries for Responsiveness ---
==============================================
*/

@media (max-width: 1100px) {
  .main-nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 20px;
    gap: 25px 30px;
    background-color: rgba(255, 255, 255);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.4s ease-out, opacity 0.3s ease-out,
      visibility 0s 0.4s;
    /* transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; */
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li {
    width: auto;
    padding: 0;
  }

  .nav-links a {
    color: #555;
    font-size: 16px;
  }

  .nav-links a:hover {
    color: var(--primary-color);
    background-color: transparent;
  }

  .nav-links .btn-contact {
    margin: 0;
    padding: 12px 24px;
    font-size: 16px;
  }

  .nav-links .btn-contact:hover {
    background-color: var(--primary-color-darker);
    color: #fff;
  }

  .hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    position: relative;
    z-index: 1001;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
  }

  .hero-content h1 {
    font-size: 40px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }
  .stats-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
  }
  .locations {
    flex-wrap: wrap;
  }
}

/* --- Contact Page Styles --- */
.contact-page {
  padding: 80px 0;
}

.contact-content-wrapper {
  display: flex; /* Use Flexbox for layout */
  gap: 60px;
  margin-top: 60px;
}

/* Contact Info (Left Column) */
.contact-info {
  flex: 1; /* Takes up 1 part of the space */
}
.contact-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.contact-info > p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 40px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}
.info-item i {
  font-size: 20px;
  color: var(--primary-color);
  margin-top: 5px;
}
.info-item h4 {
  font-size: 18px;
  margin-bottom: 5px;
}
.info-item p,
.info-item a {
  color: #555;
  text-decoration: none;
}
.info-item a:hover {
  text-decoration: underline;
}

/* Contact Form (Right Column) */
.contact-form {
  flex: 2; /* Takes up 2 parts of the space */
  max-width: 800px;
}
.form-group {
  margin-bottom: 25px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 24px;
}
.btn.btn-dark {
  background-color: #212d45;
  padding: 15px;
  font-size: 14px;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
}
.btn.btn-dark:hover {
  background-color: #0b0f19;
}

/* --- Responsive styles for Contact Page --- */
@media (max-width: 992px) {
  .contact-content-wrapper {
    flex-direction: column; /* Stack the columns vertically */
  }

  /* Set the new order for the stacked items */
  .contact-form {
    order: 1; /* The form will appear first */
  }
  .contact-info {
    order: 2; /* The contact info will appear second */
  }
}

@media (min-width: 993px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Blog Page Image & Summary --- */
.blog-card .card-image-link {
  display: block;
  height: 200px;
}
.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This prevents images from stretching */
}
.card-summary {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes 'Read More' link to the bottom */
}

/* --- Modal Styles (Can be reused across site) --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 800px;
  max-height: 90vh; /* Make modal scrollable on long content */
  overflow-y: auto; /* Add vertical scroll if needed */
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

/* Styles for when the modal is open */
body.modal-open {
  overflow: hidden;
}
body.modal-open .modal-backdrop {
  opacity: 1;
  visibility: visible;
}
body.modal-open .modal-content {
  transform: translateY(0);
}

/* Styles for content inside the modal */
.modal-body h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
.modal-body h4 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 10px;
}
.modal-body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* --- About Us Page (New Accordion Layout) Styles --- */

.about-hero-section {
  padding: 80px 0;
  text-align: center;
  background-color: #d7e5ec;
}

.tech-accordion-section {
  padding: 0 0 80px 0;
}

.accordion {
  margin: 60px auto 0 auto;
  border-top: 1px solid #e9ecef;
}

.accordion-item {
  border-bottom: 1px solid #e9ecef;
}

.accordion-button {
  width: 100%;
  background-color: #fff;
  border: none;
  text-align: left;
  padding: 25px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #0b0f19;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-button:hover {
  background-color: #f7f9fa;
}

.accordion-button span {
  display: flex;
  align-items: center;
  gap: 15px;
}

.accordion-button .chevron {
  transition: transform 0.3s ease;
}

.accordion-item.active .chevron {
  transform: rotate(180deg);
}
.accordion-item.active .accordion-button {
  color: var(--primary-color);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 20px;
  background-color: #f7f9fa;
}

.accordion-panel p {
  padding: 20px 0 25px 40px;
  color: #555;
  line-height: 1.8;
}

.accordion-panel b {
  color: #0b0f19;
}

/* --- Careers Page Styles --- */
.careers-hero-section {
  padding: 80px 0 40px;
  text-align: center;
}

.culture-section {
  padding: 40px 0;
  background-color: #f7f9fa;
  text-align: center;
}

.job-openings-section {
  padding: 80px 0;
}

.job-listings {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.job-card {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 30px;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.job-card-header h3 {
  font-size: 24px;
}

.job-card-header span {
  color: #555;
  font-weight: 600;
}

.job-card-body p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.job-card-body h4 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.job-card-body ul {
  list-style-position: inside;
  padding-left: 5px;
}

.job-card-body li {
  margin-bottom: 8px;
  color: #555;
}

.job-card-footer {
  text-align: right;
  margin-top: 30px;
}

/* Responsive styles for Careers Page */
@media (max-width: 600px) {
  .job-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .job-card-footer {
    text-align: left;
  }
}

/* --- New Mission/Vision Section Styles --- */
.mission-vision-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f7f9fa, #eaf2f8);
}

.mission-vision-section .two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* This is the key fix for alignment */
.mission-vision-section .statement-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.mission-vision-section .statement-icon {
  width: 48px;
  height: 48px;
  background-color: #e3f2fd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* This removes default heading margins causing the issue */
.mission-vision-section .statement-header h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.mission-vision-section .section-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.mission-vision-section p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

/* --- Leadership Principles Section --- */
.leadership-principles-section {
  padding: 80px 0;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
  gap: 30px;
  margin-top: 40px;
}

.principle-card {
  background-color: #f7f9fa; /* Light background for each card */
  padding: 30px;
  border-radius: 12px;
}

.principle-card h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.principle-card p {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
}

/* Responsive style for mobile */
@media (max-width: 768px) {
  .principles-grid {
    grid-template-columns: 1fr; /* One column on mobile */
  }
}

/* --- Fix for Leadership Principles Icon --- */

.leadership-principles-section .statement-header {
  display: flex;
  justify-content: center; /* Center the icon and title */
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.leadership-principles-section .statement-icon {
  width: 48px;
  height: 48px;
  background-color: #e3f2fd; /* Light blue background */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  color: var(--primary-color);
}

.leadership-principles-section .statement-header h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0; /* Remove default margins to fix alignment */
}

@media (max-width: 992px) {
  /* ... your other responsive styles ... */

  /* Add this rule to stack the Mission and Vision */
  .mission-vision-section .two-col-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Tech Header Logo Scroller --- */

/* 1. Create a positioning container for the header and its background */
.tech-header-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f7f9fa;
  padding: 70px 25px;
  border-radius: 12px;
}

/* 2. Position the logo scroller in the background */
.tech-header-wrapper .background-logo-scroller-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}

/* 3. Ensure the text content stays on top */
.tech-header-wrapper .section-header {
  position: relative;
  z-index: 2;
  background-color: transparent;
  margin-bottom: 0;
}

/* 4. Animation styles for the logos */
.logo-scroller {
  max-width: 100%;
}
.logo-scroller .logo-list {
  display: flex;
  gap: 30px;
  list-style: none;
  animation: scroll 40s linear infinite;
}
.logo-scroller[data-direction="right"] .logo-list {
  animation-direction: reverse;
}
.logo-list li {
  flex-shrink: 0;
}
.logo-list img {
  height: 65px;
  width: auto;
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* --- Text Shadow for Logo Scroller Header --- */
.tech-header-wrapper .section-header h2 {
  text-shadow: 0 0 18px rgba(157, 209, 230, 0.904);
}
.tech-header-wrapper .section-header p {
  text-shadow: 0 0 18px rgba(157, 209, 230, 0.904);
  -webkit-text-stroke-width: 0.3px;
  -webkit-text-stroke-color: #ffffff;
}
/* --- Custom Colors for Tech Expertise Header --- */

/* Changes the color of the main title "Our Technology Expertise" */
.tech-header-wrapper .section-header h2 {
  color: #000000; /* Example: A dark navy/black */
}

/* Changes the color of the paragraph below the title */
.tech-header-wrapper .section-header p {
  color: #000000; /* Example: A standard dark grey */
}

/* --- Animated Hero Background --- */

/* 1. The Main Container */
.hero-background-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #f7f9fa;
}

/* 2. The Animated Layer (The Image) */
.quantum-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Layer 1: Bottom */
  background-image: url("images/quantum-grid.jpg");
  background-size: cover;
  filter: blur(4px);
  background-position: center;

  animation: panBackground 60s linear infinite alternate;
}

/* 4. The Foreground Content (Your Text and Stats) */
.hero-background-wrapper .hero-section,
.hero-background-wrapper .stats-section {
  position: relative;
  z-index: 3; /* Layer 3: Top */
  background-color: transparent;
}

/* 5. Styling the Text to be White and Readable */
.hero-background-wrapper .hero-content h1 {
  color: #fff; /* Make all text white */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #000;
}
.hero-background-wrapper .hero-subtitle {
  color: #fff; /* Make all text white */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 24px;
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: #000;
}
.hero-background-wrapper .stats-section .stat-item p {
  color: #fff;
  font-size: 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke-width: 0.4px;
  -webkit-text-stroke-color: #000000;
}
.hero-background-wrapper .stats-section .stat-item h2 {
  color: #fff;
  text-shadow: 0 0 10px rgb(0, 0, 0);
  -webkit-text-stroke-width: 0.6px;
  -webkit-text-stroke-color: #000000;
}

/* Keep the highlight blue, but give it a shadow */
.hero-background-wrapper .hero-content .highlight {
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.973);
  -webkit-text-stroke-width: 0.6px;
  -webkit-text-stroke-color: #000000;
}
/* 6. The Animation Keyframes */
@keyframes panBackground {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 100% 100%;
  }
}
