/* ===================================
   ARCHITECTURAL STUDIO WEBSITE CSS
   Theme: Power Red & Dynamic Blue
   =================================== */

/* === ROOT VARIABLES === */
:root {
  --primary-color: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #EF5350;
  --secondary-color: #1976D2;
  --secondary-dark: #0D47A1;
  --secondary-light: #42A5F5;
  --dark-color: #212529;
  --light-color: #F5F5F5;
  --white: #FFFFFF;
  --gray: #6C757D;
  --gray-light: #E9ECEF;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.display-1 {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
}

.display-3 {
  font-size: clamp(2rem, 6vw, 3.5rem) !important;
}

.display-4 {
  font-size: clamp(1.75rem, 5vw, 2.5rem) !important;
}

.display-5 {
  font-size: clamp(1.5rem, 4vw, 2rem) !important;
}

.display-6 {
  font-size: clamp(1.25rem, 3vw, 1.5rem) !important;
}

.h4, h4 {
  font-size: 1.5rem !important;
}

.h5, h5 {
  font-size: 1.25rem !important;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.8;
}

.fs-3 {
  font-size: 1.75rem !important;
}

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

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

/* === NAVBAR === */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  background-color: rgba(211, 47, 47, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.navbar-brand:hover {
  color: var(--secondary-light) !important;
  transform: scale(1.05);
}

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

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

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

.navbar-nav {
  align-items: center;
}

.nav-item {
  margin: 0 0.25rem;
}

.nav-link {
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition) !important;
  position: relative;
  border-radius: 5px;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-light) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

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

/* === BUTTONS === */
.btn {
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 50px !important;
  transition: var(--transition) !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  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-lg {
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem !important;
}

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

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3) !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4) !important;
}

.btn-secondary {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3) !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4) !important;
}

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

.btn-light:hover {
  background-color: var(--light-color) !important;
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.btn-outline-light {
  border: 2px solid var(--white) !important;
  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(-2px);
}

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

.overflow-hidden {
  overflow: hidden;
}

.position-absolute {
  position: absolute;
}

.position-fixed {
  position: fixed;
}

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

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

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

.top-50 {
  top: 50% !important;
}

.top-100 {
  top: 100%;
}

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

.bottom-100 {
  bottom: 100%;
}

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

.start-50 {
  left: 50% !important;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.card-footer {
  background-color: var(--light-color) !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

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

.card-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.card-content {
  padding: 1.5rem;
}

.program-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  transition: var(--transition);
  min-width: 300px;
}

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

.program-details {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

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

.bi-trophy-fill,
.bi-lightning-charge-fill,
.bi-speedometer2,
.bi-person-check-fill,
.bi-heart-pulse-fill,
.bi-egg-fried,
.bi-star-fill,
.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill,
.bi-facebook,
.bi-instagram,
.bi-youtube,
.bi-check-circle-fill,
.bi-clock-fill,
.bi-info-circle-fill,
.bi-question-circle-fill,
.bi-bus-front-fill,
.bi-p-circle-fill,
.bi-bicycle,
.bi-chat-dots-fill,
.bi-chat-dots,
.bi-send-fill,
.bi-clock-history,
.bi-info-circle,
.bi-clipboard-check,
.bi-shield-check,
.bi-share,
.bi-cookie,
.bi-hand-thumbs-up,
.bi-people,
.bi-geo-alt,
.bi-arrow-repeat,
.bi-envelope,
.bi-calendar3,
.bi-person-check {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

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

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

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

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

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

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

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

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

.pb-5 {
  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;
}

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

.p-2 {
  padding: 0.5rem !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;
}

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

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

.mb-lg-0 {
  margin-bottom: 0 !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-lg-0 {
  margin-top: 0 !important;
}

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

.ms-4 {
  margin-left: 1.5rem !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;
}

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

/* === GRID === */
.container,
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  max-width: 1200px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

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

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

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

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

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

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

.g-5 {
  margin-right: -1.5rem;
  margin-left: -1.5rem;
}

.g-5 > * {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-bottom: 3rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* === FLEX === */
.d-flex {
  display: flex !important;
}

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

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

.flex-sm-row {
  flex-direction: row !important;
}

.flex-wrap {
  flex-wrap: wrap !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;
}

.order-lg-1 {
  order: 1;
}

.order-lg-2 {
  order: 2;
}

/* === BACKGROUNDS === */
.bg-light {
  background-color: var(--light-color) !important;
}

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

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

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

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

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

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

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

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

/* === SHADOWS === */
.shadow {
  box-shadow: var(--shadow) !important;
}

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

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

/* === OVERLAY === */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.9) 0%, rgba(25, 118, 210, 0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  padding: 1rem;
}

.card:hover .overlay {
  opacity: 1;
}

/* === BADGE === */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 50px;
  background-color: var(--primary-color);
  color: var(--white);
}

/* === ALERT === */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: none;
}

.alert-light {
  background-color: var(--light-color);
  color: var(--dark-color);
  border-left: 4px solid var(--primary-color);
}

/* === FORMS === */
.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  transition: var(--transition);
  font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.15) !important;
  outline: none;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-light);
  cursor: pointer;
}

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

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

