/* modern-styles.css - IBC Modern Minimal Design */
:root {
  --ibc-gold: #ffd700;
  --ibc-cream: #eae0d5;
  --ibc-dark: #000000;
  --ibc-light: #ffffff;
  --ibc-overlay: rgba(0, 0, 0, 0.3);
  --ibc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ibc-border: rgba(234, 224, 213, 0.1);
  --ibc-form-bg: rgba(0, 0, 0, 0.6);
}

.special-wrapper {
  padding-top: 114px !important;
}

* {
  font-family: 'Cormorant Garamond', serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Hero Section ===== */
.hero-container {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(20%);
}

.hero-info {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.text-heading {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.15em;
  font-weight: 300;
  color: var(--ibc-light);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.text-paragraph {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.2em;
  color: var(--ibc-cream);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 300;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  padding: 1rem 2.5rem;
  background-color: transparent;
  border: 2px solid var(--ibc-cream);
  color: var(--ibc-cream);
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--ibc-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--ibc-cream);
  transition: var(--ibc-transition);
  z-index: -1;
}

.cta:hover {
  color: var(--ibc-dark);
  border-color: var(--ibc-cream);
}

.cta:hover::before {
  width: 100%;
}

.cta:active {
  transform: scale(0.98);
}

/* ===== Content Sections ===== */
.content-container {
  padding: clamp(3rem, 6vw, 6rem) 1rem;
  position: relative;
}

.content-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ibc-cream), transparent);
}

.section-1 {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--ibc-light);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.heading-2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--ibc-light);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.paragraph {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--ibc-cream);
  line-height: 1.7;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Image & Text Layout ===== */
.content-image {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: var(--ibc-transition);
  filter: grayscale(30%);
  border-radius: 2px;
}

.content-image:hover {
  opacity: 0.9;
  filter: grayscale(10%);
}

.content-text {
  padding: clamp(2rem, 4vw, 4rem);
}

/* ===== Ethos Section ===== */
.ethos {
  padding: 2rem;
}

.ethos + .ethos {
  border-left: 1px solid var(--ibc-border);
}

/* ===== Footer Styles ===== */
.page-footer {
  background-color: rgba(0, 0, 0, 0.9);
  border-top: 1px solid var(--ibc-border);
  padding: 4rem 0 2rem;
  backdrop-filter: blur(10px);
}

.footer-horizontal {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-image {
  max-width: 180px;
  height: auto;
  filter: brightness(0.9);
  margin-bottom: 1.5rem;
  transition: var(--ibc-transition);
}

.footer-image:hover {
  filter: brightness(1);
  transform: scale(1.02);
}

.footer-item-title {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  color: var(--ibc-cream);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-item-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 1px;
  background-color: var(--ibc-cream);
}

.footer-item-info {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: rgba(234, 224, 213, 0.7);
  line-height: 1.8;
  margin-bottom: 0.5rem;
  font-weight: 300;
  transition: var(--ibc-transition);
}

.footer-item-info strong {
  color: var(--ibc-cream);
  font-weight: 400;
}

.footer-item-info:hover {
  color: var(--ibc-cream);
}

/* Footer Social/Follow links */
.footer-item-info:has(+ .footer-item-info) {
  cursor: pointer;
}

.mobile-footer-items {
  padding: 1.5rem 0;
}

/* ===== Password Form Styles ===== */
.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 300;
}

.password-strength-meter {
    height: 4px;
    background: var(--ibc-border);
    border-radius: 2px;
    margin: 0.25rem 0;
    overflow: hidden;
}

.password-strength-meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.password-strength-meter-fill.very-weak {
    width: 20%;
    background: #ff6b6b;
}

.password-strength-meter-fill.weak {
    width: 40%;
    background: #ffa500;
}

.password-strength-meter-fill.fair {
    width: 60%;
    background: #ffd700;
}

.password-strength-meter-fill.good {
    width: 80%;
    background: #90ee90;
}

.password-strength-meter-fill.strong {
    width: 100%;
    background: #228b22;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.password-requirements li {
    color: rgba(234, 224, 213, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 1.5rem;
}

.password-requirements li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: rgba(234, 224, 213, 0.3);
}

.password-requirements li.valid {
    color: rgba(234, 224, 213, 0.9);
}

.password-requirements li.valid::before {
    content: '✓';
    color: #90ee90;
}

.password-requirements li.invalid {
    color: rgba(234, 224, 213, 0.4);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(234, 224, 213, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--ibc-transition);
}

.password-toggle:hover {
    color: var(--ibc-cream);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .custom-input {
    padding-right: 3.5rem;
}

/* Password change confirmation */
.password-change-confirm {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(234, 224, 213, 0.1);
    border-radius: 4px;
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.password-change-confirm .success-message {
    margin-top: 0;
}

/* Password form specific */
.password-form .input-holder {
    position: relative;
}

.password-form .custom-input:focus {
    border-color: var(--ibc-gold);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.password-form .custom-input.error {
    border-color: rgba(255, 107, 107, 0.5);
}

.password-form .custom-input.success {
    border-color: rgba(144, 238, 144, 0.5);
}

/* Password match indicator */
.password-match {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 300;
    animation: fadeInUp 0.3s ease-out;
}

.password-match.matching {
    color: #90ee90;
}

.password-match.not-matching {
    color: #ff6b6b;
}

/* ===== Registration Form Styles ===== */
.login-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  position: relative;
}

.register-header {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--ibc-light);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.register-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ibc-cream), transparent);
}

.input-holder {
  margin-bottom: 2rem;
}

.custom-form-label {
  display: block;
  color: var(--ibc-cream);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.custom-input {
  width: 100%;
  background: var(--ibc-form-bg);
  border: 1px solid var(--ibc-border);
  border-radius: 2px;
  color: var(--ibc-cream);
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  font-weight: 300;
  transition: var(--ibc-transition);
  backdrop-filter: blur(5px);
}

.custom-input:focus {
  outline: none;
  border-color: var(--ibc-cream);
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 0 0 2px rgba(234, 224, 213, 0.1);
}

.custom-input::placeholder {
  color: rgba(234, 224, 213, 0.4);
  font-style: italic;
}

.custom-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: rgba(255, 100, 100, 0.3);
}

