/* ============================================================
   TITANIA-INSPIRED STYLE — Rumah Kelapa Nusantara
   ============================================================ */

* { box-sizing: border-box; }

body {
  font-family: 'Open Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  background: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

a { color: #d64541; text-decoration: none; transition: color 0.2s; }
a:hover { color: #a8342f; }
img { max-width: 100%; height: auto; }

.titania-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============ HEADER ============ */
.titania-header { background: #fff; position: relative; }

.titania-brand-section {
  padding: 30px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.titania-brand-section .titania-container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.titania-brand-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 0;
}

.titania-brand-bg-text {
  position: absolute;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1;
}

.titania-brand-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.titania-brand-logo img {
  height: 90px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.titania-brand-logo .logo-fallback {
  height: 90px;
  width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-radius: 20px;
}

.titania-brand-main-text { position: relative; z-index: 2; }

.titania-brand-main-text h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  margin: 0 0 4px;
  line-height: 1;
}

.titania-brand-main-text .brand-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #d64541;
  margin: 0;
}

/* ============ NAVBAR HITAM ============ */
.titania-navbar {
  background: #1a1a1a;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.2s;
  border-bottom: 3px solid #d64541;
}

.titania-navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }

.titania-navbar .titania-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  flex-wrap: wrap;
}

.titania-nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.titania-nav-menu > li { position: relative; }

.titania-nav-menu > li > a {
  display: block;
  padding: 18px 20px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.titania-nav-menu > li > a:hover,
.titania-nav-menu > li > a.active { color: #d64541; }

.titania-nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: #d64541;
  transform: scaleX(0);
  transition: transform 0.25s;
}

.titania-nav-menu > li > a:hover::after,
.titania-nav-menu > li > a.active::after { transform: scaleX(1); }

.titania-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: #fff;
  padding: 12px;
}

.titania-nav-menu .dropdown-menu {
  border: none;
  border-top: 3px solid #d64541;
  border-radius: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  margin: 0;
  min-width: 200px;
  background: #1a1a1a;
}

.titania-nav-menu .dropdown-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ccc;
  padding: 10px 20px;
  transition: all 0.15s;
}

.titania-nav-menu .dropdown-item:hover {
  background: #2a2a2a;
  color: #d64541;
  padding-left: 24px;
}

/* ============ PAGE HEADER ============ */
.titania-page-header {
  background: #f5f5f5;
  padding: 50px 0;
  border-bottom: 1px solid #eee;
}

.titania-page-header .titania-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.titania-page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #222;
  margin: 0;
}

.titania-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

