/* Magazine layout on top of Biban brand CSS */

.site-header--solid{
  position: relative;
  background: linear-gradient(165deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: var(--radius-shell) var(--radius-shell) 0 0;
  z-index: 20;
}

.about-shell{
  padding: 0 0 40px;
}

.about-shell .about-article--solo{
  margin: 24px clamp(18px, 4vw, 42px) 28px;
}

.hero-panel--magazine{
  min-height: min(72vh, 640px);
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(250, 221, 109, 0.16);
  border: 1px solid rgba(250, 221, 109, 0.45);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.section-block--magazine{
  background: var(--white);
  padding: 56px clamp(18px, 4vw, 42px) 40px;
}

.article-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.article-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--teal-line);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
  min-height: 100%;
}

.article-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 78, 89, 0.16);
}

.article-card__cover{
  position: relative;
  height: 190px;
  overflow: hidden;
}

.article-card__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__cat{
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.article-card__body{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}

.article-card__meta{
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-card__title{
  margin: 0;
  color: var(--teal);
  font-size: 20px;
  line-height: 1.35;
}

.article-card__excerpt{
  margin: 0;
  color: rgba(15, 78, 89, 0.72);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
}

.article-card__more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--brown);
  font-weight: 700;
  font-size: 14px;
}

.article-card__more i{
  color: var(--gold-dark);
}

.featured-story{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--teal-dark);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.featured-story__cover{
  min-height: 320px;
}

.featured-story__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-story__content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 40px);
}

.featured-story__cat{
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-story__title{
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
}

.featured-story__excerpt{
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.7;
}

.director-card{
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.08fr;
  align-items: stretch;
  overflow: hidden;
  margin-top: 22px;
  min-height: 440px;
  border-radius: 32px;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 58%, #083238 100%);
  border: 1px solid rgba(250, 221, 109, 0.28);
  box-shadow: var(--shadow-teal);
}

.director-card::after{
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 180px;
  height: 120px;
  background: var(--gold-merge-curve);
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 160px auto;
  opacity: 0.85;
  pointer-events: none;
}

.director-card--wide{
  margin-top: 0;
  width: 100%;
  max-width: none;
}

.director-card__photo{
  position: relative;
  min-height: 440px;
  overflow: hidden;
}

.director-card__photo img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 12%;
}

.director-card__photo::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(10, 58, 66, 0.35) 100%);
  pointer-events: none;
}

.director-card__badge{
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(15, 78, 89, 0.28);
}

.director-card__info{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(28px, 5vw, 48px);
}

.director-card__kicker{
  margin: 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.director-card__name{
  margin: 0;
  color: var(--white);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
}

.director-card__name::after{
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--gold-divider-fade);
}

.director-card__bio{
  margin: 0;
  max-width: 34em;
  color: var(--on-dark-muted);
  font-size: 16px;
  line-height: 1.75;
}

.director-card__link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 8px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--teal);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(250, 221, 109, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s ease;
}

.director-card__link:hover{
  transform: translateY(-2px);
  background: var(--gold-dark);
}

.director-card__link i{
  font-size: 16px;
}

html[dir="rtl"] .director-card,
html[dir="rtl"] .director-card__info{
  direction: rtl;
}

html[dir="rtl"] .director-card__photo::after{
  background: linear-gradient(270deg, transparent 55%, rgba(10, 58, 66, 0.35) 100%);
}

html[dir="rtl"] .director-card::after{
  transform: scaleX(-1);
}

@media (max-width: 800px){
  .director-card{
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .director-card__photo{
    min-height: 320px;
  }
  .director-card__photo::after{
    background: linear-gradient(180deg, transparent 45%, rgba(10, 58, 66, 0.55) 100%);
  }
  .director-card__info{
    padding-top: 8px;
  }
}

.article-hero{
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.article-hero img{
  width: 100%;
  height: min(420px, 52vh);
  object-fit: cover;
}

.article-wrap{
  width: min(760px, 100%);
  margin: 0 auto;
}

.article-wrap h1{
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
}

.article-wrap .article-card__meta{
  margin-bottom: 22px;
}

.article-body p,
.article-body li{
  font-size: 17px;
  line-height: 1.85;
  color: rgba(15, 78, 89, 0.88);
}

.article-body h2{
  margin: 28px 0 10px;
  font-size: 24px;
}

.article-body ul,
.article-body ol{
  margin: 0 0 18px;
  padding-inline-start: 1.3em;
}

.article-empty,
.articles-empty{
  padding: 40px 20px;
  text-align: center;
  color: rgba(15, 78, 89, 0.65);
}

.filter-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter-chip{
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--teal-line);
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover{
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal);
}

.section__head--split{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

html[dir="rtl"] .article-grid,
html[dir="rtl"] .featured-story,
html[dir="rtl"] .filter-row{
  direction: rtl;
}

html[dir="rtl"] .article-card__more .fa-arrow-right{
  transform: scaleX(-1);
}

.contact-wa-pill{
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 900px){
  .article-grid{
    grid-template-columns: 1fr 1fr;
  }
  .featured-story{
    grid-template-columns: 1fr;
  }
  .featured-story__cover{
    min-height: 220px;
  }
}

@media (max-width: 640px){
  .article-grid{
    grid-template-columns: 1fr;
  }
  .section__head--split{
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-panel--magazine{
    min-height: 520px;
  }
}

@media (max-width: 991px){
  .header-actions .btn--ghost{
    display: none;
  }
}

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sale-card{
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--teal-line);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.sale-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(15, 78, 89, 0.16);
}

.sale-card__cover{
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--teal-dark);
}

.sale-card__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sale-card__sold{
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
}

.sale-card__count{
  position: absolute;
  bottom: 12px;
  inset-inline-end: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(15, 78, 89, 0.72);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}

.sale-card__body{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  flex: 1;
}

.sale-card__meta{
  margin: 0;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sale-card__title{
  margin: 0;
  color: var(--teal);
  font-size: 20px;
}

.sale-card__more{
  margin-top: 8px;
  color: var(--brown);
  font-weight: 700;
  font-size: 14px;
}

#propertyPage{
  width: min(1080px, 100%);
  margin: 0 auto;
}

#propertyPage h1{
  margin: 8px 0 22px;
  font-size: clamp(28px, 4vw, 40px);
}

.property-hero{
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 22px;
  max-height: 460px;
  background: var(--teal-dark);
}

.property-hero img{
  width: 100%;
  height: min(460px, 56vh);
  object-fit: cover;
}

.property-gallery{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.property-gallery button,
.property-gallery a{
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
}

.property-gallery img,
.property-gallery video{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.property-video video{
  width: 100%;
  margin-top: 10px;
  border-radius: 18px;
  background: #000;
}

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(8, 32, 38, 0.88);
  padding: 24px;
}

.lightbox[hidden]{ display: none; }

.lightbox img{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox__close,
.lightbox__nav{
  position: absolute;
  border: 0;
  cursor: pointer;
  color: var(--gold);
  background: rgba(15, 78, 89, 0.7);
}

.lightbox__close{
  top: 18px;
  inset-inline-end: 18px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
}

.lightbox__nav{
  top: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.lightbox__prev{ inset-inline-start: 18px; }
.lightbox__next{ inset-inline-end: 18px; }

html[dir="rtl"] .portfolio-grid,
html[dir="rtl"] .property-gallery{
  direction: rtl;
}

@media (max-width: 900px){
  .portfolio-grid{
    grid-template-columns: 1fr 1fr;
  }
  .property-gallery{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px){
  .portfolio-grid{
    grid-template-columns: 1fr;
  }
}
