/* ==============================
   Imports
============================== */
@import url("auth.css");
@import url("company.css");
@import url("pages.css");

.nu-dashboard-wrap {
  padding: 45px 0 70px;
  background: #f6f7f9;
}

.nu-dashboard-hero {
  background: #ffffff;
  border-radius: 24px;
  padding: 34px;
  margin-bottom: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .06);
}

.nu-dashboard-hero span {
  display: inline-block;
  color: #d8bd4f;
  font-weight: 800;
  margin-bottom: 10px;
}

.nu-dashboard-hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  color: #071b33;
}

.nu-dashboard-hero p {
  margin: 0;
  color: #657086;
  line-height: 1.8;
}

.nu-dashboard-hero-dark {
  background: linear-gradient(135deg, #071b33, #000);
  color: #fff;
}

.nu-dashboard-hero-dark h1,
.nu-dashboard-hero-dark p {
  color: #fff;
}

.nu-dashboard-grid,
.nu-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.nu-dashboard-card,
.nu-stat-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .05);
  transition: .25s ease;
}

.nu-dashboard-card:hover,
.nu-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .09);
}

.nu-dashboard-card strong,
.nu-stat-card strong {
  display: block;
  color: #071b33;
  font-size: 24px;
  margin-bottom: 8px;
}

.nu-dashboard-card small,
.nu-stat-card span {
  color: #687386;
  line-height: 1.7;
}

.nu-company-dashboard .nu-stat-card {
  border-top: 4px solid #d8bd4f;
}

.nu-dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.nu-dashboard-action-primary,
.nu-dashboard-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
}

.nu-dashboard-action-primary {
  background: #d8bd4f;
  color: #071b33;
}

.nu-dashboard-action-secondary {
  background: #071b33;
  color: #fff;
}

@media (max-width: 991px) {

  .nu-dashboard-grid,
  .nu-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .nu-dashboard-wrap {
    padding: 25px 0 45px;
  }

  .nu-dashboard-hero {
    padding: 24px;
    border-radius: 18px;
  }

  .nu-dashboard-hero h1 {
    font-size: 24px;
  }

  .nu-dashboard-grid,
  .nu-stats-grid {
    grid-template-columns: 1fr;
  }

  .nu-dashboard-actions {
    flex-direction: column;
  }

  .nu-dashboard-action-primary,
  .nu-dashboard-action-secondary {
    width: 100%;
  }
}


/* ==============================
   Luxury Theme Variables
============================== */
:root {
  --primary: #c7922b;
  --primary-dark: #9f6f18;
  --navy: #111111;
  --gold: #c7922b;
  --gold-dark: #9f6f18;
  --gold-soft: #f8edd6;
  --dark: #151515;
  --black: #050505;
  --muted: #6f6f6f;
  --bg: #f8f7f4;
  --card: #ffffff;
  --border: #eadfca;
  --success: #16a34a;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
}

/* ==============================
   Reset & Base
============================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  background: var(--bg);
  color: var(--dark);
  font-weight: 500;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p,
span,
label,
input,
select,
textarea,
button,
.btn,
.card {
  font-weight: 500;
}

h1,
h2,
h3,
.section-head h2,
.page-heading h1,
.home-category-card h3 {
  font-weight: 700;
}

.page-heading,
.page-heading h1,
.companies-page h1,
.section-title,
h1 {
  text-align: center;
}

/* ==============================
   Layout
============================== */
.container {
  width: min(1180px, 92%);
  margin: auto;
}

.site-main {
  min-height: 70vh;
}

/* ==============================
   Old Navbar Fallback
============================== */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 20px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a,
.smart-nav-links a,
.nav-login,
.nav-cta,
.lang-switch {
  font-weight: 500;
  color: var(--dark);
}

.menu-btn {
  display: none;
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  padding: 9px 12px;
  border-radius: 10px;
}

