/* =========================================================
   pages.css  —  guest content pages
   (blog list, single article, about, legal pages)
   Loaded on top of style.css by site/layouts/guest.blade.php
   ========================================================= */

/* ---------- page hero (breadcrumb header) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--secondary);
  padding: 5.5rem 0 7rem;
  margin-bottom: 3.5rem;
}

.page-hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 15%, rgba(50, 248, 189, 0.35), transparent 45%),
              radial-gradient(circle at 88% 10%, rgba(96, 165, 250, 0.28), transparent 45%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 4;
}

.page-hero .breadcrumb {
  margin: 0;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3rem;
  backdrop-filter: blur(4px);
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
}

.page-hero .breadcrumb-item a:hover {
  color: var(--secondary);
}

.page-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.75);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.6);
}

.page-hero .subtraction {
  line-height: 0;
  pointer-events: none;
}

.page-hero .subtraction svg {
  width: 100%;
  height: auto;
  display: block;
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .page-hero {
    padding: 3.5rem 0 4.5rem;
    margin-bottom: 2.5rem;
  }
  .page-hero .subtraction svg {
    height: 60px;
  }
}

/* ---------- shared section title ---------- */
.inner-page .sec-title,
.home-articles .secTitle {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.inner-page .sec-title {
  position: relative;
  padding-inline-start: 1rem;
}

.inner-page .sec-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 1.5em;
  border-radius: 4px;
  background: var(--linear);
}

/* ---------- articles grid / cards ---------- */
.articles {
  padding-block: 1rem 5rem;
}

.home-articles {
  padding-block: 3rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -18px rgba(1, 25, 18, 0.25);
  border-color: rgba(var(--mainOp), 0.6);
}

.article-card-img {
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  overflow: hidden;
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

.article-card-body {
  padding: 1.25rem 1.25rem 0.5rem;
  flex-grow: 1;
}

.article-card-body .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-body p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  margin-top: auto;
}

.article-card-footer .date {
  font-size: 0.85rem;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-card-footer .more {
  font-size: 0.85rem;
  font-weight: 600;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[dir="rtl"] .article-card-footer .more .bi-arrow-left::before {
  content: "\f12f";
}

/* ---------- single article ---------- */
.single-article {
  padding-bottom: 4rem;
}

.single-article .img {
  border-radius: 1.5rem;
  overflow: hidden;
  max-height: 480px;
  background: #f3f4f6;
}

.single-article .img img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
}

.single-article .title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
  flex: 1 1 60%;
}

.single-article .date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #6b7280;
  background: rgba(var(--mainOp), 0.12);
  padding: 0.4rem 0.9rem;
  border-radius: 3rem;
}

.single-article .content {
  font-size: 1.05rem;
  line-height: 2;
  color: #374151;
}

.single-article .content :is(h1, h2, h3, h4, h5, h6) {
  color: var(--secondary);
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
}

.single-article .content p {
  margin-bottom: 1rem;
}

.single-article .content img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 1rem 0;
}

.single-article .content a {
  color: #059669;
  text-decoration: underline;
}

.single-article .content ul,
.single-article .content ol {
  padding-inline-start: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- legal / rules pages ---------- */
.rules {
  padding-bottom: 4rem;
}

.rules .container {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 1.5rem;
  padding: 2.5rem;
  font-size: 1.02rem;
  line-height: 2;
  color: #374151;
}

.rules .container :is(h1, h2, h3, h4, h5, h6) {
  color: var(--secondary);
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.rules .container ul,
.rules .container ol {
  padding-inline-start: 1.5rem;
}

@media (max-width: 767px) {
  .rules .container {
    padding: 1.5rem;
  }
  .single-article .title {
    font-size: 1.4rem;
  }
}

/* ---------- about page sections (scoped to .inner-page) ---------- */
.inner-page .about,
.inner-page .why-us,
.inner-page .services {
  padding-block: 3rem;
}

.inner-page .about .content :is(p, li),
.inner-page .why-us .content :is(p, li) {
  color: #4b5563;
  line-height: 1.9;
  margin-bottom: 0.75rem;
}

.inner-page .about .img,
.inner-page .why-us .img {
  max-width: 460px;
  width: 100%;
}

.inner-page .about .img > img,
.inner-page .why-us .img > img,
.inner-page .about .img .video,
.inner-page .why-us .img .video {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  display: block;
}

.inner-page .about .img video,
.inner-page .why-us .img video {
  width: 100%;
  border-radius: 1.5rem;
  display: block;
}

.inner-page .ribbon-slide {
  position: absolute;
  inset-inline-end: -18px;
  top: -18px;
  width: 55%;
  z-index: 1;
  opacity: 0.35;
}

.inner-page .ribbon-slide svg {
  width: 100%;
  height: auto;
}

.inner-page .ribbon {
  display: none;
}

.inner-page .flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-page .float-icon {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--linear);
  color: #fff;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner-page .video .overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.inner-page .services .card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 1.25rem;
  overflow: hidden;
  height: 100%;
}

.inner-page .services .card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3f4f6;
}

.inner-page .services .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-page .services .card-body {
  padding: 1.25rem;
}

.inner-page .services .card-body .title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.inner-page .services .card-body :is(p, li) {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.7;
}
