/* ========== MODERN WEBSITE STYLES ========== */

/* Global Styles */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.15s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #0b5ed7;
  text-decoration: none;
  font-weight: 600;
}

/* Header Styles */
.site-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: var(--border-radius);
}

/* Active menu item styles */
.navbar-nav .nav-link.active {
  background-color: var(--primary-color);
  color: white !important;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:focus {
  color: white !important;
}

.navbar-nav .nav-link.active:hover {
  background-color: #0b5ed7;
  color: white !important;
}

.dropdown-item.active {
  background-color: var(--primary-color);
  color: white;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: var(--border-radius);
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Article Rotation Section */
.featured-articles {
  background-color: var(--light-color);
  padding: 3rem 0;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.article-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  height: 400px;
  background: #000;
}

.article-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.article-slide.active {
  display: block;
}

.article-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-slide:hover img {
  transform: scale(1.05);
}

.article-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 2rem;
}

.article-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-controls {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 5px;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active,
.carousel-dot:hover {
  background-color: var(--primary-color);
}

.carousel-counter {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.carousel-counter .current-slide {
  color: var(--primary-color);
  font-weight: 600;
}

/* Call to Action Section */
.cta-section {
  padding: 3rem 0;
  background-color: white;
}

.cta-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

.cta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: white;
}

.cta-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Articles Section */
.articles-section {
  padding: 3rem 0;
  background-color: white;
  position: relative;
  z-index: 1;
}

.main-article {
  margin-bottom: 3rem;
}

.article-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.article-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.main-article .article-image {
  height: 300px;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 1.5rem;
}

.article-image-overlay h3 {
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.article-meta {
  font-size: 0.875rem;
  opacity: 0.8;
}

.archive-link {
  text-align: center;
  margin-top: 2rem;
}

.btn-outline-primary {
  border-width: 2px;
  font-weight: 500;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* Events Calendar Section */
.events-section {
  background-color: var(--light-color);
  padding: 3rem 0;
  min-height: 400px;
  position: relative;
  z-index: 1;
}

.event-item {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.event-item:hover {
  transform: translateX(5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.event-date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.875rem;
}

.event-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  font-weight: 600;
}

.event-description {
  color: var(--secondary-color);
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
}

.social-links a {
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-slide {
    height: 300px;
  }
  
  .article-overlay {
    padding: 1rem;
  }
  
  .article-overlay h3 {
    font-size: 1.25rem;
  }
  
  .cta-card {
    margin-bottom: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .article-slide {
    height: 250px;
  }
  
  .cta-icon {
    font-size: 2.5rem;
  }
}

/* Utility Classes */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== POLL WIDGET STYLES ========== */
.poll-section {
  padding: 2rem 0;
  background: #f8f9fa;
}

.poll-widget {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.poll-widget .card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
  color: white;
  padding: 1.25rem;
  border-bottom: none;
}

.poll-widget .card-header h5 {
  margin: 0;
  font-weight: 600;
}

.poll-widget .card-body {
  padding: 1.5rem;
}

.poll-widget .form-check {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.poll-widget .form-check:hover {
  border-color: var(--primary-color);
  background: #f8f9fa;
}

.poll-widget .form-check-input {
  margin-top: 0.5rem;
  cursor: pointer;
}

.poll-widget .form-check-label {
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}

.poll-widget .list-group-item {
  border: none;
  padding: 0.75rem 0;
  background: transparent;
}

.poll-widget .badge {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.poll-widget .btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ed7 100%);
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.poll-widget .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.poll-widget .alert {
  margin-bottom: 0;
  border-radius: 0.5rem;
}

/* Poll Results Progress Bars */
.poll-widget .progress {
  height: 2rem;
  border-radius: 0.5rem;
  background: #e9ecef;
  overflow: visible;
}

.poll-widget .progress-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, #0b5ed7 100%);
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  transition: width 0.6s ease;
}

/* Poll result item styling */
.poll-result-item {
  margin-bottom: 1.5rem;
}

.poll-result-item .result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.poll-result-item .result-text {
  font-weight: 600;
  font-size: 1rem;
}

.poll-result-item .result-stats {
  text-align: right;
  font-size: 0.9rem;
}

.poll-result-item .result-votes {
  font-weight: 700;
  color: var(--primary-color);
}

.poll-result-item .result-percentage {
  color: var(--secondary-color);
}

/* Responsive poll widget */
@media (max-width: 768px) {
  .poll-widget .card-body {
    padding: 1rem;
  }
  
  .poll-widget .form-check {
    padding: 0.5rem 0.75rem;
  }
  
  .poll-widget .btn-primary {
    width: 100%;
  }
}

/* ========== ADMIN ACTION BUTTONS ========== */
/* Apply styles to btn-group buttons (primarily in tables/admin) */
table .btn-group .btn {
  transition: all 0.2s ease-in-out;
  font-weight: 500;
}

table .btn-group .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

table .btn-group .btn i {
  transition: transform 0.2s ease-in-out;
}

table .btn-group .btn:hover i {
  transform: scale(1.1);
}

/* Better visibility for outline buttons in btn-group (admin tables) */
table .btn-group .btn-outline-primary {
  border-width: 2px;
}

table .btn-group .btn-outline-info {
  border-width: 2px;
}

table .btn-group .btn-outline-danger {
  border-width: 2px;
}

table .btn-group .btn-outline-success {
  border-width: 2px;
}

table .btn-group .btn-outline-secondary {
  border-width: 2px;
}

/* Tooltip animation */
[data-bs-toggle="tooltip"] {
  cursor: pointer;
}

/* Admin button group spacing */
.btn-group > .btn:not(:last-child),
.btn-group > .btn-group:not(:last-child) > .btn {
  border-right: 1px solid rgba(0,0,0,0.1);
}

/* Responsive text display */
@media (min-width: 1200px) {
  .btn-group .btn span {
    margin-left: 0.25rem;
  }
}