/* Select dropdown styling */
.custom-input[type="text"],
.custom-input[type="email"],
.custom-input[type="password"],
.custom-input[type="tel"],
.custom-input select,
.custom-input textarea {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.custom-input select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23eae0d5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 12px;
  padding-right: 3rem;
}

.custom-input textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* Registration Button */
.registration-button {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 3rem auto 0;
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--ibc-cream);
  color: var(--ibc-cream);
  border-radius: 30px;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--ibc-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.registration-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--ibc-cream);
  transition: var(--ibc-transition);
  z-index: -1;
}

.registration-button:hover {
  color: var(--ibc-dark);
  border-color: var(--ibc-cream);
  transform: translateY(-2px);
}

.registration-button:hover::before {
  width: 100%;
}

.registration-button:active {
  transform: translateY(0);
}

/* Form container background for registration pages */
.content-wrapper[style*="background: radial-gradient"] .login-wrapper {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--ibc-border);
  border-radius: 4px;
  padding: 3rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .special-wrapper {
    padding-top: 94px !important;
  }

  .hero-container {
    min-height: 100vh;
    height: auto;
    padding-top: 4rem;
  }

  .hero-info {
    padding: 1rem;
  }

  .text-heading {
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
  }

  .text-paragraph {
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
  }

  .content-container {
    padding: 3rem 1rem;
  }

  .content-image {
    height: 40vh;
    min-height: 300px;
    margin-bottom: 2rem;
  }

  .content-text {
    padding: 2rem 1rem;
  }

  .ethos + .ethos {
    border-left: none;
    border-top: 1px solid var(--ibc-border);
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .row.reverse {
    flex-direction: column-reverse;
  }

  /* Registration Form Mobile */
  .login-wrapper {
    padding: 2rem 1rem;
  }

  .register-header {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .input-holder {
    margin-bottom: 1.5rem;
  }

  .custom-input {
    padding: 0.8rem 1rem;
  }

  .content-wrapper[style*="background: radial-gradient"] .login-wrapper {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  /* Footer Mobile */
  .page-footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-horizontal {
    padding: 0 1rem;
  }

  .mobile-footer-items {
    text-align: center;
    padding: 2rem 0;
  }

  .footer-item-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-image {
    margin: 0 auto 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .mobile-footer-items {
    padding: 2rem 1rem;
  }

  .login-wrapper {
    padding: 4rem 2rem;
  }
}

/* ===== Animation Enhancements ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-container [data-aos],
.page-footer [data-aos],
.login-wrapper [data-aos] {
  animation-duration: 0.8s;
}

/* Form field animations */
.input-holder {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.input-holder:nth-child(1) { animation-delay: 0.1s; }
.input-holder:nth-child(2) { animation-delay: 0.2s; }
.input-holder:nth-child(3) { animation-delay: 0.3s; }
.input-holder:nth-child(4) { animation-delay: 0.4s; }
.input-holder:nth-child(5) { animation-delay: 0.5s; }
.input-holder:nth-child(6) { animation-delay: 0.6s; }

/* ===== Utility Classes (Reusable) ===== */
.text-center {
  text-align: center;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-gradient {
  background: linear-gradient(45deg, var(--ibc-cream), var(--ibc-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-minimal {
  background: transparent;
  border: 1px solid currentColor;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  transition: var(--ibc-transition);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.btn-minimal:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(234, 224, 213, 0.3), transparent);
  width: 100%;
  max-width: 300px;
  margin: 3rem auto;
}

/* ===== Card Style (for future reuse) ===== */
.ibc-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ibc-border);
  border-radius: 4px;
  padding: 2rem;
  transition: var(--ibc-transition);
  backdrop-filter: blur(10px);
}

.ibc-card:hover {
  border-color: rgba(234, 224, 213, 0.3);
  transform: translateY(-5px);
}

/* ===== Form Styles (for future pages) ===== */
.ibc-form {
  max-width: 500px;
  margin: 0 auto;
}

.ibc-form .form-control {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--ibc-border);
  color: var(--ibc-cream);
  border-radius: 2px;
  /* padding: 0.75rem 1rem; */
  font-size: 1rem;
  transition: var(--ibc-transition);
}

.ibc-form .form-control:focus {
  background: rgba(0, 0, 0, 0.5);
  border-color: var(--ibc-cream);
  color: var(--ibc-light);
  box-shadow: 0 0 0 2px rgba(234, 224, 213, 0.1);
}

.ibc-form label {
  color: var(--ibc-cream);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ===== Navigation Styles (for future pages) ===== */
.ibc-nav {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ibc-border);
}

.ibc-nav-link {
  color: var(--ibc-cream) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 300;
  padding: 0.5rem 1rem;
  transition: var(--ibc-transition);
}

.ibc-nav-link:hover {
  color: var(--ibc-gold) !important;
}

/* ===== Login Page Styles ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page .mobile-header {
  position: absolute !important;
  top: 0;
  width: 100%;
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
}

.login-page .mobile-header.scrolled {
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--ibc-border) !important;
}

.img-bg {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.img-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.display-box {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

@media (max-width: 992px) {
  .display-box {
    display: none !important; /* Hide the empty left side on mobile */
  }
  
  .login-box {
    margin-top: 0px !important;
  }
}

.login-box {
  position: relative;
  z-index: 3;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--ibc-border);
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .login-box {
    border-left: none;
    border-top: none;
    width: 100%;
    min-height: calc(100vh - 70px); /* Account for header height */
    margin-top: 70px; /* Push down below fixed header */
  }
  
  .img-bg::before {
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
  }
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
}

.text-gold {
  color: var(--ibc-gold) !important;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2.5rem !important;
}

.text-gold::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--ibc-gold);
  margin: 1rem auto 0;
}