/* ==============================
   Hero
============================== */
.hero {
  background:
    radial-gradient(circle at center, rgba(199, 146, 43, 0.18), transparent 36%),
    linear-gradient(135deg, #111111, #000000);
  color: #fff;
  padding: 70px 0;
  border-radius: 0 0 34px 34px;
  margin-top: -28px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  color: #fff;
}

.hero p {
  font-size: 18px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* ==============================
   Home Hero
============================== */
.home-hero {
  position: relative;
  min-height: 360px;
  padding: 90px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(199, 146, 43, 0.20), transparent 38%),
    linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(0, 0, 0, 0.95)),
    url("../images/home-hero.jpg") center / cover no-repeat;
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.home-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 9px 22px;
  border-radius: 10px;
  background: rgba(199, 146, 43, 0.18);
  color: #f4c66a;
  border: 1px solid rgba(199, 146, 43, 0.35);
  font-size: 15px;
  font-weight: 700;
}

.home-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.25;
  font-weight: 800;
}

.home-hero p {
  max-width: 780px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.9;
}

.home-hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==============================
   Buttons
============================== */
.btn,
button,
.btn-primary,
.btn-light,
.btn-outline-light {
  min-height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn,
button,
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: 1px solid var(--gold);
  box-shadow: 0 10px 25px rgba(199, 146, 43, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-dark), #7c5411);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.btn.secondary,
.btn-light {
  color: var(--dark);
  background: #ffffff;
  border: 1px solid var(--border);
}

.btn-light:hover {
  color: var(--gold-dark);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.btn-outline-light {
  color: #ffffff;
  border: 1px solid rgba(199, 146, 43, 0.55);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(199, 146, 43, 0.16);
}

/* ==============================
   Main Home Sections
============================== */
.home-main-sections {
  padding: 52px 0 36px;
}

.home-main-head {
  max-width: 720px;
  margin: 0 auto 38px;
  text-align: center;
}

.home-main-head h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
}

.home-main-head h2::after {
  content: "";
  width: 58px;
  height: 3px;
  display: block;
  margin: 16px auto 0;
  border-radius: 10px;
  background: var(--gold);
}

.home-main-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.home-main-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-content: center;
}

.home-main-card {
  min-height: 300px;
  padding: 34px 26px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dark);
  text-decoration: none !important;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  overflow: hidden;
}

.home-main-card:hover {
  transform: translateY(-6px);
  border-color: rgba(199, 146, 43, 0.75);
  box-shadow: 0 24px 58px rgba(199, 146, 43, 0.18);
}

.home-main-card__image {
  width: 100%;
  height: 175px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-main-card__image img {
  max-width: 100%;
  max-height: 175px;
  object-fit: contain;
  display: block;
  transition: 0.25s ease;
}

.home-main-card:hover .home-main-card__image img {
  transform: scale(1.04);
}

.home-main-card h3 {
  margin: 0;
  color: var(--dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
}

.home-main-card p,
.home-main-card__arrow {
  display: none !important;
}

@media (min-width: 901px) {
  .home-main-grid .home-main-card:nth-child(4) {
    grid-column: 1 / 2;
  }

  .home-main-grid .home-main-card:nth-child(5) {
    grid-column: 2 / 3;
  }
}

@media (max-width: 900px) {
  .home-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .home-main-sections {
    padding: 38px 0 28px;
  }

  .home-main-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-main-card {
    min-height: 240px;
    padding: 28px 22px;
  }

  .home-main-card__image {
    height: 145px;
  }

  .home-main-card__image img {
    max-height: 145px;
  }

  .home-main-card h3 {
    font-size: 22px;
  }
}

/* ==============================
   Company CTA
============================== */
.home-company-cta {
  margin-top: 20px;
  margin-bottom: 70px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at left, rgba(199, 146, 43, 0.26), transparent 34%),
    linear-gradient(135deg, #171717, #000000);
  border: 1px solid rgba(199, 146, 43, 0.45);
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}

.home-company-cta__content span {
  color: #f4c66a;
  font-size: 18px;
  font-weight: 900;
}

.home-company-cta__content h2 {
  margin: 8px 0 10px;
  color: #ffffff;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
}

.home-company-cta__content p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.9;
}

.home-company-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==============================
   Cards
============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.card img {
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 12px;
}

.card h3,
.home-category-card h3,
.category-card h3 {
  text-align: center;
  font-weight: 700;
  color: var(--dark);
}

.card p {
  color: var(--muted);
}

/* ==============================
   Forms
============================== */
.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

textarea {
  min-height: 140px;
}

/* Register Page */
.auth-page .form-card,
.register-page .form-card,
form.form-card {
  max-width: 620px;
  margin: 48px auto 80px;
  padding: 42px 38px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.form-card h1 {
  text-align: center;
  font-size: 34px;
  margin: 0 0 32px;
  color: var(--dark);
}

.form-card label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--dark);
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 18px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 146, 43, 0.14);
}

