/* RIAB 2.5.1 integration layer. Beeko remains the UI source; this file only handles RIAB content, green accents and final composition. */
:root {
  --riab-green: #07852f;
  --riab-deep: #063e1d;
  --riab-green-2: #21a95a;
  --riab-gold: #f0b400;
  --riab-cream: #f8fbf8;
  --riab-border: #e6ece8;
}
html {
  scroll-behavior: smooth;
}
body.riab-beeko-theme {
  overflow-x: hidden;
  background: #fff;
}
.main-area {
  overflow: hidden;
}
.tg-header__top {
  background: var(--riab-deep);
}
.tgmenu__nav .logo img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}
.tgmenu__nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tgmenu__nav .logo::after {
  content: "Ruhul Islam Anak Bangsa";
  display: block;
  color: var(--riab-deep);
  font-family: var(--tg-heading-font-family);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 160px;
}
.tgmobile__menu .nav-logo img,
.offCanvas__logo img {
  max-height: 78px;
  width: auto;
  object-fit: contain;
}
.header-btn .tg-btn,
.tg-btn {
  background: var(--riab-green);
}
.header-btn .tg-btn:hover,
.tg-btn:hover {
  background: var(--riab-deep);
}
.sub-title {
  color: var(--riab-green);
}
.tg-header__top-info a:hover,
.tg-header__top-right a:hover,
.tgmenu__main-menu li a:hover {
  color: var(--riab-green);
}
.riab-skip-content {
  position: absolute;
  left: -9999px;
}
.riab-skip-content:focus {
  left: 10px;
  top: 10px;
  z-index: 99999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}

/* Static hero: intentionally no news feed and no carousel. */
.riab-hero-static {
  background: #f5faf6;
  overflow: hidden;
}
.riab-hero-static .banner__bg {
  opacity: 0.12;
}
.riab-hero-static .banner__content {
  position: relative;
  z-index: 2;
}
.riab-hero-static .banner__content .title {
  max-width: 700px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 1;
}
.riab-hero-static .banner__content p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.75;
}
.riab-hero-static .banner__img {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.riab-hero-static .banner__img .main-img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.riab-hero-static .banner__img .shape {
  z-index: 1;
}
.riab-hero-static .banner__shape {
  z-index: 1;
}

/* About images are settings-only; no post thumbnail fallback is used. */
.about__area {
  background: #fff;
}
.about__img-wrap .about__images img {
  border-radius: 14px;
}
.about__img-wrap .about__images img:first-child {
  min-height: 360px;
}
.about__img-wrap .about__images img + img {
  min-height: 240px;
}
.about__content .section__title .title {
  max-width: 620px;
}

/* Admission CTA */
.riab-admission-cta {
  background: var(--riab-deep);
}
.riab-admission-cta .cta__content-two .sub-title {
  color: var(--riab-gold);
}
.riab-admission-cta .cta__content-two p {
  color: rgba(255, 255, 255, 0.82);
}

/* SocialFeeds / Instagram replacement for the old gallery section. */
.riab-instagram-area {
  background: #f8fbf8;
  overflow: hidden;
}
.riab-instagram-feed {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 120px;
}
.riab-instagram-feed > * {
  max-width: 100%;
}
.riab-instagram-feed img {
  max-width: 100%;
}
.riab-plugin-notice {
  background: #fff;
  border: 1px dashed #b8dac9;
  border-radius: 14px;
  padding: 30px;
  text-align: center;
  color: #4a534e;
}

.blog__post-area {
  background: #fff;
}
.blog__post-item {
  height: 100%;
  border: 1px solid var(--riab-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.blog__post-thumb {
  position: relative;
  overflow: hidden;
}
.blog__post-thumb > a {
  display: block;
}
.blog__post-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.blog__post-content {
  padding: 26px 26px 28px;
}
.blog__post-content .title {
  min-height: 3.2em;
}
.blog__post-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.blog__post-author img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.faq__area {
  background: #fff;
}
.faq__img img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 14px;
}
.footer__area {
  background: #071d0f;
}
.footer__top {
  padding-top: 100px;
}
.footer__widget-title,
.footer__content p,
.footer__widget-link li a,
.footer__social a {
  color: #fff;
}
.footer__widget-link li a:hover {
  color: #9fd5b5;
}
.footer__logo img {
  max-height: 70px;
  width: auto;
  background: #fff;
  padding: 4px;
  border-radius: 10px;
}

.footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.footer__brand-link img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    flex: 0 0 62px;
}

.footer__brand-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--tg-color-white-default);
    line-height: 1.15;
}

