/* ============================================================
   PT Sinar Cerah Sempurna - Complete CSS Stylesheet
   Corporate Construction Company Website
   Design Reference: wika.co.id
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ---------------------------------------------------------- */
:root {
  --primary: #0047AB;
  --primary-dark: #003580;
  --primary-light: #1a5fc7;
  --secondary: #f8f9fa;
  --accent: #FFD700;
  --text: #333333;
  --text-light: #666666;
  --text-white: #ffffff;
  --border: #e0e0e0;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --info: #17a2b8;
  --bg-dark: #1a1a2e;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --container-max: 1200px;
  --navbar-height: 70px;
  --sidebar-width: 260px;
}

/* ----------------------------------------------------------
   2. GENERAL / RESET
   ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ----------------------------------------------------------
   3. ANIMATIONS
   ---------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   4. UTILITY CLASSES
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-white { color: var(--text-white); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-uppercase { text-transform: uppercase; }
.text-bold { font-weight: 700; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.25rem; }
.text-xl { font-size: 1.5rem; }

/* Margin utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* Padding utilities */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Display utilities */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-column { flex-direction: column; }
.flex-1 { flex: 1; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Visibility */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Width */
.w-100 { width: 100%; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Border radius */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Background */
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-white { background-color: var(--text-white); }
.bg-dark { background-color: var(--bg-dark); }

/* ----------------------------------------------------------
   5. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  outline: none;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-white);
}

.btn-secondary {
  background-color: var(--text-white);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}

.btn-accent:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--text-white);
  border-color: var(--text-white);
}

.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--primary);
}

.btn-danger {
  background-color: var(--danger);
  color: var(--text-white);
  border-color: var(--danger);
}

.btn-danger:hover {
  background-color: #c82333;
  border-color: #c82333;
}

.btn-success {
  background-color: var(--success);
  color: var(--text-white);
  border-color: var(--success);
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.1rem;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ----------------------------------------------------------
   6. FORMS
   ---------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

.form-control::placeholder {
  color: #aaa;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-error {
  color: var(--danger);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.form-control.is-invalid {
  border-color: var(--danger);
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.form-hint {
  color: var(--text-light);
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

/* ----------------------------------------------------------
   7. NAVIGATION BAR — Wika.co.id Style
   ---------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.3s ease;
}

/* Transparent state (homepage only) */
.navbar-transparent {
  background-color: transparent;
}

.navbar-transparent .navbar-logo .logo-text {
  color: #ffffff;
}

.navbar-transparent .nav-menu .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.navbar-transparent .nav-menu .nav-link:hover,
.navbar-transparent .nav-menu .nav-link.active {
  color: #ffffff;
}

.navbar-transparent .nav-menu .nav-link::after {
  background-color: #ffffff;
}

.navbar-transparent .lang-switcher .lang-btn {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-transparent .lang-switcher .lang-btn.lang-active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-transparent .lang-switcher .lang-btn.lang-switch:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.navbar-transparent .lang-separator {
  color: rgba(255, 255, 255, 0.4);
}

.navbar-transparent .nav-toggle span {
  background-color: #ffffff;
}

/* Solid state (inner pages / scrolled) */
.navbar-solid {
  background-color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

/* When transparent navbar gets scrolled */
.navbar-transparent.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  height: 60px;
}

.navbar-transparent.navbar-scrolled .navbar-logo .logo-text {
  color: var(--primary);
}

.navbar-transparent.navbar-scrolled .nav-menu .nav-link {
  color: var(--text);
}

.navbar-transparent.navbar-scrolled .nav-menu .nav-link:hover,
.navbar-transparent.navbar-scrolled .nav-menu .nav-link.active {
  color: var(--primary);
}

.navbar-transparent.navbar-scrolled .nav-menu .nav-link::after {
  background-color: var(--primary);
}

.navbar-transparent.navbar-scrolled .lang-switcher .lang-btn {
  color: var(--text-light);
  border-color: var(--border);
}

.navbar-transparent.navbar-scrolled .lang-switcher .lang-btn.lang-active {
  color: var(--primary);
  border-color: var(--primary);
}

.navbar-transparent.navbar-scrolled .lang-separator {
  color: var(--border);
}

.navbar-transparent.navbar-scrolled .nav-toggle span {
  background-color: var(--text);
}

/* Scrolled solid navbar */
.navbar-solid.navbar-scrolled {
  height: 60px;
  box-shadow: var(--shadow-md);
}

/* Inner layout */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 1001;
}

.navbar-logo .logo-img {
  max-height: 42px;
  width: auto;
  transition: max-height var(--transition-base);
}

.navbar.navbar-scrolled .navbar-logo .logo-img {
  max-height: 34px;
}

.navbar-logo .logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: 1px;
  transition: color 0.4s ease;
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-menu li {
  position: relative;
}

.nav-menu .nav-link {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: var(--navbar-height);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition-fast);
  position: relative;
  letter-spacing: 0.3px;
}

.nav-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 22px;
  left: 18px;
  right: 18px;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
  color: var(--primary);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
  transform: scaleX(1);
}

