:root {
  --primary: #2E5A88;
  --secondary: #4CAF50;
  --accent: #FF9800;
  --background: #F5F7FA;
  --text: #333333;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--background);
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-brand {
  transition: opacity 0.3s ease;
}

.navbar-brand:hover {
  opacity: 0.8;
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-carousel .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
}

.hero-carousel .carousel-caption {
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  padding: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.service-gradient-1 {
  background: linear-gradient(135deg, #1f4e79 0%, #2e86c1 100%);
}

.service-gradient-2 {
  background: linear-gradient(135deg, #4b2e83 0%, #7d3c98 100%);
}

.service-gradient-3 {
  background: linear-gradient(135deg, #0b6e4f 0%, #17a589 100%);
}

.service-gradient-4 {
  background: linear-gradient(135deg, #b3541e 0%, #e67e22 100%);
}

.service-gradient-5 {
  background: linear-gradient(135deg, #8e2a2a 0%, #c0392b 100%);
}

.feature-card[class*="service-gradient-"] h4,
.feature-card[class*="service-gradient-"] p,
.feature-card[class*="service-gradient-"] i {
  color: #ffffff !important;
}

.feature-card[class*="service-gradient-"] p {
  opacity: 0.95;
}

.feature-card[class*="service-gradient-"] {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.feature-card[class*="service-gradient-"]:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.service-card-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.02) 55%);
  pointer-events: none;
  z-index: -1;
}

.service-card-modern i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card-modern:hover i {
  transform: translateY(-2px) scale(1.04);
  background: rgba(255, 255, 255, 0.2);
}

.services-grid .service-card-modern {
  animation: serviceCardIn 0.55s ease both;
  animation-delay: var(--service-delay, 0ms);
}

@keyframes serviceCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-grid .service-card-modern {
    animation: none;
  }

  .service-card-modern i,
  .feature-card,
  .feature-card:hover {
    transition: none;
    transform: none;
  }
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

.section {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 40px;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
}

.footer {
  background-color: var(--primary);
  color: white;
  padding: 60px 0 30px;
}

.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.footer a:hover {
  color: white;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: rgba(255,255,255,0.1);
  border-radius: 50%;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--accent);
}

/* Konten Tentang Kami (HTML dari pengaturan admin / TinyMCE) */
.about-rich-text {
  text-align: justify;
  text-justify: inter-word;
}

.about-rich-text p:last-child {
  margin-bottom: 0;
}

/* Beranda: ringkas teks utama dari CMS; lengkapnya lewat "Profil Lengkap" */
.about-home-teaser {
  position: relative;
  max-height: 11rem;
  overflow: hidden;
}

.about-home-teaser::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

@media (min-width: 768px) {
  .about-home-teaser {
    max-height: 13.5rem;
  }
}

@media (min-width: 992px) {
  .about-home-teaser {
    max-height: 15rem;
  }
}

@media (max-width: 767px) {
  .hero-carousel {
    height: 400px;
  }
  
  .hero-carousel .carousel-item {
    height: 400px;
  }
  
  .section {
    padding: 40px 0;
  }
}