.footer__brand-name strong {
    display: block;
    color: var(--tg-color-white-default);
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

@media (max-width: 767.98px) {
    .footer__brand-link img {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .footer__brand-name strong {
        font-size: 18px;
    }
}

/* Green/gold visual consistency for residual Beeko accents. */
.tg-btn img,
.link-btn img {
  filter: none;
}
.riab-gold {
  color: var(--riab-gold);
}

@media (max-width: 1199.98px) {
  .riab-hero-static .banner__img {
    min-height: 500px;
  }
  .riab-hero-static .banner__img .main-img {
    height: 500px;
  }
}
@media (max-width: 991.98px) {
  .tgmenu__nav .logo::after {
    font-size: 15px;
  }
  .riab-hero-static .banner__content {
    padding-top: 70px;
    padding-bottom: 20px;
  }
  .riab-hero-static .banner__content .title {
    font-size: clamp(38px, 8vw, 58px);
  }
  .riab-hero-static .banner__img {
    min-height: 390px;
  }
  .riab-hero-static .banner__img .main-img {
    height: 390px;
  }
}
@media (max-width: 767.98px) {
    .tgmenu__nav .logo img {
        max-height:48px;
    }
    
    .tgmenu__nav .logo::after {
        display:block;
        font-size:13px;
        max-width:115px;
        line-height:1.05;
    }
    .riab-hero-static .banner__content .title {
        font-size: 38px;
    }
    .riab-hero-static .banner__content p {
        font-size: 16px;
    }
    .riab-hero-static .banner__img {
        min-height: 280px;
    }
    .riab-hero-static .banner__img .main-img {
        height: 280px;
    }
    .blog__post-content .title {
        min-height: auto;
    }
    .footer__top {
        padding-top: 70px;
    }
}
/* === RIAB content templates === */
.riab-pagination {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.riab-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--riab-border);
  border-radius: 8px;
  background: #fff;
  color: var(--riab-deep);
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.riab-pagination ul.page-numbers {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border: none;
}
.riab-pagination .page-numbers:hover,
.riab-pagination .page-numbers.current {
  background: var(--riab-green);
  border-color: var(--riab-green);
  color: #fff;
}
.riab-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
.riab-empty-state {
  text-align: center;
  padding: 60px 30px;
  border: 1px solid var(--riab-border);
  border-radius: 16px;
  background: #f9fbfa;
}
.archive-description {
  color: #68746c;
}
.blog__post-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog__post-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog__post-content .excerpt {
  margin-bottom: 18px;
}
.blog__post-author {
  margin-top: auto;
}
.riab-single-featured img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.riab-entry-content {
  font-size: 18px;
  line-height: 1.9;
}
.riab-entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.riab-entry-content h2,
.riab-entry-content h3,
.riab-entry-content h4 {
  margin-top: 36px;
  color: var(--riab-deep);
}
.riab-entry-content ul,
.riab-entry-content ol {
  padding-left: 1.25rem;
}
.riab-page-links,
.riab-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.riab-tags a {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #edf7f0;
  color: var(--riab-green);
  font-size: 13px;
}
.riab-author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 24px;
  margin-top: 40px;
  border: 1px solid var(--riab-border);
  border-radius: 14px;
  background: #f8fbf8;
}
.riab-author-avatar img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}
.riab-author-box .eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--riab-green);
  font-weight: 800;
}
.riab-author-box h4 {
  margin: 4px 0 5px;
}
.riab-author-box p {
  margin: 0;
  color: #68746c;
}
.riab-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}
.riab-post-nav a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--riab-border);
  border-radius: 12px;
  background: #fff;
  color: var(--riab-deep);
  font-weight: 700;
}
.riab-post-nav .next {
  text-align: right;
}
.riab-related-posts {
  padding-top: 10px;
}
.riab-sidebar {
  position: sticky;
  top: 120px;
}
.sidebar__widget {
  padding: 24px;
  border: 1px solid var(--riab-border);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 24px;
}
.sidebar__widget-title {
  font-size: 20px;
  margin: 0 0 18px;
  color: var(--riab-deep);
}
.sidebar__latest,
.sidebar__category {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar__latest li {
  padding: 12px 0;
  border-bottom: 1px solid #edf1ee;
}
.sidebar__latest li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.sidebar__latest a {
  display: flex;
  gap: 12px;
  color: inherit;
}
.sidebar__latest .thumb{
    flex:0 0 56px;
    width:56px;
    height:56px;
}

.sidebar__latest .thumb img{
    display:block;
    width:56px;
    height:56px;
    object-fit:cover;
    border-radius:8px;
}

.sidebar__latest strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}
.sidebar__latest small {
  display: block;
  margin-top: 4px;
  color: #7b877f;
}
.sidebar__category li {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #edf1ee;
}
.sidebar__category a {
  color: var(--riab-deep);
}
.comments-area {
  padding-top: 10px;
}
.comment-list {
  margin: 0;
  padding: 0;
}
.comment-list,
.comment-list .children {
  list-style: none;
}
.comment-list .children {
  margin-left: 45px;
  padding-left: 0;
}
.riab-comment {
  padding: 22px 0;
  border-bottom: 1px solid #edf1ee;
}
.riab-comment-inner {
  display: flex;
  gap: 15px;
}
.riab-comment-avatar img {
  border-radius: 50%;
}
.riab-comment-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.riab-comment-meta span {
  font-size: 13px;
  color: #7b877f;
}
.riab-comment-text {
  margin-top: 8px;
  color: #4f5a53;
  line-height: 1.75;
}
.riab-comment-reply {
  margin-top: 8px;
}
.comment-reply-link {
  font-size: 13px;
  color: var(--riab-green);
  font-weight: 700;
}
.riab-comments-nav {
  margin-top: 20px;
}
.riab-comment-form .comment-respond {
  padding: 26px;
  border: 1px solid var(--riab-border);
  border-radius: 14px;
  background: #f8fbf8;
}
.riab-comment-form input,
.riab-comment-form textarea {
  border: 1px solid #d7e0da;
  border-radius: 8px;
}
.riab-comment-form .submit {
  border: 0;
}
.single-riab_agenda .riab-single-featured,
.single-riab_gallery .riab-single-featured,
.single-riab_achievement .riab-single-featured {
  margin-top: 20px;
}
.riab-single-post .blog__post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #6f7b73;
}
@media (max-width: 991.98px) {
  .riab-sidebar {
    position: static;
  }
  .riab-entry-content {
    font-size: 17px;
  }
  .riab-post-nav {
    grid-template-columns: 1fr;
  }
  .riab-post-nav .next {
    text-align: left;
  }
}

