:root {
  --primary: #0d6efd;
  --primary-dark: #084298;
  --dark: #1a1d21;
  --dark-soft: #2b3035;
  --gray-bg: #f4f6f9;
  --border: #dee2e6;
  --text: #4a4a4a;
  --heading: #1a1d21;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 700;
}

a {
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

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

.section-title {
  margin-bottom: 12px;
}

.section-title span {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-title p {
  max-width: 720px;
  margin: 0 auto;
}

.btn-primary-custom {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 26px;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  background: transparent;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
}

/* Top bar */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
}

.top-bar a {
  color: #fff;
}

.top-bar .social a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  margin-right: 6px;
}

.top-bar .social a:hover {
  background: #fff;
  color: var(--primary);
}

/* Navbar */
.main-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.main-nav .navbar-brand img {
  height: 48px;
  width: auto;
}

.main-nav .nav-link {
  color: var(--heading);
  font-weight: 600;
  padding: 8px 16px !important;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary);
}

/* Hero */
.hero-slider {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.hero-slider::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
}

.hero-content h1 {
  color: #fff;
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero-content p {
  font-size: 17px;
  margin-bottom: 28px;
}

/* About */
.about-images {
  position: relative;
  min-height: 420px;
}

.about-images img {
  border-radius: 4px;
  object-fit: cover;
  width: 100%;
}

.about-img-main {
  height: 380px;
}

.about-img-small {
  height: 180px;
  margin-bottom: 20px;
}

/* Feature cards */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.12);
  transform: translateY(-4px);
}

.feature-card .icon {
  color: var(--primary);
  font-size: 42px;
  margin-bottom: 16px;
}

.feature-card h5 {
  margin-bottom: 12px;
}

/* Stats */
.stats-section {
  background: var(--dark-soft);
  color: #fff;
  padding: 0;
}

.stats-section img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.stat-box {
  text-align: center;
  padding: 24px;
}

.stat-box .icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-box h3 {
  color: #fff;
  font-size: 36px;
  margin-bottom: 4px;
}

.stat-box p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* Service cards */
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  overflow: hidden;
  height: calc(100% - 30px);
  transition: box-shadow 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

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

.service-card .body {
  padding: 24px;
}

.service-card h5 {
  margin-bottom: 12px;
}

.service-card .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}

/* Pricing */
.pricing-section {
  background-size: cover;
  background-position: center;
  position: relative;
}

.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 29, 33, 0.88);
}

.pricing-section .container {
  position: relative;
  z-index: 2;
}

.pricing-section .section-title h2,
.pricing-section .section-title p {
  color: #fff;
}

.price-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  text-align: center;
}

.price-card.featured {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgba(13, 110, 253, 0.35);
}

.price-card .head {
  padding: 24px;
  background: var(--gray-bg);
}

.price-card.featured .head {
  background: var(--primary);
  color: #fff;
}

.price-card.featured .head h4,
.price-card.featured .head .price {
  color: #fff;
}

.price-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.price-card ul {
  list-style: none;
  padding: 24px;
  margin: 0;
  text-align: left;
}

.price-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.price-card ul li i {
  color: var(--primary);
  margin-right: 8px;
}

.price-card .foot {
  padding: 0 24px 28px;
}

/* Team */
.team-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  padding-bottom: 24px;
}

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

.team-card h5 {
  margin-top: 16px;
  margin-bottom: 4px;
}

.team-card span {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

.team-social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  margin: 12px 4px 0;
  font-size: 14px;
}

.team-social a:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* Video CTA */
.video-cta {
  background: var(--dark-soft);
  color: #fff;
}

.video-thumb {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
}

.video-cta h2 {
  color: #fff;
}

/* Gallery */
.gallery-item {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 4px;
}

.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px;
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: "\f10d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 24px;
  top: 20px;
  font-size: 48px;
  color: rgba(13, 110, 253, 0.08);
}

.testimonial-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.testimonials-bg {
  background: var(--gray-bg) url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%230d6efd' stroke-opacity='0.06' stroke-width='4'/%3E%3C/svg%3E");
}

/* Blog cards */
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  height: 100%;
}

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

.blog-card .body {
  padding: 20px;
}

.blog-card .date {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

/* Page header */
.page-header {
  background: linear-gradient(rgba(8, 66, 152, 0.85), rgba(8, 66, 152, 0.85)),
    url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80") center/cover;
  padding: 100px 0 80px;
  color: #fff;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 42px;
}

.breadcrumb-custom a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb-custom span {
  color: #fff;
}

/* Contact */
.contact-info-box {
  background: var(--primary);
  color: #fff;
  padding: 40px;
  height: 100%;
}

.contact-info-box i {
  font-size: 28px;
  margin-bottom: 12px;
}

.contact-form-box {
  background: #fff;
  border: 1px solid var(--border);
  padding: 40px;
}

/* Forms */
.form-control {
  border-radius: 4px;
  padding: 12px 14px;
  border: 1px solid var(--border);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.form-check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.form-check-row label {
  margin: 0;
  line-height: 1.5;
  cursor: pointer;
}

.form-check-row input.is-invalid {
  outline: 2px solid #dc3545;
  outline-offset: 1px;
}

select.form-control.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  display: none;
}

.form-control.is-invalid ~ .invalid-feedback,
select.form-control.is-invalid ~ .invalid-feedback,
textarea.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.form-check-row:has(input.is-invalid) + .invalid-feedback {
  display: block;
}

form[data-validate="true"] .form-feedback {
  display: none;
}

form[data-validate="true"] .form-feedback.alert-success,
form[data-validate="true"] .form-feedback.alert-danger {
  display: block;
}

/* Footer */
.footer-links-bar {
  background: var(--primary);
  padding: 14px 0;
  text-align: center;
}

.footer-links-bar a {
  color: #fff;
  font-weight: 600;
  margin: 0 16px;
  font-size: 14px;
}

.footer-links-bar a:hover {
  text-decoration: underline;
  color: #fff;
}

.main-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

.main-footer h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

.main-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.main-footer a:hover {
  color: var(--primary);
}

.main-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-footer ul li {
  margin-bottom: 10px;
}

.footer-about img {
  height: 44px;
  margin-bottom: 16px;
}

.footer-social a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
}

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

.footer-news-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-news-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

.legal-content {
  background: #fff;
}

.legal-content h2 {
  font-size: 24px;
  margin-top: 32px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 24px;
}

@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .price-card.featured {
    transform: none;
  }

  .footer-links-bar a {
    display: inline-block;
    margin: 6px 12px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 56px 0;
  }

  .hero-slider {
    min-height: 420px;
  }
}
