/* ===== ETQ Inspired Redesign ===== */

/* 1. Base & Typography */
:root {
  --c-bg: #ffffff;
  --c-text: #000000;
  --c-text-muted: #888888;
  --c-border: #e5e5e5;
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* For headings if needed */
  /* Accent palette */
  --c-accent: #000000;
  --c-accent-hover: #333333;
  --c-accent-ghost: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-text-muted);
}

/* Better keyboard focus */
:where(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 2. Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled .navbar {
    border-bottom-color: var(--c-border);
}

.navbar .brand {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-text) !important; /* Ensure color is not overridden */
  text-decoration: none !important;
}

.navbar .brand:hover {
    opacity: 0.8;
}

.navbar .brand span {
    color: var(--c-text) !important; /* Final override for brand text color */
}

.navbar .brand img {
  height: 40px; /* Increased size for better visibility */
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a {
    color: var(--c-text) !important; /* Force black color */
    text-decoration: none !important; /* Remove underline */
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--c-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Menu */
.hamburger {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.hamburger:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 80px; /* Height of the navbar */
    left: 0;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    gap: 1rem;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: translateY(-6px);
    opacity: 0;
  }

  .nav-links.is-open {
    display: flex; /* Show when toggled */
    transform: translateY(0);
    opacity: 1;
  }
}


/* 3. Main Content & Grid */
.site-main {
  padding: 4rem 0;
}

/* Anchor offset for sticky header */
section[id] {
  scroll-margin-top: 100px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-item {
  position: relative;
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item .overlay-content {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  z-index: 10;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  padding: 1rem;
  margin: -1rem;
  border-radius: 0.5rem;
}

.grid-item .overlay-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: white !important;
}

.grid-item .overlay-content p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.9rem;
}

/* Dojo numbering */
.grid-item .dojo-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.grid-item:hover .dojo-number {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 4. Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #000000 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

.btn:focus-visible {
  outline: 3px solid var(--c-accent-ghost);
  outline-offset: 2px;
}

/* Button variants */
.btn-primary {
  background-color: var(--c-accent) !important;
  border-color: var(--c-accent) !important;
  color: #fff !important;
}

.btn-primary:hover {
  background-color: var(--c-accent-hover) !important;
  border-color: var(--c-accent-hover) !important;
}

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

.btn-outline:hover {
  background-color: var(--c-accent-ghost) !important;
  color: var(--c-accent-hover) !important;
}

.btn-light {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

.btn-light:hover {
  background-color: #eef2f7 !important;
}

.btn-disabled {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.7 !important;
}

.btn-disabled:hover {
  background-color: #e9ecef !important;
  color: #6c757d !important;
  border-color: #dee2e6 !important;
}

/* 5. Footer */
.site-footer {
  background-color: #f8f8f8; /* Slightly off-white background */
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 0.95rem;
}

/* Sections & cards */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: #f9fafb;
}

.card-ui {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-ui:hover {
  box-shadow: var(--shadow-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: var(--c-text);
}

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

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

.footer-links a, .footer-links address {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-style: normal;
}

.footer-links a:hover {
  color: var(--c-text);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.brand-column .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--c-text);
  font-weight: 700;
}

.brand-column .tagline {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-links a {
  color: var(--c-text-muted);
  transition: color 0.2s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--c-text);
}

.social-links svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Pricing Page ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
    padding-bottom: 4rem;
}

.pricing-card {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.pricing-card.highlighted {
    border-color: #000;
    border-width: 2px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.highlight-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
}

.pricing-card.highlighted .card-header {
    padding-top: 3.5rem; /* Add padding to push content down and prevent banner from hiding frequency */
}

.pricing-card .card-header {
    padding: 2rem;
    border-bottom: 1px solid var(--c-border);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
}

.plan-price .currency {
    color: var(--c-text-muted);
    font-size: 1rem;
}

.pricing-card .card-body {
    padding: 2rem;
    flex-grow: 1;
}

.plan-description {
    color: var(--c-text-muted);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.features-list li.disabled {
    color: var(--c-text-muted);
    text-decoration: line-through;
}

.features-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.features-list li.disabled svg {
    color: var(--c-text-muted);
}

.pricing-card .card-footer {
    padding: 2rem;
    margin-top: auto;
}

.pricing-card .btn {
    width: 100%;
}

/* Scoped compact sizing when a pricing section is wrapped with .pricing-width */
.pricing-width {
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-width .pricing-grid {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding-bottom: 2.5rem;
}

.pricing-width .pricing-card .card-header {
    padding: 1rem 1.25rem;
}

.pricing-width .pricing-card.highlighted .card-header {
    padding-top: 2.5rem; /* Add extra padding for highlighted card to prevent banner from hiding frequency */
}

.pricing-width .plan-name {
    font-size: 1.05rem;
}

.pricing-width .plan-price .amount {
    font-size: 1.8rem;
}

.pricing-width .plan-price .currency {
    font-size: 0.95rem;
}

.pricing-width .pricing-card .card-body {
    padding: 1rem 1.25rem;
}

.pricing-width .features-list {
    font-size: 0.95rem;
}

.pricing-width .features-list li {
    margin-bottom: 0.5rem;
}

.pricing-width .pricing-card .card-footer {
    padding: 1rem 1.25rem;
}

.pricing-width .highlight-banner {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
}

.pricing-width .pricing-card .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Disabled state for pricing action buttons */
.pricing-width .pricing-card .btn[disabled],
.pricing-width .pricing-card .btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.65;
    cursor: not-allowed;
}

/* Home pricing compact variant */
.pricing--compact .container {
  padding-top: 0;
}

.pricing--compact.section {
  padding: 2rem 0; /* override default 4rem */
}

.pricing--compact .pricing-grid {
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-bottom: 1.5rem;
}

.pricing--compact .card-header {
  padding: 0.75rem 1rem;
}

.pricing--compact .pricing-card.highlighted .card-header {
  padding-top: 2.5rem; /* Add extra padding for highlighted card to prevent banner from hiding frequency */
}

.pricing--compact .plan-name {
  font-size: 0.95rem;
}

.pricing--compact .plan-price .amount {
  font-size: 1.6rem;
}

.pricing--compact .plan-price .currency {
  font-size: 0.85rem;
}

.pricing--compact .card-body {
  padding: 0.75rem 1rem;
}

.pricing--compact .features-list { font-size: 0.9rem; }
.pricing--compact .features-list li { margin-bottom: 0.4rem; }

.pricing--compact .card-footer {
  padding: 0.75rem 1rem;
}

.pricing--compact .highlight-banner {
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
}

.pricing--compact .btn {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}

/* Swiper theming and fixes */
.swiper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.swiper-wrapper {
  display: flex !important;
  align-items: center;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
  transition-property: transform;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Responsive heights */
@media (max-width: 768px) {
  .swiper {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .swiper {
    height: 600px;
  }
}

.swiper-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transition: opacity 0.3s ease;
}

.swiper-overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.swiper-overlay p {
  font-size: 1rem;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--c-accent) !important;
}

.swiper-pagination {
  bottom: 10px !important;
}

.swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.3) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--c-accent) !important;
}

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

/* ===== Login Page ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fa;
    padding: 2rem;
}

.login-box {
    width: 100%;
    max-width: 480px; /* Increased from 420px */
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--c-text);
}

