:root {
  --primary-color: #198754;
  --primary-dark: #146c43;
  --secondary-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --navbar-bg-gradient: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
}

/* Navbar Styles */
.navbar {
  background: var(--navbar-bg-gradient);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1rem;
  transition: background 0.3s ease;
}

/* Navbar Brand */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFF !important;
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
}

/* Navbar Links */
.nav-link {
  color: #FFFFFF !important;
  margin: 0 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--secondary-color) !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* Navbar Toggler (untuk tampilan mobile) */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  color: #FFFFFF;
  transition: transform 0.3s ease;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

/* Toggler Icon */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsif: Penyesuaian untuk tampilan mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .nav-link {
    margin: 0.5rem 0;
  }
}

/* Hero Section - Versi Pendek */
.hero {
  position: relative;
  background: linear-gradient(rgba(25, 135, 84, 0.8), rgba(20, 108, 67, 0.8)), url('images/hero-bg.png') no-repeat center center/cover;
  /* Restore image with overlay */
  text-align: center;
  padding: 150px 20px;
  min-height: 400px;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  font-family: 'Roboto', sans-serif;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* Responsive untuk perangkat lebih kecil */
@media (max-width: 768px) {
  .hero {
    padding: 150px 20px;
  }

  .hero h1 {
    font-size: 2.5em;
  }

  .hero p {
    font-size: 1em;
  }
}

/* Section Styles */
.services,
.pricing,
.testimonials,
.blog,
.contact {
  padding: 50px 20px;
  background-color: #fff;
}

/* CTA Button */
.cta-button {
  background: var(--navbar-bg-gradient);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  color: #fff;
}

.cta-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.5);
}

/* Responsive untuk perangkat mobile */
@media (max-width: 480px) {
  .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Service Card */
.service-card {
  margin: 20px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

/* Warna khusus untuk setiap service card - Soft Professional Pastel */
.service-card:nth-child(1) {
  background-color: #e8f5e9;
  /* Light Green */
}

.service-card:nth-child(2) {
  background-color: #e3f2fd;
  /* Light Blue */
}

.service-card:nth-child(3) {
  background-color: #fff3e0;
  /* Light Orange */
}

.service-card:nth-child(4) {
  background-color: #f3e5f5;
  /* Light Purple */
}

.service-card:nth-child(5) {
  background-color: #fbe9e7;
  /* Light Peach */
}

/* Price Card */
.price-card {
  margin: 20px;
  padding: 30px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Testimonial Card */
.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 400px;
  margin: auto;
  position: relative;
}

.testimonial-card:before {
  content: "\f10d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  font-size: 2rem;
  position: absolute;
  top: 15px;
  left: 15px;
  opacity: 0.3;
}

.testimonial-card:after {
  content: "\f10e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--primary-color);
  font-size: 2rem;
  position: absolute;
  bottom: 15px;
  right: 15px;
  opacity: 0.3;
}

/* Swiper Styles */
.swiper {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 40px;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  height: auto;
  padding: 20px 0;
}

.swiper-pagination {
  position: relative;
  bottom: 0;
  margin-top: 20px;
}

.swiper-pagination-bullet {
  background-color: var(--primary-color);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-dark);
  opacity: 1;
}

/* Footer */
footer {
  background-color: #212529;
  color: white;
  padding: 20px;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

footer p {
  margin: 0;
}

/* IDEA THESIS Section */
/* Card Styling */
.card {
  width: 100%;
  max-width: 350px;
  border: none;
  border-radius: 10px;
  transition: transform 0.3s;
}

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

.card-title {
  font-weight: bold;
  color: #333;
}

.card-body ul li {
  margin-bottom: 10px;
  text-align: left;
}

/* ─── Blog Article Table Styles ─── */
#article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

#article-content table th,
#article-content table td {
  border: 1px solid #dee2e6;
  padding: 10px 14px;
  vertical-align: middle;
}

#article-content table tr:first-child td,
#article-content table th {
  background-color: var(--primary-color, #198754) !important;
  color: white !important;
  font-weight: 600;
  border-color: var(--primary-dark, #146c43) !important;
  text-align: center;
}

#article-content table tr:nth-child(even) td {
  background-color: rgba(25, 135, 84, 0.03);
}

#article-content table tr:hover td {
  background-color: rgba(25, 135, 84, 0.08);
}

/* ─── Blog Article Code & Pre Styles ─── */
#article-content pre,
#article-content pre.ql-syntax,
#article-content .ql-code-block-container {
  background-color: #1e1e1e !important;
  color: #d4d4d4 !important;
  padding: 16px !important;
  border-radius: 8px !important;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ─── Tombol Salin Kode ─── */
.btn-copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0e0e0;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.7;
}

.btn-copy-code:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.btn-copy-code.copied {
  background: var(--primary-color, #198754);
  border-color: var(--primary-color, #198754);
  color: white;
  opacity: 1;
}

#article-content .ql-code-block {
  font-family: inherit;
  white-space: pre-wrap;
  margin-bottom: 0;
}

#article-content code {
  background-color: #f1f3f5;
  color: #e83e8c;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

#article-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* ─── Blog Article Quill Formatting Styles ─── */
#article-content .ql-align-center { text-align: center !important; }
#article-content .ql-align-right { text-align: right !important; }
#article-content .ql-align-justify { text-align: justify !important; }

#article-content .ql-indent-1 { padding-left: 3em !important; }
#article-content .ql-indent-2 { padding-left: 6em !important; }
#article-content .ql-indent-3 { padding-left: 9em !important; }
#article-content .ql-indent-4 { padding-left: 12em !important; }
#article-content .ql-indent-5 { padding-left: 15em !important; }
#article-content .ql-indent-6 { padding-left: 18em !important; }
#article-content .ql-indent-7 { padding-left: 21em !important; }
#article-content .ql-indent-8 { padding-left: 24em !important; }

#article-content blockquote {
  border-left: 4px solid #dee2e6;
  padding-left: 1rem;
  margin-left: 0;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 1.5rem;
}

#article-content .ql-video {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}