/*
Theme Name: Cyber Tribrata Indonesia
Theme URI: https://cybertribrataindonesia.com
Author: Cyber Tribrata Development Team
Author URI: https://www.iklanin.my.id
Description: Tema Resmi WordPress & Elementor Cyber Tribrata Indonesia - Advokat Pengacara Media & Portal Berita Siber.
Version: 1.0.0
Text Domain: cybertribrataindonesia
*/

/* ==========================================================================
   CYBER TRIBRATA INDONESIA - PROFESSIONAL LIGHT / WHITE THEME
   Official News Portal & Legal Counsel Style
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-topbar: #0b192c;
  --bg-header: #ffffff;
  --bg-footer: #0f172a;
  
  --navy-primary: #0b2545;
  --navy-dark: #07172c;
  --navy-light: #1e3a8a;

  --gold-primary: #c59b27;
  --gold-dark: #997b1e;
  --gold-light: #d4af37;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #c59b27 100%);

  --red-accent: #dc2626;
  --red-dark: #991b1b;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --white: #ffffff;

  --border-subtle: #e2e8f0;
  --border-gold: #c59b27;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* TOPBAR */
.topbar {
  background: var(--bg-topbar);
  color: #e2e8f0;
  padding: 0.5rem 0;
  font-size: 0.82rem;
  border-bottom: 2px solid var(--gold-primary);
}
.topbar-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topbar-item i {
  color: var(--gold-primary);
}
.topbar-item a:hover {
  color: var(--gold-primary);
  text-decoration: underline;
}
.topbar-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topbar-social a {
  color: #cbd5e1;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.topbar-social a:hover {
  color: #ffffff;
  background: var(--gold-primary);
}

/* HEADER & NAVIGATION */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.brand-logo img {
  height: 52px;
  width: auto;
}
.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-primary);
  letter-spacing: 0.3px;
}
.brand-text span {
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-link {
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--navy-primary);
  background: #f1f5f9;
  border-bottom: 2px solid var(--gold-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-primary);
  color: var(--navy-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.mobile-drawer.active {
  right: 0;
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.drawer-menu a {
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
}
.drawer-menu a:hover, .drawer-menu a.active {
  background: #f1f5f9;
  color: var(--navy-primary);
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* HERO SLIDER SECTION */
.hero-section {
  padding: 1.5rem 0 2.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-slider-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0b192c;
  min-height: 420px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* UNCROPPED HERO SLIDE BACKGROUND */
.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b192c;
  z-index: 1;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 25, 44, 0.95) 0%, rgba(11, 25, 44, 0.35) 60%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 2;
}
.hero-slide-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
  color: #ffffff;
}
.badge-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--red-accent);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}
.hero-slide-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.6rem;
}
.hero-slide-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.hero-slider-nav {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  gap: 0.4rem;
}
.slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: var(--gold-primary);
  color: #0b192c;
}

/* HERO SIDEBAR */
.hero-side-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.hero-side-card {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.hero-side-card:hover {
  border-color: var(--navy-primary);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}
.hero-side-thumb {
  width: 90px;
  height: 75px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #0b192c;
  flex-shrink: 0;
}
.hero-side-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-side-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.hero-side-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* SECTION HEADINGS */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  position: relative;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 70px;
  height: 2px;
  background: var(--navy-primary);
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title i {
  color: var(--gold-primary);
}

.section-padding {
  padding: 3rem 0;
}
.bg-light-alt {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* NEWS GRID */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy-primary);
  transform: translateY(-3px);
}

.news-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b192c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b192c;
}
.news-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--navy-primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  z-index: 5;
}
.news-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.news-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.news-title a:hover {
  color: var(--navy-primary);
}
.news-excerpt {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.news-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}
.read-more-link {
  color: var(--navy-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.read-more-link:hover {
  color: var(--gold-dark);
}

/* PENGURUS CARDS */
.pengurus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 991px) {
  .pengurus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .pengurus-grid {
    grid-template-columns: 1fr;
  }
}

.pengurus-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.pengurus-card:hover {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}
.pengurus-avatar-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  padding: 3px;
  background: #ffffff;
}
.pengurus-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.pengurus-role-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: #fee2e2;
  color: var(--red-dark);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.pengurus-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

/* LEGALITAS CARDS */
.legalitas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .legalitas-grid {
    grid-template-columns: 1fr;
  }
}
.legalitas-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--navy-primary);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.legalitas-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.legalitas-info h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 0.3rem;
}
.legalitas-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.btn-legal-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--navy-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
}
.btn-legal-view:hover {
  background: var(--gold-dark);
}

/* MITRA GRID & PROMINENT PROPORTIONAL LOGO CARDS */
.mitra-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.mitra-logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: stretch;
}
@media (max-width: 991px) {
  .mitra-logos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 580px) {
  .mitra-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mitra-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 125px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}
.mitra-item:hover {
  border-color: var(--navy-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* PROMINENT LOGO IMAGE DISPLAY */
.mitra-item img {
  height: 60px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  margin-bottom: 0.4rem;
  display: block;
}

.mitra-item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy-primary);
  text-align: center;
  line-height: 1.2;
}

/* FOOTER */
.main-footer {
  background: var(--bg-footer);
  color: #94a3b8;
  padding: 3.5rem 0 0;
  border-top: 3px solid var(--gold-primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--gold-primary);
  display: inline-block;
  padding-bottom: 0.25rem;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover {
  color: var(--gold-primary);
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}
.footer-contact-item i {
  color: var(--gold-primary);
  margin-top: 0.2rem;
}
.footer-contact-item a:hover {
  color: var(--gold-primary);
  text-decoration: underline;
}

/* COPYRIGHT BAR */
.copyright-bar {
  background: #070d19;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: #94a3b8;
}
.copyright-bar a {
  color: var(--gold-primary);
  font-weight: 600;
}

/* FLOATING WHATSAPP WIDGET */
.floating-wa-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}
.floating-wa-btn {
  background: #25d366;
  color: #ffffff;
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}
.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

/* MODAL VIEWER */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-primary);
}
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* MOBILE SPECIFIC RULES */
@media (max-width: 768px) {
  .topbar-info {
    display: none;
  }
  .topbar-wrapper {
    justify-content: center;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .brand-text h1 {
    font-size: 1rem;
  }
  .brand-text span {
    font-size: 0.65rem;
  }
  .hero-slider-container {
    min-height: 320px;
  }
  .hero-slide-bg {
    object-fit: contain;
    background: #0b192c;
  }
  .hero-slide-title {
    font-size: 1.2rem;
  }
  .hero-slide-content {
    padding: 1.25rem;
  }
  .floating-wa-container {
    bottom: 1rem;
    right: 1rem;
  }
  .floating-wa-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
  }
}