.login-logo img {
    height: 50px;
}

.login-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.login-form-container {
    background-color: #fff;
    padding: 2.5rem;
    border: 1px solid var(--c-border);
    border-radius: 8px;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    text-align: center;
    color: var(--c-text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remember-me label {
    margin-bottom: 0;
    font-weight: normal;
    color: var(--c-text-muted);
}

.btn-login {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--c-text-muted);
    font-size: 0.9rem;
}

/* ===== Form Validation & Alerts ===== */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
}

/* Form errors */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-error-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.form-error-list li {
    color: #dc3545;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===== User Dropdown Menu ===== */
.user-dropdown {
    position: relative !important;
    z-index: 1000;
    display: flex;
    align-items: center;
    margin-top: -8px; /* Lift the avatar a bit more in the navbar */
}

/* Ensure the user dropdown menu positions and shows correctly */
.user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 220px;
}

.dropdown-menu.show {
    display: block !important;
}

/* Avatar Styles */
.user-avatar-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Img avatar in navbar when user has a member photo */
.user-avatar-img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid transparent;
    max-width: 28px !important;
    max-height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    transform: translateY(-1px); /* fine-tune vertical alignment */
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    transform: translateY(-1px); /* fine-tune vertical alignment for initials avatar */
}

.user-avatar-toggle:hover .user-avatar {
    background-color: var(--c-text-muted);
    border-color: var(--c-border);
}

