/* ==========================================================================
   site.css - all custom CSS of azerbaijanstudentdormitory.az
   Previously scattered as inline <style> blocks across three index.php files.
   Loaded last, so it wins over the theme.
   ========================================================================== */

:root {
  --wa-green:      #25D366;
  --wa-green-dark: #128C7E;
  --alert-red:     #E63946;
  --white:         #FFFFFF;
}

/* --------------------------------------------------------------------------
   Responsive visibility helpers
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* --------------------------------------------------------------------------
   Logos
   -------------------------------------------------------------------------- */
.site-logo        { height: 56px; object-fit: contain; object-position: left; }
.mobile-menu-logo { width: 45px; }

/* --------------------------------------------------------------------------
   Hero / banner
   -------------------------------------------------------------------------- */
.rbt-banner-area .wrapper { padding: 15px 0; }
.banner-content-col       { margin-bottom: 70px; }

@media (max-width: 768px) {
  #home { padding-top: 140px; }
}

/* Rotating review card */
.card-info .inner,
.card-info .notify-icon {
  transition: opacity .4s ease-in-out, transform .4s ease-in-out;
}
.card-info .inner.fade-out,
.card-info .notify-icon.fade-out {
  opacity: 0;
  transform: translateY(10px);
}
.notify-icon img {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  background-color: #e9ecef;
}

/* --------------------------------------------------------------------------
   Floating WhatsApp bar (mobile only)
   -------------------------------------------------------------------------- */
#whatsapp-container { display: none; }

@media (max-width: 768px) {
  #whatsapp-container {
    display: block;
    position: fixed;
    bottom: 15px;
    left: 20px;
    right: 20px;
    z-index: 1000;
  }

  #whatsapp-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--wa-green);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    transition: all .2s ease-in-out;
  }
  #whatsapp-button:hover {
    background-color: var(--wa-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  }
  #whatsapp-button:active {
    transform: translateY(1px) scale(.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  }

  #yurt-uyari {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--alert-red);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 20px;
    border: 2px solid var(--white);
    white-space: nowrap;
    animation: wa-pulse 2s infinite;
  }
}

@keyframes wa-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Language switcher
   -------------------------------------------------------------------------- */
.lang-switch { position: relative; display: inline-block; z-index: 100000; }

.lang-trigger::-webkit-details-marker,
.lang-trigger::marker {
  display: none !important;
  content: "" !important;
  font-size: 0 !important;
}

.lang-trigger {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: saturate(120%) blur(6px);
  transition: background .2s, border-color .2s, box-shadow .2s;
  line-height: 1;
}
.lang-trigger:hover {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(0, 0, 0, .08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
.lang-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(12, 131, 253, .25);
}
.lang-trigger .left-image { width: 14px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang-trigger .menu-item  { font-size: 13px; font-weight: 500; }
.lang-trigger .right-icon { font-size: 13px; opacity: .7; transition: transform .2s; }
.lang-switch[open] .lang-trigger .right-icon { transform: rotate(180deg); }

.lang-switch > .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  margin-top: 6px;
  padding: 4px;
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, .06) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08) !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 100001;
}
.lang-switch[open] > .sub-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.lang-switch > .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}
.lang-switch > .sub-menu li a .left-image { width: 14px; height: 14px; border-radius: 2px; object-fit: cover; }
.lang-switch > .sub-menu li a:hover { background: rgba(12, 131, 253, .08) !important; }

/* Parent containers must not clip the dropdown */
.rbt-header-wrapper, .rbt-header-top, .rbt-header-content, .rbt-header-right,
.rbt-header-sec-col, .popup-mobile-menu .inner-wrapper,
.top-expended-wrapper, .top-expended-inner {
  overflow: visible !important;
  z-index: 10000;
}

