/* =========================================================
   Inner pages — contact / about / blog / pages body
   Hero comes from work-samples.css (agf-ws-*)
   ========================================================= */

.agf-inner {
  --ai-ink: #031012;
  --ai-text: #172020;
  --ai-muted: #6C7A79;
  --ai-line: #DDE2E2;
  --ai-green: #21C77A;
  --ai-green-2: #32E69A;
  --ai-dark: #083D3F;
  --ai-mint: #CFF7E7;
  --ai-bg: #F6F8F8;
}

/* ----- Contact ----- */
.agf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 24px;
  align-items: start;
}

.agf-contact-info {
  display: grid;
  gap: 14px;
}

.agf-contact-card {
  padding: 20px 18px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 10px 28px rgba(3, 16, 18, 0.05);
}

.agf-contact-card__ico {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 199, 122, 0.12);
  color: var(--ai-dark);
  font-size: 16px;
}

.agf-contact-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ai-ink);
}

.agf-contact-card p,
.agf-contact-card a {
  margin: 0;
  color: var(--ai-muted);
  font-size: 0.88rem;
  line-height: 1.8;
  text-decoration: none !important;
}

.agf-contact-card a:hover {
  color: var(--ai-green) !important;
}

.agf-contact-form {
  padding: 26px 22px 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 14px 40px rgba(3, 16, 18, 0.06);
}

.agf-contact-form__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ai-ink);
  letter-spacing: -0.02em;
}

.agf-contact-form__hint {
  margin: 0 0 20px;
  color: var(--ai-muted);
  font-size: 0.86rem;
  line-height: 1.8;
}

.agf-contact-form__body .card,
.agf-contact-form__body .mx-md-5 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.agf-contact-form__body > .card > p,
.agf-contact-form__body .card > p.mb-3 {
  display: none !important;
}

.agf-contact-form__body .form-group {
  margin-bottom: 14px;
}

.agf-contact-form__body label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5A6A69;
}

