/* 
 * PPID SMAN 1 Lubuk Sikaping - Modern CSS
 * Using CSS Variables, Flexbox, Grid, and other modern CSS features
 */

/* ===== CSS RESET & NORMALIZE ===== */
:root {
  /* Base colors */
  --color-primary: #0056b3;
  --color-primary-dark: #004494;
  --color-primary-light: #3380c5;
  --color-secondary: #6c757d;
  --color-success: #28a745;
  --color-info: #17a2b8;
  --color-warning: #ffc107;
  --color-danger: #dc3545;
  --color-light: #f8f9fa;
  --color-dark: #343a40;
  
  /* Legacy variable names for compatibility */
  --primary-color: var(--color-primary);
  --primary-dark: var(--color-primary-dark);
  --secondary-color: var(--color-secondary);
  --accent-color: var(--color-primary);
  --accent-color-rgb: 0, 86, 179; /* RGB values for --color-primary (#0056b3) */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Text colors */
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-muted: #999;
  --text-light: #f8f9fa;
  --text-dark: #212529;

  /* Background colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;

  /* Border colors */
  --border-color: #dee2e6;
  --border-radius: 0.25rem;
  --border-radius-lg: 0.5rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;

  /* Typography */
  --font-family-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Open Sans", "Helvetica Neue", sans-serif;
  --font-family-serif: Georgia, "Times New Roman", Times, serif;
  --font-family-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Font sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 150ms;
  --transition-normal: 300ms;
  --transition-slow: 500ms;

  /* Z-index */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
}

/* CSS Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-sans);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Container responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

/* Typography - Cleaned up */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    -webkit-border-radius: var(--border-radius);
    -moz-border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    border: none;
    text-decoration: none;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    background: -webkit-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: -moz-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: -ms-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: -o-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    -webkit-box-shadow: var(--shadow);
    -moz-box-shadow: var(--shadow);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    background: -webkit-linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    background: -moz-linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    background: -ms-linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    background: -o-linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: var(--shadow-lg);
    -moz-box-shadow: var(--shadow-lg);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Light Theme Only - Dark theme support removed */

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0 !important;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: var(--spacing-md) 0;
  background: transparent;
}

.navbar-brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-brand:hover {
  color: var(--color-primary-dark) !important;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav-item {
  list-style: none;
}

.nav-link {
  color: var(--text-primary) !important;
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  transition: all var(--transition-normal) ease;
  font-weight: var(--font-weight-medium);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary) !important;
  background-color: var(--bg-secondary);
}

.navbar-toggler {
  border: none;
  background: none;
  padding: var(--spacing-sm);
  cursor: pointer;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: var(--primary-color);
    background: -webkit-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: -moz-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: -ms-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: -o-linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    background-size: 400% 400%;
    -webkit-animation: gradientShift 8s ease-in-out infinite;
    -moz-animation: gradientShift 8s ease-in-out infinite;
    -ms-animation: gradientShift 8s ease-in-out infinite;
    -o-animation: gradientShift 8s ease-in-out infinite;
    animation: gradientShift 8s ease-in-out infinite;
    color: white;
    padding: 4rem 0 2rem 0;
    position: relative;
    overflow: hidden;
}

