/* Global Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a {
  text-decoration: none;
}

a:hover {
  color: var(--accent-color);
}

/* Header Styles */
header {
  background-color: #e6eff4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed; /* agar tetap saat scroll */
  width: 100%; /* ✅ biarkan full width */
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px; /* ✅ lebar ideal konten */
  margin: 0 auto; /* ✅ center di tengah */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0px;
  /* background-color: green; */
}

.header-container p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-right: 230px; /* ubah dari -10px menggeser cotact ke kanan*/
  margin-left: 0px;
  padding-left: 0px;
  /* background-color: yellow; */
}

.logo span {
  color: var(--secondary-color);
}

.logo .subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #444;
  margin-top: 4px;
}

/* Nav di tengah */
#mainNav {
  flex-grow: 1;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  font-size: 1rem;

  align-items: center;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

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

nav ul li a:hover::after {
  width: 100%;
}

/* Kontak ke kanan */
.contact-header {
  display: right;
  gap: 150px;
  align-items: center;
  margin-left: 240px;
}

.contact-link {
  color: #2c3e50; /* var(--dark-color);  */
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.contact-icon {
  margin-right: 10px;
  margin-left: 1000;
  color: #2c3e50; /*  var(--secondary-color); */
}

.contact-icons a span {
  font-size: 0.8rem; /* Adjust this value as needed */
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-color);
}

/* Footer Styles */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 0.9rem 1rem;
  position: absolute;
  /*bottom: 0; */ /* footer akan berada di akhir setiap page, gak cocok kalau punya lebih dari 1 page */
  width: 100%;
}

.footer-container {
  max-width: 1650px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-top: 0.3rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: 9be3f0;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 3px;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 65px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col p {
  margin-bottom: 0px;
  padding-left: 1rem;
  color: #e7ece5;
  font-style: italic;
}

.footer-colCore {
  flex: 1;
  min-width: 250px;
}

.footer-colCore h3 {
  color: 9be3f0;
  font-style: italic;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 3px;
}

.footer-colCore h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px; /*-- beda disini untuk column core*/
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-colCore p {
  margin-bottom: 0px;
  padding-left: 1rem;
  color: #e7ece5;
  font-style: italic;
}

.contact-title {
  color: 9be3f0;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.3rem;
  position: relative;
  padding-bottom: 5px;
  text-align: left;
  left: 34%;
}

.contact-title::after {
  content: "";
  position: absolute;
  left: 4.9%; /* Start from center */
  transform: translateX(-50%); /* Shift back by half of width */
  bottom: 0;
  width: 80px;
  height: 2px;
  background-color: var(--secondary-color);
}

.contact-icons {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 0rem;
}

.contact-icons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-icons a:hover {
  opacity: 0.8;
}

.contact-icons img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 0.6rem; /* Reduced padding */
  margin-top: 0.4rem; /* Reduced margin */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.footer-bottom p {
  font-size: 0.85rem; /* Smaller font size */
  color: #bdc3c7; /* Lighter color */
  margin: 0; /* Remove default margins */
  padding: 0rem 0; /* Minimal vertical padding */
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }

  .contact-title,
  .contact-icons {
    justify-content: center;
    text-align: center;
  }
}
