/**
 * Muslim Media Agency - Main Stylesheet
 * Colors based on brand logo
 */

:root {
  /* Primary Color Palette from Logo */
  --primary-purple: #6a1b9a;
  --primary-pink: #e91e63;
  --primary-orange: #ff9800;
  --primary-yellow: #ffeb3b;
  
  /* Secondary Colors */
  --secondary-color: #333333;
  --secondary-grey: #757575;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #6c757d;
  --black: #222222;
  
  /* Feedback Colors */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  
  /* Typography */
  --body-font: 'Roboto', 'Segoe UI', sans-serif;
  --heading-font: 'Poppins', 'Roboto', sans-serif;
  --arabic-font: 'Amiri', 'Traditional Arabic', serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-pink);
}

p {
  margin-bottom: 1.5rem;
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

[class*="col-"] {
  padding: 0 15px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Section Headers */
.section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--medium-gray);
  padding-bottom: 0.5rem;
}

.section-title {
  position: relative;
  color: var(--primary-purple);
  font-size: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-pink), var(--primary-orange));
}

.view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.view-all:hover {
  color: var(--primary-pink);
}

.view-all i {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.view-all:hover i {
  transform: translateX(3px);
}

/* Hero Section - Featured Slider */
.hero-section {
  margin-bottom: 3rem;
  padding-top: 1.5rem;
  background-color: var(--white);
}

.featured-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-item {
  position: relative;
  display: none;
}

.carousel-item.active {
  display: block;
}

.featured-article {
  position: relative;
}

.article-image {
  position: relative;
  overflow: hidden;
  height: 450px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-article:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  color: var(--white);
}

.category {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category a {
  color: var(--white);
}

.title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.title a {
  color: var(--white);
}

.title a:hover {
  color: var(--primary-yellow);
}

.meta {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.author {
  margin-right: 1.5rem;
}

.author a {
  color: var(--primary-purple);
  font-weight: 600;
}

.date {
  position: relative;
}

.excerpt {
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  padding: 0.3rem 1rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

/* Empty State Styling */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 10px;
  background-color: var(--light-gray);
  margin-bottom: 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  color: var(--primary-purple);
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.empty-state-message {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.empty-state-action {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: var(--white);
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.empty-state-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
  text-decoration: none;
}

/* Widgets - Common Styles */
.widget {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.widget-header {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
  color: #fff;
  padding: 1rem 1.5rem;
}

.widget-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
}

.widget-header h3:before {
  content: "\f111";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 0.5rem;
  font-size: 0.75rem;
}

.widget-content {
  padding: 1.5rem;
}

.widget-footer {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
  margin-top: 1rem;
}

.widget-footer a {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--primary-purple);
  text-decoration: none;
  transition: all 0.3s ease;
}

.widget-footer a:hover {
  color: var(--primary-pink);
  transform: translateY(-1px);
}

.widget-footer a:after {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.widget-footer a:hover:after {
  transform: translateX(3px);
}

.widget-empty-state {
  text-align: center;
  padding: 1.5rem 1rem;
}

.widget-empty-state p {
  color: var(--dark-gray);
  margin-bottom: 0;
  font-style: italic;
}

/* Breaking News Widget */
.breaking-news-widget .widget-header h3:before {
  content: "\f0f3"; /* Bell icon */
}

.breaking-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.breaking-news-item {
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.breaking-news-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.breaking-news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.breaking-news-item a {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
}

.breaking-news-item .time {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.8rem;
  white-space: nowrap;
  font-weight: 600;
}

.breaking-news-item .title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--secondary-color);
  line-height: 1.4;
  margin: 0;
  flex: 1;
  transition: color 0.3s ease;
}

.breaking-news-item a:hover .title {
  color: var(--primary-purple);
}

/* Quran Verse Widget */
.quran-verse-widget .widget-header h3:before {
  content: "\f02d"; /* Book icon */
}

.verse-arabic {
  text-align: right;
  font-family: var(--arabic-font);
  font-size: 1.5rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--secondary-color);
  direction: rtl;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border-right: 3px solid var(--primary-purple);
}

.verse-translation {
  font-style: italic;
  margin: 1rem 0;
  color: var(--dark-gray);
  line-height: 1.7;
  padding: 0 0.5rem;
}

.verse-reference {
  text-align: right;
  font-size: 0.9rem;
  color: var(--primary-purple);
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.025);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  display: inline-block;
  float: right;
}

/* Hadith Widget */
.hadith-widget .widget-header h3:before {
  content: "\f10d"; /* Quote icon */
}

.hadith-text {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--dark-gray);
  line-height: 1.7;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border-left: 3px solid var(--primary-purple);
}

.hadith-narrator {
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0.75rem 0;
  padding-left: 0.5rem;
}

.hadith-source {
  font-size: 0.85rem;
  color: var(--primary-purple);
  background-color: rgba(0, 0, 0, 0.025);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  display: inline-block;
}

/* Latest Articles Section */
.latest-articles-section {
  margin-bottom: 3rem;
}

.article-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.article-card .article-image {
  height: 200px;
  flex-shrink: 0;
  position: relative;
}

.article-card .article-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.article-card .excerpt {
  flex-grow: 1;
}

.article-card .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-card .category {
  position: absolute;
  top: 15px;
  left: 15px;
  margin-bottom: 0;
  z-index: 2;
}

.article-card .category a {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.article-card .category a i {
  margin-right: 5px;
}

.article-card .category a:hover {
  transform: translateY(-2px);
}

.article-card .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: 0.8rem;
}

.article-card .meta .author {
  display: flex;
  align-items: center;
  margin-right: 1.2rem;
}

.article-card .meta .author i,
.article-card .meta .date i {
  margin-right: 0.4rem;
  color: var(--primary-purple);
}

.article-card .article-content {
  position: relative;
  background: var(--white);
  padding: 1.5rem;
  color: var(--black);
}

.article-card .title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--secondary-color);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.article-card .title a:hover {
  color: var(--primary-pink);
}

