/*
Theme Name: georgtheme
Description: Beschreibung deines Themes
Author: Lessnau
Version: 1.0
*/

/* CSS Custom Properties for School Colors */
:root {
  --school-orange: #f0a527;
  --school-orange-light: #fdf3e3;
  --school-orange-dark: #d89420;
  --school-green: #accf1b;
  --school-green-light: #f4f9e6;
  --school-green-dark: #96b517;
}

/* ============================================
   MODERN NAVBAR STYLES
   ============================================ */

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-green-dark, #96b517) 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 0 0 0.75rem 0.75rem;
  font-weight: 600;
  transition: top 0.3s ease;
  box-shadow: 0 4px 15px rgba(172, 207, 27, 0.4);
}

.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Site Header */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  z-index: 1030;
  border-bottom: 3px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)), 
                    linear-gradient(90deg, var(--school-green, #accf1b) 0%, var(--school-orange, #f0a527) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Site Footer */
.site-footer {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1030;
  border-top: 3px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98)), 
                    linear-gradient(90deg, var(--school-green, #accf1b) 0%, var(--school-orange, #f0a527) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Dark Mode: Footer */
[data-bs-theme="dark"] .site-footer {
  background: rgba(33, 37, 41, 0.98);
  background-image: linear-gradient(rgba(33, 37, 41, 0.98), rgba(33, 37, 41, 0.98)), 
                    linear-gradient(90deg, var(--school-green, #accf1b) 0%, var(--school-orange, #f0a527) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #dee2e6;
}

[data-bs-theme="dark"] .site-footer h5 {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .site-footer .text-body-secondary {
  color: rgba(255, 255, 255, 0.65) !important;
}

[data-bs-theme="dark"] .site-footer .nav-link {
  color: rgba(255, 255, 255, 0.65);
}

[data-bs-theme="dark"] .site-footer .nav-link:hover {
  color: var(--school-green, #accf1b);
}

/* Dark Mode: Background & Body */
[data-bs-theme="dark"] body {
  background-color: rgb(13, 17, 23) !important;
}

[data-bs-theme="dark"] .content2 {
  background-color: rgba(13, 17, 23, 0.80);
}

[data-bs-theme="dark"] .container-xxl.card {
  background: #212529;
  color: #dee2e6;
}

/* Modern Navbar */
.navbar-modern {
  padding: 0.75rem 0;
  min-height: 4.5rem;
  transition: all 0.3s ease;
}

/* Brand Styles */
.navbar-modern .navbar-brand {
  padding: 0.25rem 0;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-modern .navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-modern .navbar-brand:focus-visible {
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 4px;
  border-radius: 0.75rem;
}

.navbar-logo-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-orange, #f0a527) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.navbar-brand:hover .navbar-logo-wrapper::before {
  opacity: 0.2;
}

.navbar-logo {
  border-radius: 0.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: rotate(-3deg) scale(1.05);
}

.brand-text {
  line-height: 1.2;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bs-body-color, #212529);
  display: block;
  background: linear-gradient(135deg, var(--school-green-dark, #96b517) 0%, var(--school-orange-dark, #d89420) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6c757d);
  font-weight: 500;
  margin-top: 0.125rem;
}

/* Mobile Toggle Button - Animated Hamburger */
.navbar-modern .navbar-toggler {
  padding: 0.625rem;
  border-radius: 0.75rem;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.1) 0%, rgba(240, 165, 39, 0.1) 100%);
}

.navbar-modern .navbar-toggler:hover {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.2) 0%, rgba(240, 165, 39, 0.2) 100%);
}

.navbar-modern .navbar-toggler:focus {
  box-shadow: none;
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
}

.toggler-bar {
  display: block;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--school-green, #accf1b), var(--school-orange, #f0a527));
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated hamburger to X */
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Navigation Links */
.navbar-modern .navbar-nav .nav-item {
  position: relative;
}

.navbar-modern .navbar-nav .nav-link,
.navbar-modern .navbar-nav .menu-item > a {
  padding: 0.625rem 1rem;
  font-weight: 500;
  color: var(--bs-body-color, #212529);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.navbar-modern .navbar-nav .nav-link:hover,
.navbar-modern .navbar-nav .menu-item > a:hover {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.15) 0%, rgba(240, 165, 39, 0.1) 100%);
  color: var(--school-green-dark, #96b517);
}

.navbar-modern .navbar-nav .nav-link:focus-visible,
.navbar-modern .navbar-nav .menu-item > a:focus-visible {
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 2px;
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.1) 0%, rgba(240, 165, 39, 0.05) 100%);
}

/* Active/Current Page Indicator */
.navbar-modern .navbar-nav .current-menu-item > a,
.navbar-modern .navbar-nav .current_page_item > a,
.navbar-modern .navbar-nav [aria-current="page"] {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.2) 0%, rgba(240, 165, 39, 0.1) 100%);
  color: var(--school-green-dark, #96b517);
  font-weight: 600;
}

.navbar-modern .navbar-nav .current-menu-item > a::after,
.navbar-modern .navbar-nav .current_page_item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--school-green, #accf1b), var(--school-orange, #f0a527));
  border-radius: 3px 3px 0 0;
}

/* Current Parent Menu Item */
.navbar-modern .navbar-nav .current-menu-parent > a,
.navbar-modern .navbar-nav .current-page-parent > a {
  color: var(--school-green-dark, #96b517);
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.1) 0%, transparent 100%);
}

/* Dropdown Menu Styles */
.navbar-modern .dropdown-menu,
.navbar-modern .sub-menu {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 0.75rem;
  margin-top: 0.5rem;
  min-width: 220px;
  animation: dropdownFadeIn 0.2s ease;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--school-green, #accf1b), var(--school-orange, #f0a527)) 1;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar-modern .dropdown-menu .nav-link,
.navbar-modern .sub-menu li > a {
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
}

.navbar-modern .dropdown-menu .nav-link:hover,
.navbar-modern .sub-menu li > a:hover {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.15) 0%, rgba(240, 165, 39, 0.1) 100%);
}

/* Search Button */
.btn-search {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.15) 0%, rgba(240, 165, 39, 0.15) 100%);
  color: var(--school-green-dark, #96b517);
  transition: all 0.2s ease;
}

.btn-search:hover {
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-orange, #f0a527) 100%);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(172, 207, 27, 0.3);
}

