/* Reset dasar */
:root {
    --theme-bg: #f31d1a;
    --theme-text: white;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f4;
}

/* Main */
main {
    flex: 1;
    padding: 1px;
}

.hero {
    text-align: center;
    margin-bottom: 30px;
}

.hero h2 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

.content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1 1 250px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 10px;
    color: #333;
}

/* why choose us */
.why-choose-us {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
  }
  
  .why-choose-us h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #111;
    letter-spacing: 1px;
  }
  
  .why-choose-us p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
  }
 /* Container untuk 3 kolom */
.why-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap; /* responsif */
    margin-top: 40px;
  }
  
  /* Setiap card */
  .why-cards .flex {
    flex: 1 1 250px; /* 3 kolom, bisa wrap */
    background-color: #c0392b; /* merah */
    color: #fff; /* teks putih */
    opacity: 0.85; /* sedikit transparan awal */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: opacity 0.3s, transform 0.3s;
  }
  
  /* Icon */
  .why-cards .flex i {
    font-size: 2rem;
    color: #fff; /* sama dengan teks */
    margin-bottom: 15px;
    display: block;
  }
  
  /* Judul */
  .why-cards .flex h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #f0f0f0; /* putih agak keabu-abuan */
    line-height: 1.2;
  }
  
  /* Paragraf */
  .why-cards .flex p {
    font-size: 14px;
    color: #e0e0e0; /* sedikit abu-abu */
    line-height: 1.5;
  }
  
  /* Hover effect */
  .why-cards .flex:hover {
    opacity: 1;
    transform: translateY(-5px); /* animasi ringan naik */
    cursor: pointer;
  }

/*our-service*/
.our-service {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
  }
  
  .our-service h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #111;
    letter-spacing: 1px;
  }
  
  .our-service p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  /* Section styling 
.our-service {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
  }
  
  .our-service h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #111;
  }
  
  .our-service p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 40px auto;
  }*/
  
  /* Grid untuk 3 kolom × 2 row */
  .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-items: center;
  }
  
  /* Card styling */
  .service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 300px;
  }
  
  .service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .service-card h3 {
    margin: 15px 0 10px 0;
    color: #111;
    font-size: 20px;
  }
  
  .service-card p {
    font-size: 14px;
    color: #666;
    padding: 0 15px 15px 15px;
    line-height: 1.5;
  }
  
  /* Read More button */
  .service-card .read-more {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 20px;
    background: #ff4d4d;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
  }
  
  .service-card .read-more:hover {
    background: #e60000;
  }
  
  /* Hover effect on card */
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }


  /*content page css*/
  .banner {
    position: relative;
    width: 100%;
    height: 250px; /* bisa disesuaikan */
    overflow: hidden;
}

/* Gambar di banner */
.banner img {
    position: absolute;
    width: 120%; /* sedikit lebih besar untuk animasi geser */
    height: 100%;
    object-fit: cover;
    animation: slideLeft 15s linear infinite;
}

/* Overlay gelap agar teks terbaca */
.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* Teks di banner */
.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    width: 90%;
    text-transform: uppercase;
}

/* Animasi geser gambar */
@keyframes slideLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-20%); }
}

/* Konten bawah banner */
/* Container paragraf dan judul */
.content {
    max-width: 800px;
    margin: auto;
    padding: 20px;
}

.sec {
    margin-bottom: 30px; /* jarak antar blok */
}

.sec h2 {
    font-size: 24px;
    margin-bottom: 10px; /* jarak ke paragraf */
    color: #222;
    text-transform: uppercase;
}

.sec p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0; /* rapikan paragraf */
    color: #444;
    text-align: justify;
}

/*container contact css*/
  .contact-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center; /* Kolom di tengah jika kurang dari 3 */
    margin-top: 10px;
  }
  
  .contact-box {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Tengah horizontal semua isi */
    text-align: center;  /* Tengah teks */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
  }
  
  .contact-box:hover {
    transform: translateY(-5px); /* Sedikit animasi hover */
  }
  
  .contact-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column; /* Icon di atas teks */
    align-items: center;    /* Tengah icon & teks */
    gap: 8px;
  }
  
  .contact-header i.fa {
    font-size: 28px;
    color: #2c7be5;
  }
  
  .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .contact-list li {
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
  }
  
  .contact-list li:last-child {
    border-bottom: none;
  }