/* ============================================
   ARCHITECTURAL STUDIO WEBSITE - EMPIRE RED & OBSIDIAN THEME
   Primary Color: #D32F2F (Empire Red)
   Secondary Color: #212121 (Obsidian)
   ============================================ */

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #EF5350;
  --secondary-color: #212121;
  --secondary-light: #424242;
  --secondary-lighter: #616161;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #333333;
  --transition-speed: 0.3s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.25);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display-1 {
  font-weight: 800 !important;
  letter-spacing: -2px !important;
  color: var(--white) !important;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5) !important;
}

.display-3 {
  font-weight: 700 !important;
  color: var(--secondary-color) !important;
}

.display-4 {
  font-weight: 700 !important;
  color: var(--secondary-color) !important;
}

.display-5 {
  font-weight: 600 !important;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.4) !important;
}

.display-6 {
  font-weight: 600 !important;
  color: var(--secondary-color) !important;
}

.lead {
  font-size: 1.25rem !important;
  color: var(--secondary-lighter) !important;
  line-height: 1.8 !important;
}

.h4 {
  color: var(--secondary-color) !important;
  font-weight: 600 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

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

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

.text-light {
  color: rgba(255,255,255,0.9) !important;
}

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

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

.fst-italic {
  font-style: italic !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.small {
  font-size: 0.875rem !important;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%) !important;
  padding: 1rem 0 !important;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed) ease !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
}

.navbar.scrolled {
  padding: 0.5rem 0 !important;
  background: rgba(33, 33, 33, 0.98) !important;
  backdrop-filter: blur(10px);
}

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

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

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

.navbar-toggler {
  border: 2px solid var(--primary-color) !important;
  padding: 0.5rem 0.75rem !important;
  transition: all var(--transition-speed) ease !important;
}

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

.navbar-toggler:hover {
  background-color: var(--primary-color) !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='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-expand-lg .navbar-nav {
  align-items: center !important;
}

.navbar-nav {
  gap: 0.5rem !important;
}

.nav-item {
  position: relative !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500 !important;
  padding: 0.75rem 1.25rem !important;
  transition: all var(--transition-speed) ease !important;
  position: relative !important;
  text-transform: uppercase !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px !important;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: rgba(211, 47, 47, 0.2) !important;
  border-radius: 4px !important;
}

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

.nav-link.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.ms-auto {
  margin-left: auto !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.vh-100 {
  min-height: 100vh !important;
}

.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

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

.d-flex {
  display: flex !important;
}

.align-items-center {
  align-items: center !important;
}

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

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

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

.justify-content-end {
  justify-content: end !important;
}

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

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

.gap-1 {
  gap: 0.25rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-5 {
  gap: 3rem !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.top-0 {
  top: 0 !important;
}

.start-0 {
  left: 0 !important;
}

.bottom-0 {
  bottom: 0 !important;
}

.end-0 {
  right: 0 !important;
}

.object-fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.2);
}

.hero-content {
  position: relative !important;
  z-index: 10 !important;
  max-width: 1200px !important;
  padding: 2rem !important;
}

.text-center {
  text-align: center !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;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-lg-0 {
  margin-bottom: 0 !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

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

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

.me-1 {
  margin-right: 0.25rem !important;
}

.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.ms-3 {
  margin-left: 1rem !important;
}

.ms-4 {
  margin-left: 1.5rem !important;
}

.m-3 {
  margin: 1rem !important;
}

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

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

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

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

.animate-slide-up {
  animation: slideUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

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

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

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

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

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

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

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

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

.ps-lg-5 {
  padding-left: 3rem !important;
}

.pe-lg-5 {
  padding-right: 3rem !important;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.container-fluid {
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -0.75rem !important;
  margin-right: -0.75rem !important;
}

.g-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.g-0 > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.g-3 {
  margin-left: -0.5rem !important;
  margin-right: -0.5rem !important;
}

.g-3 > * {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.g-4 {
  margin-left: -0.75rem !important;
  margin-right: -0.75rem !important;
}

.g-4 > * {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  margin-bottom: 1.5rem !important;
}

.g-5 {
  margin-left: -1rem !important;
  margin-right: -1rem !important;
}

.g-5 > * {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  margin-bottom: 2rem !important;
}

[class*="col-"] {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
  width: 100%;
}

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

.col-md-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-sm-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-lg-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-lg-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-lg-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.col-lg-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-lg-7 {
  flex: 0 0 58.333333%;
  max-width: 58.333333%;
}

.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-lg-10 {
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}

.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

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

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

.card-body {
  padding: 2rem !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card-text {
  color: var(--secondary-lighter) !important;
  line-height: 1.7 !important;
  flex-grow: 1;
}

.team-card {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  height: 400px !important;
  cursor: pointer !important;
}

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

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

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(33, 33, 33, 0.95), transparent);
  padding: 2rem;
  transform: translateY(0);
  transition: all var(--transition-speed) ease;
}

.team-card:hover .team-overlay {
  background: linear-gradient(to top, rgba(211, 47, 47, 0.95), rgba(33, 33, 33, 0.7));
}

.membership-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%) !important;
  border: 3px solid var(--primary-color) !important;
  border-radius: 16px !important;
  padding: 2.5rem !important;
  transition: all var(--transition-speed) ease !important;
  height: 100%;
}

.membership-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-dark);
  box-shadow: 0 15px 40px rgba(211, 47, 47, 0.3) !important;
}

.class-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border-left: 4px solid var(--primary-color);
}