.form-card button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.form-card button:hover {
  background: linear-gradient(135deg, var(--gold-dark), #7c5411);
}

/* ==============================
   Alerts
============================== */
.alert {
  padding: 14px;
  border-radius: 14px;
}

.alert.error {
  background: #fee2e2;
}

.alert.success {
  background: #dcfce7;
}

/* ==============================
   Tables
============================== */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 18px;
}

table {
  width: 100%;
}

/* ==============================
   Footer
============================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
}

/* ==============================
   Responsive
============================== */
@media (max-width: 900px) {

  .grid,
  .form-row,
  .home-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
  }

  .nav-links.is-open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

  .home-company-cta {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {

  .site-footer,
  .footer,
  footer {
    text-align: center !important;
  }

  .site-footer .container,
  .footer .container,
  footer .container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  .site-footer p,
  .footer p,
  footer p {
    margin: 0 auto !important;
    text-align: center !important;
    width: 100% !important;
  }

  form.form-card {
    margin: 28px 16px 60px;
    padding: 30px 22px;
  }

  .form-card h1 {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .home-hero {
    min-height: 330px;
    padding: 60px 18px;
  }

  .home-hero h1 {
    font-size: 34px;
  }

  .home-main-grid {
    gap: 20px;
  }

  .home-main-card {
    min-height: auto;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .home-main-card__image {
    height: 155px;
    margin-bottom: 18px;
  }

  .home-main-card__image img {
    max-height: 155px;
  }

  .home-main-card h3 {
    font-size: 22px;
  }

  .home-main-card p {
    font-size: 15px;
  }

  .home-company-cta {
    margin-bottom: 45px;
    border-radius: 18px;
  }
}

/* ==============================
   Direction
============================== */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="ltr"] body {
  direction: ltr;
}

/* ==============================
   Companies Page - Clean Cards
============================== */
.companies-hero {
  padding: 82px 0 72px;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(199, 146, 43, 0.20), transparent 30%),
    linear-gradient(135deg, #171717 0%, #050505 100%);
}

.companies-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 18px;
  border-radius: 10px;
  color: #f4c66a;
  background: rgba(199, 146, 43, 0.14);
  border: 1px solid rgba(199, 146, 43, 0.32);
  font-size: 13px;
  font-weight: 800;
}

.companies-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  text-align: center;
}

.companies-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.9;
}

.companies-main-section {
  padding-top: 64px;
  padding-bottom: 76px;
}

.companies-section-head {
  margin-bottom: 34px;
  text-align: center;
}

.companies-section-head h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
}

.companies-section-head h2::after {
  content: "";
  width: 54px;
  height: 3px;
  display: block;
  margin: 14px auto 0;
  border-radius: 10px;
  background: var(--gold);
}

.companies-section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.companies-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.companies-category-card {
  display: block;
  overflow: hidden;
  color: var(--dark);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.companies-category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(199, 146, 43, 0.75);
  box-shadow: 0 22px 45px rgba(199, 146, 43, 0.17);
}

.companies-category-card__image {
  width: 100%;
  height: 225px;
  overflow: hidden;
  background: #f7f2e8;
}

.companies-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.35s ease;
}

.companies-category-card:hover .companies-category-card__image img {
  transform: scale(1.05);
}

.companies-category-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  background: linear-gradient(135deg, #fff8ea, #ffffff);
  font-size: 52px;
  font-weight: 900;
}

.companies-category-card h3 {
  min-height: 68px;
  margin: 0;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
}

/* إزالة أي تنسيق قديم يسبب تعارض */
.categories-grid,
.main-category-card,
.main-category-image {
  all: unset;
}