.login-input {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid var(--ibc-border) !important;
  border-radius: 2px !important;
  color: var(--ibc-cream) !important;
  padding: 0.9rem 1.2rem !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  transition: var(--ibc-transition) !important;
  backdrop-filter: blur(5px);
}

.login-input:focus {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: var(--ibc-cream) !important;
  color: var(--ibc-light) !important;
  box-shadow: 0 0 0 2px rgba(234, 224, 213, 0.1) !important;
}

.login-input::placeholder {
  color: rgba(234, 224, 213, 0.4) !important;
  font-style: italic;
}

.form-label {
  color: var(--ibc-cream) !important;
  font-size: 0.9rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
  margin-bottom: 0.5rem !important;
  display: block;
}

.login-btn {
  width: 100%;
  padding: 1rem 2rem !important;
  background: transparent !important;
  border: 2px solid var(--ibc-gold) !important;
  color: var(--ibc-gold) !important;
  border-radius: 30px !important;
  font-size: 1rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  transition: var(--ibc-transition) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--ibc-gold);
  transition: var(--ibc-transition);
  z-index: -1;
}

.login-btn:hover {
  color: var(--ibc-dark) !important;
  border-color: var(--ibc-gold) !important;
  transform: translateY(-2px);
}

.login-btn:hover::before {
  width: 100%;
}

.login-btn:active {
  transform: translateY(0);
}

/* Login page footer adjustments */
.login-page .page-footer {
  margin-top: 0;
  position: relative;
  z-index: 4;
  background: rgba(0, 0, 0, 0.95);
}

/* Responsive login page */
@media (max-width: 768px) {
  .login-box {
    padding: 1.5rem;
  }
  
  .login-container {
    padding: 1.5rem;
  }
  
  .text-gold {
    font-size: 1.8rem;
    margin-bottom: 2rem !important;
  }
  
  .login-input {
    padding: 0.8rem 1rem !important;
  }
  
  .login-btn {
    padding: 0.9rem 1.5rem !important;
  }
}

/* Animation for login form */
.login-container form {
  animation: fadeInUp 0.8s ease-out;
}

.login-container .mb-2 {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.login-container .mb-2:nth-child(1) { animation-delay: 0.2s; }
.login-container .mb-2:nth-child(2) { animation-delay: 0.4s; }
.login-container .login-btn { animation-delay: 0.6s; }

/* Forgot password link */
.forgot-password {
  display: block;
  margin-top: 1.5rem;
  color: rgba(234, 224, 213, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--ibc-transition);
}

.forgot-password:hover {
  color: var(--ibc-gold);
  text-decoration: underline;
}

/* Error messages */
.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: left;
  font-weight: 300;
}

/* Success messages */
.success-message {
  color: var(--ibc-cream);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 300;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

/* Mobile-specific login adjustments */
@media (max-width: 768px) {
  .login-page .mobile-header {
    position: fixed !important;
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid var(--ibc-border) !important;
  }
  
  .login-box {
    padding: 1.5rem;
    margin-top: 70px; /* Fixed header height */
    min-height: calc(100vh - 70px);
  }
  
  .login-container {
    padding: 1.5rem;
    margin-top: 1rem;
  }
  
  .text-gold {
    font-size: 1.8rem;
    margin-bottom: 2rem !important;
  }
  
  .login-input {
    padding: 0.8rem 1rem !important;
  }
  
  .login-btn {
    padding: 0.9rem 1.5rem !important;
  }
  
  /* Make the entire background work for mobile */
  .img-bg {
    min-height: 100vh;
  }
  
  .row.mx-0 {
    min-height: 100vh;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .login-box {
    padding: 1rem;
  }
  
  .login-container {
    padding: 1rem;
  }
  
  .text-gold {
    font-size: 1.6rem;
  }
}

/* ===== Success/Confirmation Page Styles ===== */
.confirmation-page {
  min-height: 100vh;
  background: radial-gradient(rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.3) 100%), 
              url("{% static 'assets/img/pexels-photo-4141962 1.png' %}") center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.confirmation-box {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--ibc-border);
  border-radius: 8px;
  padding: clamp(3rem, 5vw, 5rem);
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease-out;
}

.confirmation-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, var(--ibc-gold), transparent, var(--ibc-cream));
  border-radius: 9px;
  z-index: -1;
  opacity: 0.3;
}

.confirmation-icon {
  font-size: 4rem;
  color: var(--ibc-gold);
  margin-bottom: 2rem;
  animation: scaleIn 0.8s ease-out 0.3s both;
}

.confirmation-title {
  color: var(--ibc-gold);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.confirmation-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
  margin: 1.5rem auto;
}

.confirmation-message {
  color: var(--ibc-cream);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.confirmation-details {
  color: rgba(234, 224, 213, 0.8);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--ibc-cream);
  color: var(--ibc-cream);
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--ibc-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.confirmation-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--ibc-cream);
  transition: var(--ibc-transition);
  z-index: -1;
}

.confirmation-button:hover {
  color: var(--ibc-dark);
  border-color: var(--ibc-cream);
  transform: translateY(-2px);
}

.confirmation-button:hover::before {
  width: 100%;
}

.confirmation-button:active {
  transform: translateY(0);
}

/* Success checkmark animation */
@keyframes scaleIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Custom checkmark SVG */
.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
}

.checkmark__circle {
  stroke: var(--ibc-gold);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  animation: drawCheck 0.6s ease-in-out 0.3s both;
}

.checkmark__check {
  stroke: var(--ibc-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawCheck 0.6s ease-in-out 0.9s both;
}

/* Responsive success page */
@media (max-width: 768px) {
  .confirmation-page {
    padding: 1.5rem;
  }
  
  .confirmation-box {
    padding: 2.5rem 1.5rem;
  }
  
  .confirmation-icon {
    font-size: 3rem;
  }
  
  .confirmation-title {
    font-size: 1.8rem;
  }
  
  .confirmation-message {
    font-size: 1.1rem;
  }
  
  .confirmation-details {
    max-width: 100%;
  }
  
  .confirmation-button {
    padding: 0.9rem 2rem;
    font-size: 0.9rem;
  }
  
  .checkmark {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .confirmation-box {
    padding: 2rem 1rem;
  }
  
  .confirmation-title {
    font-size: 1.6rem;
  }
  
  .confirmation-message {
    font-size: 1rem;
  }
  
  .confirmation-button {
    padding: 0.8rem 1.5rem;
  }
}

/* ===== Honor Code Page Specific Styles ===== */
.heading-3 {
  font-size: clamp(1.8rem, 2.5vw, 2.2rem);
  color: var(--ibc-cream);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  line-height: 1.4;
  text-align: center;
  position: relative;
}

.heading-3::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ibc-cream), transparent);
  margin: 1.5rem auto;
}