.titania-breadcrumb a { color: #999; }
.titania-breadcrumb a:hover { color: #d64541; }
.titania-breadcrumb .separator { margin: 0 8px; color: #ccc; }

/* ============ CONTENT ============ */
.titania-content { padding: 60px 0; }

/* ============ SLIDER ============ */
.titania-slider {
  position: relative;
  margin-bottom: 50px;
  background: #000;
}

.titania-slider-inner {
  position: relative;
  aspect-ratio: 1170 / 500;
  overflow: hidden;
}

.titania-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.titania-slide.active { opacity: 1; }

.titania-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titania-slider-prev,
.titania-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 60px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s;
  z-index: 5;
}

.titania-slider-prev { left: 0; }
.titania-slider-next { right: 0; }
.titania-slider-prev:hover,
.titania-slider-next:hover { background: rgba(0, 0, 0, 0.7); }

.titania-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.titania-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.titania-slider-dots button.active { background: #fff; }

/* ============ PROJECT INFO (2 kolom) ============ */
.titania-project {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 60px;
}

.titania-project-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.titania-rating { color: #f5b301; font-size: 14px; letter-spacing: 2px; }

.titania-project p {
  font-size: 14px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 16px;
}

/* Info box kanan */
.titania-info-box {
  background: #f9f9f9;
  padding: 28px;
  border-left: 3px solid #d64541;
}

.titania-info-box h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.titania-info-list { list-style: none; padding: 0; margin: 0; }

.titania-info-list li {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e5e5;
  font-size: 13px;
  color: #555;
}

.titania-info-list li:last-child { border-bottom: none; }

.titania-info-list .info-label {
  min-width: 100px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.03em;
}

.titania-info-list .info-value { color: #222; flex: 1; }
.titania-info-list .info-value a { color: #d64541; }

.titania-info-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.titania-info-tags a {
  display: inline-block;
  padding: 4px 10px;
  background: #eee;
  color: #666;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.titania-info-tags a:hover { background: #d64541; color: #fff; }

/* ============ SECTION TITLE ============ */
.titania-section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ RELATED GRID (4 kolom) ============ */
.titania-related { margin-top: 60px; }

.titania-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.titania-project-card {
  background: #fff;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.titania-project-card:hover { color: inherit; }

.titania-project-card-image {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
}

.titania-project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: grayscale(20%);
}

.titania-project-card:hover .titania-project-card-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.titania-project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(214, 69, 65, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.titania-project-card:hover .titania-project-card-overlay { opacity: 1; }

.titania-project-card-overlay a,
.titania-project-card-overlay span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #d64541;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s;
}

.titania-project-card-overlay a:hover,
.titania-project-card-overlay span:hover { transform: scale(1.1); }

.titania-project-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  margin: 0 0 6px;
  letter-spacing: 0.03em;
}

.titania-project-card-cat {
  font-size: 12px;
  color: #999;
  letter-spacing: 0.05em;
}

/* ============ BLOG LIST (berita.php) ============ */
.titania-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.titania-blog-card {
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
  border-bottom: 3px solid transparent;
  padding-bottom: 20px;
  transition: border-color 0.2s;
}

.titania-blog-card:hover { border-bottom-color: #d64541; color: inherit; }

.titania-blog-card-image {
  aspect-ratio: 16 / 10;
  background: #f5f5f5;
  overflow: hidden;
  margin-bottom: 18px;
  position: relative;
}

.titania-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.titania-blog-card:hover .titania-blog-card-image img { transform: scale(1.05); }

.titania-blog-card-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
  font-weight: 600;
}

.titania-blog-card-meta i { color: #d64541; margin-right: 4px; }

.titania-blog-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.titania-blog-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.titania-blog-card-more {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #d64541;
}

/* ============ FILTER KATEGORI ============ */
.titania-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.titania-filter a {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  border: 1px solid #ddd;
  transition: all 0.2s;
}

.titania-filter a:hover {
  border-color: #d64541;
  color: #d64541;
}

.titania-filter a.active {
  background: #d64541;
  border-color: #d64541;
  color: #fff;
}

/* ============ PAGINATION ============ */
.titania-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 50px;
}

.titania-pagination a,
.titania-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  border: 1px solid #ddd;
  transition: all 0.2s;
}

.titania-pagination a:hover {
  border-color: #d64541;
  color: #d64541;
}

.titania-pagination .active {
  background: #d64541;
  border-color: #d64541;
  color: #fff;
}

.titania-pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============ DETAIL PAGE (produk_detail / berita_detail) ============ */
.titania-detail-image {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
  margin-bottom: 30px;
}

.titania-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ KONTAK ============ */
.titania-contact-form .form-control {
  border-radius: 0;
  border: 1px solid #ddd;
  padding: 12px 15px;
  font-size: 14px;
}

.titania-contact-form .form-control:focus {
  border-color: #d64541;
  box-shadow: none;
}

.titania-contact-form .btn-submit {
  background: #d64541;
  border: none;
  border-radius: 0;
  padding: 14px 40px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  transition: background 0.2s;
}

.titania-contact-form .btn-submit:hover { background: #a8342f; }

.titania-contact-info {
  background: #f9f9f9;
  padding: 30px;
  border-left: 3px solid #d64541;
}

.titania-contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.titania-contact-info-item:last-child { margin-bottom: 0; }

.titania-contact-info-item i {
  font-size: 22px;
  color: #d64541;
  flex-shrink: 0;
}

.titania-contact-info-item h5 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 4px;
}

.titania-contact-info-item p {
  font-size: 13px;
  color: #666;
  margin: 0;
}

/* ============ FOOTER ============ */
.titania-footer {
  background: #2a2a2a;
  color: #999;
  padding: 60px 0 0;
  margin-top: 80px;
}

.titania-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.titania-footer h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}

.titania-footer p { font-size: 13px; line-height: 1.8; color: #999; }

.titania-footer .footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-post {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #3a3a3a;
  text-decoration: none;
  color: inherit;
}

.footer-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.footer-post:hover .footer-post-title { color: #d64541; }

.footer-post-thumb {
  width: 55px;
  height: 55px;
  flex-shrink: 0;
  background: #3a3a3a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.footer-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.footer-post-thumb.accent {
  background: #d64541;
  color: #fff;
  font-size: 20px;
}

.footer-post-title {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.4;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.footer-post-date {
  font-size: 11px;
  color: #777;
  letter-spacing: 0.05em;
}

.footer-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.footer-tags a {
  display: inline-block;
  padding: 6px 12px;
  background: #3a3a3a;
  color: #aaa;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: all 0.2s;
}

.footer-tags a:hover { background: #d64541; color: #fff; }

.footer-newsletter p { margin-bottom: 15px; font-size: 13px; line-height: 1.7; }

.footer-newsletter-form { display: flex; gap: 0; }

.footer-newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  background: #fff;
  border: none;
  font-size: 13px;
  color: #333;
  outline: none;
}

.footer-newsletter-form input::placeholder { color: #999; }

.footer-newsletter-form button {
  padding: 12px 22px;
  background: #d64541;
  color: #fff;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-newsletter-form button:hover { background: #a8342f; }

.footer-social { display: flex; gap: 8px; margin-top: 20px; }

.footer-social a {
  width: 32px;
  height: 32px;
  background: #3a3a3a;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.footer-social a:hover { background: #d64541; color: #fff; }

.titania-footer-bottom {
  border-top: 1px solid #3a3a3a;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #777;
  letter-spacing: 0.03em;
}

.titania-footer-bottom-links { display: flex; gap: 20px; }
.titania-footer-bottom-links a { color: #777; font-size: 12px; }
.titania-footer-bottom-links a:hover { color: #d64541; }

/* ============ EMPTY STATE ============ */
.titania-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.titania-empty i { font-size: 4rem; color: #ddd; display: block; margin-bottom: 16px; }
.titania-empty p { font-size: 15px; margin: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .titania-brand-bg-text { font-size: 40px; left: 70px; }
  .titania-brand-logo img,
  .titania-brand-logo .logo-fallback { height: 70px; width: 70px; }
  .titania-brand-main-text h1 { font-size: 22px; }

  .titania-navbar .titania-container { min-height: auto; justify-content: flex-end; }
  .titania-nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 12px 0;
    justify-content: flex-start;
  }
  .titania-nav-menu.open { display: flex; }
  .titania-nav-menu > li > a {
    padding: 14px 24px;
    text-align: left;
    font-size: 13px;
  }
  .titania-nav-menu > li > a::after { display: none; }
  .titania-nav-toggle { display: block; }

  .titania-project { grid-template-columns: 1fr; gap: 30px; }
  .titania-related-grid { grid-template-columns: repeat(2, 1fr); }
  .titania-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .titania-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
  .titania-brand-section { padding: 20px 0; }
  .titania-brand-bg-text { font-size: 26px; left: 55px; }
  .titania-brand-logo img,
  .titania-brand-logo .logo-fallback { height: 55px; width: 55px; }
  .titania-brand-main-text h1 { font-size: 16px; letter-spacing: 0.05em; }
  .titania-brand-main-text .brand-tagline { font-size: 9px; letter-spacing: 0.15em; }

  .titania-related-grid { grid-template-columns: 1fr; }
  .titania-blog-grid { grid-template-columns: 1fr; }
  .titania-footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .titania-page-header h1 { font-size: 22px; }
  .titania-filter a { padding: 8px 14px; font-size: 10px; }
}