/* Crimson Power Architecture Studio - Custom Styles */

/* ===== Root Variables ===== */
:root {
  --primary-color: #D32F2F;
  --secondary-color: #212121;
  --accent-color: #FF5252;
  --dark-overlay: rgba(33, 33, 33, 0.85);
  --light-overlay: rgba(211, 47, 47, 0.95);
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--secondary-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
}

html {
  scroll-behavior: smooth;
}

/* ===== Typography ===== */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  letter-spacing: -1px;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9) !important;
}

.h4, h4, .h5, h5 {
  font-weight: 600;
}

/* ===== Navigation Bar ===== */
.navbar {
  background-color: var(--secondary-color) !important;
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar.fixed-top {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  letter-spacing: 1px;
  transition: color var(--transition-speed) ease;
}

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

.navbar-dark .navbar-toggler {
  border-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.5) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23D32F2F' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1.25rem !important;
  margin: 0 0.25rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all var(--transition-speed) ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
  width: 80%;
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--transition-speed) ease;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #B71C1C !important;
  border-color: #B71C1C !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4) !important;
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #000000 !important;
  border-color: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 33, 33, 0.4) !important;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.8) !important;
  color: #ffffff !important;
  border-width: 2px !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--primary-color) !important;
}

.btn-outline-dark {
  border-color: var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  border-width: 2px !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.btn-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.375rem 1rem !important;
  font-size: 0.875rem;
}

.btn-close,
.btn-close-white {
  opacity: 0.8;
  transition: opacity var(--transition-speed) ease;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

/* ===== Hero Section ===== */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #424242 100%);
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(211, 47, 47, 0.1) 35px, rgba(211, 47, 47, 0.1) 70px);
  animation: slideBackground 20s linear infinite;
}

@keyframes slideBackground {
  0% { transform: translateX(0); }
  100% { transform: translateX(70px); }
}

.position-absolute.top-0.start-0.w-100.h-100 {
  background: linear-gradient(to bottom, rgba(33, 33, 33, 0.7), rgba(211, 47, 47, 0.3));
  z-index: 1;
}

.position-relative.overflow-hidden .container {
  position: relative;
  z-index: 2;
}

.text-white {
  color: #ffffff !important;
}

.text-white-50 {
  color: rgba(255,255,255,0.5) !important;
}

/* ===== Cards ===== */
.card {
  border: none !important;
  border-radius: 8px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: #ffffff;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}

.card-header {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-bottom: none !important;
  padding: 1.25rem;
}

.card-body {
  padding: 2rem;
}

.card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0,0,0,0.05) !important;
  padding: 1.25rem;
}

.card.border-0 {
  box-shadow: var(--shadow-md);
}

.card.bg-light {
  background-color: #f8f9fa !important;
}

.card.bg-white {
  background-color: #ffffff !important;
}

.card.shadow {
  box-shadow: var(--shadow-md) !important;
}

.card.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.card.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.card-title {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===== Program Cards ===== */
.program-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 4px solid var(--primary-color) !important;
  transition: all var(--transition-speed) ease;
  height: 100%;
}

.program-card:hover {
  border-left-width: 8px !important;
  background: #ffffff;
}

.program-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.program-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.intensity-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.intensity-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  animation: fillBar 1.5s ease-in-out;
}

@keyframes fillBar {
  from { width: 0; }
}

/* ===== Forms ===== */
.form-label {
  font-weight: 600;
  color: var(--secondary-color) !important;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: all var(--transition-speed) ease;
  color: var(--secondary-color) !important;
  background-color: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.15) !important;
  background-color: #ffffff !important;
  color: var(--secondary-color) !important;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
}

.form-check-input {
  border: 2px solid #e0e0e0 !important;
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  margin-left: 0.5rem;
}

.input-group {
  box-shadow: var(--shadow-sm);
  border-radius: 6px;
}

