
/* ========================================
   GENERAL LAYOUT & COLORS
======================================== */
body {
  background: #fafafa;
  color: #333333;
  margin-top: 5rem;
}

body.authenticated {
  margin-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: #444444;
}

/* ========================================
   NAVBAR & HEADER
======================================== */
.bg-steel {
  background-color: #5f788a;
}

.site-header .navbar-nav .nav-link {
  color: #cbd5db;
}

.site-header .navbar-nav .nav-link:hover {
  color: #ffffff;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

.navbar.bg-dark {
  background: linear-gradient(to right, #1e272e, #485460);
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

/* ========================================
   FULL-WIDTH TOP CONTAINER (UNDER NAVBAR)
======================================== */
main.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* ========================================
   CONTENT CONTAINER SECTIONS
======================================== */
.content-section {
  background: #ffffff;
  padding: 10px 20px;
  border: 1px solid #dddddd;
  border-radius: 3px;
  margin-bottom: 20px;
}

.media.content-section {
  padding: 1rem;
  margin-bottom: 1.2rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

/* ========================================
   ARTICLE / POST LAYOUT
======================================== */
.article-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #444444;
}

a.article-title:hover {
  color: #428bca;
  text-decoration: none;
}

.article-content {
  white-space: pre-line;
}

.article-content p {
  margin-bottom: 0.5rem;
}

.article-img {
  height: 65px;
  width: 65px;
  margin-right: 16px;
}

.article-metadata {
  padding-bottom: 1px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e3e3e3;
}

.article-metadata a:hover {
  color: #333;
  text-decoration: none;
}

.article-svg {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

/* ========================================
   USER PROFILE
======================================== */
.account-img {
  height: 125px;
  width: 125px;
  margin-right: 20px;
  margin-bottom: 16px;
}

.account-heading {
  font-size: 2.5rem;
}

/* ========================================
   COLLAPSIBLE ARTICLE CONTENT
======================================== */
.article-content {
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.article-content .collapse {
  display: none;
}

.article-content .collapse.show {
  display: block;
}

.preview {
  display: block;
  max-height: 6.5em;
  overflow: hidden;
  position: relative;
  padding-bottom: 1rem;
}

.preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2em;
  width: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white);
}

.full {
  display: none;
}

.toggle-link {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  color: #007bff;
  user-select: none;
  transition: color 0.2s ease;
}

.toggle-link:hover {
  text-decoration: underline;
}

.toggle-icon {
  margin-left: 0.3em;
  transition: transform 0.3s ease;
}

.toggle-link.collapsed .toggle-icon {
  transform: rotate(0deg);
}

.toggle-link:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
}

/* ========================================
   GRID & SPACING
======================================== */
.container {
  max-width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

main .row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-md-9,
.col-md-3 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Pastikan layout konsisten */
main .col-md-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

main .col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/* ========================================
   LANDING
======================================== */
.text-glow {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 
               0 0 20px rgba(255, 255, 255, 0.6),
               0 0 30px rgba(255, 255, 255, 0.4);
}

.text-glow-lg {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8),
                 0 0 16px rgba(255, 255, 255, 0.6),
                 0 0 24px rgba(255, 255, 255, 0.4);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
======================================== */
@media (max-width: 767.98px) {
  main .col-md-9,
  main .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.col-md-2.bg-dark {
  position: fixed;
  top: 56px;  /* Sesuaikan dengan tinggi navbar */
  left: 0;
  bottom: 0;
  padding: 1rem 0.5rem;
  z-index: 1000;
  overflow-y: auto;
  width: 16.666667%; /* Sama dengan col-md-2 */
}

/* Offset konten utama agar tidak tertindih sidebar */
.offset-md-2 {
  margin-left: 16.666667%;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

main.container .row {
  overflow: hidden;
}

@media (min-width: 992px) {
  .col-md-7.col-lg-7 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
}