/* Responsive */
@media (max-width: 1100px) {
  .companies-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .companies-category-card__image {
    height: 210px;
  }
}

@media (max-width: 640px) {
  .companies-hero {
    padding: 58px 0 50px;
  }

  .companies-main-section {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .companies-categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .companies-category-card {
    border-radius: 14px;
  }

  .companies-category-card__image {
    height: 130px;
  }

  .companies-category-card h3 {
    min-height: 56px;
    padding: 13px 8px;
    font-size: 15px;
  }
}

@media (max-width: 390px) {
  .companies-category-card__image {
    height: 115px;
  }

  .companies-category-card h3 {
    font-size: 14px;
  }
}

/* ==============================
   Category Page - Final Layout
============================== */
.category-page {
  background: var(--bg);
}

.category-head {
  padding: 28px 0 34px;
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(199, 146, 43, 0.20), transparent 30%),
    linear-gradient(135deg, #171717 0%, #050505 100%);
  border-bottom: 1px solid var(--border);
}

.category-head .container {
  max-width: 1080px;
}

.breadcrumbs {
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #ffffff;
}

.category-head h1 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
}

.category-count {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 700;
}

.subcategory-bar {
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subcategory-bar a {
  min-height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
}

.subcategory-bar a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
}

.category-body {
  padding: 42px 0 56px;
  background: var(--bg);
}

.category-body .container {
  max-width: 1080px;
}