.agf-contact-form__body .form-control {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(3, 16, 18, 0.1);
  border-radius: 12px;
  background: #FAFBFB;
  color: #172020;
  font-size: 0.9rem;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.agf-contact-form__body textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.agf-contact-form__body .form-control:focus {
  border-color: rgba(33, 199, 122, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 199, 122, 0.12) !important;
}

.agf-contact-form__body .btn,
.agf-contact-form__body .btn-lightorng {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  margin-top: 6px;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #32E69A 0%, #21C77A 55%, #18a862 100%) !important;
  color: #031012 !important;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow:
    0 0 0 1px rgba(50, 230, 154, 0.25),
    0 10px 28px rgba(33, 199, 122, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.agf-contact-form__body .btn:hover,
.agf-contact-form__body .btn-lightorng:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  color: #031012 !important;
}

.agf-contact-socials {
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(33, 199, 122, 0.16), transparent 55%),
    linear-gradient(165deg, #0a4548 0%, #031012 100%);
  box-shadow: 0 14px 36px rgba(3, 16, 18, 0.18);
}

.agf-contact-socials__title {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.agf-contact-socials__list {
  display: grid;
  gap: 8px;
}

.agf-contact-social {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.agf-contact-social:hover {
  background: rgba(33, 199, 122, 0.14);
  border-color: rgba(50, 230, 154, 0.3);
  transform: translateY(-1px);
  color: #fff !important;
}

.agf-contact-social i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.08);
}

.agf-contact-social--ig i { color: #E1306C; }
.agf-contact-social--tg i { color: #2AABEE; }
.agf-contact-social--wa i { color: #25D366; }

.agf-contact-social strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
}

.agf-contact-social em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.agf-contact-map {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--ai-line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(3, 16, 18, 0.05);
}

.agf-contact-map iframe,
.agf-contact-map > * {
  display: block;
  width: 100% !important;
  max-width: 100%;
  border: 0 !important;
}

.agf-contact-lead {
  margin: 0 0 28px;
  max-width: 68ch;
  color: var(--ai-muted);
  font-size: 0.95rem;
  line-height: 2;
}

.agf-contact-lead p {
  margin: 0 0 0.85em;
}

.agf-contact-lead p:last-child {
  margin-bottom: 0;
}

.agf-contact-lead a {
  color: var(--ai-green);
  font-weight: 700;
}

/* ----- FAQ page ----- */
.agf-faq-page.ah-faq {
  padding: 0;
  background: transparent;
  max-width: 820px;
  margin: 0 auto;
}

.agf-faq-page .ah-faq__list {
  gap: 12px;
}

.agf-faq-empty {
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed var(--ai-line);
  color: var(--ai-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ----- About ----- */
.agf-about-panel {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 12px 36px rgba(3, 16, 18, 0.06);
}

.agf-about-panel .ck-content,
.agf-about-panel .ck-content-body {
  color: var(--ai-text);
  font-size: 0.95rem;
  line-height: 2;
}

.agf-about-panel .ck-content h1,
.agf-about-panel .ck-content h2,
.agf-about-panel .ck-content h3 {
  color: var(--ai-ink);
  font-weight: 800;
}

/* ----- Blog / Pages search & sidebar ----- */
.agf-list-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.agf-side {
  display: grid;
  gap: 14px;
}

.agf-side__card {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 10px 28px rgba(3, 16, 18, 0.05);
}

.agf-side__title {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ai-ink);
}

.agf-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.agf-side__list a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--ai-text) !important;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
}

.agf-side__list a:hover,
.agf-side__list a.is-active {
  background: rgba(33, 199, 122, 0.1);
  color: var(--ai-dark) !important;
}

.agf-side__latest {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.agf-side__latest li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.agf-side__latest img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #EEF1F1;
}

.agf-side__latest a {
  color: var(--ai-ink) !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.55;
}

.agf-side__latest a:hover {
  color: var(--ai-green) !important;
}

.agf-side__latest span {
  display: block;
  margin-top: 4px;
  color: var(--ai-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.agf-search {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--ai-line);
  box-shadow: 0 10px 28px rgba(3, 16, 18, 0.05);
}

.agf-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agf-search__row input,
.agf-search__row select {
  flex: 1 1 160px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--ai-line);
  background: #FAFBFB;
  color: var(--ai-ink);
  font-size: 0.88rem;
  outline: none;
}

.agf-search__row input:focus,
.agf-search__row select:focus {
  border-color: rgba(33, 199, 122, 0.5);
  box-shadow: 0 0 0 3px rgba(33, 199, 122, 0.12);
}

.agf-search__row button {
  min-height: 46px;
  min-width: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ai-green), #1aad68);
  color: var(--ai-ink);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(33, 199, 122, 0.25);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.agf-search__row button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.agf-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.agf-cards--pages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agf-cards > * {
  min-width: 0;
}

.agf-cards .card.service_style {
  height: 100%;
  margin-top: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ai-line);
  box-shadow: 0 12px 32px rgba(3, 16, 18, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agf-cards .card.service_style:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 199, 122, 0.35);
  box-shadow: 0 18px 40px rgba(3, 16, 18, 0.1);
}

.agf-pager {
  margin-top: 28px;
}

.agf-pager .pagination {
  gap: 6px;
}

.agf-pager .page-link {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px !important;
  border: 1px solid var(--ai-line) !important;
  background: #fff !important;
  color: var(--ai-ink) !important;
  font-weight: 700;
}

.agf-pager .active .page-link,
.agf-pager li.active > a {
  background: var(--ai-dark) !important;
  border-color: var(--ai-dark) !important;
  color: #fff !important;
}

/* ----- Article / Page detail ----- */
.agf-article {
  background: var(--ws-bg, #F6F8F8);
}

.agf-article > .agf-ws-hero .agf-ws-hero__brand {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  max-width: 14em;
  margin-left: auto;
  margin-right: auto;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.agf-article > .agf-ws-hero .agf-ws-hero__lead {
  max-width: 36ch;
}

.agf-article__body-wrap {
  padding-top: 40px;
}

.agf-article__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(3, 16, 18, 0.06);
}

.agf-article__bar .breadcrumb {
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.agf-article__bar .breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agf-article__bar .breadcrumb a,
.agf-article__bar .breadcrumb .current {
  color: var(--ai-muted, #6C7A79);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.agf-article__bar .breadcrumb a:hover {
  color: var(--ai-green, #21C77A);
}

.agf-article__bar .breadcrumb .current {
  color: var(--ai-ink, #031012);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agf-article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ai-muted, #6C7A79) !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.agf-article__back:hover {
  color: var(--ai-green, #21C77A) !important;
}

.agf-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px 48px;
  align-items: start;
}

.agf-article__main {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.agf-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 24px;
  color: var(--ai-muted, #6C7A79);
  font-size: 0.82rem;
  font-weight: 600;
}

.agf-article__meta i.fal {
  margin-left: 4px;
  opacity: 0.7;
}

.agf-article__stars {
  display: inline-flex;
  gap: 3px;
  color: #D5DDDD;
  font-size: 0.72rem;
}

.agf-article__stars .is-on {
  color: #21C77A;
}

.agf-article__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(33, 199, 122, 0.1);
  color: #083D3F;
  font-size: 0.75rem;
  font-weight: 700;
}

.agf-article__cover-wrap {
  margin: 0 0 28px;
  border-radius: 20px;
  overflow: hidden;
  background: #EEF1F1;
}

.agf-article__cover {
  display: block;
  width: 100%;
  max-height: 440px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.agf-article__cats {
  display: none;
}

.agf-article__body.ck-content,
.agf-article__body .ck-content,
.agf-article__main .ck-content-body {
  color: #243232;
  font-size: 1rem;
  line-height: 2.1;
  text-align: justify;
}

.agf-article__main .ck-content h2,
.agf-article__main .ck-content h3,
.agf-article__main .ck-content-body h2,
.agf-article__main .ck-content-body h3 {
  color: #031012;
  font-weight: 800;
  margin-top: 1.6em;
  letter-spacing: -0.02em;
}

.agf-article__main .ck-content img,
.agf-article__main .ck-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 1.2em 0;
}

.agf-article__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(3, 16, 18, 0.07);
}

.agf-article__share-label {
  margin-left: 4px;
  color: var(--ai-muted, #6C7A79);
  font-size: 0.78rem;
  font-weight: 700;
}

.agf-article__share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(3, 16, 18, 0.1);
  background: #fff;
  color: #083D3F !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.agf-article__share-btn:hover {
  border-color: rgba(33, 199, 122, 0.45);
  background: rgba(33, 199, 122, 0.08);
  color: #083D3F !important;
}

.agf-article__share-btn--wa i {
  color: #25D366;
}

.agf-article__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.agf-article__nav-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0a4548 0%, #031012 100%);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.agf-article__nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(3, 16, 18, 0.22);
  color: #fff !important;
}

.agf-article__nav-link span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #32E69A;
}

.agf-article__nav-link strong {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.agf-article__nav-link--next {
  text-align: left;
}

.agf-article__rate {
  margin-top: 28px;
}

/* ----- Rate / comments (site-styled) ----- */
.agf-rate {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(3, 16, 18, 0.07);
  box-shadow: 0 10px 32px rgba(3, 16, 18, 0.04);
}

.agf-rate__head {
  margin-bottom: 22px;
}

.agf-rate__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #031012;
  letter-spacing: -0.02em;
}

.agf-rate__hint {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: #6C7A79;
  line-height: 1.7;
}

.agf-rate__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(3, 16, 18, 0.06);
}

.agf-rate__user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.agf-rate__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #EEF1F1;
  border: 2px solid rgba(33, 199, 122, 0.25);
}

.agf-rate__stars-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agf-rate__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5A6A69;
}

.agf-rate .rating.agf-rate__stars {
  --active: #21C77A;
  --active-pale: rgba(33, 199, 122, 0.28);
  --inactive: #D5DDDD;
  --face-active: #083D3F;
  --face-inactive: #A8B4B3;
  zoom: 1 !important;
  transform: none;
}

@media (min-width: 600px) {
  .agf-rate .rating.agf-rate__stars {
    zoom: 1.15 !important;
  }
}

.agf-rate__field {
  display: block;
  width: 100%;
}

.agf-rate__textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(3, 16, 18, 0.1);
  border-radius: 14px;
  background: #FAFBFB;
  color: #172020;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.9;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.agf-rate__textarea:focus {
  outline: none;
  border-color: rgba(33, 199, 122, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(33, 199, 122, 0.12);
}

.agf-rate__textarea::placeholder {
  color: #9AA6A5;
}

.agf-rate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #32E69A 0%, #21C77A 55%, #18a862 100%);
  color: #031012 !important;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(50, 230, 154, 0.25),
    0 10px 28px rgba(33, 199, 122, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.agf-rate__submit:hover {
  color: #031012 !important;
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 0 0 1px rgba(50, 230, 154, 0.35),
    0 14px 36px rgba(33, 199, 122, 0.36);
}

.agf-rate__submit i {
  font-size: 13px;
}

.agf-rate__login {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(8, 61, 63, 0.06), rgba(33, 199, 122, 0.05));
  border: 1px solid rgba(8, 61, 63, 0.08);
}

.agf-rate__login p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #243232;
  line-height: 1.7;
}