/* Language Switcher */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  z-index: 1001;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher .lang-btn {
  padding: 3px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  line-height: 1;
}

.lang-switcher .lang-btn.lang-active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.lang-switcher .lang-btn.lang-switch:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-separator {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay — z-index below nav-menu, pointer-events so links clickable */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ----------------------------------------------------------
   8. FULLSCREEN MEDIA BANNER (Video/Image Slideshow)
   ---------------------------------------------------------- */
.media-banner {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 550px;
  overflow: hidden;
  background-color: #0a0a1a;
}

.media-banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.media-banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  z-index: 1;
}

.media-banner-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Image slides */
.media-banner-slide .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video slides — fill container, no vw/vh (prevents zoom black gaps) */
.media-banner-slide .video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Video element fills wrapper — covers both wrapped and direct video */
.media-banner-slide .video-wrapper video,
.media-banner-slide > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.media-banner-slide .yt-video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Default gradient for when no image */
.media-banner-slide .banner-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #003580 0%, #0047AB 40%, #1a5fc7 100%);
}

/* Dark overlay on slides */
.media-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Content overlay (text + controls) */
.media-banner-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 80px;
}

.media-banner-text {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  animation: fadeInUp 0.8s ease;
}

.banner-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.banner-title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.4s ease;
}

.banner-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 24px;
  font-weight: 300;
  transition: opacity 0.4s ease;
}

.btn-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background-color: #ffffff;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  letter-spacing: 0.3px;
  border: 2px solid #ffffff;
}

.btn-banner-cta:hover {
  background-color: transparent;
  color: #ffffff;
}

/* Slide Controls */
.banner-controls {
  position: absolute;
  bottom: 90px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 6;
}

.banner-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  min-width: 50px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.banner-counter-current {
  color: #ffffff;
  font-weight: 600;
}

.banner-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.banner-arrow:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.banner-arrow:active {
  transform: scale(0.95);
}

/* Sound Toggle */
.banner-sound-toggle {
  position: absolute;
  bottom: 90px;
  right: 180px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 6;
}

.banner-sound-toggle:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.banner-sound-toggle.is-muted .icon-mute {
  display: block;
}

.banner-sound-toggle.is-muted .icon-unmute {
  display: none;
}

.banner-sound-toggle:not(.is-muted) .icon-mute {
  display: none;
}

.banner-sound-toggle:not(.is-muted) .icon-unmute {
  display: block;
}

/* Scroll Down Button */
.media-banner-scroll {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 6;
}

.banner-scroll-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 8px 0;
  transition: color var(--transition-base);
  font-family: inherit;
}

.banner-scroll-btn:hover {
  color: #ffffff;
}

.scroll-icon {
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(5px); }
  60% { transform: translateY(3px); }
}

.scroll-text {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Dot Indicators */
.banner-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
}

.banner-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.2);
}

.banner-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.6);
}

