/* ============================================================
   index.html styles
   ============================================================ */

html {
    scroll-behavior: smooth;
}

.nfrg-intro-video-section {
    background: radial-gradient(circle at top right, #eaf3ff 0%, #f7fbff 42%, #ffffff 100%);
    padding-top: 48px;
}

.nfrg-intro-video-shell {
    border-radius: 24px;
    padding: 34px;
    background: linear-gradient(140deg, #0d2d5f 0%, #1563df 48%, #1e84ff 100%);
    box-shadow: 0 28px 70px rgba(11, 44, 92, 0.28);
}

.nfrg-intro-copy {
    text-align: center;
    margin-bottom: 22px;
}

.nfrg-intro-copy .text-subtitle {
    color: #b8d7ff;
}

.nfrg-intro-copy .title {
    color: #ffffff;
    margin: 10px 0 8px;
}

.nfrg-intro-copy p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.nfrg-video-card {
    border-radius: 20px;
    overflow: hidden;
    background: #061735;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nfrg-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.nfrg-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.nfrg-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nfrg-play-overlay.is-playing {
    opacity: 0;
    pointer-events: none;
}

.nfrg-play-btn {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(4px);
}

.nfrg-play-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

@media (max-width: 767px) {
    .nfrg-intro-video-shell {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .nfrg-play-btn {
        width: 64px;
        height: 64px;
    }
}

.nfrg-community-section {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 78%);
}

.nfrg-community-shell {
    border-radius: 24px;
    padding: 34px;
    border: 1px solid #f1dfb2;
    background: linear-gradient(145deg, #ffffff 0%, #fffbf1 100%);
    box-shadow: 0 24px 60px rgba(155, 118, 26, 0.12);
}

.nfrg-community-title .text-subtitle {
    color: #b4861f;
}

.nfrg-community-title .title .gold {
    color: #b4861f;
}

.nfrg-community-title .desc {
    max-width: 780px;
    margin: 0 auto;
}

.nfrg-community-visual {
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #f0d9a2;
    height: 100%;
    min-height: 360px;
}

.nfrg-community-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nfrg-community-panel {
    height: 100%;
    border-radius: 18px;
    border: 1px solid #edd6a0;
    padding: 20px;
    background: #fffdfa;
}

.nfrg-community-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.nfrg-community-chip {
    border-radius: 12px;
    border: 1px solid #f0ddb1;
    background: #fff8e8;
    color: #7d5d16;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 10px;
}

.nfrg-community-points {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nfrg-community-point {
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #efdfbc;
    padding: 10px 12px;
    color: #25324a;
    font-size: 14px;
    font-weight: 500;
}

.nfrg-community-point i {
    color: #b4861f;
    margin-right: 6px;
}

@media (max-width: 991px) {
    .nfrg-community-shell {
        padding: 22px;
    }

    .nfrg-community-list,
    .nfrg-community-points {
        grid-template-columns: 1fr;
    }
}

/* Navbar dark mode (matching footer) */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
}

body {
    padding-top: 78px;
}

.main-header,
.main-header.is-fixed,
.main-header .header-lower,
.main-header.is-fixed .header-lower {
    background-color: #161e2d;
}

.main-header .main-menu .navigation > li > a,
.main-header .mobile-nav-toggler span,
.main-header .mobile-nav-toggler span::before,
.main-header .mobile-nav-toggler span::after {
    color: #ffffff !important;
}

.main-header.is-fixed {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.main-header .inner-header-right .btn-login {
    color: #161e2d !important;
}

.main-header .main-menu .navigation > li > a::before {
    background-color: rgba(255, 255, 255, 0.25);
}

.main-header .main-menu .navigation > li:hover > a,
.main-header .main-menu .navigation > li.current > a {
    color: #ffffff !important;
}

.mobile-menu .menu-box {
    background-color: #161e2d;
}

.mobile-menu .navigation li > a,
.mobile-menu .login-box a,
.mobile-menu .login-box span,
.mobile-menu .mobi-icon-box .box .icon,
.mobile-menu .mobi-icon-box .box a,
.mobile-menu .mobi-icon-box .box div {
    color: #ffffff !important;
}

.nfrg-disclosure-strip {
    background: linear-gradient(180deg, #fff6df 0%, #ffffff 90%);
    padding: 26px 0 32px;
}

.nfrg-disclosure-card {
    border-radius: 18px;
    border: 1px solid #ead7ab;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(125, 93, 22, 0.12);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.nfrg-disclosure-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: #b4861f;
    margin-bottom: 8px;
}

.nfrg-disclosure-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #3a2a10;
}

.nfrg-disclosure-desc {
    margin: 0;
    color: #6f5a2a;
}

.nfrg-disclosure-action .tf-btn {
    white-space: nowrap;
}

/* ── IABS detailed card (inside disclosure strip) ── */
.nfrg-iabs-card {
    margin-top: 16px;
    border-radius: 18px;
    border: 1px solid #ead7ab;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(125, 93, 22, 0.10);
    padding: 28px 48px 28px 32px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.nfrg-iabs-left { flex: 1; min-width: 0; }

.nfrg-iabs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff8e8;
    border: 1px solid #f0d9a2;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #b4861f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.nfrg-iabs-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2540;
    margin: 0 0 8px;
}

.nfrg-iabs-desc {
    font-size: 14px;
    color: #5a6a82;
    margin: 0 0 14px;
    line-height: 1.6;
}

.nfrg-iabs-points {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nfrg-iabs-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #3a4a60;
    line-height: 1.5;
}

.nfrg-iabs-points li svg { flex-shrink: 0; margin-top: 2px; }

.nfrg-iabs-broker {
    margin: 0;
    font-size: 12px;
    color: #7a6435;
    background: #fffbf1;
    border: 1px solid #f0ddb1;
    border-radius: 8px;
    padding: 8px 12px;
}

.nfrg-iabs-broker a { color: #1563df; text-decoration: none; }

.nfrg-iabs-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 220px;
    gap: 12px;
}

.nfrg-iabs-cta-label {
    font-size: 13px;
    color: #5a6a82;
    margin: 0;
    line-height: 1.5;
}

.nfrg-iabs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b4861f;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s, transform .18s;
    white-space: nowrap;
}

.nfrg-iabs-btn:hover { background: #8f6a12; transform: translateY(-1px); }

.nfrg-iabs-fine {
    font-size: 11px;
    color: #9aab99;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .nfrg-iabs-card {
        flex-direction: column;
        padding: 22px 18px;
    }
    .nfrg-iabs-right {
        width: 100%;
        border-top: 1px solid #f0ddb1;
        padding-top: 20px;
    }
}

.nfrg-lpt-section {
    padding: 56px 0;
    background: radial-gradient(circle at 20% 20%, #f7f4ee 0%, #ffffff 60%);
}

.nfrg-lpt-card {
    border-radius: 24px;
    border: 1px solid #efe3c7;
    background: #ffffff;
    box-shadow: 0 22px 55px rgba(58, 42, 16, 0.12);
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: center;
}

.nfrg-lpt-square {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    background: transparent;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
}

.nfrg-lpt-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nfrg-lpt-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nfrg-lpt-kicker {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    color: #a0771c;
}

.nfrg-lpt-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #2d2313;
}

.nfrg-lpt-desc {
    margin: 0;
    color: #5c4a26;
}

.nfrg-lpt-banner-strip {
    padding: 48px 0 56px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f4ee 100%);
}

.nfrg-lpt-banner-frame {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #efe3c7;
    box-shadow: 0 18px 45px rgba(58, 42, 16, 0.12);
    background: #ffffff;
}

.nfrg-lpt-banner-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 767px) {
    .nfrg-disclosure-card {
        padding: 18px;
    }

    .nfrg-lpt-title {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .nfrg-lpt-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nfrg-lpt-copy {
        align-items: center;
    }
}

/* ============================================================
   har-listings.html styles
   ============================================================ */

/* ── Page hero ── */
.listings-hero {
    background: linear-gradient(135deg, #0d2d5f 0%, #1563df 55%, #1e84ff 100%);
    padding: 48px 0 40px;
    text-align: center;
}

.listings-hero .hero-kicker {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b8d7ff;
    margin-bottom: 14px;
}

.listings-hero h1 {
    color: #ffffff;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}

.listings-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin: 0;
}

/* ── Tab bar ── */
.listings-tabs-wrap {
    background: #f4f7fb;
    border-bottom: 1px solid #dce4ef;
    padding: 0;
    position: sticky;
    top: 78px;
    z-index: 100;
}

.listings-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 16px;
}

.listings-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    color: #5a6a82;
    cursor: pointer;
    transition: color .18s, border-color .18s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listings-tab-btn:hover {
    color: #1563df;
}

.listings-tab-btn.active {
    color: #1563df;
    border-bottom-color: #1563df;
}

.listings-tab-btn .tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8d6ea;
    transition: background .18s;
}

.listings-tab-btn.active .tab-dot {
    background: #1563df;
}

/* ── iFrame section ── */
.listings-iframe-section {
    background: #f4f7fb;
    padding: 24px 0 40px;
}

.listings-iframe-panel {
    display: none;
}

.listings-iframe-panel.active {
    display: block;
}

.listings-iframe-shell {
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4ef;
    box-shadow: 0 8px 32px rgba(21, 99, 223, 0.08);
}

.listings-iframe-shell iframe {
    display: block;
    width: 100%;
    height: 82vh;
    min-height: 600px;
    border: none;
}

/* Loading state */
.iframe-loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 82vh;
    min-height: 600px;
    background: #f8fafd;
    flex-direction: column;
    gap: 16px;
}

