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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

  a {
    color: inherit;
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }

.offices-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.office-card-new {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid #e5e7eb;
}

.office-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.office-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-badge {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
}

.branch-badge {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.office-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.office-icon-large svg {
  width: 48px;
  height: 48px;
  color: #2563eb;
}

.office-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.office-location {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.office-contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-size: 0.9375rem;
  color: #1f2937;
  font-weight: 500;
}

.office-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e5e7eb;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 150px;
  height: 63px;
  color: #2563eb;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #2563eb;
}

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 64px;
  overflow: hidden;
}

/* Fix images for all devices */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Optional dark overlay */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

/* Text positioning */
.hero-content {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  z-index: 10;
  width: 90%;
  padding: 0 1rem;
}


.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  border: none;
  padding: 0.75rem;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.prev-btn {
  left: 1rem;
}

.next-btn {
  right: 1rem;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #ffffff;
}

.hero-content {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 10;
  width: 90%;
  max-width: 1024px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content > p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-full {
  width: 100%;
}

.section {
  padding: 5rem 0;
  background: #ffffff;
}

.section-gray {
  background: #f9fafb;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-small {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-icon {
  width: 48px;
  height: 48px;
  color: #2563eb;
  margin: 0 auto 1rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 42rem;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.team-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.team-card img {
  width: 100%;
  height: 256px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.team-role {
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.team-bio {
  color: #6b7280;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.office-card {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.office-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.office-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  padding: 2.5rem 3rem;
}

.office-info {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
}

.office-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.office-icon {
  width: 26px;
  height: 26px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.office-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.3rem;
}

.office-address {
  color: #6b7280;
}

.office-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.office-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #4b5563;
}

.office-detail svg {
  width: 20px;
  height: 20px;
  color: #9ca3af;
  flex-shrink: 0;
}

.office-hours {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 0.9rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: #2563eb;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
  line-height: 1.75;
}

.industries-card {
  margin-top: 3rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.industries-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 👈 3 items per row */
  gap: 1rem;
}

.industry-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bullet {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  flex-shrink: 0;
}

.industry-item span:last-child {
  color: #4b5563;
}


.founder-card {
  background: linear-gradient(135deg, #dbeafe 0%, #ffffff 100%);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.founder-image {
  padding: 3rem;
}

.founder-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.founder-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.founder-content h3 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.founder-title {
  font-size: 1.25rem;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.founder-bio {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.founder-achievements {
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.founder-achievements h4 {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
}

.founder-achievements ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.founder-achievements li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #4b5563;
}

.founder-achievements svg {
  width: 20px;
  height: 20px;
  color: #2563eb;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-form-card {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.footer {
  background: #103F58;
  color: #ffffff;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
  color: #60a5fa;
}

.footer-logo span {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-col p {
  color: #9ca3af;
  line-height: 1.75;
}

.footer-col h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li {
  color: #9ca3af;
}

.footer-col ul a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  color: #9ca3af;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content > p {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .founder-image,
  .founder-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .founder-card {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Mobile Carousel Full Image Fix === */
@media (max-width: 768px) {
  .hero-section {
    height: auto; /* Let it grow based on image size */
    margin-top: 64px;
  }

  .carousel-container {
    height: auto;
  }

  .carousel-slide {
    position: relative; /* So images stack naturally */
    height: auto;
  }

  .carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: contain; /* ✅ Show full image without cropping */
    object-position: center;
    background-color: #000; /* Optional: black background for empty space */
  }

  /* Reposition text slightly */
  .hero-content {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
  }
.hero-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* ensures image doesn’t overflow the box */
  border-radius: 12px;
  background-color: #eaf3ff; /* your light blue background */
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: contain; /* shows entire image without cropping */
}
/* === Mobile & Tablet Carousel Full Image Fix === */
@media (max-width: 2000px) {
  
  .founder-imageclass {
    width: 100%;
    height: 1080px;          /* fixed height for mobile & tablet */
    object-fit: cover;       /* fills the area while maintaining aspect ratio */
    object-position: center; /* centers the image nicely */
    border-radius: 12px;     /* optional: keep same rounded corners */
  }
  .hero-section {
    height: 70vh; /* Fixed viewport height for visibility */
    margin-top: 64px;
    position: relative; /* important for positioning children */
    overflow: hidden;
  }

  .carousel-container {
    position: relative;
    width: 100%;
    height: 100%; /* occupy full hero-section */
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  /* Show active slide */
  .carousel-slide.active {
    opacity: 1;
    z-index: 2;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image */
    object-position: center;
    background-color: #000;
  }

  .carousel-dots {
    display: none !important;
  }

  /* Keep navigation & overlay visible */
  .carousel-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
  }

  .hero-content {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    width: 90%;
    z-index: 4; /* ensure text is visible above image */
  }

  .coursaltext {
    font-size: 1rem;
  }

  .hero-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eaf3ff;
  }

  .hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
  }
}
}
@media (max-width: 1200px) {
  .founder-imageclass { height: 668px !important; } /* example */
}

@media (max-width: 1024px) and (orientation: landscape) {
  .founder-imageclass { height: 1018px !important; } /* example */
}

@media (min-width:819px) and (max-width: 1179px) {
  .founder-imageclass { height: 1018px !important; } /* example */
}

@media (min-width:468px) and (max-width: 1179px) {
  .founder-imageclass { height: 1018px !important; } /* example 663px*/
  .founder-imageclass {
    width: 100%;
    height: 1080px;          /* fixed height for mobile & tablet */
    object-fit: cover;       /* fills the area while maintaining aspect ratio */
    object-position: center; /* centers the image nicely */
    border-radius: 12px;     /* optional: keep same rounded corners */
  }
  .hero-section {
    height: 70vh; /* Fixed viewport height for visibility */
    margin-top: 64px;
    position: relative; /* important for positioning children */
    overflow: hidden;
  }

  .carousel-container {
    position: relative;
    width: 100%;
    height: 100%; /* occupy full hero-section */
  }

  .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
  }

  /* Show active slide */
  .carousel-slide.active {
    opacity: 1;
    z-index: 2;
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* show full image */
    object-position: center;
    background-color: #000;
  }

  .carousel-dots {
    display: none !important;
  }

  /* Keep navigation & overlay visible */
  .carousel-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
  }

  .hero-content {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    width: 90%;
    z-index: 4; /* ensure text is visible above image */
  }

  .coursaltext {
    font-size: 1rem;
  }

  .hero-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eaf3ff;
  }

  .hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
  }
}

@media (max-width: 768px) {
  /* Force flex layout on mobile */
  .founder-card {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Ensure order applies no matter what */
  .founder-image {
    order: 1 !important;
  }

  .founder-content {
    order: 2 !important;
  }

  .founder-achievements {
    order: 3 !important;
    margin-top: 1.5rem !important;
  }
}