.btn-search:focus-visible {
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

.btn-search .bi {
  font-size: 1.125rem;
}

/* Mobile search button in navbar bar */
.btn-search-bar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.btn-search__text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Search Collapse */
.search-collapse {
  background: linear-gradient(135deg, var(--school-green-light, #f4f9e6) 0%, var(--school-orange-light, #fdf3e3) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar-search-form .input-group {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  overflow: hidden;
}

.navbar-search-form .input-group-text {
  background: #fff;
  border: 2px solid rgba(172, 207, 27, 0.3);
  border-right: none;
  padding: 0.875rem 1rem;
  color: var(--school-green, #accf1b);
}

.navbar-search-form .form-control {
  border: 2px solid rgba(172, 207, 27, 0.3);
  border-left: none;
  border-right: none;
  padding: 0.875rem 0.5rem;
}

.navbar-search-form .form-control:focus {
  border-color: var(--school-green, #accf1b);
  box-shadow: none;
}

.navbar-search-form .form-control::placeholder {
  color: #adb5bd;
}

.btn-navbar-search {
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-green-dark, #96b517) 100%);
  color: #fff;
  border: 2px solid var(--school-green, #accf1b);
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-navbar-search:hover {
  background: linear-gradient(135deg, var(--school-green-dark, #96b517) 0%, var(--school-green, #accf1b) 100%);
  color: #fff;
  transform: translateX(2px);
}

.btn-navbar-search:focus {
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 2px;
  color: #fff;
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .navbar-modern {
    padding: 0.5rem 0;
  }

  .navbar-modern .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    margin: 1rem -0.75rem -0.5rem;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--school-green, #accf1b), var(--school-orange, #f0a527)) 1;
    max-height: 75vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-modern .navbar-nav {
    gap: 0.25rem;
  }

  .navbar-modern .navbar-nav .nav-link,
  .navbar-modern .navbar-nav .menu-item > a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    display: block;
    width: 100%;
    border-radius: 0.5rem;
  }

  .navbar-modern .navbar-nav .nav-item,
  .navbar-modern .navbar-nav .menu-item {
    width: 100%;
  }

  .navbar-modern .dropdown-menu,
  .navbar-modern .sub-menu {
    box-shadow: none;
    background: linear-gradient(135deg, rgba(172, 207, 27, 0.08) 0%, rgba(240, 165, 39, 0.05) 100%);
    margin: 0.25rem 0 0.5rem 1rem;
    padding: 0.5rem;
    border-top: none;
  }

  .navbar-modern .navbar-nav .current-menu-item > a::after,
  .navbar-modern .navbar-nav .current_page_item > a::after {
    left: 0;
    transform: none;
    width: 4px;
    height: calc(100% - 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    border-radius: 0 3px 3px 0;
  }

  .nav-search {
    border-top: 1px solid rgba(172, 207, 27, 0.2);
    padding-top: 1rem;
  }

  .nav-search .btn-search {
    width: 100%;
    border-radius: 0.75rem;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    height: auto;
  }

  .btn-search__text {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  
  .navbar-search-form .input-group {
    flex-direction: column;
    border-radius: 0.75rem;
  }
  
  .navbar-search-form .input-group-text {
    display: none;
  }
  
  .navbar-search-form .form-control {
    border: 2px solid rgba(172, 207, 27, 0.3);
    border-radius: 0.75rem 0.75rem 0 0;
    text-align: center;
  }
  
  .btn-navbar-search {
    border-radius: 0 0 0.75rem 0.75rem;
    width: 100%;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .navbar-modern .navbar-brand,
  .navbar-logo,
  .navbar-logo-wrapper::before,
  .toggler-bar,
  .navbar-modern .navbar-nav .nav-link,
  .navbar-modern .navbar-nav .menu-item > a,
  .btn-search,
  .btn-navbar-search,
  .navbar-modern .dropdown-menu,
  .navbar-modern .sub-menu {
    transition: none;
    animation: none;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .navbar-modern .navbar-nav .nav-link:focus-visible,
  .navbar-modern .navbar-nav .menu-item > a:focus-visible,
  .skip-link:focus,
  .navbar-modern .navbar-toggler:focus,
  .btn-search:focus-visible,
  .btn-navbar-search:focus {
    outline-width: 4px;
  }

  .navbar-modern .navbar-nav .current-menu-item > a,
  .navbar-modern .navbar-nav .current_page_item > a {
    border: 2px solid var(--school-green, #accf1b);
  }
  
  .site-header {
    border-bottom-width: 4px;
  }
}

/* Dark Mode Support for Navbar */
[data-bs-theme="dark"] .site-header {
  background: rgba(33, 37, 41, 0.98);
}

[data-bs-theme="dark"] .navbar-modern .navbar-collapse {
  background: rgba(33, 37, 41, 0.98);
}

[data-bs-theme="dark"] .brand-name {
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-orange, #f0a527) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-bs-theme="dark"] .brand-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] .navbar-modern .navbar-nav .nav-link,
[data-bs-theme="dark"] .navbar-modern .navbar-nav .menu-item > a {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .navbar-modern .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] .navbar-modern .navbar-nav .menu-item > a:hover {
  color: var(--school-green, #accf1b);
}

[data-bs-theme="dark"] .toggler-bar {
  background: linear-gradient(90deg, var(--school-green, #accf1b), var(--school-orange, #f0a527));
}

[data-bs-theme="dark"] .navbar-modern .dropdown-menu,
[data-bs-theme="dark"] .navbar-modern .sub-menu {
  background: rgba(33, 37, 41, 0.98);
}

[data-bs-theme="dark"] .search-collapse {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.1) 0%, rgba(240, 165, 39, 0.1) 100%);
}

[data-bs-theme="dark"] .navbar-search-form .input-group-text,
[data-bs-theme="dark"] .navbar-search-form .form-control {
  background: #2d3035;
  color: #f8f9fa;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #495057;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-theme-toggle:hover {
  background: var(--school-green-light, #f4f9e6);
  border-color: var(--school-green, #accf1b);
  color: var(--school-green-dark, #96b517);
  transform: scale(1.1);
}

.btn-theme-toggle:focus-visible {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

[data-bs-theme="dark"] .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8f9fa;
}

[data-bs-theme="dark"] .btn-theme-toggle:hover {
  background: rgba(240, 165, 39, 0.2);
  border-color: var(--school-orange, #f0a527);
  color: var(--school-orange, #f0a527);
}

/* ============================================
   END MODERN NAVBAR STYLES
   ============================================ */

@media all and (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: none;
  }

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

  .navbar .nav-item .dropdown-menu {
    margin-top: 0;
  }
}

@media all and (max-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: block;
    border: none;
    padding: 2em;
  }

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

  .navbar .nav-item .dropdown-menu {
    margin-top: 0;
  }
}


.icon-square {
  width: 3rem;
  height: 3rem;
  border-radius: .75rem;
}

.rss_image {
  border-radius: var(--bs-border-radius) !important;
}


.cardcolor {
  animation: slide 240s ease-in-out infinite alternate;
  background-image: linear-gradient(-45deg, #ACCF1B 50%, #F1A526 50%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  bottom: 0;
  left: -50%;
  opacity: .5;
  position: absolute;
  right: -50%;
  top: 0;
  position: fixed;
}

.bg2 {
  animation-direction: alternate-reverse;
  animation-duration: 320s;
}

.bg3 {
  animation-duration: 400s;
}

.content2 {
  background-color: rgba(255, 255, 255, .75);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  position: absolute;

}


@keyframes slide {
  0% {
    transform: translateX(-25%);
  }

  100% {
    transform: translateX(25%);
  }
}

.zoom {
  transition: transform .2s;
}

.zoom:hover {
  transform: scale(1.05);
}


/* ============================================
   MODERN SIDEBAR STYLES
   ============================================ */

/* Sidebar Container */
.sidebar-modern {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .sidebar-modern {
    padding: 1.5rem;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--school-green) transparent;
  }
  
  .sidebar-modern::-webkit-scrollbar {
    width: 6px;
  }
  
  .sidebar-modern::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .sidebar-modern::-webkit-scrollbar-thumb {
    background-color: var(--school-green);
    border-radius: 3px;
  }
}

/* Sidebar Widget Base */
.sidebar-widget {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-widget:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  .sidebar-widget:hover {
    transform: translateY(-2px);
  }
}

/* Widget Header */
.sidebar-widget__header {
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.sidebar-widget__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.sidebar-widget__header--green {
  background: linear-gradient(135deg, var(--school-green) 0%, var(--school-green-dark) 100%);
}

.sidebar-widget__header--orange {
  background: linear-gradient(135deg, var(--school-orange) 0%, var(--school-orange-dark) 100%);
}

.sidebar-widget__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
  z-index: 1;
}

.sidebar-widget__title .bi {
  font-size: 1.125rem;
}

/* Widget Content */
.sidebar-widget__content {
  padding: 1rem 1.25rem;
}

/* Search Widget Specific */
.sidebar-widget--search .sidebar-widget__content {
  padding: 1.25rem;
}

.sidebar-widget--search .search-form {
  display: flex;
  gap: 0;
}

.sidebar-widget--search .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-right: none;
  border-radius: 0.75rem 0 0 0.75rem;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.sidebar-widget--search .search-field:focus {
  outline: none;
  border-color: var(--school-green);
  box-shadow: 0 0 0 3px rgba(172, 207, 27, 0.2);
}

.sidebar-widget--search .search-submit {
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, var(--school-green) 0%, var(--school-green-dark) 100%);
  color: #fff;
  border: 2px solid var(--school-green);
  border-radius: 0 0.75rem 0.75rem 0;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sidebar-widget--search .search-submit:hover {
  background: linear-gradient(135deg, var(--school-green-dark) 0%, var(--school-green) 100%);
  transform: scale(1.02);
}

.sidebar-widget--search .search-submit:focus {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
}

/* Link List Styles */
.sidebar-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link-list__item {
  margin: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, var(--school-orange-light) 0%, #fff 100%);
  border-radius: 0.75rem;
  text-decoration: none;
  color: var(--bs-body-color, #212529);
  border: 1px solid rgba(240, 165, 39, 0.15);
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-link:hover {
  background: linear-gradient(135deg, var(--school-orange) 0%, var(--school-orange-dark) 100%);
  color: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(240, 165, 39, 0.3);
}

.sidebar-link:focus {
  outline: 3px solid var(--school-orange);
  outline-offset: 2px;
}

.sidebar-link .bi:first-child {
  font-size: 1.25rem;
  color: var(--school-orange);
  transition: color 0.2s ease;
}

.sidebar-link:hover .bi:first-child {
  color: #fff;
}

.sidebar-link__text {
  flex: 1;
}

.sidebar-link__external {
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.sidebar-link:hover .sidebar-link__external {
  opacity: 1;
}

/* Navigation List Styles */
.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-nav-list__item {
  margin: 0;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--bs-body-color, #212529);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9375rem;
  border-left: 3px solid transparent;
}

.sidebar-nav-link:hover {
  background: var(--school-green-light);
  color: var(--school-green-dark);
  border-left-color: var(--school-green);
  padding-left: calc(1rem + 4px);
}

.sidebar-nav-link:focus {
  outline: 3px solid var(--school-green);
  outline-offset: -3px;
  background: var(--school-green-light);
}

.sidebar-nav-link--active,
.sidebar-nav-link[aria-current="page"] {
  background: linear-gradient(90deg, var(--school-green-light) 0%, transparent 100%);
  color: var(--school-green-dark);
  border-left-color: var(--school-green);
  font-weight: 600;
}

.sidebar-nav-link__icon {
  font-size: 0.75rem;
  color: var(--school-green);
  transition: transform 0.2s ease;
}

.sidebar-nav-link:hover .sidebar-nav-link__icon {
  transform: translateX(3px);
}

/* WordPress Menu Integration */
.sidebar-nav-list .menu-item {
  list-style: none;
  margin: 0;
}

.sidebar-nav-list .menu-item > a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--bs-body-color, #212529);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9375rem;
  border-left: 3px solid transparent;
}

.sidebar-nav-list .menu-item > a:hover {
  background: var(--school-green-light);
  color: var(--school-green-dark);
  border-left-color: var(--school-green);
}

.sidebar-nav-list .menu-item > a:focus {
  outline: 3px solid var(--school-green);
  outline-offset: -3px;
}

.sidebar-nav-list .current-menu-item > a,
.sidebar-nav-list .current_page_item > a {
  background: linear-gradient(90deg, var(--school-green-light) 0%, transparent 100%);
  color: var(--school-green-dark);
  border-left-color: var(--school-green);
  font-weight: 600;
}

/* Category List Styles */
.sidebar-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sidebar-category-list li,
.sidebar-category-list .cat-item {
  list-style: none;
  margin: 0;
}

.sidebar-category-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: var(--school-orange-light);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--bs-body-color, #212529);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(240, 165, 39, 0.2);
  transition: all 0.2s ease;
}

.sidebar-category-list a:hover {
  background: var(--school-orange);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(240, 165, 39, 0.25);
}

.sidebar-category-list a:focus {
  outline: 3px solid var(--school-orange);
  outline-offset: 2px;
}

/* Category Count Badge */
.sidebar-category-list .count,
.sidebar-category-list a::after {
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  margin-left: 0.25rem;
}

.sidebar-category-list a:hover .count,
.sidebar-category-list a:hover::after {
  background: rgba(255, 255, 255, 0.25);
}

/* Meta List Styles */
.sidebar-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.sidebar-meta-list__item,
.sidebar-meta-list li {
  list-style: none;
  margin: 0;
}

.sidebar-meta-list a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  text-decoration: none;
  color: var(--bs-body-color, #212529);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-size: 0.9375rem;
}

.sidebar-meta-list a:hover {
  background: var(--school-green-light);
  color: var(--school-green-dark);
}

.sidebar-meta-list a:focus {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
  .sidebar-modern {
    padding: 1rem 0.75rem;
    gap: 1rem;
  }
  
  .sidebar-widget {
    border-radius: 0.75rem;
  }
  
  .sidebar-widget__header {
    padding: 0.75rem 1rem;
  }
  
  .sidebar-widget__title {
    font-size: 0.9375rem;
  }
  
  .sidebar-widget__content {
    padding: 0.875rem 1rem;
  }
  
  .sidebar-link {
    padding: 0.75rem;
  }
  
  .sidebar-category-list {
    gap: 0.375rem;
  }
  
  .sidebar-category-list a {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* Tablet - Two Column Layout */
@media (min-width: 576px) and (max-width: 991.98px) {
  .sidebar-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .sidebar-widget--search {
    grid-column: 1 / -1;
  }
  
  .sidebar-widget--navigation {
    grid-column: 1 / -1;
  }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .sidebar-widget {
  background: rgba(33, 37, 41, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .sidebar-widget__title {
  color: #fff;
}

[data-bs-theme="dark"] .sidebar-link {
  background: linear-gradient(135deg, rgba(240, 165, 39, 0.15) 0%, rgba(33, 37, 41, 0.95) 100%);
  color: #f8f9fa;
  border-color: rgba(240, 165, 39, 0.2);
}

[data-bs-theme="dark"] .sidebar-link:hover {
  color: #fff;
}

[data-bs-theme="dark"] .sidebar-nav-link {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .sidebar-nav-link:hover,
[data-bs-theme="dark"] .sidebar-nav-link--active {
  background: rgba(172, 207, 27, 0.15);
  color: var(--school-green);
}

[data-bs-theme="dark"] .sidebar-nav-list .menu-item > a {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .sidebar-nav-list .menu-item > a:hover {
  background: rgba(172, 207, 27, 0.15);
  color: var(--school-green);
}

[data-bs-theme="dark"] .sidebar-category-list a {
  background: rgba(240, 165, 39, 0.15);
  color: #f8f9fa;
  border-color: rgba(240, 165, 39, 0.2);
}

[data-bs-theme="dark"] .sidebar-category-list a:hover {
  background: var(--school-orange);
  color: #fff;
}

[data-bs-theme="dark"] .sidebar-meta-list a {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .sidebar-meta-list a:hover {
  background: rgba(172, 207, 27, 0.15);
  color: var(--school-green);
}

[data-bs-theme="dark"] .sidebar-widget--search .search-field {
  background: #2d3035;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8f9fa;
}

[data-bs-theme="dark"] .sidebar-widget--search .search-field:focus {
  border-color: var(--school-green);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .sidebar-widget {
    border: 2px solid currentColor;
  }
  
  .sidebar-widget__header {
    border-bottom: 2px solid currentColor;
  }
  
  .sidebar-link,
  .sidebar-nav-link,
  .sidebar-category-list a,
  .sidebar-meta-list a {
    border: 2px solid currentColor;
  }
  
  .sidebar-link:focus,
  .sidebar-nav-link:focus,
  .sidebar-category-list a:focus,
  .sidebar-meta-list a:focus {
    outline-width: 4px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .sidebar-widget,
  .sidebar-link,
  .sidebar-nav-link,
  .sidebar-nav-link__icon,
  .sidebar-category-list a,
  .sidebar-meta-list a,
  .sidebar-widget--search .search-field,
  .sidebar-widget--search .search-submit {
    transition: none;
  }
  
  .sidebar-widget:hover {
    transform: none;
  }
  
  .sidebar-link:hover {
    transform: none;
  }
  
  .sidebar-nav-link:hover .sidebar-nav-link__icon {
    transform: none;
  }
  
  .sidebar-category-list a:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  .sidebar-modern {
    display: none;
  }
}

/* ============================================
   MODERN COMMENTS STYLES
   School Colors: Orange #f0a527, Green #accf1b
   ============================================ */

/* Comments Section Container */
.comments-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Comments Header */
.comments-section__header {
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-green-dark, #96b517) 100%);
  padding: 1rem 1.25rem;
  border-radius: 1rem 1rem 0 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.comments-section__header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.comments-section__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.comments-section__title .bi {
  font-size: 1.25rem;
}

.comments-section__post-title {
  font-weight: 400;
  opacity: 0.9;
}

/* Comments List */
.comments-list-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

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

/* Individual Comment */
.comment-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.comment-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-body {
  background: linear-gradient(135deg, var(--school-green-light, #f4f9e6) 0%, #fff 100%);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(172, 207, 27, 0.15);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comment-body:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Comment by Post Author */
.comment-item[data-author="true"] .comment-body {
  background: linear-gradient(135deg, var(--school-orange-light, #fdf3e3) 0%, #fff 100%);
  border-color: rgba(240, 165, 39, 0.2);
}

/* Nested Comments */
.comment-item .children {
  list-style: none;
  margin: 1rem 0 0 1.5rem;
  padding: 0;
  border-left: 3px solid var(--school-green, #accf1b);
}

.comment-item .children .comment-item {
  margin-bottom: 1rem;
  padding-bottom: 0;
  border-bottom: none;
}

.comment-item .children .comment-body {
  background: rgba(255, 255, 255, 0.95);
}

.comment-item[data-depth="2"] .children {
  border-left-color: var(--school-orange, #f0a527);
}

/* Comment Header */
.comment-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.comment-avatar {
  flex-shrink: 0;
  position: relative;
}

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

.comment-avatar__badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--school-orange, #f0a527), var(--school-orange-dark, #d89420));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.comment-avatar__badge .bi {
  font-size: 0.625rem;
  color: #fff;
}

.comment-meta {
  flex: 1;
  min-width: 0;
}

.comment-author {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color, #212529);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comment-author a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-author a:hover {
  color: var(--school-green-dark, #96b517);
}

.comment-author a:focus {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
  border-radius: 2px;
}

.comment-author__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--school-orange, #f0a527), var(--school-orange-dark, #d89420));
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color, #6c757d);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.comment-date .bi {
  font-size: 0.75rem;
}

.comment-permalink {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--bs-secondary-color, #6c757d);
  text-decoration: none;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.comment-permalink:hover {
  background: var(--school-green-light, #f4f9e6);
  color: var(--school-green-dark, #96b517);
  opacity: 1;
}

.comment-permalink:focus {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
  opacity: 1;
}

/* Comment Content */
.comment-content {
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bs-body-color, #212529);
}

.comment-content p {
  margin: 0 0 0.75rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-content a {
  color: var(--school-green-dark, #96b517);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.comment-content a:hover {
  color: var(--school-orange, #f0a527);
}

.comment-content a:focus {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

.comment-awaiting-moderation {
  background: linear-gradient(135deg, rgba(240, 165, 39, 0.15), rgba(240, 165, 39, 0.05));
  border: 1px solid rgba(240, 165, 39, 0.3);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: var(--school-orange-dark, #d89420);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Comment Footer */
.comment-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-action a,
.comment-reply-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--bs-body-color, #212529);
  text-decoration: none;
  border-radius: 2rem;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.03);
}

.comment-action a:hover,
.comment-reply-link:hover {
  background: var(--school-green-light, #f4f9e6);
  color: var(--school-green-dark, #96b517);
}

.comment-action a:focus,
.comment-reply-link:focus {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

.comment-action--reply .comment-reply-link:hover {
  background: linear-gradient(135deg, var(--school-green, #accf1b), var(--school-green-dark, #96b517));
  color: #fff;
}

/* Comments Pagination */
.comments-pagination {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comments-pagination__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.comments-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bs-body-color, #212529);
  text-decoration: none;
  background: linear-gradient(135deg, var(--school-green-light, #f4f9e6), #fff);
  border: 1px solid rgba(172, 207, 27, 0.2);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.comments-pagination a:hover {
  background: linear-gradient(135deg, var(--school-green, #accf1b), var(--school-green-dark, #96b517));
  color: #fff;
  transform: translateX(2px);
}

.comments-pagination__prev a:hover {
  transform: translateX(-2px);
}

.comments-pagination a:focus {
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

/* Comments Closed / Empty States */
.comments-closed,
.comments-empty {
  background: linear-gradient(135deg, rgba(240, 165, 39, 0.1), rgba(240, 165, 39, 0.05));
  border: 1px solid rgba(240, 165, 39, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.comments-closed .bi,
.comments-empty .bi {
  font-size: 2.5rem;
  color: var(--school-orange, #f0a527);
  margin-bottom: 0.75rem;
  display: block;
}

.comments-closed p,
.comments-empty p {
  margin: 0;
  font-size: 1rem;
  color: var(--bs-body-color, #212529);
}

/* Comment Form Wrapper */
.comment-form-wrapper {
  margin-top: 2rem;
}

.comment-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.comment-form__title {
  background: linear-gradient(135deg, var(--school-orange, #f0a527) 0%, var(--school-orange-dark, #d89420) 100%);
  margin: 0;
  padding: 1rem 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.comment-form__title .bi {
  font-size: 1.25rem;
}

.comment-form__cancel {
  margin-left: auto;
}

.comment-form__cancel a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  transition: background 0.2s ease;
}

.comment-form__cancel a:hover {
  background: rgba(255, 255, 255, 0.3);
}

.comment-form__cancel a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.comment-form__form {
  padding: 1.25rem;
}

.comment-form__logged-in {
  background: var(--school-green-light, #f4f9e6);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.comment-form__logged-in a {
  color: var(--school-green-dark, #96b517);
  font-weight: 500;
}

.comment-form__logged-in a:hover {
  text-decoration: underline;
}

.comment-form__notes {
  background: rgba(172, 207, 27, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--bs-body-color, #212529);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.comment-form__notes .bi {
  flex-shrink: 0;
  color: var(--school-green, #accf1b);
  margin-top: 0.125rem;
}

.comment-form__required-note {
  color: var(--bs-secondary-color, #6c757d);
}

/* Form Fields */
.comment-form__field {
  margin-bottom: 1rem;
}

.comment-form__label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--bs-body-color, #212529);
}

.comment-form__label .required {
  color: var(--school-orange, #f0a527);
  margin-left: 0.125rem;
}

.comment-form__optional {
  font-weight: 400;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.8125rem;
}

.comment-form__input,
.comment-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.comment-form__input:focus,
.comment-form__textarea:focus {
  outline: none;
  border-color: var(--school-green, #accf1b);
  box-shadow: 0 0 0 3px rgba(172, 207, 27, 0.2);
}

.comment-form__input::placeholder,
.comment-form__textarea::placeholder {
  color: #adb5bd;
}

.comment-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkbox Field */
.comment-form__field--cookies {
  margin-top: 1.25rem;
}

.comment-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.5;
}

.comment-form__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.125rem;
  accent-color: var(--school-green, #accf1b);
  cursor: pointer;
}

.comment-form__checkbox:focus {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

/* Submit Button */
.comment-form__submit {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--school-green, #accf1b) 0%, var(--school-green-dark, #96b517) 100%);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(172, 207, 27, 0.3);
}

.btn-comment-submit:hover {
  background: linear-gradient(135deg, var(--school-green-dark, #96b517) 0%, var(--school-green, #accf1b) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(172, 207, 27, 0.4);
}

.btn-comment-submit:focus {
  outline: 3px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

.btn-comment-submit:active {
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 767.98px) {
  .comments-section__title {
    font-size: 1rem;
  }
  
  .comment-header {
    flex-wrap: wrap;
  }
  
  .comment-avatar__img {
    width: 40px;
    height: 40px;
  }
  
  .comment-author {
    font-size: 0.9375rem;
  }
  
  .comment-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .comments-pagination__inner {
    flex-direction: column;
  }
  
  .comments-pagination a {
    width: 100%;
    justify-content: center;
  }
  
  .comment-form__form {
    padding: 1rem;
  }
  
  .comment-form__submit {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-comment-submit {
    justify-content: center;
  }
  
  .comment-item .children {
    margin-left: 0.75rem;
  }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .comments-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .comments-list-wrapper,
[data-bs-theme="dark"] .comment-form,
[data-bs-theme="dark"] .comments-pagination {
  background: rgba(33, 37, 41, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .comment-body {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.1) 0%, rgba(33, 37, 41, 0.95) 100%);
  border-color: rgba(172, 207, 27, 0.2);
}

[data-bs-theme="dark"] .comment-item[data-author="true"] .comment-body {
  background: linear-gradient(135deg, rgba(240, 165, 39, 0.1) 0%, rgba(33, 37, 41, 0.95) 100%);
}

[data-bs-theme="dark"] .comment-author,
[data-bs-theme="dark"] .comment-content,
[data-bs-theme="dark"] .comment-form__label,
[data-bs-theme="dark"] .comments-closed p,
[data-bs-theme="dark"] .comments-empty p {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .comment-form__input,
[data-bs-theme="dark"] .comment-form__textarea {
  background: #2d3035;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8f9fa;
}

[data-bs-theme="dark"] .comment-form__logged-in,
[data-bs-theme="dark"] .comment-form__notes {
  background: rgba(172, 207, 27, 0.1);
}

[data-bs-theme="dark"] .comment-action a,
[data-bs-theme="dark"] .comment-reply-link {
  color: #f8f9fa;
  background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .comments-pagination a {
  background: rgba(172, 207, 27, 0.1);
  border-color: rgba(172, 207, 27, 0.2);
  color: #f8f9fa;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .comment-body,
  .comment-form,
  .comments-list-wrapper {
    border: 2px solid currentColor;
  }
  
  .comment-form__input:focus,
  .comment-form__textarea:focus,
  .btn-comment-submit:focus,
  .comment-action a:focus,
  .comment-reply-link:focus {
    outline-width: 4px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .comment-body,
  .comment-action a,
  .comment-reply-link,
  .comments-pagination a,
  .btn-comment-submit,
  .comment-form__input,
  .comment-form__textarea {
    transition: none;
  }
  
  .comment-body:hover,
  .btn-comment-submit:hover,
  .comments-pagination a:hover {
    transform: none;
  }
}

/* Print Styles for Comments */
@media print {
  .comment-form-wrapper,
  .comment-footer,
  .comment-permalink,
  .comments-pagination {
    display: none;
  }
  
  .comments-section {
    break-inside: avoid;
  }
}

/* ============================================
   MODERN HOMEPAGE STYLES - REFACTORED
   School Colors: Orange #f0a527, Green #accf1b
   ============================================ */

/* Homepage Main Container */
.homepage-main {
  background: linear-gradient(180deg, 
    rgba(172, 207, 27, 0.03) 0%, 
    rgba(240, 165, 39, 0.02) 50%,
    rgba(255, 255, 255, 0) 100%);
  min-height: 100vh;
}

/* ----------------------------------------
   HERO CAROUSEL - MODERN
   ---------------------------------------- */
.hero-section {
  position: relative;
}

.hero-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 25px rgba(0, 0, 0, 0.08);
  background: linear-gradient(135deg, var(--school-green) 0%, var(--school-orange) 100%);
  padding: 4px;
}

.hero-carousel-modern {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
}

.hero-carousel-modern .carousel-inner {
  border-radius: 1.25rem;
}

.hero-carousel-modern .carousel-item {
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.carousel-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.carousel-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.carousel-item.active .carousel-image-wrapper img {
  transform: scale(1.05);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

/* Carousel Controls Wrapper */
.carousel-controls-wrapper {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.hero-carousel-modern .carousel-control-prev,
.hero-carousel-modern .carousel-control-next {
  position: static;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--school-green-light) 0%, #fff 100%);
  border: 2px solid var(--school-green);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-carousel-modern .carousel-control-prev:hover,
.hero-carousel-modern .carousel-control-next:hover {
  background: linear-gradient(135deg, var(--school-green) 0%, var(--school-green-dark) 100%);
  transform: scale(1.1);
}

.hero-carousel-modern .carousel-control-prev:focus,
.hero-carousel-modern .carousel-control-next:focus {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
}

.carousel-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--school-green-dark);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.hero-carousel-modern .carousel-control-prev:hover .carousel-control-icon,
.hero-carousel-modern .carousel-control-next:hover .carousel-control-icon {
  color: #fff;
}

/* Carousel Indicators - Modern */
.carousel-indicators-modern {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
  position: static;
  z-index: auto;
}

.carousel-indicators-modern button {
  all: unset;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.4s ease,
              box-shadow 0.3s ease;
}

.carousel-indicators-modern button:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 2px var(--school-green, #accf1b);
}

.carousel-indicators-modern button.active {
  width: 28px;
  background: linear-gradient(90deg, var(--school-green, #accf1b), var(--school-orange, #f0a527));
  box-shadow: 0 2px 8px rgba(172, 207, 27, 0.4);
}

.carousel-indicators-modern button:focus-visible {
  outline: 2px solid var(--school-orange, #f0a527);
  outline-offset: 3px;
}

/* Pause Button - Modern */
.carousel-pause-btn-modern {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-pause-btn-modern:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-pause-btn-modern:focus {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
}

.carousel-pause-btn-modern .bi {
  font-size: 1.25rem;
  color: var(--school-green-dark);
}

.carousel-pause-btn-modern .play-icon {
  display: none;
}

.carousel-pause-btn-modern[data-playing="false"] .pause-icon {
  display: none;
}

.carousel-pause-btn-modern[data-playing="false"] .play-icon {
  display: block;
}

/* ----------------------------------------
   SECTION HEADERS - MODERN
   ---------------------------------------- */
.section-header-modern {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-title-modern {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bs-body-color, #212529);
  margin: 0;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  font-size: 1.25rem;
}

.section-icon--green {
  background: linear-gradient(135deg, var(--school-green) 0%, var(--school-green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(172, 207, 27, 0.3);
}

.section-icon--orange {
  background: linear-gradient(135deg, var(--school-orange) 0%, var(--school-orange-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(240, 165, 39, 0.3);
}

.section-subtitle {
  font-size: 0.9375rem;
  padding-left: calc(44px + 0.75rem);
}

/* ----------------------------------------
   QUICK LINKS - MODERN GRID
   ---------------------------------------- */
.quick-links-modern {
  padding: 2rem 0;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quick-link-item {
  margin: 0;
}

.quick-link-card-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.quick-link-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quick-link-card--green::before {
  background: linear-gradient(90deg, var(--school-green) 0%, var(--school-green-dark) 100%);
}

.quick-link-card--orange::before {
  background: linear-gradient(90deg, var(--school-orange) 0%, var(--school-orange-dark) 100%);
}

.quick-link-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.quick-link-card-modern:hover::before {
  opacity: 1;
}

.quick-link-card--green:hover {
  border-color: var(--school-green);
}

.quick-link-card--orange:hover {
  border-color: var(--school-orange);
}

.quick-link-card-modern:focus {
  outline: none;
}

.quick-link-card-modern:focus-visible {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
  transform: translateY(-4px);
}

.quick-link-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 60px;
  transition: transform 0.3s ease;
}

.quick-link-card-modern:hover .quick-link-icon-wrapper {
  transform: scale(1.1);
}

.quick-link-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.quick-link-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-link-title-modern {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bs-body-color, #212529);
  transition: color 0.2s ease;
}

.quick-link-card--green:hover .quick-link-title-modern {
  color: var(--school-green-dark);
}

.quick-link-card--orange:hover .quick-link-title-modern {
  color: var(--school-orange-dark);
}

.quick-link-desc-modern {
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
}

.quick-link-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bs-light, #f8f9fa);
  color: var(--bs-secondary-color, #6c757d);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.quick-link-card--green:hover .quick-link-arrow {
  background: var(--school-green);
  color: #fff;
  transform: translateX(4px);
}

.quick-link-card--orange:hover .quick-link-arrow {
  background: var(--school-orange);
  color: #fff;
  transform: translateX(4px);
}

/* ----------------------------------------
   NEWS SECTION - MODERN
   ---------------------------------------- */
.news-section-modern {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.news-feed-modern {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Archive: 2-column grid on desktop, list on mobile */
@media (min-width: 768px) {
  .archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .archive-grid .news-card-inner {
    flex-direction: column;
    height: 100%;
  }

  .archive-grid .news-thumbnail-modern {
    width: 100%;
    height: 160px;
    border-radius: 0.75rem 0.75rem 0 0;
  }

  .archive-grid .news-card-inner:hover {
    transform: translateY(-4px);
  }
}

/* Posts Pagination */
.navigation.pagination {
  margin: 2rem 0 1rem;
}

.navigation.pagination .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.9);
  color: #495057;
  border: 1.5px solid rgba(172, 207, 27, 0.25);
}

.navigation.pagination a.page-numbers:hover {
  background: var(--school-green-light, #f4f9e6);
  border-color: var(--school-green, #accf1b);
  color: var(--school-green-dark, #96b517);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(172, 207, 27, 0.2);
}

.navigation.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--school-green, #accf1b), var(--school-orange, #f0a527));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(172, 207, 27, 0.3);
}

.navigation.pagination .page-numbers.dots {
  background: transparent;
  border-color: transparent;
  color: #adb5bd;
  min-width: auto;
  padding: 0 0.25rem;
}

.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  font-weight: 600;
  gap: 0.25rem;
}

.navigation.pagination .page-numbers:focus-visible {
  outline: 2px solid var(--school-green, #accf1b);
  outline-offset: 2px;
}

[data-bs-theme="dark"] .navigation.pagination .page-numbers {
  background: rgba(255, 255, 255, 0.08);
  color: #dee2e6;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .navigation.pagination a.page-numbers:hover {
  background: rgba(172, 207, 27, 0.15);
  border-color: var(--school-green, #accf1b);
  color: var(--school-green, #accf1b);
}

[data-bs-theme="dark"] .navigation.pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--school-green, #accf1b), var(--school-orange, #f0a527));
  color: #fff;
  border-color: transparent;
}

@media (max-width: 575.98px) {
  .navigation.pagination .page-numbers {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
  }
}

.news-card-modern {
  position: relative;
}

.news-card-inner {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--school-green-light) 100%);
  border-radius: 1rem;
  border: 1px solid rgba(172, 207, 27, 0.15);
  transition: all 0.3s ease;
}

.news-card-inner:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(172, 207, 27, 0.15);
  border-color: var(--school-green);
}

.news-card-inner:focus-within {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
}

.news-thumbnail-modern {
  position: relative;
  flex-shrink: 0;
  width: 120px;
  height: 100px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bs-light, #f8f9fa);
}

.news-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card-inner:hover .news-thumbnail-img {
  transform: scale(1.08);
}

.news-thumbnail-placeholder-modern {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--school-green-light) 0%, #fff 100%);
  color: var(--school-green);
  font-size: 2rem;
}

.news-category-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.25rem 0.625rem;
  background: linear-gradient(135deg, var(--school-orange) 0%, var(--school-orange-dark) 100%);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.news-content-modern {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-header {
  margin-bottom: 0.5rem;
}

.news-date-modern {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-bottom: 0.375rem;
}

.news-date-modern .bi {
  color: var(--school-green);
}

.news-title-modern {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.news-link {
  color: var(--bs-body-color, #212529);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-link:hover {
  color: var(--school-green-dark);
}

.news-link:focus {
  outline: none;
}

.news-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-excerpt-modern {
  flex: 1;
  font-size: 0.875rem;
  color: var(--bs-secondary-color, #6c757d);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt-modern p {
  margin: 0;
}

.news-footer-modern {
  margin-top: auto;
  padding-top: 0.5rem;
}

.read-more-modern {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--school-green-dark);
  transition: all 0.2s ease;
}

.news-card-inner:hover .read-more-modern {
  color: var(--school-green);
  transform: translateX(4px);
}

.read-more-modern .bi {
  transition: transform 0.2s ease;
}

.news-card-inner:hover .read-more-modern .bi {
  transform: translateX(4px);
}

/* View All Posts Button */
.news-view-all {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--school-green) 0%, var(--school-green-dark) 100%);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(172, 207, 27, 0.3);
}

.btn-view-all:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(172, 207, 27, 0.4);
}

.btn-view-all:focus {
  outline: 3px solid var(--school-green);
  outline-offset: 2px;
  color: #fff;
}

/* Empty State */
.news-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--bs-secondary-color, #6c757d);
}

.news-empty-state .bi {
  font-size: 3rem;
  color: var(--school-green);
  margin-bottom: 1rem;
  display: block;
}

.news-empty-state p {
  margin: 0;
  font-size: 1.125rem;
}

/* Additional Widgets */
.additional-widgets-modern {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Dark Mode: Plugin widget areas get a light card background so dark text stays readable */
[data-bs-theme="dark"] .additional-widgets-modern,
[data-bs-theme="dark"] .sidebar-widget--calendar .sidebar-widget__content {
  background: #e9ecef;
  border-radius: 0.75rem;
  padding: 1rem;
  color: #212529;
}

[data-bs-theme="dark"] .additional-widgets-modern a,
[data-bs-theme="dark"] .sidebar-widget--calendar .sidebar-widget__content a {
  color: var(--school-green-dark, #96b517);
}

/* ----------------------------------------
   CALENDAR WIDGET - ENHANCED
   ---------------------------------------- */
.sidebar-widget--calendar .sidebar-widget__content {
  padding: 0.75rem;
}

/* ----------------------------------------
   RESPONSIVE STYLES
   ---------------------------------------- */

/* Large Tablets and Small Desktops */
@media (max-width: 1199.98px) {
  .quick-links-grid {
    gap: 1rem;
  }
  
  .quick-link-card-modern {
    padding: 1rem 1.25rem;
  }
  
  .quick-link-icon-wrapper {
    width: 70px;
    height: 50px;
  }
}

/* Tablets */
@media (max-width: 991.98px) {
  .quick-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .quick-link-card-modern {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
  
  .quick-link-icon-wrapper {
    width: 90px;
    height: 60px;
  }
  
  .quick-link-content {
    align-items: center;
  }
  
  .quick-link-arrow {
    display: none;
  }
  
  .carousel-image-wrapper {
    aspect-ratio: 16 / 8;
  }
}

/* Small Tablets */
@media (max-width: 767.98px) {
  .hero-wrapper {
    border-radius: 1rem;
    padding: 3px;
  }
  
  .hero-carousel-modern {
    border-radius: 0.75rem;
  }
  
  .carousel-image-wrapper {
    aspect-ratio: 16 / 9;
  }
  
  .carousel-controls-wrapper {
    bottom: 1rem;
    padding: 0.375rem 0.75rem;
    gap: 0.5rem;
  }
  
  .hero-carousel-modern .carousel-control-prev,
  .hero-carousel-modern .carousel-control-next {
    width: 36px;
    height: 36px;
  }
  
  .carousel-control-icon {
    font-size: 1rem;
  }
  
  .carousel-indicators-modern button {
    width: 5px;
    height: 5px;
  }
  
  .carousel-indicators-modern button.active {
    width: 16px;
  }
  
  .carousel-indicators-modern {
    gap: 0.4rem;
  }
  
  .carousel-pause-btn-modern {
    width: 38px;
    height: 38px;
    top: 0.75rem;
    right: 0.75rem;
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .quick-link-card-modern {
    flex-direction: row;
    text-align: left;
    padding: 1rem 1.25rem;
  }
  
  .quick-link-icon-wrapper {
    width: 60px;
    height: 45px;
  }
  
  .quick-link-content {
    align-items: flex-start;
  }
  
  .quick-link-arrow {
    display: flex;
  }
  
  .section-title-modern {
    font-size: 1.25rem;
  }
  
  .section-icon {
    width: 38px;
    height: 38px;
    font-size: 1.125rem;
  }
  
  .section-subtitle {
    padding-left: calc(38px + 0.75rem);
    font-size: 0.875rem;
  }
  
  .news-section-modern {
    padding: 1rem;
    border-radius: 1rem;
  }
  
  .news-card-inner {
    padding: 0.875rem;
    gap: 0.75rem;
  }
  
  .news-thumbnail-modern {
    width: 90px;
    height: 80px;
  }
  
  .news-title-modern {
    font-size: 0.9375rem;
  }
  
  .news-excerpt-modern {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
  }
  
  .news-category-badge {
    font-size: 0.625rem;
    padding: 0.1875rem 0.5rem;
  }
}

/* Small Mobile */
@media (max-width: 575.98px) {
  .carousel-controls-wrapper {
    padding: 0.25rem 0.5rem;
    gap: 0.375rem;
  }
  
  .hero-carousel-modern .carousel-control-prev,
  .hero-carousel-modern .carousel-control-next {
    width: 32px;
    height: 32px;
  }
  
  .carousel-control-icon {
    font-size: 0.875rem;
  }
  
  .quick-link-card-modern {
    padding: 0.875rem 1rem;
  }
  
  .quick-link-icon-wrapper {
    width: 50px;
    height: 38px;
  }
  
  .quick-link-title-modern {
    font-size: 1rem;
  }
  
  .quick-link-desc-modern {
    font-size: 0.8125rem;
  }
  
  .quick-link-arrow {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .news-thumbnail-modern {
    width: 80px;
    height: 70px;
    border-radius: 0.5rem;
  }
  
  .news-title-modern {
    font-size: 0.875rem;
  }
  
  .news-date-modern {
    font-size: 0.6875rem;
  }
  
  .news-excerpt-modern {
    display: none;
  }
  
  .news-footer-modern {
    padding-top: 0.25rem;
  }
  
  .read-more-modern {
    font-size: 0.75rem;
  }
}

/* ----------------------------------------
   ACCESSIBILITY & MOTION PREFERENCES
   ---------------------------------------- */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-modern .carousel-item {
    transition: opacity 0.3s ease;
  }
  
  .carousel-image-wrapper img {
    transition: none;
    transform: none !important;
  }
  
  .carousel-item.active .carousel-image-wrapper img {
    transform: none;
  }
  
  .quick-link-card-modern,
  .quick-link-icon-wrapper,
  .quick-link-arrow,
  .news-card-inner,
  .news-thumbnail-img,
  .read-more-modern,
  .read-more-modern .bi,
  .btn-view-all,
  .carousel-pause-btn-modern,
  .hero-carousel-modern .carousel-control-prev,
  .hero-carousel-modern .carousel-control-next,
  .carousel-indicators-modern button {
    transition: none;
  }
  
  .quick-link-card-modern:hover,
  .news-card-inner:hover,
  .btn-view-all:hover,
  .carousel-pause-btn-modern:hover,
  .hero-carousel-modern .carousel-control-prev:hover,
  .hero-carousel-modern .carousel-control-next:hover {
    transform: none;
  }
  
  .news-card-inner:hover .news-thumbnail-img,
  .quick-link-card-modern:hover .quick-link-icon-wrapper,
  .quick-link-card--green:hover .quick-link-arrow,
  .quick-link-card--orange:hover .quick-link-arrow,
  .news-card-inner:hover .read-more-modern,
  .news-card-inner:hover .read-more-modern .bi {
    transform: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .hero-wrapper {
    padding: 2px;
    border: 3px solid currentColor;
  }
  
  .quick-link-card-modern {
    border: 2px solid currentColor;
  }
  
  .quick-link-card-modern:focus-visible {
    outline-width: 4px;
  }
  
  .news-card-inner {
    border: 2px solid currentColor;
  }
  
  .news-card-inner:focus-within {
    outline-width: 4px;
  }
  
  .carousel-indicators-modern button {
    box-shadow: 0 0 0 2px var(--school-green);
  }
  
  .carousel-pause-btn-modern:focus,
  .hero-carousel-modern .carousel-control-prev:focus,
  .hero-carousel-modern .carousel-control-next:focus {
    outline-width: 4px;
  }
  
  .btn-view-all:focus {
    outline-width: 4px;
  }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .homepage-main {
  background: linear-gradient(180deg, 
    rgba(172, 207, 27, 0.05) 0%, 
    rgba(240, 165, 39, 0.03) 50%,
    rgba(0, 0, 0, 0) 100%);
}

[data-bs-theme="dark"] .quick-link-card-modern {
  background: linear-gradient(135deg, #2d3035 0%, #212529 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .quick-link-title-modern {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .quick-link-arrow {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] .news-section-modern {
  background: #2d3035;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .news-card-inner {
  background: linear-gradient(135deg, #212529 0%, rgba(172, 207, 27, 0.1) 100%);
  border-color: rgba(172, 207, 27, 0.2);
}

[data-bs-theme="dark"] .news-link {
  color: #f8f9fa;
}

[data-bs-theme="dark"] .news-thumbnail-placeholder-modern {
  background: linear-gradient(135deg, rgba(172, 207, 27, 0.1) 0%, #2d3035 100%);
}

[data-bs-theme="dark"] .carousel-controls-wrapper {
  background: rgba(33, 37, 41, 0.95);
}

[data-bs-theme="dark"] .hero-carousel-modern .carousel-control-prev,
[data-bs-theme="dark"] .hero-carousel-modern .carousel-control-next {
  background: linear-gradient(135deg, #2d3035 0%, #212529 100%);
}

[data-bs-theme="dark"] .carousel-control-icon {
  color: var(--school-green);
}

[data-bs-theme="dark"] .carousel-pause-btn-modern {
  background: rgba(33, 37, 41, 0.9);
}

[data-bs-theme="dark"] .carousel-pause-btn-modern .bi {
  color: var(--school-green);
}

/* Print Styles */
@media print {
  .hero-section,
  .quick-links-modern,
  .carousel-controls-wrapper,
  .carousel-pause-btn-modern,
  .quick-link-arrow,
  .read-more-modern,
  .news-view-all {
    display: none !important;
  }
  
  .news-section-modern {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .news-card-inner {
    break-inside: avoid;
    border: 1px solid #ccc;
  }
}
