/* ========================================
   CMS Organisasi - PK IMM FKIK UMSU Theme
   Matches: immfkumsu.wordpress.com
   ======================================== */

:root {
  --maroon: #8b1a1a;
  --maroon-dark: #6b0f0f;
  --maroon-light: #a52a2a;
  --cream: #f5f0eb;
  --text-dark: #333;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  color: var(--text-dark);
  background: #f5f5f5;
  margin: 0;
}

/* ========== NAVBAR ========== */
.navbar-main {
  background-color: var(--maroon) !important;
  border: none;
  padding: 0;
  z-index: 1000;
}

.navbar-main .navbar-brand {
  font-family: "Arial", "Helvetica", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
  padding: 14px 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-main .navbar-nav .nav-link {
  color: #fff !important;
  font-family: "Arial", "Helvetica", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 16px 18px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.navbar-main .navbar-nav .nav-link:hover,
.navbar-main .navbar-nav .nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
}

.navbar-main .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  margin: 8px 15px;
}

.navbar-main .nav-link .bi-caret-down-fill {
  font-size: 0.6rem;
  margin-left: 3px;
}

/* Dropdown Menu - Maroon Theme */
.navbar-main .dropdown-menu-maroon {
  background-color: var(--maroon);
  border: none;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
  min-width: 200px;
}