@-webkit-keyframes gradientShift {
    0% {
        background: -webkit-linear-gradient(135deg, #3b82f6 0%, #1e40af 25%, #7c3aed 50%, #db2777 75%, #dc2626 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    25% {
        background: -webkit-linear-gradient(135deg, #1e40af 0%, #7c3aed 25%, #db2777 50%, #dc2626 75%, #ea580c 100%);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    50% {
        background: -webkit-linear-gradient(135deg, #7c3aed 0%, #db2777 25%, #dc2626 50%, #ea580c 75%, #059669 100%);
        background-size: 400% 400%;
        background-position: 50% 100%;
    }
    75% {
        background: -webkit-linear-gradient(135deg, #db2777 0%, #dc2626 25%, #ea580c 50%, #059669 75%, #3b82f6 100%);
        background-size: 400% 400%;
        background-position: 0% 0%;
    }
    100% {
        background: -webkit-linear-gradient(135deg, #3b82f6 0%, #1e40af 25%, #7c3aed 50%, #db2777 75%, #dc2626 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

@-moz-keyframes gradientShift {
    0% {
        background: -moz-linear-gradient(135deg, #3b82f6 0%, #1e40af 25%, #7c3aed 50%, #db2777 75%, #dc2626 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    25% {
        background: -moz-linear-gradient(135deg, #1e40af 0%, #7c3aed 25%, #db2777 50%, #dc2626 75%, #ea580c 100%);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    50% {
        background: -moz-linear-gradient(135deg, #7c3aed 0%, #db2777 25%, #dc2626 50%, #ea580c 75%, #059669 100%);
        background-size: 400% 400%;
        background-position: 50% 100%;
    }
    75% {
        background: -moz-linear-gradient(135deg, #db2777 0%, #dc2626 25%, #ea580c 50%, #059669 75%, #3b82f6 100%);
        background-size: 400% 400%;
        background-position: 0% 0%;
    }
    100% {
        background: -moz-linear-gradient(135deg, #3b82f6 0%, #1e40af 25%, #7c3aed 50%, #db2777 75%, #dc2626 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

@keyframes gradientShift {
    0% {
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 25%, #7c3aed 50%, #db2777 75%, #dc2626 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
    25% {
        background: linear-gradient(135deg, #1e40af 0%, #7c3aed 25%, #db2777 50%, #dc2626 75%, #ea580c 100%);
        background-size: 400% 400%;
        background-position: 100% 50%;
    }
    50% {
        background: linear-gradient(135deg, #7c3aed 0%, #db2777 25%, #dc2626 50%, #ea580c 75%, #059669 100%);
        background-size: 400% 400%;
        background-position: 50% 100%;
    }
    75% {
        background: linear-gradient(135deg, #db2777 0%, #dc2626 25%, #ea580c 50%, #059669 75%, #3b82f6 100%);
        background-size: 400% 400%;
        background-position: 0% 0%;
    }
    100% {
        background: linear-gradient(135deg, #3b82f6 0%, #1e40af 25%, #7c3aed 50%, #db2777 75%, #dc2626 100%);
        background-size: 400% 400%;
        background-position: 0% 50%;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-section::after {
    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 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.hero-content .lead {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Quick Access Cards */
/* Quick Menu PPID Styles */
.quick-menu-ppid {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.quick-menu-card {
    display: block;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 140px;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.quick-menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.quick-menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.quick-menu-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: white;
}

.quick-menu-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.quick-menu-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    margin-bottom: 0;
}

/* Color Variants */
.quick-menu-card.bg-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.quick-menu-card.bg-green {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
}

.quick-menu-card.bg-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.quick-menu-card.bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.quick-menu-card.bg-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.quick-menu-card.bg-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
}

.quick-menu-card.bg-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
}

.quick-menu-card.bg-pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.quick-menu-card.bg-yellow {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.quick-menu-card.bg-emerald {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Quick Menu Container */
.quick-menu-ppid .container {
    max-width: 1200px;
}

/* Responsive Design for Quick Menu */
@media (min-width: 1400px) {
    .quick-menu-ppid .row {
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (max-width: 1199px) {
    .quick-menu-card {
        min-height: 130px;
    }
}

@media (max-width: 991px) {
    .quick-menu-card {
        min-height: 125px;
        padding: 1.25rem 0.875rem;
    }
    
    .quick-menu-title {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .quick-menu-ppid {
        padding: 3rem 0;
    }
    
    .quick-menu-card {
        min-height: 120px;
        padding: 1rem 0.75rem;
    }
    
    .quick-menu-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .quick-menu-title {
        font-size: 0.8rem;
    }
    
    .quick-menu-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .quick-menu-ppid {
        padding: 2.5rem 0;
    }
    
    .quick-menu-card {
        min-height: 110px;
        padding: 0.875rem 0.625rem;
        margin-bottom: 0.75rem;
    }
    
    .quick-menu-icon {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }
    
    .quick-menu-title {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
    }
    
    .quick-menu-desc {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .quick-menu-card {
        min-height: 100px;
        padding: 0.75rem 0.5rem;
    }
    
    .quick-menu-icon {
        font-size: 1.3rem;
    }
    
    .quick-menu-title {
        font-size: 0.7rem;
    }
    
    .quick-menu-desc {
        font-size: 0.6rem;
    }
}

/* Legacy quick-access styles for backward compatibility */
.quick-access {
    padding: 5rem 0;
    background: var(--gray-50);
}

.quick-access-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-access-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    text-decoration: none;
}

.quick-access-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.quick-access-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.quick-access-desc {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* News Section */
.news-section {
    padding: 5rem 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card img,
.news-card .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.no-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-bottom: 1px solid #e9ecef;
}

.no-image-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.news-card-body {
    padding: 1.5rem;
}

.news-date {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-excerpt {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    position: relative;
}

.stats-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 100" fill="%23ffffff" opacity="0.05"><circle cx="50" cy="50" r="40"/><circle cx="150" cy="30" r="20"/><circle cx="250" cy="70" r="30"/></svg>');
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Fasilitas Section */
.fasilitas-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.fasilitas-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.fasilitas-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.fasilitas-card .card-body {
    padding: 2rem 1.5rem;
}

.fasilitas-icon {
    transition: all 0.3s ease;
}

.fasilitas-card:hover .fasilitas-icon {
    transform: scale(1.1);
}

.fasilitas-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.fasilitas-card .card-text {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .fasilitas-section {
        padding: 3rem 0;
    }
    
    .fasilitas-card .card-body {
        padding: 1.5rem 1rem;
    }
    
    .fasilitas-icon i {
        font-size: 2.5rem !important;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: 1rem 1rem 0 0 !important;
    border: none;
    font-weight: 600;
}

/* Button Styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

/* Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.stats-card .stats-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stats-card .stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card .stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* News Cards */
.news-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-meta {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.news-meta i {
    margin-right: 0.25rem;
}

/* Quick Access Cards */
.quick-access-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.quick-access-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quick-access-card h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.quick-access-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Banner Styles */
.banner-carousel .carousel-item {
    height: 400px;
}

.banner-carousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
}

/* Form Styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Table Styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.5rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert Styles */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

footer .social-links a {
    transition: color 0.3s ease;
}

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

footer .footer-links a {
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: white !important;
}

/* Floating Buttons */
.btn-floating {
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.whatsapp-float {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Search Results */
.search-result {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.search-result h5 {
    color: var(--primary-color);
}

.search-result .text-muted {
    font-size: 0.875rem;
}

/* Document List */
.document-item {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.document-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.document-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .quick-access-card {
        margin-bottom: 1rem;
    }
    
    .banner-carousel .carousel-item {
        height: 250px;
    }
    
    .btn-floating {
        width: 48px;
        height: 48px;
    }
    
    .whatsapp-float {
        bottom: 70px !important;
        right: 15px !important;
    }
    
    #btn-back-to-top {
        bottom: 15px !important;
        right: 15px !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stats-card .stats-number {
        font-size: 2rem;
    }
    
    .stats-card .stats-icon {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn-floating,
    .whatsapp-float {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 2rem 0 1rem;
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer p {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 1rem 0;
    margin-top: 1rem;
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-link {
    width: 32px;
    height: 32px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Newsletter Form */
.newsletter-form .input-group {
    margin-bottom: 0.5rem;
}

.newsletter-form .form-control {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--gray-300);
    border-radius: 0.5rem 0 0 0.5rem;
}

.newsletter-form .form-control:focus {
    background: var(--gray-800);
    border-color: var(--primary-color);
    color: var(--gray-300);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.newsletter-form .form-control::placeholder {
    color: var(--gray-500);
}

.newsletter-form .btn {
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 0.5rem 1rem;
}

/* Footer responsive improvements */
@media (max-width: 768px) {
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .footer-bottom .col-md-6:first-child {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        text-align: center !important;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .quick-access,
    .news-section,
    .stats-section {
        padding: 3rem 0;
    }
    
    .navbar-nav {
        background: white;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .quick-access-card {
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .quick-access,
    .news-section,
    .stats-section {
        padding: 2rem 0;
    }
    
    .quick-access-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.shadow-custom {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Agenda PPID Styles */
.agenda-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.agenda-card {
    transition: all 0.3s ease;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.agenda-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.agenda-card .card-header {
    border: none;
    padding: 1.5rem;
    border-radius: 0;
}

.agenda-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.agenda-date .day {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.agenda-date .month {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.agenda-date .year {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.agenda-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px !important;
    overflow: hidden;
    position: relative;
}

.agenda-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
    animation: glow 2s ease-in-out infinite;
}

.agenda-card:nth-child(3n+1) {
    animation: float 6s ease-in-out infinite;
}

.agenda-card:nth-child(3n+2) {
    animation: float 6s ease-in-out infinite 2s;
}

.agenda-card:nth-child(3n+3) {
    animation: float 6s ease-in-out infinite 4s;
}

.agenda-card .card-header {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem;
}

.agenda-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0.05) 50%, 
        rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.agenda-card .card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; transform: rotate(0deg); }
    50% { opacity: 1; transform: rotate(180deg); }
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.4); }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.agenda-card .card-body {
    padding: 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
}

.agenda-card .card-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        #ff6b6b 0%, 
        #4ecdc4 25%, 
        #45b7d1 50%, 
        #96ceb4 75%, 
        #feca57 100%);
    animation: rainbow 8s linear infinite;
    border-radius: 0 0 10px 10px;
}

.agenda-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agenda-card .card-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #6c757d;
}

.agenda-details {
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,249,255,0.8) 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.agenda-details .fas {
    width: 18px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agenda-details div {
    padding: 0.3rem 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.agenda-details div:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

/* Responsive adjustments for agenda */
@media (max-width: 768px) {
    .agenda-card .card-header {
        padding: 1rem;
    }
    
    .agenda-card .card-body {
        padding: 1rem;
    }
    
    .agenda-date .day {
        font-size: 1.5rem;
    }
}

/* Agenda Page Styles */
.agenda-page .search-filter-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.agenda-page .search-filter-card .form-label {
    color: white;
    font-weight: 500;
}

.agenda-page .search-filter-card .form-control,
.agenda-page .search-filter-card .form-select {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.agenda-page .search-filter-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.agenda-page .search-filter-card .form-control:focus,
.agenda-page .search-filter-card .form-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.2);
}

.agenda-page .search-filter-card .form-select option {
    background: var(--dark-color);
    color: white;
}

.agenda-page .results-info {
    background: var(--light-color);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.agenda-page .no-results {
    background: var(--light-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
}

.agenda-page .pagination .page-link {
    color: var(--primary-color);
    border-color: var(--gray-300);
}

.agenda-page .pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.agenda-page .pagination .page-link:hover {
    color: var(--primary-dark);
    background-color: var(--gray-100);
}

/* Responsive adjustments for agenda page */
@media (max-width: 768px) {
    .agenda-page .search-filter-card .row {
        gap: 1rem;
    }
    
    .agenda-page .search-filter-card .col-md-2 {
        margin-top: 1rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Responsive Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .d-flex.align-items-center.flex-wrap {
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.1);
        flex-direction: row;
        flex-wrap: nowrap;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .gap-2 {
        gap: 0.5rem !important;
    }
}

/* Improved button responsiveness */
@media (max-width: 767.98px) {
    .btn .d-none.d-sm-inline {
        display: none !important;
    }
    
    .btn-sm {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Enhanced mobile navigation */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Force horizontal layout for buttons */
.d-flex.align-items-center.flex-wrap {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    display: flex !important;
}

@media (max-width: 480px) {
    .d-flex.align-items-center.flex-wrap {
        gap: 0.25rem !important;
    }
    
    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Ensure proper spacing on all devices */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Breaking News Ticker Styles */
.breaking-news-container {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-bottom: 3px solid #991b1b;
    position: relative;
    overflow: hidden;
    z-index: 100;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.breaking-news-ticker {
    display: flex;
    align-items: center;
    min-height: 50px;
    position: relative;
}

.breaking-news-label {
    background: #991b1b;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
}

.breaking-news-label i {
    font-size: 1rem;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 0 1rem;
}

.breaking-news-scroll {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll-left 30s linear infinite;
    white-space: nowrap;
    min-width: 100%;
}

/* Fallback for browsers that don't support animation */
@media (prefers-reduced-motion: reduce) {
    .breaking-news-scroll {
        animation: none;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .breaking-news-scroll::-webkit-scrollbar {
        display: none;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.breaking-news-item {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.breaking-news-item a {
    color: white !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.breaking-news-item a:hover {
    opacity: 0.8;
}

.breaking-news-separator {
    color: rgba(255, 255, 255, 0.7);
    font-weight: bold;
    margin: 0 1rem;
}

/* Responsive Breaking News */
@media (max-width: 768px) {
    .breaking-news-label {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .breaking-news-label span {
        display: none;
    }
    
    .breaking-news-item {
        font-size: 0.875rem;
    }
    
    .breaking-news-scroll {
        gap: 1.5rem;
    }
    
    .breaking-news-separator {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .breaking-news-container {
        min-height: 45px;
    }
    
    .breaking-news-label {
        padding: 0.4rem 0.8rem;
    }
    
    .breaking-news-item {
        font-size: 0.8rem;
    }
}

/* Quick Access Section */
.quick-access-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.quick-access-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-access-item:hover {
    transform: translateY(-5px);
}

.quick-access-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quick-access-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quick-access-card i {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.quick-access-card:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.quick-access-card h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quick-access-card p {
    margin-bottom: 0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsive Quick Access */
@media (max-width: 992px) {
    .quick-access-card {
        min-height: 160px;
    }
    
    .quick-access-card i {
        font-size: 2.5rem !important;
    }
    
    .quick-access-card h5 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .quick-access-section .row.g-4 {
        gap: 1rem !important;
    }
    
    .quick-access-card {
        min-height: 140px;
        padding: 1.5rem !important;
    }
    
    .quick-access-card i {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .quick-access-card h5 {
        font-size: 0.95rem;
    }
    
    .quick-access-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .quick-access-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .quick-access-card {
        min-height: 120px;
        padding: 1rem !important;
    }
    
    .quick-access-card i {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .quick-access-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }
    
    .quick-access-card p {
        font-size: 0.75rem;
    }
}

/* Gallery & YouTube Section */
.gallery-youtube-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.youtube-video-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.youtube-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.youtube-video-card iframe {
    border: none;
}

.video-info {
    background: white;
}

.video-info h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 1rem 1rem 0 0;
}

.modal-body img {
    max-width: 100%;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-youtube-section {
        padding: 3rem 0 !important;
    }
    
    .gallery-img {
        height: 150px;
    }
    
    .youtube-video-card {
        margin-bottom: 1.5rem;
    }
    
    .video-info {
        padding: 1rem !important;
    }
    
    .video-info h5 {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* PPID Website Main Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header styles */
header {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

/* Navigation styles */
.navbar {
    border-bottom: 1px solid #dee2e6;
}

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

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

.nav-link:hover {
    color: #0d6efd !important;
}

.nav-link.active {
    color: #0d6efd !important;
    font-weight: 600;
}

/* Dropdown styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Hide desktop menu on mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
    }
}
    
    /* Ensure mobile sidebar has proper z-index */
    .mobile-sidebar {
        z-index: 1051 !important;
    }
    
    .mobile-sidebar-overlay {
        z-index: 1050 !important;
    }
}

/* Show desktop menu on desktop */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .navbar-collapse {
        display: flex !important;
    }
}

/* Content area */
.container {
    max-width: 1200px;
}

/* Card styles */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Button styles */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Form styles */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Table styles */
.table {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Pagination styles */
.pagination {
    border-radius: 0.5rem;
}

.page-link {
    border: none;
    color: #0d6efd;
    transition: background-color 0.3s ease;
}

.page-link:hover {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Footer styles */
footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
}

/* Utility classes */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive text */
@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .mobile-sidebar,
    .mobile-sidebar-overlay,
    .btn,
    .alert {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        width: 100%;
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 20px;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 10000;
    padding: 20px;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-consent-text h5 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}