/* Lists styling for honor code */
.honor-list,
.dos-list,
.donts-list,
.core-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.honor-list li,
.dos-list li,
.donts-list li,
.core-values-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.8rem;
  text-align: left;
}

.honor-list li::before,
.dos-list li::before,
.donts-list li::before,
.core-values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  background: var(--ibc-gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.honor-list li strong {
  color: var(--ibc-gold);
  font-weight: 400;
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 1.3vw, 1.2rem);
  letter-spacing: 0.05em;
}

.honor-list li .paragraph {
  color: rgba(234, 224, 213, 0.9);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.6;
}

.core-values-list .paragraph {
  color: rgba(234, 224, 213, 0.9);
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  position: relative;
}

.core-values-list li {
  padding-left: 2rem;
  margin-bottom: 1.2rem;
}

.core-values-list li::before {
  content: '•';
  color: var(--ibc-gold);
  font-size: 1.5rem;
  background: transparent;
  width: auto;
  height: auto;
  top: 0.8rem;
  left: 0.5rem;
}

/* Section dividers for honor code */
.content-container:nth-child(even)::before {
  background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
}

.content-container:nth-child(even) {
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.content-container:nth-child(even)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.content-container:nth-child(even) > .container {
  position: relative;
  z-index: 1;
}

/* Grid layout for honor code sections */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.honor-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--ibc-border);
  border-radius: 4px;
  padding: 2.5rem;
  transition: var(--ibc-transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.honor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
  opacity: 0;
  transition: var(--ibc-transition);
}

.honor-card:hover {
  transform: translateY(-5px);
  border-color: rgba(234, 224, 213, 0.2);
}

.honor-card:hover::before {
  opacity: 1;
}

/* Responsive adjustments for honor code */
@media (max-width: 768px) {
  .honor-list li,
  .dos-list li,
  .donts-list li,
  .core-values-list li {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
  }
  
  .honor-list li strong {
    font-size: 1.1rem;
  }
  
  .honor-list li .paragraph,
  .core-values-list .paragraph {
    font-size: 1rem;
  }
  
  .content-text.px-3 {
    padding: 1.5rem !important;
  }
  
  .section-1.mx-5 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  
  .heading-3 {
    font-size: 1.5rem;
    padding: 0 1rem;
  }
  
  .honor-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .honor-card {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .honor-list li,
  .dos-list li,
  .donts-list li,
  .core-values-list li {
    padding-left: 2.2rem;
  }
  
  .content-text.px-3 {
    padding: 2rem !important;
  }
}

/* Animation for honor code lists */
.honor-list li,
.dos-list li,
.donts-list li,
.core-values-list li {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.honor-list li:nth-child(1) { animation-delay: 0.1s; }
.honor-list li:nth-child(2) { animation-delay: 0.2s; }
.honor-list li:nth-child(3) { animation-delay: 0.3s; }
.honor-list li:nth-child(4) { animation-delay: 0.4s; }
.honor-list li:nth-child(5) { animation-delay: 0.5s; }
.honor-list li:nth-child(6) { animation-delay: 0.6s; }
.honor-list li:nth-child(7) { animation-delay: 0.7s; }
.honor-list li:nth-child(8) { animation-delay: 0.8s; }
.honor-list li:nth-child(9) { animation-delay: 0.9s; }

.dos-list li:nth-child(1) { animation-delay: 0.2s; }
.dos-list li:nth-child(2) { animation-delay: 0.3s; }
.dos-list li:nth-child(3) { animation-delay: 0.4s; }
.dos-list li:nth-child(4) { animation-delay: 0.5s; }

.donts-list li:nth-child(1) { animation-delay: 0.2s; }
.donts-list li:nth-child(2) { animation-delay: 0.3s; }
.donts-list li:nth-child(3) { animation-delay: 0.4s; }

.core-values-list li:nth-child(1) { animation-delay: 0.1s; }
.core-values-list li:nth-child(2) { animation-delay: 0.15s; }
.core-values-list li:nth-child(3) { animation-delay: 0.2s; }
.core-values-list li:nth-child(4) { animation-delay: 0.25s; }
.core-values-list li:nth-child(5) { animation-delay: 0.3s; }
.core-values-list li:nth-child(6) { animation-delay: 0.35s; }
.core-values-list li:nth-child(7) { animation-delay: 0.4s; }
.core-values-list li:nth-child(8) { animation-delay: 0.45s; }
.core-values-list li:nth-child(9) { animation-delay: 0.5s; }
.core-values-list li:nth-child(10) { animation-delay: 0.55s; }
.core-values-list li:nth-child(11) { animation-delay: 0.6s; }

/* Decorative elements for honor code page */
.honor-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ibc-border), var(--ibc-gold), var(--ibc-border), transparent);
  width: 100%;
  max-width: 400px;
  margin: 2.5rem auto;
}

.honor-quote {
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  color: var(--ibc-cream);
  font-style: italic;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 2rem;
  position: relative;
  margin: 3rem 0;
}

.honor-quote::before,
.honor-quote::after {
  content: '"';
  color: var(--ibc-gold);
  font-size: 3rem;
  font-family: serif;
  position: absolute;
  opacity: 0.5;
}

.honor-quote::before {
  top: 0;
  left: 0;
}

.honor-quote::after {
  bottom: 0;
  right: 0;
}