/* Mobile adjustments for banner */
@media (max-width: 767px) {
  .media-banner-content {
    padding-bottom: 100px;
  }

  .banner-controls {
    bottom: 110px;
    right: 16px;
  }

  .banner-sound-toggle {
    right: 160px;
  }

  .media-banner-scroll {
    bottom: 16px;
    left: 16px;
  }

  .banner-dots {
    bottom: 20px;
  }

  .banner-title {
    font-size: 1.6rem;
  }

  .banner-desc {
    font-size: 0.9rem;
  }
}

/* ----------------------------------------------------------
   9. SECTIONS
   ---------------------------------------------------------- */
.section {
  padding: 80px 0;
}

.section-light {
  background-color: var(--text-white);
}

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.section-secondary {
  background-color: var(--secondary);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text);
  position: relative;
  padding-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--text-white);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-dark .section-title::after {
  background-color: var(--accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  margin-bottom: 3rem;
}

/* ----------------------------------------------------------
   10. FEATURED PROJECTS SECTION
   ---------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--text-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

.project-card-image .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.project-card-image .category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-sm);
  z-index: 2;
}

.project-card-body {
  padding: 20px;
}

.project-card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  transition: color var(--transition-fast);
}

.project-card:hover .project-card-body h3 {
  color: var(--primary);
}

.project-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-body .view-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.project-card:hover .view-detail {
  gap: 10px;
}

.view-detail .arrow {
  transition: transform var(--transition-fast);
}

.project-card:hover .view-detail .arrow {
  transform: translateX(4px);
}

/* ----------------------------------------------------------
   11. STATS COUNTER SECTION
   ---------------------------------------------------------- */
.stats {
  background-color: var(--primary);
  padding: 60px 0;
  color: var(--text-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  animation: countUp 0.6s ease;
}

.stat-item .stat-number .stat-suffix {
  font-size: 1.8rem;
}

.stat-item .stat-label {
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ----------------------------------------------------------
   12. ABOUT SECTION
   ---------------------------------------------------------- */
.about-section .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-section .about-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-section .about-image img {
  width: 100%;
  border-radius: var(--radius-md);
}

.about-section .about-image::after {
  content: '';
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 100px;
  height: 100px;
  background-color: var(--accent);
  border-radius: var(--radius-md);
  z-index: -1;
}

.about-section .about-text h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-section .about-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-list {
  margin-bottom: 2rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
}

.about-list li .check-icon {
  color: var(--success);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   13. BLOG / NEWS SECTION
   ---------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--text-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.blog-card-image .blog-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-sm);
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-body h3 {
  color: var(--primary);
}

.blog-card-body .blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-card:hover .read-more {
  gap: 10px;
}

/* ----------------------------------------------------------
   14. CTA SECTION
   ---------------------------------------------------------- */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--text-white);
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  margin: 0 8px;
}

/* ----------------------------------------------------------
   15. BREADCRUMBS
   ---------------------------------------------------------- */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.9rem;
}

.breadcrumb ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.breadcrumb li + li::before {
  content: '/';
  margin: 0 10px;
  color: var(--border);
}

.breadcrumb li a {
  color: var(--primary);
  transition: color var(--transition-fast);
}

.breadcrumb li a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb li.active {
  color: var(--text);
  font-weight: 500;
}

/* ----------------------------------------------------------
   16. PAGE HERO BANNER (inner pages)
   ---------------------------------------------------------- */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-white);
  background-color: var(--bg-dark);
  margin-top: var(--navbar-height);
  overflow: hidden;
}

.page-hero .page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

.page-hero .page-hero-content {
  position: relative;
  z-index: 3;
}

.page-hero h1 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ----------------------------------------------------------
   17. PROJECTS PAGE
   ---------------------------------------------------------- */
.projects-page {
  margin-top: var(--navbar-height);
}

.projects-page .section {
  padding-top: 50px;
  padding-bottom: 80px;
}