.class-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
  border-left-width: 6px;
}

.privacy-intro {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  color: var(--white);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

/* ============================================
   BOOTSTRAP ICONS
   ============================================ */
[class*="bi-"] {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.bi-trophy-fill,
.bi-lightning-charge-fill,
.bi-graph-up-arrow,
.bi-person-badge,
.bi-shield-shaded,
.bi-speedometer2,
.bi-fire,
.bi-egg-fried,
.bi-heart-pulse,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-flag-fill,
.bi-heart-pulse-fill,
.bi-building-fill,
.bi-people-fill,
.bi-award-fill,
.bi-star-fill,
.bi-clock,
.bi-send,
.bi-pin-map,
.bi-chevron-right,
.bi-clock-fill,
.bi-calendar-check,
.bi-shield-check,
.bi-file-pdf,
.bi-download,
.bi-grid-3x3-gap-fill,
.bi-box,
.bi-play-circle-fill,
.bi-hourglass-split,
.bi-check-circle-fill,
.bi-check-lg,
.bi-x-lg,
.bi-x-circle-fill {
  font-size: 2.5rem !important;
  color: var(--primary-color) !important;
}

.bi-facebook,
.bi-instagram,
.bi-twitter,
.bi-youtube {
  font-size: 1.5rem !important;
  color: var(--white) !important;
  transition: all var(--transition-speed) ease !important;
}

.bi-facebook:hover {
  color: #1877F2 !important;
  transform: scale(1.2) translateY(-3px);
}

.bi-instagram:hover {
  color: #E4405F !important;
  transform: scale(1.2) translateY(-3px);
}

.bi-twitter:hover {
  color: #1DA1F2 !important;
  transform: scale(1.2) translateY(-3px);
}

.bi-youtube:hover {
  color: #FF0000 !important;
  transform: scale(1.2) translateY(-3px);
}

/* ============================================
   IMAGES
   ============================================ */
.img-fluid {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

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

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

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

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

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

/* ============================================
   TIMELINE
   ============================================ */
.timeline-container {
  position: relative;
  padding: 3rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.timeline-container .row {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-container .col-md-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.d-inline-flex {
  display: inline-flex !important;
}

.timeline-container .rounded-circle {
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px rgba(211, 47, 47, 0.2);
  transition: all var(--transition-speed) ease;
}

.timeline-container .rounded-circle:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 15px rgba(211, 47, 47, 0.3);
}

.text-md-end {
  text-align: right !important;
}

.text-md-start {
  text-align: left !important;
}

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

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: all var(--transition-speed) ease !important;
  background-color: var(--white) !important;
  color: var(--secondary-color) !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.25) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #9e9e9e !important;
}

.border-0 {
  border: 0 !important;
}

/* ============================================
   ALERT
   ============================================ */
.alert {
  border-radius: 8px !important;
  padding: 1rem 1.5rem !important;
  border: none !important;
  box-shadow: var(--shadow-sm) !important;
  font-weight: 500 !important;
}

.alert-success {
  background-color: #4CAF50 !important;
  color: var(--white) !important;
}

.alert-error {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/* ============================================
   BADGE
   ============================================ */
.badge {
  padding: 0.5rem 1rem !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px !important;
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
  border: none !important;
}

.accordion-item {
  background-color: var(--white) !important;
  border: none !important;
  margin-bottom: 1rem !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
}

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

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

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

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

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

.accordion-body {
  padding: 1.5rem !important;
  color: var(--secondary-lighter) !important;
  line-height: 1.8 !important;
  background-color: var(--white) !important;
}

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

.show {
  display: block !important;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-btn {
  background-color: var(--white) !important;
  color: var(--secondary-color) !important;
  border: 2px solid #e0e0e0 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all var(--transition-speed) ease !important;
  cursor: pointer !important;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* ============================================
   INTENSITY BAR
   ============================================ */
.intensity-bar {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.intensity-bar span {
  width: 8px;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

.intensity-bar span.active {
  background-color: var(--primary-color);
}

/* ============================================
   TABLE
   ============================================ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100% !important;
  margin-bottom: 1rem !important;
  background-color: var(--white) !important;
  border-collapse: collapse !important;
}

.table-bordered {
  border: 2px solid #e0e0e0 !important;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #e0e0e0 !important;
  padding: 1rem !important;
  vertical-align: middle !important;
}

.table thead th {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  font-size: 0.9rem !important;
}

.table tbody tr {
  transition: all var(--transition-speed) ease !important;
}

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

.table tbody td {
  color: var(--secondary-color) !important;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel {
  position: relative;
}

.slide {
  transition: all 0.6s ease;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  transition: transform 0.6s ease-in-out;
}

.carousel-item.active {
  display: block;
}

.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  background-color: rgba(211, 47, 47, 0.8) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  border: none;
  cursor: pointer;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-color) !important;
  transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

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

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

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

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

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

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

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

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

footer h5 {
  color: var(--white) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  font-size: 1.25rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

footer p,
footer li {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.8 !important;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all var(--transition-speed) ease !important;
}

footer a:hover {
  color: var(--primary-light) !important;
  padding-left: 5px;
}

.text-lg-end {
  text-align: right !important;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 767.98px) {
  .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-sm-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-md-2,
  .col-md-3,
  .col-md-4,
  .col-md-5,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

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

  .mb-md-0 {
    margin-bottom: 1rem !important;
  }

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

  .timeline-container::before {
    left: 30px;
  }

  .timeline-container .col-md-2 {
    flex: 0 0 60px;
    max-width: 60px;
  }

  .timeline-container .col-md-5 {
    flex: 0 0 calc(100% - 60px);
    max-width: calc(100% - 60px);
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }
}

@media (min-width: 768px) {
  .col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-sm-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .mb-md-0 {
    margin-bottom: 0 !important;
  }

  .text-md-end {
    text-align: right !important;
  }

  .text-md-start {
    text-align: left !important;
  }
}

@media (min-width: 992px) {
  .col-lg-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }

  .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }

  .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .col-lg-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-lg-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }

  .col-lg-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }

  .col-lg-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }

  .mb-lg-0 {
    margin-bottom: 0 !important;
  }

  .ps-lg-5 {
    padding-left: 3rem !important;
  }

  .pe-lg-5 {
    padding-right: 3rem !important;
  }

  .flex-lg-row-reverse {
    flex-direction: row-reverse !important;
  }

  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-lg .navbar-toggler {
    display: none;
  }

  .text-lg-end {
    text-align: right !important;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(211, 47, 47, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

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

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

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

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

/* ============================================
   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;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .btn,
  .scroll-to-top,
  footer {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}