/* Scroll reveal animations */
[data-aos="honor-slide"] {
  transform: translateX(-50px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="honor-slide"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

[data-aos="honor-slide-right"] {
  transform: translateX(50px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="honor-slide-right"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

/* Mobile-specific honor code adjustments */
@media (max-width: 768px) {
  .hero-container .hero-info {
    padding: 1rem;
  }
  
  .text-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
  }
  
  .text-paragraph {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  }
  
  .honor-quote {
    padding: 1.5rem;
    font-size: 1.1rem;
  }
  
  .honor-quote::before,
  .honor-quote::after {
    font-size: 2rem;
  }
  
  .honor-divider {
    margin: 2rem auto;
  }
}

/* Print styles for honor code */
@media print {
  .hero-container {
    min-height: 400px;
    height: auto;
  }
  
  .content-container {
    padding: 2rem 0;
    break-inside: avoid;
  }
  
  .content-image {
    display: none;
  }
  
  .honor-list li,
  .dos-list li,
  .donts-list li,
  .core-values-list li {
    break-inside: avoid;
  }
}

/* ===== Updated Image Layout ===== */
.content-image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.content-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
    filter: grayscale(30%);
    transition: var(--ibc-transition);
}

.content-image-img:hover {
    opacity: 0.9;
    filter: grayscale(10%);
    transform: scale(1.02);
}

/* Responsive styles */
@media (max-width: 768px) {
    .content-image-container {
        height: 40vh;
        min-height: 300px;
        margin-bottom: 2rem;
    }
    
    .content-image-img {
        opacity: 0.8;
    }
}

/* For reverse layout sections */
.row.reverse .content-image-container {
    order: -1;
}

@media (max-width: 768px) {
    .row.reverse .content-image-container {
        order: 0; /* Reset order on mobile */
        margin-top: 2rem;
    }
    
    .row.reverse .content-text {
        order: 1;
    }
}

/* Ensure proper aspect ratio on all screens */
.content-image-container::before {
    content: '';
    display: block;
    padding-top: 75%; /* 4:3 aspect ratio */
}

.content-image-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Alternative: Remove the aspect ratio if you prefer fixed heights */
/*
.content-image-container {
    height: 60vh;
    min-height: 400px;
}

.content-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/

/* For different image treatments */
.content-image-img.portrait {
    object-position: top center;
}

.content-image-img.landscape {
    object-position: center center;
}

/* ===== News & Announcements Styles ===== */
.news-heading {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--ibc-light);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.news-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
}

.news-subheading {
    color: var(--ibc-cream);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
}

.announcement-header {
    color: var(--ibc-cream);
    font-size: clamp(1.2rem, 1.5vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--ibc-border);
    position: relative;
}

.announcement-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--ibc-gold);
}

/* News articles */
.item-clickable {
    display: block;
    text-decoration: none;
    transition: var(--ibc-transition);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.item-clickable:hover {
    transform: translateY(-5px);
}

.item-clickable:hover .item-housing::before {
    transform: scale(1.05);
}

.item-housing {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid var(--ibc-border);
}

.item-housing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: var(--ibc-transition);
    opacity: 0.7;
}

.item-housing:hover::before {
    opacity: 0.9;
}

.item-housing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.category {
    color: var(--ibc-gold);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--ibc-gold);
    border-radius: 50%;
}

.title {
    color: var(--ibc-light);
    font-size: clamp(1.2rem, 1.5vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.subtitle {
    color: rgba(234, 224, 213, 0.8);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Announcements */
.announcements-clickable {
    display: block;
    text-decoration: none;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-border);
    border-radius: 4px;
    transition: var(--ibc-transition);
    backdrop-filter: blur(5px);
}

.announcements-clickable:hover {
    border-color: var(--ibc-gold);
    transform: translateX(5px);
    background: rgba(0, 0, 0, 0.4);
}

.announcement-date {
    color: var(--ibc-gold);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.announcement-title {
    color: var(--ibc-light);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.announcement-info {
    color: rgba(234, 224, 213, 0.7);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Video Slider */
.swiper {
    width: 100%;
    padding: 1rem 0 3rem;
}

.swiper-slide {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--ibc-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--ibc-transition);
    backdrop-filter: blur(10px);
}

.swiper-slide:hover {
    border-color: var(--ibc-gold);
    transform: translateY(-5px);
}

.swiper-slide video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--ibc-gold) !important;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
}

.swiper-pagination-bullet {
    background: var(--ibc-cream);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    background: var(--ibc-gold);
    opacity: 1;
}

/* Empty states */
.text-muted {
    color: rgba(234, 224, 213, 0.4) !important;
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Responsive news & announcements */
@media (max-width: 768px) {
    .news-heading {
        text-align: center;
        padding-bottom: 1rem;
    }
    
    .news-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .announcement-header {
        text-align: center;
    }
    
    .announcement-header::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .item-housing {
        aspect-ratio: 16/9;
    }
    
    .announcements-clickable {
        padding: 1rem;
    }
    
    .swiper-slide video {
        height: 180px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .item-housing {
        aspect-ratio: 16/9;
    }
    
    .swiper-slide video {
        height: 160px;
    }
}

/* Animation for news items */
.item-clickable,
.announcements-clickable {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Staggered animations for news grid */
.col-md-6[data-aos] {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Custom dropdown for categories */
.custom-dropdown .dropdown-toggle {
    background: transparent;
    border: 1px solid var(--ibc-border);
    color: var(--ibc-gold);
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 2px;
    transition: var(--ibc-transition);
    backdrop-filter: blur(5px);
}

.custom-dropdown .dropdown-toggle:hover {
    border-color: var(--ibc-gold);
    background: rgba(0, 0, 0, 0.3);
}

.custom-dropdown .dropdown-toggle::after {
    border: none;
    content: "▼";
    font-size: 0.7rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ibc-gold);
}

.custom-dropdown .dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--ibc-border);
    backdrop-filter: blur(10px);
    border-radius: 2px;
    padding: 0.5rem 0;
}

.custom-dropdown .dropdown-item {
    color: var(--ibc-cream);
    padding: 0.75rem 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: var(--ibc-transition);
    background: transparent;
}

.custom-dropdown .dropdown-item:hover {
    background: rgba(234, 224, 213, 0.1);
    color: var(--ibc-gold);
}

/* Categories navigation */
.categories {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ibc-border);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.categories-clickable a {
    color: var(--ibc-cream);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: var(--ibc-transition);
}

.categories-clickable a:hover {
    color: var(--ibc-gold);
    border-color: var(--ibc-border);
    background: rgba(0, 0, 0, 0.2);
}

/* Enhanced video player styling */
.swiper-slide > div {
    padding: 1rem;
}

.swiper-slide p:first-of-type {
    color: var(--ibc-cream);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 300;
}

.swiper-slide p:last-of-type {
    color: rgba(234, 224, 213, 0.5);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 300;
}

/* ===== Profile Page Styles ===== */
.profile-page {
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    min-height: calc(100vh - 70px);
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 2rem;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
}

.profile-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ibc-gold);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.profile-subtitle {
    color: var(--ibc-cream);
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Profile layout */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .profile-layout {
        grid-template-columns: 300px 1fr;
        gap: 4rem;
    }
}

/* Profile sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-photo-container {
    position: relative;
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-border);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--ibc-transition);
}

.profile-photo-container:hover {
    border-color: var(--ibc-gold);
    transform: translateY(-5px);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ibc-transition);
}

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--ibc-cream);
    font-size: 4rem;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Profile content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.profile-section {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-border);
    border-radius: 8px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--ibc-transition);
}

.profile-section:hover {
    border-color: rgba(234, 224, 213, 0.2);
    transform: translateY(-3px);
}

.profile-section-title {
    font-size: clamp(1.2rem, 1.5vw, 1.3rem);
    color: var(--ibc-gold);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ibc-border);
    position: relative;
}

.profile-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--ibc-gold);
}

/* Profile info grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-label {
    color: var(--ibc-gold);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-value {
    color: var(--ibc-cream);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.5;
    word-break: break-word;
}

.profile-value a {
    color: var(--ibc-cream);
    text-decoration: none;
    transition: var(--ibc-transition);
    position: relative;
    padding-bottom: 2px;
}

.profile-value a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ibc-gold);
    transition: var(--ibc-transition);
}

.profile-value a:hover {
    color: var(--ibc-gold);
}

.profile-value a:hover::after {
    width: 100%;
}

/* Bio section */
.profile-bio {
    color: var(--ibc-cream);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
    white-space: pre-line;
}

/* Edit button */
.edit-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--ibc-gold);
    color: var(--ibc-gold);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--ibc-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.edit-profile-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--ibc-gold);
    transition: var(--ibc-transition);
    z-index: -1;
}