/* 2.5.4 — Inner page hero, category index, tag badges, image fallbacks. */
.riab-inner-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #063e1d, #07852f);
  min-height: 238px;
  display: flex;
  align-items: center;
}
.riab-inner-hero.has-image {
  background-color: #063e1d;
  background-image: var(--riab-inner-hero-bg);
  background-size: cover;
  background-position: center;
}
.riab-inner-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(3, 36, 17, 0.84),
    rgba(3, 36, 17, 0.56) 55%,
    rgba(3, 36, 17, 0.38)
  );
}
.riab-inner-hero:not(.has-image) .riab-inner-hero-overlay {
  background:
    radial-gradient(
      circle at 85% 30%,
      rgba(240, 180, 0, 0.18),
      transparent 30%
    ),
    linear-gradient(135deg, #063e1d, #07852f);
}
.riab-inner-hero .container {
  position: relative;
  z-index: 2;
}
.riab-inner-hero-content {
  padding: 62px 0 58px;
  color: #fff;
}
.riab-inner-hero .sub-title {
  display: block;
  color: #f0b400;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 800;
  margin-bottom: 10px;
}
.riab-inner-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 4.2vw, 32px);
  line-height: 1.04;
  max-width: 900px;
}
.riab-breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}
.riab-breadcrumb a {
  color: #fff;
}
.riab-breadcrumb a:hover {
  color: #f0b400;
}
.riab-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--riab-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  color: var(--riab-deep);
}
.riab-category-card:hover {
  transform: translateY(-4px);
  border-color: #b8d9c2;
  box-shadow: 0 16px 40px rgba(6, 62, 29, 0.09);
  color: var(--riab-deep);
}
.riab-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf7f0;
  color: var(--riab-green);
  font-weight: 800;
  margin-bottom: 18px;
}
.riab-category-name {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.15;
}
.riab-category-description {
  margin-top: 10px;
  color: #6e786f;
  font-size: 14px;
  line-height: 1.6;
}
.riab-category-arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 22px;
  color: var(--riab-green);
  font-weight: 700;
}
.riab-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}
.riab-tag-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #d7eadc;
  border-radius: 999px;
  background: #f6fbf7;
  color: #237641;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}