.navbar-main .dropdown-menu-maroon .dropdown-item {
  color: #fff;
  font-family: "Arial", "Helvetica", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  padding: 10px 20px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.navbar-main .dropdown-menu-maroon .dropdown-item:hover,
.navbar-main .dropdown-menu-maroon .dropdown-item:focus {
  background-color: var(--maroon-dark);
  color: #fff;
}

/* Dropdown Menu - Struktur Organisasi (red & white) */
.navbar-main .dropdown-menu-structure {
  background-color: var(--maroon) !important;
  border: none !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  min-width: 260px;
  box-shadow: none !important;
}

.navbar-main .dropdown-menu-structure .dropdown-item {
  color: #fff !important;
  font-family: "Arial", "Helvetica", sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: normal;
  padding: 14px 12px;
  background-color: var(--maroon) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-main .dropdown-menu-structure .dropdown-item:hover,
.navbar-main .dropdown-menu-structure .dropdown-item:focus {
  background-color: var(--maroon-dark) !important;
  color: #fff !important;
}

.navbar-main .dropdown-menu-structure .dropdown-item:active {
  background-color: var(--maroon-dark) !important;
  color: #fff !important;
}

.navbar-main .dropdown-menu-structure .dropdown-item.active {
  background-color: var(--maroon-dark) !important;
  color: #fff !important;
  font-weight: 700;
}

.navbar-main .dropdown-menu.dropdown-menu-structure {
  background-color: var(--maroon) !important;
}

.navbar-main .dropdown-menu.dropdown-menu-structure .dropdown-item.active,
.navbar-main .dropdown-menu.dropdown-menu-structure .dropdown-item:active {
  background-image: none !important;
  border-color: transparent !important;
}

.navbar-main .dropdown-toggle::after {
  font-size: 0.6rem;
  vertical-align: middle;
}

/* Hover-based dropdown (link remains clickable) */
@media (min-width: 992px) {
  .navbar-main .hover-dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

/* ========== SHARE & COMMENT SECTION ========== */
.share-section {
  padding-top: 10px;
}

.share-title {
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #555;
  background: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-share:hover {
  border-color: #999;
  color: #333;
  background: #f5f5f5;
}

.btn-share-ig i {
  color: #e1306c;
}
.btn-share-fb i {
  color: #1877f2;
}
.share-btn-ig i {
  color: #e1306c;
}
.share-btn-fb i {
  color: #1877f2;
}

.comment-section {
  margin-top: 20px;
}

.comment-title {
  font-family: "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 20px;
}

.comment-textarea {
  border: 1px solid #ccc;
  border-radius: 0;
  resize: vertical;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  padding: 15px;
}

.comment-textarea:focus {
  border-color: var(--maroon);
  box-shadow: none;
}

.btn-comment {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-comment:hover {
  background: #f5f5f5;
  border-color: #999;
}

/* ========== BANNER / HERO ========== */
.hero-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 350px;
  position: relative;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.3);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.hero-banner h1 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  font-family: "Arial", sans-serif;
  font-size: 2.5rem;
}

.hero-banner .lead {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-size: 1.1rem;
}

/* ========== 3-COLUMN LAYOUT ========== */
.main-wrapper {
  display: flex;
  min-height: 500px;
}

/* Left Sidebar - Maroon */
.left-sidebar {
  background-color: var(--maroon);
  color: #fff;
  width: 230px;
  min-width: 230px;
  padding: 30px 20px;
  flex-shrink: 0;
}

.left-sidebar .org-description {
  font-size: 0.87rem;
  line-height: 1.65;
  font-style: italic;
  opacity: 0.95;
}

.left-sidebar .org-description::before {
  content: "\201C";
  font-size: 2rem;
  display: block;
  margin-bottom: 5px;
  opacity: 0.6;
  line-height: 1;
}

.left-sidebar .org-description::after {
  content: "\201D";
  font-size: 1.2rem;
  opacity: 0.6;
}

/* Main Content Area */
.main-content-area {
  flex: 1;
  background: #fff;
  padding: 35px 40px;
  min-width: 0;
}

/* Right Sidebar */
.right-sidebar {
  width: 310px;
  min-width: 310px;
  padding: 30px 25px;
  background: #f9f9f9;
  flex-shrink: 0;
  border-left: 1px solid #e8e8e8;
}

.right-sidebar .sidebar-widget {
  margin-bottom: 30px;
}

.right-sidebar .widget-title {
  font-family: "Arial", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  padding-bottom: 12px;
  margin-bottom: 15px;
  border-top: 3px solid var(--maroon);
  padding-top: 12px;
}

.right-sidebar .contact-info {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #555;
  font-family: "Arial", sans-serif;
}

/* ========== ARTICLE STYLES ========== */
.article-title-main {
  font-family: "Georgia", serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.35;
}

.article-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #444;
  font-family: "Georgia", serif;
}

.article-content p {
  margin-bottom: 1.2em;
}

.struktur-main-title {
  font-family: "Arial", "Helvetica", sans-serif;
  font-weight: 300;
  font-size: 3rem;
  line-height: 1.15;
  color: #333;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.struktur-hero-image {
  max-width: 760px;
}

.struktur-hero-image img {
  border-radius: 2px;
  border: 1px solid #ececec;
}

.struktur-year-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.struktur-year-link {
  display: inline-block;
  border: 1px solid #ccc;
  color: #444;
  background: #fff;
  text-decoration: none;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.struktur-year-link:hover {
  border-color: #a10b0f;
  color: #a10b0f;
}

.struktur-year-link.active {
  background: #a10b0f;
  border-color: #a10b0f;
  color: #fff;
}

.page-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #444;
  font-family: "Georgia", serif;
}

.article-meta {
  font-size: 0.82rem;
  color: #999;
  margin-bottom: 20px;
  font-family: "Arial", sans-serif;
}

/* Article List Items */
.article-list-item {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.article-list-item:first-child {
  padding-top: 0;
}

.article-list-item h3 {
  font-family: "Georgia", serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.article-list-item h3 a {
  color: var(--maroon);
  text-decoration: none;
}

.article-list-item h3 a:hover {
  text-decoration: underline;
}

.article-list-item .excerpt {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #555;
  font-family: "Georgia", serif;
}

.article-list-item .article-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
}

/* Article Cards for Home */
.article-card {
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #fff;
}

.article-card:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.article-card .card-img-top {
  height: 170px;
  object-fit: cover;
}

.article-card .card-title {
  font-family: "Georgia", serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--maroon);
}

.article-card .card-title a {
  color: var(--maroon);
  text-decoration: none;
}

.article-card .card-title a:hover {
  text-decoration: underline;
}

.article-card .card-footer {
  background: #fff;
  border-top: none;
}

/* Section Title */
.section-title {
  font-family: "Georgia", serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.section-title::after {
  display: none;
}

/* ========== SHARE SECTION ========== */
.share-section {
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 30px;
}

.share-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 10px;
  font-family: "Arial", sans-serif;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.82rem;
  color: #555;
  text-decoration: none;
  margin-right: 5px;
  font-family: "Arial", sans-serif;
  transition: background 0.2s;
}

.share-btn:hover {
  background: #f0f0f0;
  color: #333;
}

/* ========== BUTTONS ========== */
.btn-maroon {
  background-color: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.btn-maroon:hover {
  background-color: var(--maroon-dark);
  border-color: var(--maroon-dark);
  color: #fff;
}

.btn-outline-maroon {
  border-color: var(--maroon);
  color: var(--maroon);
}

.btn-outline-maroon:hover {
  background-color: var(--maroon);
  color: #fff;
}

.text-maroon {
  color: var(--maroon) !important;
}

.bg-maroon {
  background-color: var(--maroon) !important;
}

/* ========== SIDEBAR WIDGET CARD ========== */
.widget-card {
  border: none;
  border-radius: 0;
  margin-bottom: 25px;
  background: transparent;
}

.widget-card .card-header {
  background: none;
  border: none;
  border-top: 3px solid var(--maroon);
  border-radius: 0 !important;
  padding: 12px 0;
  font-family: "Arial", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.widget-card .list-group-item {
  border-radius: 0;
  border-left: none;
  border-right: none;
  padding: 10px 0;
  font-size: 0.88rem;
  background: transparent;
}

.widget-card .list-group-item:hover {
  color: var(--maroon);
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--maroon-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 25px 0;
  font-family: "Arial", sans-serif;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ddd;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

/* Recent articles in sidebar */
.recent-article-item {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.recent-article-item:last-child {
  border-bottom: none;
}

.recent-article-item a {
  color: var(--maroon);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: "Georgia", serif;
}

.recent-article-item a:hover {
  text-decoration: underline;
}

.recent-article-item .date {
  font-size: 0.75rem;
  color: #999;
  font-family: "Arial", sans-serif;
}

/* No image placeholder */
.no-image-placeholder {
  background: #e9e9e9;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .main-wrapper {
    flex-direction: column;
  }
  .left-sidebar {
    width: 100%;
    min-width: 100%;
    padding: 20px 25px;
  }
  .right-sidebar {
    width: 100%;
    min-width: 100%;
    padding: 20px 25px;
    border-left: none;
    border-top: 1px solid #e8e8e8;
  }
  .main-content-area {
    padding: 25px 20px;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 200px;
  }
  .hero-overlay {
    min-height: 200px;
    padding: 25px 0;
  }
  .hero-banner h1 {
    font-size: 1.5rem;
  }
  .article-title-main {
    font-size: 1.4rem;
  }
  .navbar-main .navbar-brand {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
  .navbar-main .navbar-nav .nav-link {
    padding: 10px 15px;
  }
  .struktur-main-title {
    font-size: 1.9rem;
  }
}