.iframe-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #dce4ef;
    border-top-color: #1563df;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.iframe-loading-text {
    color: #5a6a82;
    font-size: 14px;
    font-weight: 500;
}

/* ── TREC / Texas Consumer Protection Notice ── */
.trec-notice-bar {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border-bottom: 1px solid #ead7ab;
    padding: 28px 0;
}

.trec-notice-card {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: #ffffff;
    border: 1px solid #ead7ab;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(125, 93, 22, 0.10);
    padding: 20px 28px;
}

.trec-notice-left { flex: 1; min-width: 0; }

.trec-notice-badge {
    display: inline-block;
    background: #fff8e8;
    border: 1px solid #f0d9a2;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #b4861f;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.trec-notice-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2540;
    margin: 0 0 4px;
}

.trec-notice-desc {
    font-size: 13px;
    color: #5a6a82;
    margin: 0;
    line-height: 1.5;
}

.trec-notice-right { flex-shrink: 0; }

.trec-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #b4861f;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background .18s, transform .18s;
    white-space: nowrap;
}

.trec-notice-btn:hover {
    background: #8f6a12;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .trec-notice-card { padding: 18px; }
    .trec-notice-right { width: 100%; }
    .trec-notice-btn { width: 100%; justify-content: center; }
}

/* ── HAR bottom disclosure ── */
.har-disclosure {
    background: #fffbf1;
    border-top: 1px solid #ead7ab;
    padding: 14px 0;
}

