/* Architectural Studio - Obsidian Red Theme - Complete CSS */

/* =================================
   ROOT VARIABLES & RESETS
   ================================= */
:root {
  --primary-color: #1a1a1a;
  --secondary-color: #e63946;
  --accent-color: #f1faee;
  --dark-gray: #2d2d2d;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --box-shadow-hover: 0 15px 40px rgba(230, 57, 70, 0.3);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-gray) !important;
  color: var(--primary-color) !important;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =================================
   TYPOGRAPHY
   ================================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.5px;
}

.display-1 { font-size: 5.5rem !important; }
.display-3 { font-size: 4rem !important; }
.display-4 { font-size: 3rem !important; }
.display-5 { font-size: 2.5rem !important; }
.display-6 { font-size: 2rem !important; }

.lead {
  font-size: 1.25rem !important;
  font-weight: 400 !important;
  color: #666 !important;
  line-height: 1.8;
}

.text-white, .text-white * {
  color: var(--white) !important;
}

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

.text-muted {
  color: #6c757d !important;
}

/* =================================
   NAVIGATION
   ================================= */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-speed) ease;
}

.navbar.fixed-top {
  z-index: 1030;
}

.navbar-dark .navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
}

.navbar-dark .navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: var(--white) !important;
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-dark .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem 0.75rem !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25) !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='%23e63946' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* =================================
   BUTTONS
   ================================= */
.btn {
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 0.75rem 2rem !important;
  transition: all var(--transition-speed) ease !important;
  border: 2px solid transparent !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

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

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

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.9rem !important;
}

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

.btn-dark:hover {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

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

.btn-light:hover {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
}

.btn-outline-light {
  color: var(--white) !important;
  border-color: var(--white) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: translateY(-3px);
}

.btn-outline-dark {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background-color: transparent !important;
}

.btn-outline-dark:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-3px);
}

/* =================================
   BADGES
   ================================= */
.badge {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border-radius: 50px !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =================================
   CARDS
   ================================= */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover) !important;
}

.card-body {
  padding: 2rem !important;
}

.card-header {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 1.5rem !important;
  font-weight: 600 !important;
}

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

.card-text {
  color: #666 !important;
  line-height: 1.8;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: all var(--transition-speed) ease;
}

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

/* Program Cards */
.program-card {
  position: relative;
  cursor: pointer;
}

.program-card .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.program-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.program-details.show {
  max-height: 1000px;
}

/* Team Cards */
.team-card {
  position: relative;
  border-radius: 15px !important;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: all 0.5s ease;
}

.team-card:hover img {
  transform: scale(1.1);
}

.team-card:hover .team-overlay {
  background: linear-gradient(to top, rgba(230, 57, 70, 0.95) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.team-info h4,
.team-info p {
  color: var(--white) !important;
  margin-bottom: 0.5rem;
}

/* =================================
   FORMS
   ================================= */
.form-control,
.form-select {
  border: 2px solid #dee2e6 !important;
  border-radius: 10px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25) !important;
  outline: none !important;
}

.form-label {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
  margin-bottom: 0.5rem !important;
}

/* =================================
   ACCORDION
   ================================= */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25) !important;
  border: none !important;
}

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

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

.accordion-body {
  padding: 1.5rem !important;
  background-color: var(--light-gray) !important;
  color: #666 !important;
}

/* =================================
   PROGRESS BARS
   ================================= */
.progress {
  height: 12px !important;
  border-radius: 10px !important;
  background-color: #e9ecef !important;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-color) 0%, #ff6b6b 100%) !important;
  transition: width 1s ease !important;
  border-radius: 10px !important;
}

/* =================================
   CAROUSEL
   ================================= */
.carousel {
  border-radius: 15px;
  overflow: hidden;
}

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

.carousel-item img {
  height: 500px;
  object-fit: cover;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--white);
  margin: 0 5px;
}

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

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
  background-color: var(--primary-color);
}

/* =================================
   ALERTS
   ================================= */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1.5rem !important;
  font-weight: 500 !important;
}

/* =================================
   FILTER BUTTONS
   ================================= */
.filter-btn {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all var(--transition-speed) ease !important;
  margin: 0.5rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* =================================
   SECTIONS
   ================================= */
section {
  position: relative;
  overflow: hidden;
}

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

.my-5 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

/* =================================
   HERO SECTION
   ================================= */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky,
.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L100 100M100 0L0 100" stroke="%23e63946" stroke-width="0.5" opacity="0.1"/></svg>');
  opacity: 0.1;
}

/* =================================
   ICONS
   ================================= */
.fas, .fab, .bi {
  color: var(--secondary-color);
}

.text-white .fas,
.text-white .fab,
.text-white .bi {
  color: var(--white) !important;
}