/* ===== Badges ===== */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.badge.bg-secondary {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

/* ===== Icons ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
}

.bi-star-fill {
  color: #FFC107;
}

.bi-trophy-fill,
.bi-award-fill,
.bi-patch-check-fill,
.bi-check-circle-fill,
.bi-check-lg {
  color: var(--primary-color);
}

.bi-building,
.bi-people-fill,
.bi-lightbulb-fill,
.bi-rocket-takeoff-fill,
.bi-shield-check,
.bi-bullseye,
.bi-heart-pulse {
  color: var(--secondary-color);
}

.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }

.d-inline-flex {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ===== Images ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-speed) ease;
}

.img-fluid:hover {
  transform: scale(1.02);
}

.rounded {
  border-radius: 8px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* ===== Ratio ===== */
.ratio {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.ratio-16x9 {
  padding-top: 56.25%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Sections ===== */
.py-5 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.py-4 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.pt-5 {
  padding-top: 4rem !important;
}

.pb-4 {
  padding-bottom: 3rem !important;
}

.pt-4 {
  padding-top: 3rem !important;
}

.pt-3 {
  padding-top: 2rem !important;
}

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1.5rem !important;
}

.p-4 {
  padding: 2rem !important;
}

.p-5 {
  padding: 3rem !important;
}

.px-3 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.px-4 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.px-5 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.py-2 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.py-3 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-lg-0 { margin-bottom: 0 !important; }
.my-4 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.ms-2 { margin-left: 1rem !important; }
.ms-4 { margin-left: 2rem !important; }
.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 1rem !important; }
.me-3 { margin-right: 1.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* ===== Backgrounds ===== */
.bg-light {
  background-color: #f8f9fa !important;
}

.bg-white {
  background-color: #ffffff !important;
}

.bg-white-50 {
  background-color: rgba(255,255,255,0.5) !important;
}

/* ===== Text Colors ===== */
.text-muted {
  color: #6c757d !important;
}

.text-dark {
  color: var(--secondary-color) !important;
}

/* ===== Accordion ===== */
.accordion {
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border: 1px solid rgba(0,0,0,0.1) !important;
  margin-bottom: 0.5rem;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-header {
  margin-bottom: 0;
}

.accordion-button {
  background-color: #f8f9fa !important;
  color: var(--secondary-color) !important;
  font-weight: 600;
  padding: 1.25rem 1.5rem;
  transition: all var(--transition-speed) ease;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25) !important;
}

.accordion-button::after {
  filter: brightness(0) invert(0);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-collapse {
  border: none !important;
}

.accordion-body {
  padding: 1.5rem;
  background-color: #ffffff;
  color: var(--secondary-color) !important;
}

/* ===== Carousel ===== */
.carousel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.carousel-indicators {
  margin-bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: none;
  transition: all var(--transition-speed) ease;
}

.carousel-indicators .active {
  background-color: var(--primary-color) !important;
  width: 30px;
  border-radius: 6px;
}

.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 2rem;
  height: 2rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  padding: 0.5rem;
}

/* ===== Table ===== */
.table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table {
  margin-bottom: 0;
  color: var(--secondary-color) !important;
}

.table thead {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
}

.table thead th {
  border: none !important;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.table tbody tr {
  transition: background-color var(--transition-speed) ease;
}

.table-hover tbody tr:hover {
  background-color: rgba(211, 47, 47, 0.05) !important;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: rgba(0,0,0,0.05) !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

/* ===== Alert ===== */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.alert.alert-info {
  background-color: #E3F2FD;
  color: #0D47A1 !important;
}

.alert.alert-success {
  background-color: #E8F5E9;
  color: #1B5E20 !important;
}

.alert.alert-warning {
  background-color: #FFF3E0;
  color: #E65100 !important;
}

.alert.alert-danger {
  background-color: #FFEBEE;
  color: #B71C1C !important;
}

/* ===== Footer ===== */
footer {
  background-color: var(--secondary-color) !important;
  color: rgba(255,255,255,0.8) !important;
  padding: 3rem 0 1.5rem;
}

footer a {
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

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

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer .small {
  font-size: 0.875rem;
  opacity: 0.7;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* ===== Utilities ===== */
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed { position: fixed !important; }
.position-sticky { position: sticky !important; top: 100px; }

.top-0 { top: 0 !important; }
.bottom-0 { bottom: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.start-50 { left: 50% !important; }

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.min-vh-100 { min-height: 100vh !important; }

.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }

.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-stretch { align-items: stretch !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.gap-3 { gap: 1.5rem !important; }
.gap-4 { gap: 2rem !important; }

.text-center { text-align: center !important; }
.text-md-start { text-align: start !important; }
.text-md-end { text-align: end !important; }
.text-lg-end { text-align: end !important; }

.overflow-hidden { overflow: hidden !important; }

.container-fluid { padding-right: 1rem; padding-left: 1rem; }

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

/* ===== Grid System ===== */
.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }
.g-3 { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
.g-4 { --bs-gutter-x: 2rem; --bs-gutter-y: 2rem; }
.g-5 { --bs-gutter-x: 3rem; --bs-gutter-y: 3rem; }

.col, .col-auto, .col-12 { flex: 0 0 auto; width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

/* ===== Scroll Animations ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-animate.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Hover Effects ===== */
.hover-lift {
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(211, 47, 47, 0.2);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== Responsive Design ===== */
@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-8 { flex: 0 0 auto; width: 66.666667%; }
  
  .mb-md-0 { margin-bottom: 0 !important; }
  .text-md-start { text-align: start !important; }
  .text-md-end { text-align: end !important; }
  
  .order-md-1 { order: 1; }
  .order-md-2 { order: 2; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  
  .navbar-expand-lg .navbar-collapse { display: flex !important; }
  .navbar-expand-lg .navbar-toggler { display: none; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  
  .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.333333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.333333%; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
  .text-lg-end { text-align: end !important; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
  .display-1 { font-size: 2.5rem !important; }
  .display-3 { font-size: 2rem !important; }
  .display-4 { font-size: 1.75rem !important; }
  .display-5 { font-size: 1.5rem !important; }
  .display-6 { font-size: 1.25rem !important; }
  
  .btn-lg { padding: 0.75rem 1.5rem !important; font-size: 1rem; }
  
  .navbar-nav { padding: 1rem 0; }
  .navbar-nav .nav-link { padding: 0.75rem 1rem !important; }
  
  .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
  
  .card-body { padding: 1.5rem; }
  
  .fs-1 { font-size: 2rem !important; }
  .fs-2 { font-size: 1.75rem !important; }
  .fs-3 { font-size: 1.5rem !important; }
}

/* ===== Print Styles ===== */
@media print {
  .navbar,
  .btn,
  footer,
  .position-fixed,
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #B71C1C;
}

/* ===== Selection ===== */
::selection {
  background-color: var(--primary-color);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--primary-color);
  color: #ffffff;
}