/**
 * Custom CSS untuk website Majelis Islam
 */

/* ===== VARIABLES ===== */
:root {
  --primary-color: #116382;
  --secondary-color: #0b4559;
  --accent-color: #ff9800;
  --text-color: #333333;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
}

/* ===== GENERAL ===== */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f6f8fa;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Bootstrap Override */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* ===== HEADER ===== */
.header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo img {
  max-height: 70px;
}

.social-media a {
  color: var(--primary-color);
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-media a:hover {
  color: var(--accent-color);
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.2rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  background-color: rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
  border-radius: 0;
  margin-top: 0;
  border-top: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: rgba(17, 99, 130, 0.1);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  min-height: 600px;
  padding: 2rem 0;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-color);
  color: #fff;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Card */
.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  color: #666;
}

/* Article */
.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-content {
  line-height: 1.8;
}

.article-image {
  margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar {
  background-color: #fff;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.sidebar-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar-list li {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 0.8rem;
}

.sidebar-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--dark-color);
  color: #fff;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.footer a:hover {
  color: #fff;
  text-decoration: none;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
  position: absolute;
  bottom: 0;
  left: 0;
}

.footer li {
  margin-bottom: 0.8rem;
}

.social-links a {
  font-size: 1.2rem;
  margin-right: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .navbar-dark .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 767.98px) {
  .logo img {
    max-height: 60px;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .article-title {
    font-size: 1.5rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}
/* Logo styling */
.logo {
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-image-container {
  width: 100%;
  text-align: center;
  margin-bottom: 5px;
}

.logo-tagline {
  font-size: 14px;
  color: #6c757d;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .logo-image-container {
    height: 60px !important;
  }
  
  .logo-image-container img {
    max-height: 60px !important;
  }
  
  .logo-tagline {
    font-size: 12px;
  }
}