/* Dark theme */
.rbt-dark .lang-trigger        { background: rgba(26, 26, 28, .6);  border-color: rgba(255, 255, 255, .06); }
.rbt-dark .lang-trigger:hover  { background: rgba(26, 26, 28, .85); border-color: rgba(255, 255, 255, .12); }
.rbt-dark .lang-switch > .sub-menu {
  background: rgba(26, 26, 28, .92) !important;
  border-color: rgba(255, 255, 255, .06) !important;
  box-shadow: 0 18px 30px rgba(0, 0, 0, .35) !important;
}
.rbt-dark .lang-switch > .sub-menu li a       { color: #e9e9e9; }
.rbt-dark .lang-switch > .sub-menu li a:hover { background: rgba(255, 255, 255, .06) !important; }

/* Mobile popup menu */
@media (max-width: 1199.98px) {
  .popup-mobile-menu .lang-trigger { padding: 8px 10px; border-radius: 8px; }
  .popup-mobile-menu .lang-switch > .sub-menu {
    position: static !important;
    border: none !important;
    box-shadow: none !important;
    margin: 4px 0 0 0;
    padding: 0;
    background: transparent !important;
    backdrop-filter: none !important;
  }
  .popup-mobile-menu .lang-switch > .sub-menu li a { padding: 10px 0; }
}

/* --------------------------------------------------------------------------
   University logo marquee
   -------------------------------------------------------------------------- */
.brand-box-wrapper {
  background-color: #fff;
  padding: 15px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, .07);
  margin-top: -50px;
  z-index: 10;
}
.brand-box   { display: flex; width: max-content; }
.brand-scroll{ display: flex; animation: brand-scroll 40s linear infinite; }

.brand-box-wrapper:hover .brand-scroll { animation-play-state: paused; }

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 35px;
  width: 150px;
  flex-shrink: 0;
}
.brand-item img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 15px;
  opacity: .85;
  transition: all .4s ease-in-out;
}
.brand-item:hover img { opacity: 1; transform: scale(1.1); }

.brand-badge {
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background-color: #f5f5f5;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all .3s ease;
}
.brand-item:hover .brand-badge { background-color: #007bff; color: #fff; }

@keyframes brand-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-scroll { animation: none; }
  #yurt-uyari   { animation: none; }
}

/* --------------------------------------------------------------------------
   Pricing - gender chip on the plan cards
   -------------------------------------------------------------------------- */
.plan-gender {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.4;
}
.plan-gender i { font-size: 13px; }

.plan-gender--male {
  color: #0b63c5;
  background: rgba(12, 131, 253, .10);
  border: 1px solid rgba(12, 131, 253, .22);
}
.plan-gender--female {
  color: #c2185b;
  background: rgba(233, 30, 99, .10);
  border: 1px solid rgba(233, 30, 99, .22);
}

/* Coloured top edge so the two cards are told apart at a glance */
.pricing-table.plan-male   { border-top: 3px solid rgba(12, 131, 253, .55); }
.pricing-table.plan-female { border-top: 3px solid rgba(233, 30, 99, .55); }

.plan-note {
  font-size: 14px;
  opacity: .75;
  max-width: 720px;
  margin-inline: auto;
}

.rbt-dark .plan-gender--male   { color: #7ab6ff; background: rgba(12, 131, 253, .16); }
.rbt-dark .plan-gender--female { color: #ff8fb3; background: rgba(233, 30, 99, .16); }

/* --------------------------------------------------------------------------
   "Why us" feature cards
   -------------------------------------------------------------------------- */
.feature-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .09);
  border-color: rgba(12, 131, 253, .22);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 24px;
  color: #0c83fd;
  background: rgba(12, 131, 253, .10);
  transition: background .3s ease, color .3s ease;
}
.feature-card:hover .feature-icon { background: #0c83fd; color: #fff; }

.feature-title { margin-bottom: 8px; font-size: 19px; }
.feature-text  { margin-bottom: 0; font-size: 15px; line-height: 1.65; opacity: .78; }

.rbt-dark .feature-card { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); }

/* --------------------------------------------------------------------------
   Pricing card polish
   -------------------------------------------------------------------------- */
.rbt-pricing-area .pricing-table.style-2 {
  border-radius: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.rbt-pricing-area .pricing-table.style-2:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, .10);
}
.pricing-table .price-wrap .amount { font-size: 46px; line-height: 1.1; }
.pricing-table .pricing-body h4 {
  font-size: 15px;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 14px;
}
.pricing-table .pricing-body .list-item li { font-size: 15px; }