.search-bar {
  max-width: 400px;
  margin: 0 auto 2rem;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.12);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.filter-buttons .filter-btn {
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--text-white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-buttons .filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-buttons .filter-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* ----------------------------------------------------------
   18. PROJECT DETAIL PAGE
   ---------------------------------------------------------- */
.project-detail {
  margin-top: var(--navbar-height);
}

.project-detail .project-detail-grid {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  padding: 40px 0 80px;
}

.project-detail-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.project-detail-content p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.project-detail-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Image gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 2rem 0;
}

.gallery-grid .gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-grid .gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-grid .gallery-item .gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 71, 171, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-grid .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-grid .gallery-item .gallery-overlay .zoom-icon {
  color: var(--text-white);
  font-size: 1.8rem;
}

/* Sidebar */
.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-card {
  background: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-card .sidebar-card-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.sidebar-card .sidebar-card-body {
  padding: 20px;
}

/* Project info table */
.project-info-table {
  width: 100%;
}

.project-info-table tr td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  vertical-align: top;
}

.project-info-table tr:last-child td {
  border-bottom: none;
}

.project-info-table tr td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 35%;
  padding-right: 10px;
}

.project-info-table tr td:last-child {
  color: var(--text-light);
}

/* Map embed */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-container iframe {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

/* Video embed */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Social links */
.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--text-light);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------
   19. BLOG PAGE
   ---------------------------------------------------------- */
.blog-page {
  margin-top: var(--navbar-height);
}

.blog-page .section {
  padding-top: 50px;
  padding-bottom: 80px;
}

.blog-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2.5rem;
}

.blog-category-tabs .tab-btn {
  padding: 8px 22px;
  font-size: 0.88rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--text-white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-category-tabs .tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.blog-category-tabs .tab-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

/* Blog list view */
.blog-list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.blog-list-item:first-child {
  padding-top: 0;
}

.blog-list-item .blog-list-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.blog-list-item .blog-list-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-list-item:hover .blog-list-image img {
  transform: scale(1.05);
}

.blog-list-item .blog-list-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.blog-list-item:hover .blog-list-content h2 {
  color: var(--primary);
}

.blog-list-item .blog-list-content .blog-excerpt {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 3rem;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--text-white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination .active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination .dots {
  border: none;
  background: none;
  cursor: default;
}

/* ----------------------------------------------------------
   20. BLOG DETAIL PAGE
   ---------------------------------------------------------- */
.blog-detail {
  margin-top: var(--navbar-height);
}

.blog-detail .blog-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 0 80px;
}

.blog-detail-article .article-featured-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  overflow: hidden;
}

.blog-detail-article .article-featured-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-detail-article .article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-detail-article .article-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-detail-article h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-detail-article .article-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
}

.blog-detail-article .article-content p {
  margin-bottom: 1.25rem;
}

.blog-detail-article .article-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.blog-detail-article .article-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-detail-article .article-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.blog-detail-article .article-content ul,
.blog-detail-article .article-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.blog-detail-article .article-content li {
  margin-bottom: 0.4rem;
  list-style: disc;
}

.blog-detail-article .article-content ol li {
  list-style: decimal;
}

.blog-detail-article .article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

/* Blog sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-widget .widget-title {
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 20px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
}

.sidebar-widget .widget-body {
  padding: 20px;
}

/* Related posts */
.related-posts {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ----------------------------------------------------------
   21. ABOUT PAGE
   ---------------------------------------------------------- */
.about-page {
  margin-top: var(--navbar-height);
}

.about-page .about-content-section {
  padding: 60px 0;
}

.about-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 4rem;
}

.about-content-grid.reverse {
  direction: rtl;
}

.about-content-grid.reverse > * {
  direction: ltr;
}

/* Vision / Mission cards */
.vm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 4rem;
}

.vm-card {
  background: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vm-card .vm-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
}

.vm-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.vm-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 4rem;
}

.value-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius-md);
  transition: transform var(--transition-base);
}

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

.value-card .value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--primary);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 40px;
  padding-left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 40px;
  padding-right: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--text-white);
  box-shadow: 0 0 0 2px var(--primary);
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -8px;
}

.timeline-item:nth-child(even)::before {
  left: -8px;
}