.invalid-feedback {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.needs-validation .form-control:invalid {
  border-color: var(--danger);
}

.needs-validation .form-control:valid {
  border-color: var(--success);
}

.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* === ACCORDION === */
.accordion {
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item {
  border: none;
  border-bottom: 1px solid var(--gray-light);
}

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

.accordion-button {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  background-color: var(--white);
  border: none;
  transition: var(--transition);
}

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

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button.collapsed {
  background-color: var(--light-color);
}

.accordion-collapse {
  border: none;
}

.accordion-body {
  padding: 1.5rem;
  background-color: var(--white);
}

.show {
  display: block !important;
}

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

.list-unstyled li {
  padding: 0.5rem 0;
}

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

.table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

.table thead th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  padding: 1rem;
  border: none;
  text-align: left;
}

.table tbody td {
  padding: 1rem;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: var(--light-color);
}

.fa-check-circle {
  color: var(--success);
}

.fa-times-circle {
  color: var(--danger);
}

.fa-clock,
.fa-users {
  margin-right: 0.5rem;
}

/* === RATIO === */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: '';
}

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

.ratio-21x9 {
  --bs-aspect-ratio: 42.857143%;
}

/* === FILTER TABS === */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--light-color);
  color: var(--dark-color);
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

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

/* === HORIZONTAL SCROLL === */
.horizontal-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* === CLASS SLOT === */
.class-slot {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.class-slot:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.small {
  font-size: 0.875rem;
}

/* === STICKY TOP === */
.sticky-top {
  position: sticky;
  top: 80px;
  z-index: 1020;
}

/* === CHAT BUTTON === */
.btn.rounded-circle {
  width: 60px;
  height: 60px;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1025;
}

.btn.rounded-circle:hover {
  transform: scale(1.1);
}

.btn-close,
.btn-close-white {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  opacity: 0.5;
}

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

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* === RESPONSIVE DESIGN === */
@media (min-width: 576px) {
  .flex-sm-row {
    flex-direction: row !important;
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .text-md-start {
    text-align: left !important;
  }
  
  .text-md-end {
    text-align: right !important;
  }
  
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
  
  .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%;
  }
  
  .order-lg-1 {
    order: 1;
  }
  
  .order-lg-2 {
    order: 2;
  }
  
  .mb-lg-0 {
    margin-bottom: 0 !important;
  }
  
  .mt-lg-0 {
    margin-top: 0 !important;
  }
  
  .text-lg-end {
    text-align: right !important;
  }
  
  .ps-lg-5 {
    padding-left: 3rem !important;
  }
  
  .pe-lg-5 {
    padding-right: 3rem !important;
  }
}

@media (min-width: 1200px) {
  .col-xl-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(211, 47, 47, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }
  
  .nav-item {
    margin: 0.25rem 0;
  }
  
  .display-1 {
    font-size: 2.5rem !important;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  .px-3,
  .px-4,
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

@media (max-width: 576px) {
  .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .display-3 {
    font-size: 1.75rem !important;
  }
  
  .display-4 {
    font-size: 1.5rem !important;
  }
  
  .h4, h4 {
    font-size: 1.25rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* === PRINT STYLES === */
@media print {
  .navbar,
  .btn,
  .filter-tabs,
  .accordion-button {
    display: none !important;
  }
  
  .card {
    page-break-inside: avoid;
  }
}

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

.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* === UTILITY CLASSES === */
.border-0 {
  border: none !important;
}

.collapse:not(.show) {
  display: none;
}

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

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

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

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

/* === LOADING ANIMATION === */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--light-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* === HERO SECTION SPECIFIC === */
section.position-relative.overflow-hidden {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  position: relative;
}

section.position-relative.overflow-hidden::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="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
  opacity: 0.3;
}

/* === FOOTER === */
footer {
  background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
  color: var(--white);
}

footer a {
  color: var(--white) !important;
  transition: var(--transition);
}

footer a:hover {
  color: var(--secondary-light) !important;
  transform: translateX(5px);
}

/* === SECTION BACKGROUNDS === */
section:nth-child(even) {
  background-color: var(--light-color);
}

section:nth-child(odd) {
  background-color: var(--white);
}