.results-count {
  margin: 0 0 16px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.companies-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.company-card,
.company-profile-card {
  min-width: 300px;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.company-card-cover {
  width: 100%;
  height: 150px;
  display: block;
  overflow: hidden;
  background: #f7f2e8;
  border-radius: 13px;
}

.company-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card-body {
  flex: 1;
  padding: 14px 6px 10px;
  text-align: center;
}

.company-card-body h3 {
  min-height: 44px;
  margin: 0 0 9px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.company-card-body h3 a {
  color: var(--dark);
}

.company-card-badge {
  margin: 0 auto 12px;
  padding: 7px 14px;
  display: inline-flex;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.company-card-body p {
  min-height: 82px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.company-card-rating {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  white-space: nowrap;
}

.rating-stars {
  color: var(--gold);
}

.rating-score {
  color: var(--dark);
  font-weight: 900;
}

.rating-count {
  color: var(--muted);
}

.company-card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.company-card-actions a {
  height: 38px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.company-card-actions a.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
}

.back-link-wrap {
  margin: 24px 0 0;
  text-align: center;
}

.back-link {
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 900;
}

/* Responsive */
@media (max-width: 1100px) {
  .companies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .companies-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-count {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .category-head {
    padding: 24px 0 28px;
  }

  .category-head h1 {
    font-size: 32px;
  }

  .category-body {
    padding: 30px 0 44px;
  }

  .companies-grid {
    grid-template-columns: 1fr;
  }

  .company-card-cover {
    height: 190px;
  }

  .company-card-body h3,
  .company-card-body p {
    min-height: auto;
  }
}

/* FORCE FIX - Balanced Company Cards */
.category-body .grid,
.category-body .companies-grid,
.category-page .grid,
.category-page .companies-grid {
  width: 100% !important;
  max-width: 1260px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(245px, 1fr)) !important;
  gap: 15px !important;
}

.category-body .company-card,
.category-body .company-profile-card,
.category-page .company-card,
.category-page .company-profile-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 270px !important;
  margin: 0 !important;
}

.company-card-cover {
  height: 165px !important;
}

.company-card-body h3 {
  font-size: 18px !important;
}

.company-card-body p {
  font-size: 14px !important;
  min-height: 86px !important;
}

/* ==============================
   Mobile Category Fix
============================== */
@media (max-width: 560px) {

  .category-body .grid,
  .category-body .companies-grid,
  .category-page .grid,
  .category-page .companies-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    overflow: hidden !important;
  }

  .category-body .grid>*,
  .category-body .companies-grid>*,
  .category-page .grid>*,
  .category-page .companies-grid>* {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .category-body .company-card,
  .category-body .company-profile-card,
  .category-page .company-card,
  .category-page .company-profile-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 20px !important;
  }

  .company-card-cover {
    height: 210px !important;
  }

  .company-card-body h3 {
    font-size: 20px !important;
    min-height: auto !important;
  }

  .company-card-body p {
    min-height: auto !important;
    font-size: 14px !important;
  }

  .company-card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* ==============================
   Global Layout System
============================== */
:root {
  --layout-wide: 1080px;
  --layout-profile: 860px;
  --layout-page: 1180px;
}

/* العام */
.container {
  width: min(var(--layout-page), 92%);
  margin-left: auto;
  margin-right: auto;
}

/* صفحات القوائم والكروت */
.category-body .container,
.companies-main-section .container,
.container-wide {
  width: min(var(--layout-wide), 94%) !important;
  max-width: var(--layout-wide) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* صفحة بروفايل الشركة */
.company-profile-shell,
.container-narrow {
  width: min(var(--layout-profile), 92%) !important;
  max-width: var(--layout-profile) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* كروت الشركات */
.category-body .companies-grid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

.category-body .company-card,
.category-body .company-profile-card {
  min-width: 0 !important;
  width: 100% !important;
}

/* موبايل */
@media (max-width: 700px) {

  .container,
  .category-body .container,
  .companies-main-section .container,
  .company-profile-shell,
  .container-wide,
  .container-narrow {
    width: 92% !important;
    max-width: 92% !important;
  }

  .category-body .companies-grid {
    grid-template-columns: 1fr !important;
  }
}

.nu-page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  background:
    linear-gradient(rgba(0, 0, 0, .78), rgba(0, 0, 0, .78)),
    linear-gradient(135deg, #071b33, #000);
  overflow: hidden;
}

.nu-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(216, 189, 79, .18), transparent 30%);
  opacity: .45;
}

.nu-page-hero .container {
  width: min(1180px, 94%);
  max-width: 1180px;
}

.nu-page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.nu-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(216, 189, 79, .12);
  border: 1px solid rgba(216, 189, 79, .25);
  color: #d8bd4f;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.nu-page-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  font-weight: 900;
  margin: 0 0 12px;
}

.nu-page-hero p {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 720px;
}

.nu-page-hero-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.nu-page-hero-tabs a {
  height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: .25s ease;
  backdrop-filter: blur(10px);
}

.nu-page-hero-tabs a:hover {
  border-color: #d8bd4f;
  color: #d8bd4f;
  transform: translateY(-2px);
}

.nu-page-hero-tabs a.active {
  background: #d8bd4f;
  border-color: #d8bd4f;
  color: #111827;
}

@media(max-width:768px) {
  .nu-page-hero {
    min-height: 260px;
    padding: 34px 0;
  }

  .nu-page-hero h1 {
    font-size: 30px;
  }

  .nu-page-hero p {
    font-size: 15px;
  }

  .nu-page-hero-tabs {
    gap: 8px;
    margin-top: 20px;
  }

  .nu-page-hero-tabs a {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }
}



/* ==============================
   Ad Details Page Final
============================== */

.ad-details-page {
  background: #f3f5f9;
}

.ad-details-section {
  padding: 0px 0 24px;
}

.ad-details-section .container,
.related-ads-section .container {
  width: min(860px, 92%);
  max-width: 860px;
}

/* Gallery */

.ad-gallery {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
  margin-bottom: 22px;
}

.main-image {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #eef2f7;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  z-index: 5;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .16);
  cursor: pointer;
}

.gallery-nav-prev {
  right: 18px;
}

.gallery-nav-next {
  left: 18px;
}

.gallery-counter {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  z-index: 5;
}

.ad-featured-badge,
.related-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  background: #d8bd4f;
  color: #111827;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.gallery-thumbs {
  padding: 14px 18px 18px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.thumb-btn {
  width: 72px;
  height: 50px;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #f3f4f6;
  opacity: .75;
  transition: .25s;
  cursor: pointer;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn.active,
.thumb-btn:hover {
  opacity: 1;
  border-color: #d8bd4f;
  box-shadow: 0 8px 18px rgba(216, 189, 79, .35);
}

/* Info Card */

.ad-info-card {
  background: #fff;
  border-radius: 22px;
  padding: 34px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

.ad-info-head {
  display: block;
  padding-bottom: 0;
}

.ad-title-side {
  width: 100%;
  margin-bottom: 18px;
}

.ad-title-side h1 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.5;
  text-align: right;
}

.ad-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ad-meta-inline span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
}

.ad-meta-inline i {
  color: #7aa8c7;
}

.ad-price-side {
  width: 100%;
  min-width: 0;
  text-align: right;
  margin-top: 20px;
  padding: 22px 0;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
}

.ad-price-side small {
  display: block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 800;
}

.ad-price-side strong {
  display: block;
  color: #d8bd4f;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

/* Description */

.ad-description-inline {
  padding-top: 24px;
}

.ad-description-inline h3 {
  margin: 0 0 16px;
  padding-right: 12px;
  border-right: 5px solid #d8bd4f;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
}

.ad-description-inline p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 2;
}

/* Buttons */

.ad-contact-actions {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-btn {
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff !important;
  font-size: 17px;
  font-weight: 900;
  transition: .25s;
}

.contact-btn.call {
  background: #1976d2;
  box-shadow: 0 12px 24px rgba(25, 118, 210, .24);
}

.contact-btn.whatsapp {
  background: #22c55e;
  box-shadow: 0 12px 24px rgba(34, 197, 94, .24);
}

.contact-btn:hover {
  transform: translateY(-2px);
}

/* Related */

.related-ads-section {
  padding: 16px 0 60px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  padding-right: 12px;
  border-right: 5px solid #d8bd4f;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.section-head a {
  color: #2b6f9f;
  font-size: 14px;
  font-weight: 800;
}

.related-ads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-ad-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  color: #111827;
  transition: .25s;
}

.related-ad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .13);
}

.related-ad-card .image {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.related-ad-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-ad-card .content {
  padding: 18px;
  text-align: center;
}

.related-ad-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  line-height: 1.45;
}

.related-ad-card strong {
  display: block;
  color: #d8bd4f;
  font-size: 24px;
  font-weight: 900;
}

.related-location {
  margin-top: 8px;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
}

/* Mobile */

@media(max-width:768px) {

  .ad-details-section {
    padding: 30px 0 18px;
  }

  .main-image {
    height: 280px;
  }

  .gallery-thumbs {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .ad-info-card {
    padding: 24px;
  }

  .ad-title-side h1 {
    font-size: 22px;
  }

  .ad-price-side strong {
    font-size: 36px;
  }

  .ad-contact-actions {
    grid-template-columns: 1fr;
  }

  .related-ads-grid {
    grid-template-columns: 1fr;
  }
}

.home-ad-banners {
  margin: 32px auto;
}

.home-ad-banner {
  display: block;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
  background: #fff;
}

.home-ad-banner img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {

  .da-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* عربي */
  html[dir="rtl"] .da-header__inner {
    flex-direction: row-reverse;
  }

  /* إنجليزي */
  html[dir="ltr"] .da-header__inner {
    flex-direction: row;
  }

  /* ترتيب الشعار */
  .da-brand {
    display: flex;
    align-items: center;
  }

  html[dir="rtl"] .da-brand {
    margin-left: auto;
    margin-right: 0;
  }

  html[dir="ltr"] .da-brand {
    margin-right: auto;
    margin-left: 0;
  }

  /* زر المنيو */
  .da-mobile-toggle {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #c9962c, #9d6914);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  }

  .da-mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 20px;
    background: #fff;
    display: block;
    margin: 0;
  }

  html[dir="rtl"] .da-mobile-toggle {
    order: 1;
  }

  html[dir="rtl"] .da-brand {
    order: 2;
  }

  html[dir="ltr"] .da-brand {
    order: 1;
  }

  html[dir="ltr"] .da-mobile-toggle {
    order: 2;
  }

  /* إخفاء الديسكتوب بالموبايل */
  .da-nav,
  .da-actions {
    display: none !important;
  }

  .da-brand__logo {
    max-height: 100px;
    width: auto;
    object-fit: contain;
  }
}

@media (max-width: 768px) {

  html[dir="ltr"] .da-header__inner {
    flex-direction: row;
  }

  html[dir="ltr"] .da-mobile-toggle {
    order: 1;
    margin-right: 18px;
    margin-left: 0;
  }

  html[dir="ltr"] .da-brand {
    order: 2;
    margin-right: auto;
    margin-left: 0;
  }

  html[dir="rtl"] .da-mobile-toggle {
    order: 1;
    margin-left: 18px;
    margin-right: 0;
  }

  html[dir="rtl"] .da-brand {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }
}

/* ==============================
   Login Page Fix
============================== */
.auth-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 80px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 34px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.auth-card h1 {
  margin: 0 0 28px;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  color: var(--dark);
}

.auth-card .form-group {
  margin-bottom: 18px;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  font-size: 15px;
  outline: none;
}

.auth-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 146, 43, .14);
}