.agf-rate-reviews__title {
  margin: 0 0 16px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #031012;
}

.agf-rate-reviews__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agf-rate-review {
  padding: 16px 18px;
  border-radius: 16px;
  background: #FAFBFB;
  border: 1px solid rgba(3, 16, 18, 0.06);
}

.agf-rate-review__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.agf-rate-review__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #EEF1F1;
}

.agf-rate-review__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agf-rate-review__meta strong {
  font-size: 0.88rem;
  font-weight: 800;
  color: #172020;
}

.agf-rate-review__meta time {
  font-size: 0.72rem;
  font-weight: 600;
  color: #8A9695;
}

.agf-rate-review__stars {
  display: inline-flex;
  gap: 3px;
  color: #D5DDDD;
  font-size: 0.7rem;
}

.agf-rate-review__stars .is-on {
  color: #21C77A;
}

.agf-rate-review__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.9;
  color: #243232;
  text-align: justify;
}

.agf-rate-review__replies {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agf-rate-review--reply {
  background: #fff;
  border-color: rgba(33, 199, 122, 0.18);
}

.agf-rate-review__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(33, 199, 122, 0.12);
  color: #083D3F;
  font-size: 0.68rem;
  font-weight: 800;
}

.agf-rate-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 16px;
  text-align: center;
  color: #6C7A79;
}