.edit-profile-btn:hover {
    color: var(--ibc-dark);
    border-color: var(--ibc-gold);
    transform: translateY(-2px);
}

.edit-profile-btn:hover::before {
    width: 100%;
}

.edit-profile-btn:active {
    transform: translateY(0);
}

/* Membership status badge */
.membership-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-border);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--ibc-cream);
}

.membership-status.active {
    border-color: var(--ibc-gold);
    color: var(--ibc-gold);
}

.membership-status.pending {
    border-color: #ffaa00;
    color: #ffaa00;
}

/* Stats cards */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ibc-border);
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--ibc-transition);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--ibc-gold);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    color: var(--ibc-gold);
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--ibc-cream);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive profile styles */
@media (max-width: 768px) {
    .profile-page {
        padding: 2rem 1rem;
    }
    
    .profile-header {
        margin-bottom: 2rem;
    }
    
    .profile-title {
        font-size: 1.8rem;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-value {
        font-size: 1rem;
    }
    
    .profile-bio {
        font-size: 1rem;
    }
    
    .edit-profile-btn {
        width: 100%;
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .profile-layout {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
    }
    
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for profile sections */
.profile-section {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.profile-section:nth-child(1) { animation-delay: 0.1s; }
.profile-section:nth-child(2) { animation-delay: 0.2s; }
.profile-section:nth-child(3) { animation-delay: 0.3s; }

.profile-info-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: rgba(234, 224, 213, 0.4);
    font-style: italic;
}

/* Loading state */
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    min-height: 400px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--ibc-border);
    border-top-color: var(--ibc-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Profile verification badge */
.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-gold);
    border-radius: 12px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--ibc-gold);
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* ===== Edit Profile Page Styles ===== */
.edit-profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
}

.edit-profile-form {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-border);
    border-radius: 8px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.edit-profile-form .input-holder {
    margin-bottom: 1.5rem;
}

.edit-profile-form .custom-form-label {
    margin-bottom: 0.5rem;
}

.edit-profile-form .custom-input {
    background: rgba(0, 0, 0, 0.4);
}

/* Photo upload */
.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-preview {
    width: 200px;
    height: 200px;
    border: 2px dashed var(--ibc-border);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--ibc-transition);
}

.upload-preview:hover {
    border-color: var(--ibc-gold);
    transform: scale(1.05);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview::after {
    content: '📷 Change Photo';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ibc-cream);
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--ibc-transition);
    backdrop-filter: blur(5px);
}

.upload-preview:hover::after {
    opacity: 1;
}

.upload-instructions {
    color: rgba(234, 224, 213, 0.6);
    font-size: 0.9rem;
    text-align: center;
    font-weight: 300;
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ibc-border);
}

.btn-cancel {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--ibc-border);
    color: var(--ibc-cream);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--ibc-transition);
}

.btn-cancel:hover {
    border-color: var(--ibc-cream);
    color: var(--ibc-light);
}

.btn-save {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--ibc-gold);
    color: var(--ibc-gold);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--ibc-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-save::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--ibc-gold);
    transition: var(--ibc-transition);
    z-index: -1;
}

.btn-save:hover {
    color: var(--ibc-dark);
    border-color: var(--ibc-gold);
}

.btn-save:hover::before {
    width: 100%;
}