.auth-card button {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.auth-links {
  margin-top: 16px;
  text-align: center;
}

.auth-links a {
  color: var(--gold-dark);
  font-weight: 800;
}

@media(max-width:560px) {
  .auth-page {
    padding: 32px 14px 60px;
  }

  .auth-card {
    max-width: 100%;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .auth-card h1 {
    font-size: 28px;
  }
}

/* ==============================
   Events List Final Fix
============================== */
.events-page {
  padding: 48px 0 80px;
}

.events-page .page-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.event-type-bar {
  margin: 0 auto 34px;
  justify-content: center;
}

.events-list {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.event-card,
.events-list>a,
.events-list>article {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .08);
  text-decoration: none;
  color: var(--dark);
}

.event-card img,
.events-list img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.event-card .content,
.event-card-body,
.events-list .content {
  padding: 18px;
  text-align: center;
}

.event-card h3,
.events-list h3 {
  margin: 8px 0 10px;
  color: var(--gold-dark);
  font-size: 18px;
  font-weight: 900;
}

.event-card p,
.events-list p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.event-card small,
.events-list small {
  color: var(--dark);
  font-weight: 800;
}

@media(max-width:900px) {
  .events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:560px) {
  .events-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .event-card img,
  .events-list img {
    height: 210px;
  }
}

.event-compact-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, .08);
}