/* Long amenity lists read better in two columns on wide screens */
@media (min-width: 1200px) {
  .pricing-table .pricing-body .list-item {
    column-count: 2;
    column-gap: 26px;
  }
  .pricing-table .pricing-body .list-item li { break-inside: avoid; }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.rbt-gallery-area .rbt-gallery { position: relative; overflow: hidden; }
.rbt-gallery-area .rbt-gallery img { transition: transform .5s ease; display: block; }
.child-gallery-single:hover .rbt-gallery img { transform: scale(1.07); }

.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: rgba(10, 60, 125, .45);
  opacity: 0;
  transition: opacity .35s ease;
}
.child-gallery-single:hover .gallery-zoom { opacity: 1; }

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, #0a3c7d 0%, #0c83fd 100%);
  color: #fff;
  padding: 64px 0;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-copy  { flex: 1 1 420px; }
.cta-title { color: #fff; margin-bottom: 10px; font-size: 32px; line-height: 1.25; }
.cta-text  { color: rgba(255, 255, 255, .88); margin-bottom: 0; font-size: 16px; max-width: 620px; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid #fff;
  transition: transform .2s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.cta-btn--solid { background: #fff; color: #0a3c7d; }
.cta-btn--solid:hover {
  background: #fff;
  color: #0a3c7d;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}
.cta-btn--ghost { background: transparent; color: #fff; }
.cta-btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-3px); }

@media (max-width: 767.98px) {
  .cta-band  { padding: 48px 0; }
  .cta-title { font-size: 25px; }
  .cta-actions { width: 100%; }
  .cta-btn { flex: 1 1 100%; justify-content: center; }
}

/* Floating WhatsApp bar overlaps the band on mobile - keep some room */
@media (max-width: 768px) {
  .rbt-footer .copyright-area { padding-bottom: 90px; }
}

/* --------------------------------------------------------------------------
   Accessibility: visible focus ring on every interactive element
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(12, 131, 253, .45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ==========================================================================
   RIGHT-TO-LEFT LAYER  (Urdu, Arabic)
   The theme ships an LTR-only Bootstrap build, so the pieces that actually
   need mirroring are flipped here. Everything keyed off <html dir="rtl">,
   which app/config.php sets per language.
   ========================================================================== */
[dir="rtl"] { text-align: right; }

[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end   { text-align: left  !important; }

/* Bootstrap's LTR-only spacing helpers used in the layout */
[dir="rtl"] .pl--30 { padding-left: 0 !important; padding-right: 30px !important; }
[dir="rtl"] .offset-lg-1 { margin-left: 0; margin-right: 8.33333333%; }

/* Lists: bullets and check icons move to the right side */
[dir="rtl"] ul { padding-left: 0; padding-right: 1rem; }
[dir="rtl"] .list-item,
[dir="rtl"] .ft-link,
[dir="rtl"] .rbt-information-list,
[dir="rtl"] .mainmenu,
[dir="rtl"] .social-icon,
[dir="rtl"] .copyright-link,
[dir="rtl"] .package-includes { padding-right: 0; }
[dir="rtl"] .package-includes { padding-right: 1.1rem; }

/* Arrow icons inside buttons point the other way */
[dir="rtl"] .btn-icon .feather-arrow-right,
[dir="rtl"] .rbt-btn .feather-arrow-right { transform: scaleX(-1); }

/* Language dropdown opens from the right edge */
[dir="rtl"] .lang-switch > .sub-menu { left: auto; right: 0; }

/* Floating WhatsApp badge sits on the opposite corner */
[dir="rtl"] #yurt-uyari { right: auto; left: -10px; }

/* Accordion chevron / heading alignment */
[dir="rtl"] .accordion-button { text-align: right; }
[dir="rtl"] .accordion-button::after { margin-left: 0; margin-right: auto; }

/* Pricing card chip + logo keep their natural side */
[dir="rtl"] .site-logo { object-position: right; }

/* New sections */
[dir="rtl"] .feature-card { text-align: right; }
[dir="rtl"] .cta-text     { margin-inline: 0 auto; }

/* Latin-script content that must NOT be mirrored */
[dir="rtl"] .brand-box-wrapper,
[dir="rtl"] .map-container,
[dir="rtl"] .amount,
[dir="rtl"] .duration { direction: ltr; }
[dir="rtl"] .brand-item { text-align: center; }
[dir="rtl"] .price-wrap { direction: ltr; text-align: right; }

/* --------------------------------------------------------------------------
   Map
   -------------------------------------------------------------------------- */
.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