.riab-tag-badge:hover {
  border-color: #8ec3a0;
  background: #edf7f0;
  color: #063e1d;
}
.riab-tags .label {
  font-weight: 800;
  color: var(--riab-deep);
  margin-right: 4px;
}
.riab-tags a {
  margin: 2px 0;
}
.riab-page-content {
  font-size: 18px;
  line-height: 1.9;
}
.riab-page-content > h2,
.riab-page-content > h3,
.riab-page-content > h4 {
  color: var(--riab-deep);
  margin-top: 34px;
}
.riab-page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.riab-page-content a {
  color: var(--riab-green);
}
/* Pagination: keep current page solid, but make ordinary hover subtle. */
.riab-pagination .page-numbers:not(.current):not(.dots):hover {
  background: #edf7f0 !important;
  border-color: #07852f !important;
  color: #07852f !important;
}
.riab-pagination .page-numbers.current {
  background: #07852f !important;
  border-color: #07852f !important;
  color: #fff !important;
}
.riab-pagination .page-numbers.dots:hover {
  background: transparent !important;
  color: var(--riab-deep) !important;
}
@media (max-width: 767.98px) {
  .riab-inner-hero {
    min-height: 200px;
  }
  .riab-inner-hero-content {
    padding: 48px 0 44px;
  }
  .riab-inner-hero h1 {
    font-size: 20px;
  }
  .riab-category-card {
    min-height: 165px;
    padding: 22px;
  }
  .riab-category-name {
    font-size: 20px;
  }
  .riab-page-content,
  .riab-entry-content {
    font-size: 17px;
  }
}

.riab-comments-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.riab-comments-nav .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--riab-border);
  border-radius: 8px;
  background: #fff;
  color: var(--riab-deep);
  font-weight: 700;
  text-decoration: none;
}
.riab-comments-nav .page-numbers.current {
  background: #07852f;
  border-color: #07852f;
  color: #fff;
}
.riab-comments-nav .page-numbers:not(.current):hover {
  background: #edf7f0;
  color: #07852f;
  border-color: #07852f;
}

.riab-contact-map {
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.riab-contact-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 991.98px) {
  .riab-contact-map {
    min-height: 280px;
    margin-top: 15px;
  }

  .riab-contact-map iframe {
    height: 280px;
  }
}

@media (max-width: 767.98px) {
  .riab-contact-map {
    min-height: 240px;
  }

  .riab-contact-map iframe {
    height: 240px;
  }
}

/* Brand di mobile drawer */
.tgmobile__menu .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
}

.tgmobile__menu .nav-logo img {
    width: 58px;
    height: 58px;
    max-width: 58px;
    object-fit: contain;
    flex: 0 0 58px;
}

.tgmobile__menu .nav-logo::after {
    content: "Ruhul Islam\A Anak Bangsa";
    white-space: pre;
    display: block;
    color: var(--tg-heading-color);
    font-size: 15px;
    line-height: 1.1;
    font-weight: 700;
}
