/* ==========================================================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --bs-primary: #b68a35; /* Primary Gold */
  --bs-secondary: #efedea; /* Secondary Beige */
  --bs-light: #ffffff; /* White */

  /* Brand Color Palette */
  --brand-space: #012169; /* Deep Blue */
  --brand-knowledge: #0072ce; /* Bright Blue */
  --brand-legacy: #ceb888; /* Light Gold */
  --brand-sustainability: #24a968; /* Green */
  --brand-trust: #6a3c5e; /* Purple */

  /* Neutral Colors */
  --bs-neutral-light: #efedea;

  /* Base Styles */
  --bs-body-color: #4f4b47;
  --bs-body-bg: #ffffff;
}

/* apply to the whole page */

body {
  /* background-image: url("/assets/img/pattern.png"); */
  background-repeat: repeat-y;
  background-position: right top;
  background-size: auto;
  background-attachment: fixed;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

/* Primary Button - Gold */
.btn-primary {
  --bs-btn-color: #fff !important;
  --bs-btn-bg: var(--bs-primary) !important;
  --bs-btn-border-color: var(--bs-primary) !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #9c772e !important;
  --bs-btn-hover-border-color: #9c772e !important;
  --bs-btn-active-bg: #856727 !important;
  --bs-btn-active-border-color: #856727 !important;
}

/* Secondary Button - Beige */
.btn-secondary {
  --bs-btn-color: #fff !important;
  --bs-btn-bg: var(--bs-secondary) !important;
  --bs-btn-border-color: var(--bs-secondary) !important;
  --bs-btn-hover-color: #fff !important;
  --bs-btn-hover-bg: #3f4243 !important;
  --bs-btn-hover-border-color: #3f4243 !important;
  --bs-btn-active-bg: #2f3233 !important;
  --bs-btn-active-border-color: #2f3233 !important;
}

/* Brand-Specific Buttons */
.btn-space {
  background-color: var(--brand-space) !important;
  color: #fff !important;
}

.btn-knowledge {
  background-color: var(--brand-knowledge) !important;
  color: #fff !important;
}

.btn-legacy {
  background-color: var(--brand-legacy) !important;
  color: #000 !important;
}

.btn-sustainability {
  background-color: var(--brand-sustainability) !important;
  color: #fff !important;
}

.btn-trust {
  background-color: var(--brand-trust) !important;
  color: #fff !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Background Colors */
.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-space {
  background-color: var(--brand-space) !important;
}

.bg-knowledge {
  background-color: var(--brand-knowledge) !important;
}

.bg-legacy {
  background-color: var(--brand-legacy) !important;
}

.bg-sustainability {
  background-color: var(--brand-sustainability) !important;
}

.bg-trust {
  background-color: var(--brand-trust) !important;
}

/* Text Colors */
.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.text-space {
  color: var(--brand-space) !important;
}

.text-knowledge {
  color: var(--brand-knowledge) !important;
}

.text-legacy {
  color: var(--brand-legacy) !important;
}

.text-sustainability {
  color: var(--brand-sustainability) !important;
}

.text-trust {
  color: var(--brand-trust) !important;
}

.summary-text {
  text-align: left;
}

[dir="rtl"] .summary-text {
  text-align: right !important;
}
.site-logo {
  width: 180px !important;
  max-width: none !important;
  height: auto;
}

.slider-card-img {
  height: 300px;
  overflow: hidden;
  position: relative;
  background-color: #efedea;
}

.slider-card-img img {
  width: 100%;
  height: 298px;

  object-position: center;
}

.slider-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.slider-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .slider-card-img {
    height: 250px;
  }
}

@media (min-width: 1024px) {
  .slider-card-img {
    height: 298px;
  }
}

.max-xxl {
  max-width: 100% !important;
  width: 100% !important;
}

.form {
  width: 100%;
}

/* Phone and Fax text color white */

.footer-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-start;
  direction: rtl;
}

[lang="en"] .footer-line {
  direction: ltr;
}

.footer-line svg {
  flex-shrink: 0;
}

.footer-line span {
  color: #fff;
  font-size: 1rem;
}

.footer-line .ltr-text {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.theFilter-content-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;

  height: 100%;
}

.theFilter-content-card-img img {
  transition: transform 0.3s ease;
}

.theFilter-content-card-img img {
  transform: scale(1.05);
}

.card-overlay {
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease;
}

.card-overlay {
  opacity: 1;
}

.search-grid-expand {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

.search-grid-expand .theFilter-content-card-img {
  flex: 0 0 180px;
  max-width: 180px;
}

.search-grid-expand .theFilter-content-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-grid-expand .line-clamp-2 {
  -webkit-line-clamp: 3;
}

.search-grid-mobile {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
}

.search-grid-mobile .theFilter-content-card-img {
  flex: 0 0 100px;
  max-width: 100px;
}

.search-grid-mobile .theFilter-content-card-body {
  flex: 1;
}

.search-grid-mobile .theFilter-content-card-body-desc {
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .theFilter-content-card-body {
    padding: 0.75rem !important;
  }
}

.transition-transform {
  transition: transform 0.3s ease;
}

.transition-opacity {
  transition: opacity 0.3s ease;
}
.theFilter-content-card-img img {
  height: 350px;
  width: 100%;
  object-fit: content;
  border-radius: 12px 12px 0 0;
}
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.share-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    cursor: pointer;
}

.share-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 90%;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.share-modal-title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.share-modal-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    color: white !important;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 14px;
    gap: 8px;
}

.share-btn i {
    font-size: 24px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none;
}

.share-btn-facebook {
    background: #1877f2;
}

.share-btn-facebook:hover {
    background: #145dbf;
}

.share-btn-twitter {
    background: #1da1f2;
}

.share-btn-twitter:hover {
    background: #0d8bd9;
}

.share-btn-linkedin {
    background: #0077b5;
}

.share-btn-linkedin:hover {
    background: #005885;
}

.share-btn-whatsapp {
    background: #25d366;
}

.share-btn-whatsapp:hover {
    background: #1da851;
}

.share-modal-close {
    width: 100%;
    padding: 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.share-modal-close:hover {
    background: #5a6268;
}



/* Responsive Design */
@media (max-width: 768px) {
    .share-modal-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .share-modal-content {
        padding: 20px;
        min-width: 280px;
    }
    
    .share-btn {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .share-btn i {
        font-size: 20px;
    }
}

.citation-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
}

.citation-box {
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
}

.citation-box textarea {
    width: 100%;
    height: 120px;
    margin: 10px 0;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