.timeline-item .timeline-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.timeline-item .timeline-content {
  background: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-item .timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-item .timeline-content p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   22. CONTACT PAGE
   ---------------------------------------------------------- */
.contact-page {
  margin-top: var(--navbar-height);
}

.contact-page .section {
  padding-top: 50px;
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form-card {
  background: var(--text-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-info-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--primary);
}

.contact-info-item .info-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-item .info-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-social-links {
  display: flex;
  gap: 12px;
  margin-top: 2rem;
}

.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* ----------------------------------------------------------
   23. FOOTER
   ---------------------------------------------------------- */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding-top: 60px;
}

.footer-grid,
.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

/* Ensure all footer headings are white */
.footer-about h4,
.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  color: #ffffff;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-col .footer-logo img {
  max-height: 50px;
  width: auto;
}

/* Footer logo — match all HTML variants */
.footer-about .footer-logo img,
img.footer-logo {
  max-height: 50px;
  width: auto;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item .footer-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ----------------------------------------------------------
   24. ADMIN PANEL - LAYOUT
   ---------------------------------------------------------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: #1a1a2e;
  color: var(--text-white);
  overflow-y: auto;
  z-index: 100;
  transition: transform var(--transition-base);
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-header img {
  max-height: 40px;
  width: auto;
}

.admin-sidebar-header .admin-logo-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.admin-sidebar-header .admin-logo-text small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.6;
}

.admin-nav {
  padding: 16px 0;
}

.admin-nav-label {
  padding: 12px 20px 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.35);
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
}

.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-left-color: var(--accent);
}

.admin-nav-item .nav-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.admin-nav-item .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: var(--text-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
}