/* User Info Header in Dropdown */
.user-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.user-avatar-large {
    color: var(--c-text-muted);
    flex-shrink: 0;
}

.user-avatar-large img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    max-width: 32px !important;
    max-height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}

/* Safety: prevent any image inside the dropdown from expanding */
.user-dropdown-menu img {
    width: auto !important;
    max-width: 32px !important;
    height: 32px !important;
    max-height: 32px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: inline-block !important;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-name {
    color: var(--c-text);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-email {
    color: var(--c-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.2;
    text-transform: lowercase;
}

.user-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 0.5rem) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 9999 !important;
    display: none;
    min-width: 280px;
    max-width: 350px;
    padding: 0;
    margin: 0;
    background-color: #fff !important;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
    list-style: none;
    overflow: hidden;
    transform: translateY(-2px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown-menu.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.user-dropdown-menu .dropdown-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--c-border);
    padding: 0 !important;
    margin: 0;
    color: inherit;
    font-size: inherit;
    text-align: left;
}

.user-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    clear: both;
    font-weight: 400;
    color: var(--c-text);
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: background-color 0.15s ease-in-out;
    font-size: 0.9rem;
}

.user-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--c-text);
}

.user-dropdown-menu .dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--c-text-muted);
}

.user-dropdown-menu .dropdown-divider {
    height: 0;
    margin: 0.25rem 0;
    overflow: hidden;
    border-top: 1px solid var(--c-border);
}

/* Mobile adjustments for user dropdown */
@media (max-width: 768px) {
    .user-dropdown-menu {
        position: static;
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        box-shadow: none;
        border: none;
        background-color: transparent;
        border-radius: 0;
        overflow: visible;
    }
    
    .user-dropdown-menu .dropdown-header {
        background-color: transparent;
        border-bottom: 1px solid var(--c-border);
        padding: 0.75rem 0;
    }
    
    .user-dropdown-menu .dropdown-item {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--c-border);
    }
    
    .user-dropdown-menu .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* ===== Profile Edit Page ===== */
.profile-edit-page .site-main {
    background-color: #f8f9fa;
    min-height: calc(100vh - 160px);
}

.profile-edit-page .card {
    border: 1px solid var(--c-border);
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.profile-edit-page .card-header {
    background-color: #007bff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.profile-edit-page .card-title {
    display: flex;
    align-items: center;
    margin: 0;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.profile-edit-page .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--c-text);
}

.profile-edit-page .form-control {
    border: 1px solid var(--c-border);
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.profile-edit-page .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.profile-edit-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.profile-edit-page .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.profile-edit-page .btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
}

.profile-edit-page .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* ===== EasyAdmin Customizations ===== */
.custom-action-link i {
    color: white !important; /* Ensure icons in custom actions are white */
}

