:root {
  --primary-color: #990000;
  --secondary-color: #a70000;
  --accent-color: #400101;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --text-color: #374151;
  --border-color: #e5e7eb;
  --gradient-bg: linear-gradient(90deg, rgba(153, 0, 0, 1) 0%, rgba(167, 0, 0, 1) 48%, rgba(168, 0, 0, 1) 44%, rgba(64, 1, 1, 1) 100%);
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 76px;
}

/* Navigation */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  background: var(--gradient-bg) !important;
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,0 1000,300 1000,1000 0,700"/></svg>');
  background-size: cover;
}

.hero-graphic {
  text-align: center;
  position: relative;
}

.hero-graphic i {
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.1);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Articles Section */
.article-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  height: 100%;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.article-card .card-body {
  padding: 2rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.article-meta .badge {
  background: var(--gradient-bg);
  border: none;
  font-weight: 500;
  color: white;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
  line-height: 1.4;
}

.article-excerpt {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.read-more-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  color: var(--secondary-color);
  transform: translateX(4px);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

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

/* Modal Styles */
.modal-xl {
  max-width: 90%;
}

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: var(--gradient-bg);
  color: white;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
}

.modal-header .btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 2rem;
  line-height: 1.8;
}

.modal-body h2 {
  color: var(--dark-color);
  font-weight: 600;
  margin: 2rem 0 1rem 0;
}

.modal-body h3 {
  color: var(--primary-color);
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
}

.modal-body p {
  margin-bottom: 1.5rem;
}

.modal-body ul, .modal-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
}

.modal-body blockquote {
  background: var(--light-color);
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* Search */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(153, 0, 0, 0.25);
}

/* Buttons */
.btn-primary {
  background: var(--gradient-bg);
  border: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(153, 0, 0, 0.3);
  background: var(--gradient-bg);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* Footer */
footer .social-links a {
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .hero-graphic i {
    font-size: 6rem;
  }
  
  .article-card .card-body {
    padding: 1.5rem;
  }
  
  .modal-xl {
    max-width: 95%;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
}

/* Loading Animation */
.loading {
  text-align: center;
  padding: 3rem;
}

.loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}