.agf-rate-empty i {
  font-size: 1.6rem;
  color: #21C77A;
  opacity: 0.7;
}

.agf-rate-empty p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.agf-article__related {
  margin-top: 8px;
  padding-bottom: 24px;
}

.agf-article__side {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.agf-article__rail-title {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #031012;
}

.agf-article__rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agf-article__rail-list a {
  display: block;
  padding: 8px 0;
  color: #5A6A69;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(3, 16, 18, 0.05);
  transition: color 0.2s ease, padding-right 0.2s ease;
}

.agf-article__rail-list a:hover {
  color: #21C77A;
  padding-right: 4px;
}

.agf-article__rail-posts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agf-article__rail-post {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
}

.agf-article__rail-post img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #EEF1F1;
}

.agf-article__rail-post strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
  color: #172020;
}

.agf-article__rail-post em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8A9695;
}

.agf-article__rail-post:hover strong {
  color: #083D3F;
}

/* Luxury related-pages rail */
.agf-article__rail--lux {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(33, 199, 122, 0.18), transparent 55%),
    linear-gradient(165deg, #0a4548 0%, #031012 72%);
  box-shadow:
    0 18px 48px rgba(3, 16, 18, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.agf-article__rail--lux::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 10%, transparent 75%);
  pointer-events: none;
}

.agf-article__rail-head {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.agf-article__rail-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(33, 199, 122, 0.16);
  color: #32E69A;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.agf-article__rail--lux .agf-article__rail-title {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.agf-article__rail--lux .agf-article__rail-posts {
  position: relative;
  z-index: 1;
  gap: 10px;
}

.agf-article__rail--lux .agf-article__rail-post {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.agf-article__rail--lux .agf-article__rail-post:hover {
  background: rgba(33, 199, 122, 0.1);
  border-color: rgba(50, 230, 154, 0.28);
  transform: translateY(-1px);
}

.agf-article__rail-thumb {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(50, 230, 154, 0.2);
}

.agf-article__rail-thumb img,
.agf-article__rail--lux .agf-article__rail-post img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.agf-article__rail-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.agf-article__rail--lux .agf-article__rail-post strong {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.5;
}

.agf-article__rail--lux .agf-article__rail-post em {
  margin: 0;
  color: rgba(50, 230, 154, 0.85);
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.agf-article__rail--lux .agf-article__rail-post em i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.agf-article__rail--lux .agf-article__rail-post:hover em i {
  transform: translateX(-3px);
}

.agf-article__rail--lux .agf-article__rail-post:hover strong {
  color: #CFF7E7;
}

/* Categories rail — light companion card */
.agf-article__rail--cats {
  padding: 20px 18px 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(3, 16, 18, 0.07);
  box-shadow: 0 12px 32px rgba(3, 16, 18, 0.05);
}

.agf-article__rail--cats .agf-article__rail-head {
  margin-bottom: 12px;
}

.agf-article__rail--cats .agf-article__rail-eyebrow {
  background: rgba(8, 61, 63, 0.08);
  color: #083D3F;
}

.agf-article__rail--cats .agf-article__rail-title {
  margin: 0;
  color: #031012;
  font-size: 0.95rem;
}

.agf-article__rail--cats .agf-article__rail-list a {
  padding: 10px 0;
  border-bottom-color: rgba(3, 16, 18, 0.06);
  font-size: 0.86rem;
}

.agf-article__rail--cats .agf-article__rail-list li:last-child a {
  border-bottom: 0;
}

.agf-side__latest .agf-side__rate {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
  color: #D5DDDD;
  font-size: 0.65rem;
}

.agf-side__latest .agf-side__rate .is-on {
  color: #21C77A;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .agf-contact-grid,
  .agf-list-layout,
  .agf-article__layout {
    grid-template-columns: 1fr;
  }

  .agf-article__side {
    position: static;
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .agf-cards,
  .agf-cards--pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agf-article__nav {
    grid-template-columns: 1fr;
  }

  .agf-article__nav-link--next {
    text-align: right;
  }
}

@media (max-width: 575.98px) {
  .agf-cards,
  .agf-cards--pages {
    grid-template-columns: 1fr;
  }

  .agf-article__side {
    grid-template-columns: 1fr;
  }

  .agf-article > .agf-ws-hero .agf-ws-hero__brand {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }
}