/* Responsive edit form */
@media (max-width: 768px) {
    .edit-profile-container {
        padding: 2rem 1rem;
    }
    
    .edit-profile-form {
        padding: 1.5rem;
    }
    
    .upload-preview {
        width: 150px;
        height: 150px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
        text-align: center;
    }
}

/* ===== Setup Password Page Styles ===== */
.setup-password-container {
    max-width: 500px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.setup-password-form {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ibc-border);
    border-radius: 8px;
    padding: clamp(2.5rem, 4vw, 4rem);
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

.setup-password-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--ibc-gold), transparent, var(--ibc-cream));
    border-radius: 9px;
    z-index: -1;
    opacity: 0.3;
}

.setup-password-title {
    color: var(--ibc-gold);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.setup-password-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
}

/* Error message styling */
.error-message {
    color: #ff6b6b;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* Success message styling */
.success-message {
    color: #90ee90;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 1rem;
    background: rgba(144, 238, 144, 0.1);
    border: 1px solid rgba(144, 238, 144, 0.3);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

/* Password requirements list - enhancing existing styles */
.password-requirements {
    list-style: none;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ibc-border);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.password-requirements li {
    color: rgba(234, 224, 213, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.8rem;
    transition: var(--ibc-transition);
}

.password-requirements li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: rgba(234, 224, 213, 0.3);
    font-size: 0.9rem;
    transition: var(--ibc-transition);
}

.password-requirements li.valid {
    color: rgba(234, 224, 213, 0.9);
}

.password-requirements li.valid::before {
    content: '✓';
    color: #90ee90;
    animation: scaleIn 0.3s ease-out;
}

.password-requirements li.invalid {
    color: rgba(234, 224, 213, 0.4);
}

/* Setup password specific button */
.setup-password-btn {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--ibc-gold);
    color: var(--ibc-gold);
    border-radius: 30px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--ibc-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    margin-top: 2rem;
}

.setup-password-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--ibc-gold);
    transition: var(--ibc-transition);
    z-index: -1;
}

.setup-password-btn:hover {
    color: var(--ibc-dark);
    border-color: var(--ibc-gold);
    transform: translateY(-2px);
}

.setup-password-btn:hover::before {
    width: 100%;
}

.setup-password-btn:active {
    transform: translateY(0);
}

.setup-password-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.setup-password-btn:disabled:hover::before {
    width: 0%;
}

/* Password match indicator - enhancing existing */
.password-match {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    font-weight: 300;
    animation: fadeInUp 0.3s ease-out;
}

.password-match::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: var(--ibc-transition);
}

.password-match.matching {
    color: #90ee90;
}

.password-match.matching::before {
    background: #90ee90;
    box-shadow: 0 0 10px #90ee90;
}

.password-match.not-matching {
    color: #ff6b6b;
}

.password-match.not-matching::before {
    background: #ff6b6b;
    box-shadow: 0 0 10px #ff6b6b;
}

/* Responsive setup password */
@media (max-width: 768px) {
    .setup-password-container {
        padding: 2rem 1rem;
        min-height: calc(100vh - 60px);
    }
    
    .setup-password-form {
        padding: 2rem 1.5rem;
    }
    
    .setup-password-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .error-message,
    .success-message {
        font-size: 0.85rem;
        padding: 0.75rem;
    }
    
    .setup-password-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .password-requirements {
        padding: 0.75rem;
    }
    
    .password-requirements li {
        font-size: 0.8rem;
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .setup-password-form {
        padding: 1.5rem 1rem;
    }
    
    .setup-password-title {
        font-size: 1.4rem;
    }
    
    .setup-password-btn {
        padding: 0.8rem 1rem;
    }
}

/* Animation for setup password form */
.setup-password-form .input-holder {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.setup-password-form .input-holder:nth-child(1) { animation-delay: 0.1s; }
.setup-password-form .input-holder:nth-child(2) { animation-delay: 0.2s; }

/* Security indicator */
.security-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.security-label {
    color: rgba(234, 224, 213, 0.7);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.security-rating {
    display: flex;
    gap: 0.25rem;
}

.security-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(234, 224, 213, 0.2);
    transition: var(--ibc-transition);
}

.security-dot.active {
    background: var(--ibc-gold);
    box-shadow: 0 0 8px var(--ibc-gold);
}

/* Loading state for password submission */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--ibc-transition);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ibc-border);
    border-top-color: var(--ibc-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Password visibility toggle enhancement */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(234, 224, 213, 0.6);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--ibc-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.password-toggle:hover {
    color: var(--ibc-cream);
    background: rgba(234, 224, 213, 0.1);
}

.password-toggle.active {
    color: var(--ibc-gold);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Instructions text */
.password-instructions {
    color: rgba(234, 224, 213, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 0.5rem;
    line-height: 1.5;
    font-style: italic;
}

/* Password strength score */
.password-strength-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 300;
}

.score-value {
    color: var(--ibc-cream);
    font-weight: 400;
}

.score-label {
    color: rgba(234, 224, 213, 0.6);
}

/* ===== Profile Management Form Styles ===== */
.profile-management-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1rem;
    min-height: calc(100vh - 70px);
}

.profile-management-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--ibc-gold);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.profile-management-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ibc-gold), transparent);
}

/* Form wrapper */
.profile-management-form {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ibc-border);
    border-radius: 8px;
    padding: clamp(2.5rem, 4vw, 4rem);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.8s ease-out;
}

.profile-management-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--ibc-gold), transparent, var(--ibc-cream));
    border-radius: 9px;
    z-index: -1;
    opacity: 0.3;
}

/* Form sections */
.profile-form-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.profile-form-section:last-child {
    margin-bottom: 0;
}

.profile-form-legend {
    font-size: clamp(1.2rem, 1.5vw, 1.3rem);
    color: var(--ibc-gold);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ibc-border);
    position: relative;
    display: block;
    width: 100%;
}

.profile-form-legend::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--ibc-gold);
}

/* Form fields styling for Django forms */
.profile-form-section p {
    margin-bottom: 1.5rem;
}

