:root {
  --gold: #b8860b;
  --gold-dark: #9a6800;
  --gold-light: #d6b24c;
  --gold-pale: #f4ebd2;
  --cream: #fbf8f0;
  --white: #ffffff;
  --dark: #202020;
  --gray: #666666;
  --border: #e4d6b5;
  --input-border: #d9d9d9;
  --shadow: 0 3px 15px rgba(80, 60, 20, 0.06);
  --font-sans: "Poppins", "Segoe UI", sans-serif;
  --font-arabic: "Noto Kufi Arabic", "Poppins", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #f7f2e8;
  color: var(--dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle decorative background shapes */
body::before {
  content: "";
  position: fixed;
  top: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(184, 134, 11, 0.06),
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(184, 134, 11, 0.08),
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  padding: 10px;
  overflow-x: hidden;
}

.main-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  border-radius: 15px 15px 0 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  box-shadow: var(--shadow);
}

.navbar {
  background: transparent;
  padding: 10px 0;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 12px;
  color: var(--dark);
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 2px;
}

.navbar-toggler {
  border: none;
  font-size: 1.6rem;
  color: var(--gold);
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.navbar-nav {
  align-items: center;
  gap: 2px;
}

.navbar .nav-link {
  color: var(--dark);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 6px;
  transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--gold);
}

.btn-register {
  background: var(--gold);
  color: var(--white);
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.btn-register:hover,
.btn-register:focus {
  background: var(--gold-dark);
  transform: translateY(-1px);
  color: #fff;
  outline: none;
}

.btn-register i {
  font-size: 16px;
}

/* ---------- Registration Layout ---------- */
.registration-layout {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.event-card,
.registration-card,
.venue-card,
.contact-footer {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.event-card {
  flex: 0 0 39%;
  max-width: 39%;
  padding: 24px;
}

.registration-card {
  flex: 1;
  padding: 24px;
}

/* ---------- Left Event Card ---------- */
.event-arabic-title {
  font-family: var(--font-arabic);
  font-size: 26px;
  line-height: 1.5;
  color: var(--gold);
  font-weight: 700;
  text-align: center;
  direction: rtl;
  margin-bottom: 6px;
}

.year-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 10px;
}

.year-line {
  flex: 0 0 40px;
  height: 1px;
  background: var(--gold-light);
}

.year-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

.event-year {
  font-size: 46px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--gold);
  font-size: 24px;
  flex-shrink: 0;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 11.5px;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}

.event-details {
  background: var(--gold-pale);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-icon {
  color: var(--gold);
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.detail-text a,
.detail-text {
  font-size: 13px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.detail-subtext a{
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}


.detail-subtext {
  font-size: 11.5px;
  color: var(--gray);
  font-weight: 400;
}

.qr-section {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 10px;
}

.qr-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.qr-text {
  font-size: 12px;
  color: var(--dark);
  font-weight: 600;
}

/* ---------- Right Registration Card ---------- */
.registration-header {
  text-align: center;
  margin-bottom: 18px;
}

.decorative-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.decorative-line {
  flex: 0 0 35px;
  height: 1px;
  background: var(--gold-light);
}

.decorative-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--gray);
  font-size: 14px;
  margin-top: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.required {
  color: #d9534f;
}

.input-group .form-control,
.input-group .input-group-text {
  height: 44px;
  border: 1px solid var(--input-border);
  font-size: 13px;
}

.input-group .input-group-text {
  background: var(--cream);
  border-right: none;
  color: var(--gold);
  border-radius: 6px 0 0 6px;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.input-group .form-control:focus {
  box-shadow: none;
  border-color: var(--gold);
}

.input-group:focus-within {
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.08);
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
  border-color: var(--gold);
}

.upload-box {
  display: block;
  background: #fff;
  border: 1px dashed #c9c9c9;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  position: relative;
}

.upload-box:hover,
.upload-box.dragover {
  border-color: var(--gold);
  background: #fdfaf2;
}

.upload-box.is-invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.upload-icon {
  font-size: 36px;
  color: var(--gold);
  display: block;
  margin-bottom: 6px;
}

.upload-text {
  font-weight: 600;
  color: var(--dark);
  font-size: 13px;
}

.upload-subtext {
  color: var(--gray);
  font-size: 11px;
}

.file-hidden {
  display: none;
}

.selected-file {
  display: block;
  font-size: 11px;
  color: var(--gold-dark);
  margin-top: 6px;
  min-height: 16px;
  word-break: break-all;
}

.btn-register-now {
  width: 100%;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 7px;
  height: 42px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.2s;
  text-transform: uppercase;
}

.btn-register-now:hover,
.btn-register-now:focus {
  background: var(--gold-dark);
  transform: translateY(-1px);
  outline: none;
}

.login-text {
  text-align: center;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--gray);
}

.login-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.login-link:hover,
.login-link:focus {
  text-decoration: underline;
  color: var(--gold-dark);
}

/* ---------- Venue Details ---------- */
.venue-card {
  padding: 24px;
  margin-top: 16px;
}

.venue-heading {
  text-align: center;
  margin-bottom: 16px;
}

.venue-content {
  display: flex;
  gap: 20px;
  align-items: center;
}

.venue-img {
  width: 225px;
  height: 175px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}

.venue-info {
  flex: 1;
}

.venue-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

.venue-address {
  font-size: 12.5px;
  color: var(--gray);
  margin: 6px 0 12px;
  line-height: 1.5;
}

.venue-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--dark);
  background: var(--white);
  border-radius: 5px;
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.btn-outline-gold:hover,
.btn-outline-gold:focus {
  background: var(--gold-pale);
  color: var(--dark);
  outline: none;
}

.venue-stats {
  flex: 1.4;
  display: flex;
  align-items: stretch;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
}

.stat-icon {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 6px;
}

.stat-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.4;
}

/* ---------- Footer / Contact Bar ---------- */
.contact-footer {
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--dark);
  font-weight: 500;
}

