/* styleindex.css */
:root {
  --primary: #C02828;
  --primary-light: #e74c4c;
  --secondary: #2c3e50;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --light-gray: #e9ecef;
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background-color: white;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

main {
  margin-top: 5px; /* Memberi jarak dari navbar */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
}

h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary);
}

.highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  background-color: var(--light);
  padding: 3rem 0;
  margin-bottom: 1rem;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
  padding: 4rem 0;
  background-color: white;
}

.about-content {
  text-align: center;
}

.about-content img {
  margin: 1.5rem 0;
  transition: var(--transition);
}

.about-content img:hover {
  transform: scale(1.05);
}

.about-content ul {
  text-align: left;
  max-width: 700px;
  margin: 1.5rem auto;
  padding-left: 20px;
}

.about-content li {
  margin-bottom: 0.5rem;
}

/* Services Section */
.services {
  padding: 4rem 0;
  background-color: var(--light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  margin: 1rem 0;
  color: var(--primary);
}

.service-card p {
  color: var(--gray);
}

.service-card a {
  text-decoration: none;
  color: inherit;
}

/* Articles Section */
.articles {
  padding: 60px 0;
  background-color: #ffffff;
}

.articles .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.articles h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #C02828;
  margin-bottom: 40px;
  position: relative;
}

.articles h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C02828;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.article-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(192, 40, 40, 0.15);
  border-color: #C02828;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.5s ease;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.4;
}

.article-card small {
  color: #666;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}

.article-card p {
  color: #555;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.article-card a {
  color: #C02828;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  margin-top: auto;
}

.article-card a::after {
  content: '→';
  margin-left: 5px;
  transition: all 0.3s ease;
}

.article-card a:hover {
  color: #9a2020;
}

.article-card a:hover::after {
  transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .articles-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .articles h2 {
      font-size: 1.8rem;
  }
  
  .article-card img {
      height: 160px;
  }
}

@media (max-width: 576px) {
  .articles-grid {
      grid-template-columns: 1fr;
  }
  
  .article-card {
      max-width: 350px;
      margin: 0 auto;
  }
}
.btn-primary {
  background-color: #C02828; /* Sets the background color to the specified red */
  color: white; /* Ensures the text color is white for good contrast */
  border: 1px solid #C02828; /* Adds a border matching the background color */
  padding: 10px 20px; /* Adds some padding inside the button */
  text-decoration: none; /* Removes the default underline for links */
  border-radius: 5px; /* Slightly rounded corners for a modern look */
  display: block; /* Makes the button a block-level element to allow margin auto for centering */
  margin: 20px auto; /* Centers the button horizontally with some top/bottom margin */
  width: fit-content; /* Ensures the button only takes up as much width as its content */
}

.btn-primary:hover {
  background-color: #a02020; /* Darker shade on hover for a subtle interactive effect */
  border-color: #a02020;
}
/* Container utama untuk bar statistik */
.rating-bar {
  background-color: #c02828; /* Warna bar merah */
  color: #fff; /* Warna teks putih */
  padding: 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  margin: 2px auto;
  max-width: 1200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rating-item h3 {
  color: #fff;
  margin: 0;
  font-size: 2em;
  font-weight: bold;
}

.rating-item p {
  margin: 5px 0 0;
  font-size: 0.9em;
  opacity: 0.8;
}

/* Style untuk teks ajakan penilaian di bawah bar */
.rating-prompt {
  text-align: center;
  margin: 20px 0;
  font-size: 1.2em;
  color: #333;
}
/* Gaya untuk tombol penilaian */
.rating-section {
  text-align: center;
  margin: 40px 0;
}

.rating-button {
  background-color: #c02828;
  color: white;
  padding: 15px 30px;
  font-size: 1.2em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.rating-button:hover {
  background-color: #f04c4c;
}

/* Gaya untuk Modal (pop-up) */
.modal {
  display: none; /* Sembunyikan secara default */
  position: fixed; /* Posisi tetap */
  z-index: 1000; /* Letakkan di atas elemen lain */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal-content {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
}

/* Gaya untuk form di dalam modal */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.stars {
  display: flex;
  font-size: 2em;
  color: #ccc;
  cursor: pointer;
}

.stars span {
  transition: color 0.2s ease;
}

.stars span.active,
.stars span:hover,
.stars span:hover ~ span {
  color: #ffc107; /* Warna emas */
}

/* Gallery Section */
.gallery {
  padding: 4rem 0;
  background-color: var(--light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 250px;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.copyright {
  margin-top: 1.5rem;
  color: var(--light-gray);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h2 {
      font-size: 1.8rem;
  }
  
  .services-grid, .articles-grid {
      grid-template-columns: 1fr;
  }
  
  .stats {
      grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }
  
  h2 {
      font-size: 1.6rem;
  }
  
  .footer-links {
      flex-direction: column;
      gap: 1rem;
  }
}