/* .event-compact-image{
    display:block;
    height:220px;
    overflow:hidden;
    background:#f7f2e8;
}

.event-compact-image img{
    width:100%;
    height:100%;
    object-fit:cover;
} */

.event-compact-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  text-align: center;
}

.event-compact-type {
  color: var(--dark);
  font-size: 14px;
  font-weight: 800;
}

.event-compact-body h3 {
  margin: 10px 0;
  font-size: 20px;
  font-weight: 900;
}

.event-compact-body h3 a {
  color: var(--gold-dark);
}

.event-compact-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.event-compact-meta {
  margin-top: auto;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 800;
}

.event-compact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 16px auto 0;
  padding: 0 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important;
  font-weight: 900;
}

.event-details-page {
  padding: 46px 0 80px;
}

.event-details-card {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.event-details-image {
  width: 100%;
  height: 430px;
  overflow: hidden;
  background: #f7f2e8;
}

.event-details-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-details-content {
  padding: 34px 38px 38px;
  text-align: center;
}

.event-type-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 900;
}

.event-details-content h1 {
  margin: 0 0 18px;
  color: var(--dark);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.event-details-content p {
  max-width: 820px;
  margin: 0 auto 28px;
  color: var(--dark);
  font-size: 16px;
  line-height: 2;
}

.event-details-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.event-details-info div {
  padding: 18px 14px;
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.event-details-info span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.event-details-info strong {
  color: var(--dark);
  font-size: 14px;
  font-weight: 900;
}

.event-actions-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-secondary {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #111;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@media(max-width:768px) {
  .event-details-page {
    padding: 30px 0 60px;
  }

  .event-details-image {
    height: 260px;
  }

  .event-details-content {
    padding: 26px 20px 30px;
  }

  .event-details-content h1 {
    font-size: 26px;
  }

  .event-details-info {
    grid-template-columns: 1fr;
  }

  .event-actions-bar a,
  .event-actions-bar button {
    width: 100%;
  }
}