/* Custom Styles for Modernizing Profile, Kegiatan, and Berita */

/* 1. Modern Hero / Breadcrumbs Section */
.breadcrumbs {
  background: linear-gradient(135deg, #1b8842 0%, #14632b 100%) !important;
  padding: 40px 0 !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #ffd700; /* Gold accent line for a premium islamic touch */
}
.breadcrumbs h2 {
  color: #ffffff !important;
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.breadcrumbs ol {
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.breadcrumbs ol li, 
.breadcrumbs ol li a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px;
}
.breadcrumbs ol li a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}
.breadcrumbs ol li + li::before {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* 2. Card Modernization */
.card-modern {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease;
  background: #ffffff;
  overflow: hidden;
}
.card-modern:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}
.card-modern .card-header {
  background: #f8faf9 !important;
  border-bottom: 1px solid #edf2ef !important;
  padding: 20px 25px !important;
}
.card-modern .card-body {
  padding: 30px !important;
  line-height: 1.8;
  color: #444444;
}
.card-modern .card-body h2, 
.card-modern .card-body h3, 
.card-modern .card-body h4 {
  color: #1b8842;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
}
.card-modern .card-body ul, 
.card-modern .card-body ol {
  padding-left: 20px;
}
.card-modern .card-body li {
  margin-bottom: 8px;
}

/* 3. Sidebar Profile & Nav Links */
.sidebar-profile {
  position: sticky;
  top: 100px;
}
.sidebar-logo-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
  margin-bottom: 20px;
}
.sidebar-logo-container img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08));
  transition: transform 0.3s ease;
}
.sidebar-logo-container img:hover {
  transform: scale(1.05);
}
.sidebar-menu {
  background: #ffffff;
  border-radius: 16px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.sidebar-menu-title {
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  padding: 10px 15px;
  border-bottom: 2px solid #f0f4f1;
  margin-bottom: 10px;
}
.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-menu ul li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  color: #555555;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sidebar-menu ul li a i {
  margin-right: 10px;
  font-size: 16px;
}
.sidebar-menu ul li a:hover,
.sidebar-menu ul li a.active {
  background-color: #f0f8f3;
  color: #1b8842;
  font-weight: 600;
}

/* 4. Article & Activity Grid */
.grid-item-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.grid-item-card .img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: #f8f9fa;
}
.grid-item-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.grid-item-card:hover .img-wrapper img {
  transform: scale(1.08);
}
.grid-item-card .category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(27, 136, 66, 0.9);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.grid-item-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 25px !important;
}
.grid-item-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.grid-item-card:hover .card-title {
  color: #1b8842;
}
.grid-item-card .card-text {
  color: #7f8c8d;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.meta-info-row {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #95a5a6;
  font-size: 13px;
  margin-bottom: 15px;
}
.meta-info-row i {
  color: #1b8842;
}
.read-more-link {
  margin-top: auto;
  color: #1b8842;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  transition: gap 0.2s ease;
}
.read-more-link:hover {
  color: #14632b;
  gap: 8px;
}

/* 5. Featured Article Layout */
.featured-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 40px;
  transition: all 0.3s ease;
}
.featured-card:hover {
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.featured-card .featured-img-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  height: 100%;
}
.featured-card .featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-card:hover .featured-img-wrapper img {
  transform: scale(1.05);
}
.featured-card .card-body {
  padding: 40px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 6. Meta info bar inside read details */
.detail-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid #f0f4f1;
  border-bottom: 1px solid #f0f4f1;
  margin-bottom: 25px;
  color: #7f8c8d;
  font-size: 14px;
}
.detail-meta-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-meta-bar i {
  color: #1b8842;
  font-size: 16px;
}

/* Sidebar Recent Posts style */
.sidebar-recent-posts {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.sidebar-recent-posts h3 {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f4f1;
  padding-bottom: 10px;
}
.sidebar-post-item {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f8faf9;
}
.sidebar-post-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-post-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sidebar-post-content {
  display: flex;
  flex-direction: column;
}
.sidebar-post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}
.sidebar-post-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.2s ease;
}
.sidebar-post-title a:hover {
  color: #1b8842;
}

/* Accent for hover green link */
.hover-green:hover {
  color: #1b8842 !important;
}