.fa-star, .bi-star-fill {
  color: #ffc107 !important;
}

/* =================================
   IMAGES
   ================================= */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
}

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

.object-fit-cover {
  object-fit: cover;
}

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

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

/* =================================
   LISTS
   ================================= */
.list-unstyled {
  padding-left: 0;
  list-style: none;
}

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

/* =================================
   LINKS
   ================================= */
a {
  color: var(--secondary-color) !important;
  text-decoration: none !important;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline !important;
}

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

.text-decoration-none:hover {
  text-decoration: none !important;
  opacity: 0.8;
}

/* =================================
   SOCIAL MEDIA ICONS
   ================================= */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--white);
  color: var(--primary-color) !important;
  border-radius: 10px;
  transition: all var(--transition-speed) ease;
  font-size: 1.25rem;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  color: var(--white) !important;
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

/* =================================
   FOOTER
   ================================= */
footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-gray) 100%);
  color: var(--white) !important;
  padding: 4rem 0 2rem;
}

footer h5, footer h6 {
  color: var(--white) !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
}

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

/* =================================
   PRIVACY CONTENT
   ================================= */
.privacy-content {
  padding: 3rem 0;
}

.privacy-content h2,
.privacy-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* =================================
   UTILITIES
   ================================= */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

.align-items-center { align-items: center !important; }
.align-items-stretch { align-items: stretch !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }

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

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

.p-0 { padding: 0 !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }
.ps-lg-5 { padding-left: 3rem !important; }
.pe-lg-5 { padding-right: 3rem !important; }

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

.g-0 { gap: 0 !important; }
.g-2 { gap: 0.5rem !important; }
.g-3 { gap: 1rem !important; }
.g-4 { gap: 1.5rem !important; }

.fw-bold { font-weight: 700 !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }

.border { border: 1px solid #dee2e6 !important; }
.border-0 { border: 0 !important; }

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

.top-0 { top: 0 !important; }
.start-0 { left: 0 !important; }
.end-0 { right: 0 !important; }
.start-50 { left: 50% !important; }
.translate-middle { transform: translate(-50%, -50%) !important; }

.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;
}

/* =================================
   ANIMATIONS
   ================================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  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);
  }
}

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

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

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

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

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* =================================
   LOADING SPINNER
   ================================= */
.spinner {
  border: 4px solid rgba(230, 57, 70, 0.3);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ================================= */

/* Mobile devices (320px - 767px) */
@media (max-width: 767px) {
  .display-1 { font-size: 3rem !important; }
  .display-3 { font-size: 2.5rem !important; }
  .display-4 { font-size: 2rem !important; }
  .display-5 { font-size: 1.75rem !important; }
  .display-6 { font-size: 1.5rem !important; }
  
  .navbar-brand { font-size: 1.25rem !important; }
  
  .btn {
    padding: 0.65rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .btn-lg {
    padding: 0.85rem 2rem !important;
    font-size: 1rem !important;
  }
  
  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  .card-body { padding: 1.5rem !important; }
  
  .carousel-item img { height: 300px; }
  
  .team-card { height: 350px; }
  
  .navbar-nav { gap: 0.5rem !important; }
  
  .filter-btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .hero-section { min-height: 90vh; }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .display-1 { font-size: 4rem !important; }
  .display-3 { font-size: 3rem !important; }
  .display-4 { font-size: 2.5rem !important; }
  
  .carousel-item img { height: 400px; }
  
  .team-card { height: 375px; }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
  .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%; }
  
  .order-lg-1 { order: 1 !important; }
  .order-lg-2 { order: 2 !important; }
  
  .mb-lg-0 { margin-bottom: 0 !important; }
  .text-md-start { text-align: start !important; }
  .text-md-end { text-align: end !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
}

/* Medium devices */
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* Extra small devices */
@media (max-width: 575px) {
  .container-fluid { padding-left: 1rem; padding-right: 1rem; }
  
  .px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
  .px-5 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
}

/* =================================
   PRINT STYLES
   ================================= */
@media print {
  .navbar, .btn, footer, .carousel-control-prev, .carousel-control-next {
    display: none !important;
  }
  
  body {
    background-color: white !important;
    color: black !important;
  }
  
  a {
    color: black !important;
    text-decoration: underline !important;
  }
}

/* =================================
   ACCESSIBILITY
   ================================= */
*:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.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;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #ff0000;
  }
}

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

/* =================================
   CUSTOM SCROLLBAR
   ================================= */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
}

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

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

/* =================================
   SELECTION
   ================================= */
::selection {
  background-color: var(--secondary-color);
  color: var(--white);
}

::-moz-selection {
  background-color: var(--secondary-color);
  color: var(--white);
}