.profile-form-section label {
    display: block;
    color: var(--ibc-cream);
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.profile-form-section input[type="text"],
.profile-form-section input[type="email"],
.profile-form-section input[type="password"],
.profile-form-section input[type="tel"],
.profile-form-section input[type="file"],
.profile-form-section input[type="url"],
.profile-form-section input[type="date"],
.profile-form-section select,
.profile-form-section textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--ibc-border);
    border-radius: 2px;
    color: var(--ibc-cream);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 300;
    transition: var(--ibc-transition);
    backdrop-filter: blur(5px);
    font-family: 'Cormorant Garamond', serif;
}

.profile-form-section input:focus,
.profile-form-section select:focus,
.profile-form-section textarea:focus {
    outline: none;
    border-color: var(--ibc-cream);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 0 2px rgba(234, 224, 213, 0.1);
}

.profile-form-section input::placeholder,
.profile-form-section textarea::placeholder {
    color: rgba(234, 224, 213, 0.4);
    font-style: italic;
}

/* File upload styling */
.profile-form-section input[type="file"] {
    padding: 0.8rem;
    cursor: pointer;
}

.profile-form-section input[type="file"]::file-selector-button {
    background: transparent;
    border: 1px solid var(--ibc-border);
    color: var(--ibc-cream);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--ibc-transition);
    margin-right: 1rem;
}

.profile-form-section input[type="file"]::file-selector-button:hover {
    border-color: var(--ibc-cream);
    background: rgba(234, 224, 213, 0.1);
}

/* Textarea styling */
.profile-form-section textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Select dropdown styling */
.profile-form-section select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23eae0d5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 12px;
    padding-right: 3rem;
}

/* Checkbox styling */
.profile-form-section input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.2);
    accent-color: var(--ibc-gold);
}

/* Form row layout for checkboxes */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-row label {
    display: inline;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: rgba(234, 224, 213, 0.9);
    margin-bottom: 0;
}

/* Form actions */
.profile-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ibc-border);
}

.btn-cancel {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--ibc-border);
    color: var(--ibc-cream);
    border-radius: 30px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--ibc-transition);
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: var(--ibc-cream);
    color: var(--ibc-light);
    transform: translateY(-2px);
}

.btn-submit {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--ibc-gold);
    color: var(--ibc-gold);
    border-radius: 30px;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--ibc-transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--ibc-gold);
    transition: var(--ibc-transition);
    z-index: -1;
}

.btn-submit:hover {
    color: var(--ibc-dark);
    border-color: var(--ibc-gold);
    transform: translateY(-2px);
}

.btn-submit:hover::before {
    width: 100%;
}

.btn-submit:active {
    transform: translateY(0);
}

/* Error message styling for form validation */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.errorlist li {
    color: #ff6b6b;
    font-size: 0.85rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.errorlist li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

/* Help text styling */
.helptext {
    display: block;
    color: rgba(234, 224, 213, 0.6);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Photo preview */
.photo-preview {
    margin: 1rem 0;
    text-align: center;
}

.current-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ibc-border);
    margin-bottom: 1rem;
}

.current-photo-label {
    color: rgba(234, 224, 213, 0.7);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* Form grid layout for two-column fields */
.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.profile-form-grid .profile-form-section {
    margin-bottom: 0;
}

/* Responsive profile management */
@media (max-width: 768px) {
    .profile-management-container {
        padding: 2rem 1rem;
    }
    
    .profile-management-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .profile-management-form {
        padding: 2rem 1.5rem;
    }
    
    .profile-form-section {
        margin-bottom: 2rem;
    }
    
    .profile-form-legend {
        font-size: 1.1rem;
    }
    
    .profile-form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        text-align: center;
        padding: 0.9rem 2rem;
    }
    
    .profile-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .checkbox-row {
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .profile-management-form {
        padding: 3rem 2.5rem;
    }
    
    .profile-form-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Animation delays for form sections */
.profile-form-section:nth-child(1) { animation-delay: 0.1s; }
.profile-form-section:nth-child(2) { animation-delay: 0.2s; }

/* Loading state for form submission */
.form-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--ibc-cream);
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 1rem;
    margin-top: 1rem;
}

.form-loading.active {
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

.form-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--ibc-border);
    border-top-color: var(--ibc-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success message */
.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #90ee90;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(144, 238, 144, 0.1);
    border: 1px solid rgba(144, 238, 144, 0.3);
    border-radius: 4px;
    animation: fadeInUp 0.6s ease-out;
}

.form-success.active {
    display: flex;
}

/* Required field indicator */
.required::after {
    content: ' *';
    color: #ff6b6b;
}

/* Field group styling */
.field-group {
    margin-bottom: 1.5rem;
}

.field-group:last-child {
    margin-bottom: 0;
}

/* Multiple select styling */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid var(--ibc-border) !important;
    border-radius: 2px !important;
    color: var(--ibc-cream) !important;
    padding: 0.5rem !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    background: rgba(234, 224, 213, 0.2) !important;
    border: 1px solid var(--ibc-border) !important;
    color: var(--ibc-cream) !important;
    font-weight: 300 !important;
}

.select2-container .select2-search__field {
    color: var(--ibc-cream) !important;
    background: transparent !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 300 !important;
}

/* Date picker styling */
input[type="date"] {
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 2px;
    background: rgba(234, 224, 213, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background: rgba(234, 224, 213, 0.2);
}

/* Radio button styling */
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    transform: scale(1.2);
    accent-color: var(--ibc-gold);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option label {
    display: inline;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    color: rgba(234, 224, 213, 0.9);
    margin-bottom: 0;
}

/* Form validation states */
.profile-form-section input:valid:not(:placeholder-shown) {
    border-color: rgba(144, 238, 144, 0.5);
}

.profile-form-section input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(255, 107, 107, 0.5);
}

/* Character counter for textareas */
.char-counter {
    text-align: right;
    color: rgba(234, 224, 213, 0.5);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 0.25rem;
}

.char-counter.near-limit {
    color: #ffa500;
}

.char-counter.over-limit {
    color: #ff6b6b;
}