.admin-main {
  flex: 1;
  margin-left: var(--sidebar-width);
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----------------------------------------------------------
   25. ADMIN TOPBAR
   ---------------------------------------------------------- */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--text-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar-left .admin-toggle-sidebar {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

.admin-topbar-left h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.admin-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-topbar-right .admin-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}

.admin-topbar-right .admin-user .user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-topbar-right .btn-logout {
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--danger);
  background: transparent;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-topbar-right .btn-logout:hover {
  background: var(--danger);
  color: var(--text-white);
}

/* ----------------------------------------------------------
   26. ADMIN DASHBOARD
   ---------------------------------------------------------- */
.admin-content {
  flex: 1;
  padding: 24px;
}

.admin-welcome {
  margin-bottom: 24px;
}

.admin-welcome h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.admin-welcome p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Stat cards */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--text-white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card:nth-child(1) { border-left-color: var(--primary); }
.stat-card:nth-child(2) { border-left-color: var(--success); }
.stat-card:nth-child(3) { border-left-color: var(--info); }
.stat-card:nth-child(4) { border-left-color: var(--warning); }

.stat-card .stat-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-card-icon { background: rgba(0, 71, 171, 0.1); }
.stat-card:nth-child(2) .stat-card-icon { background: rgba(40, 167, 69, 0.1); }
.stat-card:nth-child(3) .stat-card-icon { background: rgba(23, 162, 184, 0.1); }
.stat-card:nth-child(4) .stat-card-icon { background: rgba(255, 193, 7, 0.1); }

.stat-card .stat-card-info .stat-card-number {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.stat-card .stat-card-info .stat-card-label {
  font-size: 0.82rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----------------------------------------------------------
   27. ADMIN TABLES
   ---------------------------------------------------------- */
.admin-card {
  background: var(--text-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.admin-card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-card-body {
  padding: 0;
}

.admin-card-body.padded {
  padding: 24px;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead th {
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  background: var(--secondary);
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.admin-table tbody td {
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: rgba(0, 71, 171, 0.03);
}

.admin-table .table-thumb {
  width: 60px;
  height: 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.admin-table .table-actions {
  display: flex;
  gap: 6px;
}

.admin-table .table-actions .btn-action {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--text-white);
  color: var(--text-light);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.admin-table .table-actions .btn-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-table .table-actions .btn-action.delete:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: rgba(220, 53, 69, 0.05);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.status-badge.active,
.status-badge.published {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success);
}

.status-badge.draft,
.status-badge.inactive {
  background: rgba(255, 193, 7, 0.1);
  color: #b8860b;
}

.status-badge.pending {
  background: rgba(23, 162, 184, 0.1);
  color: var(--info);
}

/* ----------------------------------------------------------
   28. ADMIN FORMS
   ---------------------------------------------------------- */
.admin-form {
  max-width: 100%;
}

.admin-form .form-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.admin-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.admin-form .form-group {
  margin-bottom: 1.25rem;
}

.admin-form .form-control {
  padding: 10px 14px;
}

.admin-form textarea.form-control {
  min-height: 150px;
}

/* Image upload area */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.image-upload-area:hover {
  border-color: var(--primary);
  background: rgba(0, 71, 171, 0.02);
}

.image-upload-area .upload-icon {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

.image-upload-area p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.image-upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Image preview */
.image-preview {
  position: relative;
  display: inline-block;
  margin: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.image-preview img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  display: block;
}

.image-preview .remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--text-white);
  border: none;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.image-preview:hover .remove-image {
  opacity: 1;
}

/* Toggle / Switch */
.form-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-switch input[type="checkbox"] {
  position: relative;
  width: 44px;
  height: 24px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}

.form-switch input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--text-white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.form-switch input[type="checkbox"]:checked {
  background: var(--primary);
}

.form-switch input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.form-switch .switch-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* Rich text area */
.rich-text-area {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rich-text-area .editor-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.rich-text-area .editor-toolbar button {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.rich-text-area .editor-toolbar button:hover {
  background: var(--text-white);
  border-color: var(--border);
  color: var(--text);
}

.rich-text-area .editor-toolbar button.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.rich-text-area .editor-toolbar .separator {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
}

.rich-text-area textarea {
  width: 100%;
  min-height: 250px;
  padding: 16px;
  border: none;
  outline: none;
  resize: vertical;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----------------------------------------------------------
   29. ADMIN LOGIN PAGE
   ---------------------------------------------------------- */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 20px;
}

.admin-login-card {
  background: var(--text-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-xl);
  animation: fadeInUp 0.5s ease;
}

.admin-login-card .login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.admin-login-card .login-logo img {
  max-height: 50px;
  margin: 0 auto 0.75rem;
}

.admin-login-card .login-logo h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.admin-login-card .login-logo p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.admin-login-card .form-group {
  margin-bottom: 1.25rem;
}

.admin-login-card .form-control {
  padding: 12px 14px;
}

.admin-login-card .login-submit {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.admin-login-card .login-error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--danger);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  display: none;
}

.admin-login-card .login-error.show {
  display: block;
}

.admin-login-card .back-to-site {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.admin-login-card .back-to-site a {
  color: var(--primary);
  font-weight: 500;
}

.admin-login-card .back-to-site a:hover {
  text-decoration: underline;
}

/* ----------------------------------------------------------
   30. ADMIN PAGINATION (same style, contextual)
   ---------------------------------------------------------- */
.admin-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px 24px;
}

.admin-pagination a,
.admin-pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--text-white);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.admin-pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.admin-pagination .active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
}

.admin-pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-pagination .dots {
  border: none;
  background: none;
  cursor: default;
}

/* ----------------------------------------------------------
   31. LOADING / SPINNER
   ---------------------------------------------------------- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.spinner-sm {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.spinner-lg {
  width: 36px;
  height: 36px;
  border-width: 3px;
}

/* ----------------------------------------------------------
   32. ALERTS / NOTIFICATIONS
   ---------------------------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(40, 167, 69, 0.08);
  border-color: var(--success);
  color: #1e7e34;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border-color: var(--danger);
  color: #bd2130;
}

.alert-warning {
  background: rgba(255, 193, 7, 0.08);
  border-color: var(--warning);
  color: #856404;
}

.alert-info {
  background: rgba(23, 162, 184, 0.08);
  border-color: var(--info);
  color: #0c5460;
}

/* ----------------------------------------------------------
   33. LIGHTBOX (for gallery)
   ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

/* ----------------------------------------------------------
   34. BACK TO TOP BUTTON
   ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ----------------------------------------------------------
   35. EMPTY STATE
   ---------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE STYLES
   ============================================================ */

/* ----- Desktop Large (> 1200px) ----- */
@media (min-width: 1201px) {
  .container {
    max-width: var(--container-max);
  }
}

/* ----- Tablet (768px - 1200px) ----- */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-detail .project-detail-grid {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }

  .blog-detail .blog-detail-layout {
    grid-template-columns: 1fr 260px;
    gap: 30px;
  }

  /* Admin */
  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- Mobile (< 768px) ----- */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.3rem; }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  /* Navigation — Mobile Sidebar */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--text-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 0 30px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li a {
    padding: 14px 24px;
    height: auto;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text) !important;
  }

  .nav-menu li a::after {
    display: none;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    background: var(--secondary);
    color: var(--primary) !important;
  }

  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-overlay {
    display: block;
  }

  /* Media Banner on mobile already handled in section 8 */

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-list-item .blog-list-image {
    max-width: 100%;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stat-item .stat-number {
    font-size: 2rem;
  }

  /* About */
  .about-section .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-section .about-image::after {
    display: none;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Page hero */
  .page-hero {
    height: 30vh;
    min-height: 200px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* Project detail */
  .project-detail .project-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* Blog detail */
  .blog-detail .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* About page */
  .about-content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-content-grid.reverse {
    direction: ltr;
  }

  .vm-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Timeline */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
  }

  .timeline-item::before {
    left: 12px !important;
    right: auto !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-col h4::after {
    left: 0;
  }

  /* Breadcrumbs */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 10px 0;
  }

  /* Buttons */
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  /* ----- ADMIN MOBILE ----- */
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-topbar-left .admin-toggle-sidebar {
    display: block;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-welcome h1 {
    font-size: 1.2rem;
  }

  .stat-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px 16px;
    gap: 10px;
  }

  .stat-card .stat-card-info .stat-card-number {
    font-size: 1.3rem;
  }

  .stat-card .stat-card-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }

  .admin-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-table thead th,
  .admin-table tbody td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .admin-pagination {
    flex-wrap: wrap;
  }

  /* Admin sidebar overlay for mobile */
  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
  }

  .admin-sidebar-overlay.active {
    display: block;
  }
}

/* ----- Small Mobile (< 480px) ----- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  /* Hero/media-banner responsive handled in section 8 */

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item .stat-number {
    font-size: 1.8rem;
  }

  .stat-item .stat-label {
    font-size: 0.82rem;
    letter-spacing: 0;
  }

  /* Blog list */
  .blog-list-item .blog-list-content h2 {
    font-size: 1.15rem;
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Admin */
  .stat-cards {
    grid-template-columns: 1fr;
  }

  .admin-login-card {
    padding: 30px 24px;
  }

  .admin-topbar-right .admin-user .user-name {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-form-card {
    padding: 24px;
  }

  .pagination a,
  .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 0.82rem;
  }

  .filter-buttons {
    gap: 6px;
  }

  .filter-buttons .filter-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .blog-category-tabs {
    gap: 6px;
  }

  .blog-category-tabs .tab-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .footer-social {
    gap: 8px;
  }

  .footer-social a {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ========== Mobile Language Switcher (inside hamburger menu) ========== */
.nav-lang-mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav-lang-mobile {
    display: list-item;
  }

  .mobile-lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }
}

/* ========== Page Hero Video Background ========== */
.page-hero video.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  z-index: 1;
}

/* ========== Page Hero Text Animation ========== */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-hero .hero-title-anim {
  animation: heroFadeUp 0.8s ease forwards;
}

.page-hero .hero-subtitle-anim {
  animation: heroFadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

/* ----------------------------------------------------------
   PRINT STYLES
   ---------------------------------------------------------- */
@media print {
  .navbar,
  .media-banner,
  .footer,
  .back-to-top,
  .admin-sidebar,
  .admin-topbar,
  .nav-toggle,
  .lightbox {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-content {
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}