.har-disclosure p {
    margin: 0;
    font-size: 12px;
    color: #7a6435;
    text-align: center;
}

.har-disclosure a {
    color: #1563df;
}

@media (max-width: 767px) {
    .listings-tab-btn {
        padding: 14px 16px;
        font-size: 13px;
    }

    .listings-iframe-shell iframe {
        height: 75vh;
        min-height: 480px;
    }

    .iframe-loading-overlay {
        height: 75vh;
        min-height: 480px;
    }
}

/* ============================================================
   Edit Mode Overlay Styles
   ============================================================ */

.editable-wrapper {
  position: relative;
  display: inline-block;
}

.editable-wrapper:hover .edit-trigger {
  opacity: 1 !important;
}

.edit-trigger {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease;
  cursor: pointer;
  background: rgba(255, 193, 7, 0.95);
  border: none;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  white-space: nowrap;
}

.edit-trigger:hover {
  background: #f59e0b;
  transform: scale(1.05);
}

/* Edit Mode FAB button */
.edit-mode-fab {
  position: fixed !important;
  bottom: 28px;
  right: 28px;
  z-index: 99999 !important;
  border-radius: 50px !important;
  padding: 12px 22px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.edit-mode-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
}

/* Blog content rendered from rich editor */
.blog-content h2 { font-size: 1.5rem; font-weight: 700; margin: 1.5rem 0 0.75rem; }
.blog-content h3 { font-size: 1.25rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }
.blog-content p  { margin-bottom: 1rem; line-height: 1.75; }
.blog-content ul, .blog-content ol { margin: 0.75rem 0 1rem 1.5rem; line-height: 1.75; }
.blog-content a  { color: #0066cc; text-decoration: underline; }
.blog-content img { max-width: 100%; border-radius: 8px; margin: 1rem 0; }

/* Edit mode — always-visible editable zone indicator */
.edit-mode-active [data-editable] {
  outline: 2px dashed rgba(245,158,11,0.6);
}