/* ===== Fade-in Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Carousel Navigation Buttons ===== */
.carousel-container {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 100px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background-color: #fff;
    border-color: var(--c-accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn.carousel-prev {
    left: -60px;
}

.carousel-btn.carousel-next {
    right: -60px;
}

.carousel-btn svg {
    flex-shrink: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn.carousel-prev {
        left: -50px;
    }

    .carousel-btn.carousel-next {
        right: -50px;
    }
}

/* ===== Photos de profil arrondies (Members & Coaches) ===== */

/* Classes spécifiques pour les photos de profil */
.member-photo,
.coach-photo,
.rounded-circle {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    width: 50px !important;
    height: 50px !important;
}

/* Conteneurs d'images dans EasyAdmin */
.field-image,
.field-image a {
    display: inline-block !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
}

/* Toutes les images dans les uploads members/coaches */
img[src*="/uploads/members/"],
img[src*="/uploads/coaches/"] {
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Images dans les listes EasyAdmin */
.field-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 50px !important;
    height: 50px !important;
    display: block !important;
}

/* Photos dans les pages de détail EasyAdmin */
.content-panel .field-image img,
.content-panel img[src*="/uploads/members/"],
.content-panel img[src*="/uploads/coaches/"] {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 100px !important;
    height: 100px !important;
    display: block !important;
}

/* Photos dans les formulaires EasyAdmin (VichUploader) */
.ea-vich-image,
.ea-vich-image a,
.vich-image,
.vich-image a {
    display: inline-block !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    max-width: 150px !important;
    max-height: 150px !important;
}

.ea-vich-image img,
.vich-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 150px !important;
    height: 150px !important;
    display: block !important;
}

/* Widget de formulaire pour les images */
.field-image .form-widget,
.field-image .form-widget a {
    display: inline-block !important;
    overflow: hidden !important;
    border-radius: 50% !important;
}

.field-image .form-widget img {
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Avatar styles génériques */
.avatar,
.profile-photo {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
}

/* Styles spécifiques pour les formulaires Vich */
.vich-image-widget img,
.ea-form-field-vich-image img {
    border-radius: 50% !important;
    object-fit: cover !important;
    max-width: 150px !important;
    max-height: 150px !important;
    width: auto !important;
    height: auto !important;
}

/* ===== Auth Modals ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 440px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    margin: auto;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-muted);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background-color: var(--c-accent-ghost);
    color: var(--c-text);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--c-border);
}

.modal-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--c-text);
}

.modal-logo img {
    height: 40px;
    width: 40px;
}

.modal-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--c-text);
}

.modal-subtitle {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body .form-group {
    margin-bottom: 1.2rem;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--c-text);
}

.modal-body .form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--c-border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-body .form-control:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-ghost);
}

.modal-body .form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.modal-body .form-group-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.modal-body .form-group-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    color: var(--c-text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.modal-body .btn {
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
}

.modal-footer {
    text-align: center;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--c-border);
}

.modal-footer a {
    color: var(--c-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal-footer a:hover {
    color: var(--c-accent);
}

.modal-footer .mx-2 {
    color: var(--c-border);
}

/* Visually hidden class for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile adjustments for modals */
@media (max-width: 576px) {
    .modal-overlay {
        padding: 0.5rem;
    }

    .modal-content {
        max-width: 100%;
        border-radius: 12px;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1.5rem 1rem 0.8rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-logo {
        margin-bottom: 0.8rem;
    }

    .modal-logo img {
        height: 32px;
        width: 32px;
    }

    .modal-logo span {
        font-size: 1.1rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .modal-subtitle {
        font-size: 0.85rem;
    }

    .modal-body .form-group {
        margin-bottom: 1rem;
    }

    .modal-body .form-control {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }

    .modal-footer {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* ===== Social Links Responsive ===== */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.social-links a svg {
    flex-shrink: 0;
}

/* Boutons avec icônes uniquement (section contact) */
.social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem !important;
    min-width: 42px;
    min-height: 42px;
}

.social-icon-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Mobile responsive for social links */
@media (max-width: 576px) {
    .social-icon-btn {
        min-width: 38px;
        min-height: 38px;
        padding: 0.4rem !important;
    }

    .social-icon-btn svg {
        width: 18px;
        height: 18px;
    }
}