.contact-item i {
  color: var(--gold);
  font-size: 18px;
}

.contact-item a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item a:hover,
.contact-item a:focus {
  color: var(--gold);
  text-decoration: underline;
}

* File input specific styling to match normal inputs */
.input-group .form-control[type="file"] {
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    height: 44px;
}

.input-group .form-control[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
    display: none;
}

.input-group .form-control[type="file"]::before {
    content: 'Choose file';
    display: inline-block;
    background: var(--cream);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    color: var(--dark);
}

.input-group .form-control[type="file"]:hover::before {
    border-color: var(--gold);
}

.selected-file {
    display: block;
    font-size: 11px;
    color: var(--gold-dark);
    margin-top: 6px;
    min-height: 16px;
    word-break: break-all;
}

.is-invalid .form-control {
    border-color: #dc3545;
}

.is-invalid .selected-file {
    color: #dc3545;
}

.detail-row .detail-subtext + .detail-subtext {
    margin-top: 2px;
}


/* ---------- Responsive Design ---------- */
@media (max-width: 1199.98px) {
  .event-card {
    padding: 20px;
  }
  .registration-card {
    padding: 20px;
  }
  .section-title {
    font-size: 23px;
  }
}

@media (max-width: 991.98px) {
  .site-header {
    min-height: auto;
    padding: 10px 15px;
    border-radius: 12px 12px 0 0;
  }

  .brand-title {
    font-size: 17px;
  }

  .registration-layout {
    flex-direction: column;
  }

  .event-card,
  .registration-card {
    max-width: 100%;
    flex: 0 0 auto;
    width: 100%;
  }

  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 0 0 12px 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }

  .navbar-nav {
    gap: 4px;
  }

  .btn-register-top {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .page-wrapper {
    padding: 5px;
  }

  .event-card,
  .registration-card,
  .venue-card,
  .contact-footer {
    padding: 16px;
    border-radius: 12px;
  }

  .event-arabic-title {
    font-size: 22px;
  }

  .event-year {
    font-size: 36px;
  }

  .feature-item {
    margin-bottom: 12px;
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .section-title {
    font-size: 21px;
  }

  .venue-content {
    flex-direction: column;
    align-items: stretch;
  }

  .venue-img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: cover;
  }

  .venue-stats {
    flex-wrap: wrap;
    gap: 12px 0;
  }

  .stat-divider {
    display: none;
  }

  .stat-item {
    flex: 0 0 50%;
    padding: 10px;
  }

  .contact-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 399.98px) {
  .brand-logo {
    height: 46px;
    width: 46px;
    margin-right: 8px;
  }
  .brand-title {
    font-size: 15px;
  }
  .brand-tagline {
    font-size: 10px;
  }
  .event-arabic-title {
    font-size: 19px;
  }
  .event-year {
    font-size: 30px;
  }
  .section-title {
    font-size: 18px;
  }
  .stat-item {
    flex: 0 0 100%;
  }
}
