/* Rwanda-inspired Theme Styles */

:root {
  /* Rwanda-inspired color palette */
  --rwanda-blue: #3498db;
  --rwanda-blue-dark: #1a5276;
  --rwanda-blue-light: #85c1e9;
  --rwanda-yellow: #f4d03f;
  --rwanda-green: #27ae60;
}

/* Featured News Section Enhancement */
.featured-news-section {
  position: relative;
  overflow: hidden;
}

.featured-news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--rwanda-blue),
    var(--rwanda-yellow),
    var(--rwanda-green)
  );
  z-index: 1;
}

/* Rwanda Pattern Elements */
.rwanda-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: url("/assets/templates/basic/images/imigongo-pattern.svg");
  background-size: cover;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.agaseke-pattern {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    transparent 30%,
    var(--rwanda-blue-light) 31%,
    transparent 33%,
    transparent 70%,
    var(--rwanda-yellow) 71%,
    transparent 73%
  );
  background-size: 30px 30px;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.rwanda-flag-accent {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--rwanda-blue) 33%,
    var(--rwanda-yellow) 33%,
    var(--rwanda-yellow) 66%,
    var(--rwanda-green) 66%
  );
  opacity: 0.5;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.floating-shapes::before,
.floating-shapes::after {
  content: "";
  position: absolute;
  background-color: var(--rwanda-blue);
  border-radius: 50%;
  opacity: 0.05;
}

.floating-shapes::before {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -150px;
  animation: float-around 15s infinite alternate ease-in-out;
}

.floating-shapes::after {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -100px;
  animation: float-around 20s infinite alternate-reverse ease-in-out;
}

.magical-gradient-bg {
  background: linear-gradient(135deg, var(--rwanda-blue-dark) 0%, #2c3e50 100%);
  position: relative;
}

.magical-gradient-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/assets/templates/basic/images/imigongo-pattern.svg");
  background-size: cover;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.featured-news-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.featured-news-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("/assets/templates/basic/images/imigongo-pattern.svg");
  background-size: cover;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.featured-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(26, 82, 118, 0.2);
}

.featured-image {
  position: relative;
  overflow: hidden;
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--rwanda-blue);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.category-badge.pulse-element {
  animation: rwandaPulse 2s infinite;
}

.hover-zoom {
  transition: transform 0.5s ease;
}

.featured-news-card:hover .hover-zoom {
  transform: scale(1.05);
}

.featured-content {
  padding: 20px;
  position: relative;
  z-index: 1;
}

.featured-title {
  color: var(--rwanda-blue-dark);
  margin-bottom: 15px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.featured-news-card:hover .featured-title {
  color: var(--rwanda-blue);
}

.featured-excerpt {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}

.featured-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  color: #888;
}

.featured-meta span {
  display: flex;
  align-items: center;
}

.featured-meta .pulse-icon {
  color: var(--rwanda-blue);
  margin-right: 5px;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(
    45deg,
    var(--rwanda-blue-dark),
    var(--rwanda-blue)
  );
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-read-more i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-read-more:hover {
  background: linear-gradient(
    45deg,
    var(--rwanda-blue),
    var(--rwanda-blue-light)
  );
  color: white;
}

.btn-read-more:hover i {
  transform: translateX(5px);
}

/* News list item enhancements */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.news-item {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.news-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("/assets/templates/basic/images/imigongo-pattern.svg");
  background-size: cover;
  opacity: 0.02;
  z-index: 0;
  pointer-events: none;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(26, 82, 118, 0.15);
}

.news-thumbnail {
  width: 100px;
  height: 70px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-content {
  padding: 10px 15px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.news-title {
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--rwanda-blue-dark);
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: var(--rwanda-blue);
}

.news-time {
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
}

.news-time .pulse-icon {
  color: var(--rwanda-blue);
  margin-right: 5px;
}

/* Animations */
@keyframes rwandaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

@keyframes float-around {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 20px);
  }
  100% {
    transform: translate(-20px, 40px);
  }
}

.glow-text {
  text-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
}

.glow-text-subtle {
  text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

/* Magical 3D effect for cards */
.magical-card,
.magical-card-sm {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.magical-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s forwards ease;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.magical-button {
  position: relative;
  overflow: hidden;
}

.magical-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.magical-button:hover::after {
  animation: shimmer 1.5s infinite;
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

/* Imigongo pattern divider */
.imigongo-divider {
  height: 8px;
  background: url("/assets/templates/basic/images/imigongo-divider.svg")
    repeat-x;
  margin: 20px 0;
  opacity: 0.7;
}

.imigongo-divider.animated {
  animation: imigongoPulse 3s infinite alternate;
}

@keyframes imigongoPulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.9;
  }
}