.article-card .meta {
  color: var(--dark-gray);
  margin-bottom: 0.8rem;
}

.article-card .excerpt {
  color: var(--dark-gray);
  margin-top: 0;
  font-size: 0.9rem;
}

.article-card .read-more-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  color: var(--primary-purple);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.article-card .read-more-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.article-card .read-more-link:hover {
  color: var(--primary-pink);
}

.article-card .read-more-link:hover i {
  transform: translateX(3px);
}

/* Featured Categories Section */
.featured-categories-section {
  padding: 3rem 0;
  background-color: var(--light-gray);
  margin-bottom: 3rem;
}

.category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  height: 100%;
  background-color: var(--white);
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.category-image:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
  z-index: 1;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
  transform: scale(1.1);
}

.category-content {
  padding: 1.5rem;
  text-align: center;
}

.name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.article-count {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-orange), var(--primary-yellow));
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%);
  padding: 4rem 0;
  color: var(--white);
  text-align: center;
  margin-bottom: 3rem;
  border-radius: 10px;
}

.newsletter-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  display: flex;
  margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  height: 50px;
  border: none;
  border-radius: 5px 0 0 5px;
  padding: 0 20px;
  font-size: 1rem;
}

.newsletter-form button {
  height: 50px;
  background: linear-gradient(to right, var(--primary-orange), var(--primary-yellow));
  color: var(--black);
  border: none;
  border-radius: 0 5px 5px 0;
  padding: 0 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.newsletter-form .form-check {
  text-align: center;
  margin-top: 1rem;
}

.newsletter-form .form-check-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.newsletter-form .form-check-label a {
  color: var(--white);
  text-decoration: underline;
}

/* Header Styles */
.main-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Top Bar */
.top-bar {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 8px 0;
  font-size: 0.9rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.date-time {
  display: flex;
  align-items: center;
}

.current-date {
  font-weight: 500;
}

.top-bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.social-links {
  display: flex;
  margin-right: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.user-links {
  display: flex;
  align-items: center;
}

.user-links a {
  color: white;
  margin-left: 15px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.user-links a:hover {
  color: var(--primary-orange);
  text-decoration: none;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-toggle:after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  vertical-align: 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1000;
  display: none;
  min-width: 200px;
  padding: 10px 0;
  margin-top: 10px;
  font-size: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 20px;
  clear: both;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  color: var(--secondary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-item i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
  color: var(--primary-purple);
}

.dropdown-item:hover {
  background-color: var(--light-gray);
  padding-left: 25px;
}

.dropdown-divider {
  height: 0;
  margin: 8px 0;
  overflow: hidden;
  border-top: 1px solid var(--light-gray);
}

/* Mid Header */
.mid-header {
  padding: 20px 0;
  background-color: white;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 70px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.header-ad {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.header-ad img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.header-ad:hover img {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Main Navigation */
.main-nav {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.navbar-toggler {
  display: none;
  padding: 10px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.navbar-toggler:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  display: flex;
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.mr-auto {
  margin-right: auto;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  display: block;
  padding:.1rem 1.2rem;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.navbar-nav .nav-link i {
  margin-right: 5px;
}

/* Navbar Dropdown */
.navbar-nav .dropdown-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: 100%;
  margin-top: 0;
  border-radius: 0 0 8px 8px;
  min-width: 220px;
  border-top: 2px solid var(--primary-orange);
}

.navbar-nav .dropdown-item {
  padding: 12px 20px;
  font-size: 0.9rem;
}

.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* Search Form in Nav */
.search-form-nav {
  margin-left: auto;
  width: 250px;
}

.search-form-nav form {
  display: flex;
}

.input-group {
  position: relative;
  display: flex;
  width: 100%;
}

.form-control {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  border-radius: 4px 0 0 4px;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input-group-append {
  display: flex;
  margin-left: -1px;
}

.btn-search {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  padding: 0 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-search:hover {
  background-color: var(--primary-orange);
}

/* Latest Articles Grid Layout */
.latest-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 2rem;
}

/* Prayer Times Widget Styles */
.prayer-times-widget .widget-header h3:before {
  content: "\f111";
}

.prayer-times-widget .prayer-date {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.prayer-times-widget .hijri-date {
  font-weight: 600;
  color: var(--primary-purple);
}

.prayer-times-widget .gregorian-date {
  color: var(--dark-gray);
  font-size: 0.9em;
}

.prayer-times-widget .current-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.prayer-times-widget .current-location i {
  color: var(--primary-pink);
  margin-right: 0.5rem;
}

.prayer-times-widget .change-location-link {
  font-size: 0.8rem;
  color: var(--primary-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.prayer-times-widget .change-location-link:hover {
  color: var(--primary-pink);
  text-decoration: underline;
}

.prayer-times-widget .prayer-times-list {
  margin-bottom: 1.5rem;
}

.prayer-times-widget .prayer-time-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.prayer-times-widget .prayer-time-item:last-child {
  border-bottom: none;
  margin-bottom: 0.5rem;
}

.prayer-times-widget .prayer-time-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.prayer-times-widget .prayer-time-item.current {
  background: linear-gradient(to right, rgba(106, 27, 154, 0.1), rgba(233, 30, 99, 0.1));
  border-left: 3px solid var(--primary-purple);
  font-weight: 600;
}

.prayer-times-widget .prayer-name {
  color: var(--secondary-color);
  font-weight: 500;
}

.prayer-times-widget .prayer-time {
  color: var(--primary-purple);
  font-weight: 600;
}

.prayer-times-widget .prayer-time-item.current .prayer-name,
.prayer-times-widget .prayer-time-item.current .prayer-time {
  color: var(--primary-purple);
}

.prayer-times-widget .next-prayer {
  background-color: rgba(0, 0, 0, 0.025);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.prayer-times-widget .next-prayer-label {
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.prayer-times-widget .next-prayer-info {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.prayer-times-widget .next-prayer-name {
  font-weight: 600;
  color: var(--primary-purple);
  margin-right: 0.5rem;
}

.prayer-times-widget .next-prayer-time {
  color: var(--secondary-color);
  font-weight: 500;
  margin-right: 0.5rem;
}

.prayer-times-widget .next-prayer-countdown {
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-style: italic;
}

/* Editor's Picks Styles */
.editors-picks-section {
  margin-bottom: 3rem;
}

/* Horizontal Article Card */
.article-card.horizontal {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--white);
}

.article-card.horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Image Container (Left) */
.article-card.horizontal .article-image {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}

.article-card.horizontal .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card.horizontal:hover .article-image img {
  transform: scale(1.1);
}

/* Content Container (Right) */
.article-card.horizontal .article-content {
  flex: 0 0 60%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Editor's Pick Badge */
.editors-pick-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
}

.editors-pick-badge i {
  margin-right: 0.3rem;
  font-size: 0.75rem;
}

/* Footer Styles */
.main-footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 60px 0 40px;
}

.footer-widget {
  margin-bottom: 30px;
}

.widget-title h4 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.widget-title h4:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-pink), var(--primary-orange));
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  max-height: 60px;
  width: auto;
}

.about-widget p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  text-decoration: none;
  padding: 5px 0;
  display: inline-block;
}

.footer-links li a:before {
  content: "\f105";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  color: var(--primary-pink);
}

.footer-links li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-social-links {
  display: flex;
  margin-top: 20px;
}

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.footer-social-links a:hover {
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  transform: translateY(-3px);
}

.newsletter-widget p {
  margin-bottom: 20px;
}

.newsletter-form .form-group {
  position: relative;
  margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 4px;
  padding: 0 60px 0 20px;
  color: white;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-pink);
}

.newsletter-form button {
  position: absolute;
  right: 0;
  top: 0;
  height: 50px;
  width: 50px;
  background: linear-gradient(to right, var(--primary-pink), var(--primary-orange));
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  opacity: 0.9;
}

.form-check {
  position: relative;
  display: block;
  padding-left: 1.25rem;
  margin-top: 15px;
}

.form-check-input {
  position: absolute;
  margin-top: 0.3rem;
  margin-left: -1.25rem;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.form-check-label a {
  color: var(--primary-pink);
  transition: color 0.3s ease;
}

.form-check-label a:hover {
  color: white;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  font-size: 0.9rem;
}

.copyright p {
  margin-bottom: 0;
}

.footer-bottom-links ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom-links li {
  margin-left: 20px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: var(--primary-pink);
}

/* Prayer Times Modal Additional Styles */
.modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.5rem;
}

.location-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

#detectLocationBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

#detectLocationBtn i {
  font-size: 0.9rem;
}

.form-control option {
  padding: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--primary-purple);
  border-color: var(--primary-purple);
}

.form-check-input:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.25);
}

.form-text {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1.25rem 1.5rem;
}

.btn {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.25);
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

.fa-check {
  color: #28a745;
}

.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* JS Toggler Support */
.show {
  display: block !important;
}

/* Clearfix */
.row:before,
.row:after {
  content: "";
  display: table;
}
.row:after {
  clear: both;
}

/* Main Layout Fixes */
.main-content {
    float: left;
    width: 75%;
}

.sidebar {
    float: right;
    width: 25%;
    position: sticky;
    top: 20px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Clear the float after the content and sidebar */
main .container-fluid .row::after {
    content: "";
    display: table;
    clear: both;
}

/* Media query for responsive layout */
@media (max-width: 991px) {
    .main-content,
    .sidebar {
        float: none;
        width: 100%;
    }
    
    .sidebar {
        margin-top: 30px;
    }
}

/* Hero Section Layout */
.hero-section .container .row {
    display: flex;
    flex-wrap: wrap;
}

.hero-section .featured-slider {
    width: 100%;
}

.hero-section .col-lg-8 {
    width: 100%;
    display: flex;
}

/* Featured Articles Slider */
.featured-slider {
    width: 65%;
    margin-right: 20px;
}

/* Featured Articles Right Column (add to your HTML) */
.featured-right-column {
    width: 33%;
}

.featured-right-column .featured-article-small {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.featured-right-column .featured-article-small:last-child {
    border-bottom: none;
}

.featured-right-column .featured-article-small img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.featured-right-column .featured-article-small .title {
    font-size: 16px;
    margin: 8px 0;
}

.featured-right-column .featured-article-small .category a {
    font-size: 12px;
    color: #007bff;
    text-transform: uppercase;
}

/* Fix for Bootstrap row/col layout */
.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Latest Articles Grid */
.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Article Cards */
.article-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 15px;
}

/* Horizontal Article Card Style */
.article-card.horizontal {
    display: flex;
    height: 100%;
}

.article-card.horizontal .article-image {
    width: 40%;
    flex-shrink: 0;
}

.article-card.horizontal .article-image img {
    height: 100%;
}

.article-card.horizontal .article-content {
    width: 60%;
}

/* Widgets in Sidebar */
.widget {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    padding: 15px;
}

.widget-header h3 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 18px;
}

/* Custom Slider Styles - No Bootstrap */
.custom-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.slider-items {
  position: relative;
  width: 100%;
  height: 450px;
}

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.slider-item.active {
  opacity: 1;
  z-index: 2;
}

/* Featured Article Styling */
.featured-article {
  position: relative;
  height: 100%;
}

.article-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-article:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  color: var(--white);
  z-index: 3;
}

/* Navigation Controls */
.slider-navigation {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  padding: 0 20px;
}

.slider-prev,
.slider-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  cursor: pointer;
  position: relative;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
  background-color: var(--primary-purple);
  transform: scale(1.1);
}

.slider-prev:before,
.slider-next:before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
}

.slider-prev:before {
  transform: translate(-40%, -50%) rotate(-135deg);
}

.slider-next:before {
  transform: translate(-60%, -50%) rotate(45deg);
}

.slider-dots {
  display: flex;
  justify-content: center;
  margin: 0 20px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Make sure article links and content are styled properly */
.category a,
.title a,
.meta a,
.read-more {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  padding: 0.3rem 1rem;
  border-radius: 3px;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.read-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Updated CSS for fixing both link clickability and content visibility */
.slider-item {
  pointer-events: none; /* Disable pointer events on the slide container */
}

.slider-item.active {
  pointer-events: auto; /* Re-enable pointer events ONLY on the active slide */
}

.slider-item .article-content {
  /* Make sure article content is visible on active slides */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  color: var(--white);
  z-index: 5;
  opacity: 1; /* Ensure content is visible */
}

.clickable-link {
  pointer-events: auto !important; /* Force pointer events on all links */
  position: relative;
  z-index: 20 !important; /* Higher z-index to ensure links are always clickable */
  cursor: pointer;
  color: inherit; /* Maintain proper color inheritance */
  text-decoration: none;
  display: inline-block; /* Ensure links have proper dimensions */
}

.title a.clickable-link {
  color: var(--white);
}

.title a.clickable-link:hover {
  color: var(--primary-yellow);
}

.read-more.clickable-link {
  z-index: 30 !important; /* Even higher z-index for the Read More button */
  display: inline-block;
  margin-top: 1rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(to right, var(--primary-purple), var(--primary-pink));
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.read-more.clickable-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

/* Make sure navigation controls are properly positioned */
.slider-navigation {
  z-index: 15; /* Below the clickable links but above slide content */
}

/* Ensure content is visible and properly layered */
.slider-item .featured-article {
  height: 100%;
  position: relative;
}

.slider-item .article-image {
  height: 100%;
  width: 100%;
}

.slider-item .article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Force visibility of meta elements */
.category, .title, .meta, .excerpt, .read-more {
  display: block;
  visibility: visible;
}

/* Specific styling for the author link */
.author a.clickable-link {
  color: var(--white);
  opacity: 0.9;
}

.author a.clickable-link:hover {
  color: var(--primary-yellow);
  opacity: 1;
}

/* Article View Specific Styles */

/* Article Single */
.article-single {
  margin: 2rem 0 3rem;
}

/* Article Content */
.article-content {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* Article Header */
.article-header {
  padding: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.category-link {
  margin-bottom: 1rem;
}

.category-link a {
  background: linear-gradient(to right, #6a1b9a, #e91e63);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #222222;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.meta-author {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
}

.meta-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.meta-author span {
  font-size: 0.9rem;
  color: #6c757d;
}

.meta-author a {
  color: #6a1b9a;
  font-weight: 600;
}

.meta-date, .meta-time {
  display: flex;
  align-items: center;
  margin-right: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
}

.meta-date i, .meta-time i {
  margin-right: 5px;
  color: #6a1b9a;
}

/* Featured Image */
.featured-image {
  position: relative;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}

/* Article Text */
.article-text {
  padding: 2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333333;
}

.article-text p {
  margin-bottom: 1.5rem;
}

.article-text h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: #222222;
}

.article-text h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem;
  color: #222222;
}

.article-text a {
  color: #6a1b9a;
  text-decoration: underline;
}

.article-text blockquote {
  border-left: 4px solid #6a1b9a;
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: #f8f9fa;
}

.article-text ul, .article-text ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.article-text li {
  margin-bottom: 0.5rem;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1rem 2rem;
}

.tags-label {
  font-weight: 600;
  margin-right: 1rem;
  color: #222222;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
}

.tag-link {
  display: inline-block;
  background: #f8f9fa;
  color: #6c757d;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin: 0.25rem;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.tag-link:hover {
  background: #6a1b9a;
  color: #ffffff;
  border-color: #6a1b9a;
}

/* Article Actions */
.article-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-top: 1px solid #e9ecef;
}

.social-share {
  display: flex;
  align-items: center;
}

.share-label {
  font-weight: 600;
  margin-right: 1rem;
  color: #222222;
}

.share-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #ffffff;
}

.share-link.facebook {
  background: #3b5998;
}

.share-link.twitter {
  background: #1da1f2;
}

.share-link.whatsapp {
  background: #25d366;
}

.share-link.telegram {
  background: #0088cc;
}

.share-link.email {
  background: #ea4335;
}

.share-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.article-tools {
  display: flex;
  align-items: center;
}

.tool-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  margin-left: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: #f8f9fa;
  color: #6c757d;
}

.tool-link.print {
  color: #6c757d;
}

.tool-link.like {
  color: #6c757d;
}

.tool-link.like.active {
  color: #ffffff;
  background: #e91e63;
}

.tool-link:hover {
  background: #6a1b9a;
  color: #ffffff;
}

.tool-link i {
  margin-right: 5px;
}

/* Author Bio */
.author-bio {
  display: flex;
  align-items: flex-start;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem;
}

.author-img {
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.author-img img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.author-info {
  flex-grow: 1;
}

.author-name {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.author-name a {
  color: #222222;
}

.author-description {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #222222;
  margin-right: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.author-social a:hover {
  background: #6a1b9a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
  margin-bottom: 3rem;
}

.section-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.5rem;
}

.section-title {
  position: relative;
  color: #6a1b9a;
  font-size: 1.5rem;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, #6a1b9a, #e91e63);
}

.section-content .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.section-content .col-md-4 {
  width: 33.333333%;
  padding: 0 15px;
  margin-bottom: 1.5rem;
}

/* Post Item (Related Articles) */
.post-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.post-thumb {
  position: relative;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-item:hover .post-thumb img {
  transform: scale(1.1);
}

.post-category {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.post-category a {
  display: inline-block;
  background: linear-gradient(to right, #6a1b9a, #e91e63);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
}

.post-title {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.post-title a {
  color: #222222;
}

.post-title a:hover {
  color: #6a1b9a;
}

.post-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: #6c757d;
}

/* Comments Section */
.comments-section {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 2rem;
}

.comments-list {
  padding: 1.5rem;
}

.comment-item {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.comment-avatar {
  flex-shrink: 0;
  margin-right: 1rem;
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.comment-content {
  flex-grow: 1;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.comment-author {
  font-weight: 600;
  color: #222222;
}

.comment-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.comment-text {
  margin-bottom: 0.8rem;
  color: #333333;
}

.comment-actions {
  display: flex;
  align-items: center;
}

.btn-reply, .btn-like {
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #6a1b9a;
  cursor: pointer;
  margin-right: 1rem;
  padding: 0;
  display: flex;
  align-items: center;
}

.btn-reply:hover, .btn-like:hover {
  color: #e91e63;
}

.btn-like i {
  margin-right: 5px;
}

/* Comment Replies */
.comment-replies {
  margin-top: 1.5rem;
  margin-left: 3.5rem;
}

.comment-item.reply {
  margin-bottom: 1rem;
}

.comment-item.reply .comment-avatar img {
  width: 40px;
  height: 40px;
}

/* Reply Form */
.reply-form-container {
  margin-top: 1rem;
  margin-left: 3.5rem;
}

.reply-form, .comment-form {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 1rem;
}

.reply-form textarea, .comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #e9ecef;
  border-radius: 5px;
  resize: vertical;
  min-height: 80px;
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, #6a1b9a, #e91e63);
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-cancel {
  background: #e9ecef;
  color: #6c757d;
  margin-right: 0.8rem;
}

.btn-cancel:hover {
  background: #6c757d;
  color: #ffffff;
}

/* Comment Form Section */
.comment-form-section {
  padding: 0 1.5rem 1.5rem;
}

.comment-form-section h3 {
  margin-bottom: 1rem;
  color: #222222;
  font-size: 1.3rem;
}

.login-to-comment {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.login-to-comment p {
  margin: 0;
}

.login-to-comment a {
  color: #6a1b9a;
  font-weight: 600;
}

.login-to-comment a:hover {
  color: #e91e63;
  text-decoration: underline;
}

/* No Comments */
.no-comments {
  text-align: center;
  padding: 1.5rem;
  color: #6c757d;
  font-style: italic;
}

/* Sidebar Widgets */
.sidebar .widget {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar .widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.widget-title {
  background: linear-gradient(135deg, #6a1b9a 0%, #e91e63 100%);
  color: #fff;
  padding: 1rem 1.5rem;
}

.widget-title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.widget-content {
  padding: 1.5rem;
}

/* Login Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
  margin: 10% auto;
  width: 90%;
  max-width: 500px;
}

.modal-content {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(to right, #6a1b9a, #e91e63);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  margin: 0;
  font-size: 1.2rem;
  color: #ffffff;
}

.close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.8;
}

.close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

/* Responsive styles */
@media (max-width: 992px) {
  .col-lg-8, .col-lg-4 {
    width: 100%;
  }
  
  .sidebar {
    margin-top: 2rem;
  }
  
  .author-bio {
    margin: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-content .col-md-4 {
    width: 100%;
  }
  
  .article-title {
    font-size: 1.8rem;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .meta-author, .meta-date, .meta-time {
    margin-bottom: 0.8rem;
  }
  
  .article-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .social-share {
    margin-bottom: 1rem;
    width: 100%;
  }
  
  .article-tools {
    width: 100%;
    justify-content: space-between;
  }
  
  .author-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .author-img {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .author-social {
    justify-content: center;
  }
}