/**
 * proprietaryfirms.css
 * Dark green theme inspired by proprietaryfirms.tech
 * Colors: bg #0c1900, accent #9ee771, card #142214
 */

/* ===== GLOBAL BODY/PAGE ===== */
body {
    background-color: #0c1900;
    color: #e8f5e2;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

.page-wrapper {
    background-color: #0c1900;
}

/* ===== HEADER ===== */
.header {
    background: #0c1900;
    border-bottom: 1px solid rgba(158, 231, 113, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.header-logo img {
    width: 36px;
    height: 36px;
}

.header-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #9ee771;
    letter-spacing: -0.02em;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    color: #b8d4a8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: #9ee771;
    background: rgba(158, 231, 113, 0.08);
}

.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.2);
    border-radius: 10px;
    padding: 0.5rem;
    display: none;
    z-index: var(--z-dropdown);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #b8d4a8;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-link:hover,
.nav-dropdown-link.active {
    background: rgba(158, 231, 113, 0.1);
    color: #9ee771;
}

.nav-dropdown-link small {
    opacity: 0.6;
    margin-left: 0.25rem;
}

/* Header CTA */
.header-cta {
    background: #9ee771;
    color: #0c1900 !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.header-cta:hover {
    background: #c9f9aa;
    transform: translateY(-1px);
}

/* ===== MOBILE HEADER ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #9ee771;
    transition: all 0.3s;
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 998;
}

.mobile-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #142214;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid rgba(158, 231, 113, 0.2);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid rgba(158, 231, 113, 0.1);
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #9ee771;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    padding: 1rem;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(158, 231, 113, 0.08);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0.5rem;
    color: #e8f5e2;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
}

.mobile-nav-link.active {
    color: #9ee771;
}

.mobile-nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.mobile-nav-item.open > .mobile-nav-link svg {
    transform: rotate(180deg);
}

.mobile-nav-dropdown {
    display: none;
    padding: 0.25rem 0 0.75rem 1rem;
}

.mobile-nav-item.open .mobile-nav-dropdown {
    display: block;
}

.mobile-nav-dropdown a {
    display: block;
    padding: 0.5rem 0.5rem;
    color: #b8d4a8;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
}

.mobile-nav-dropdown a:hover,
.mobile-nav-dropdown a.active {
    color: #9ee771;
}

.mobile-nav-all {
    font-weight: 600;
    color: #9ee771 !important;
}

/* ===== HERO ===== */
.pft-hero {
    background: #0c1900;
    position: relative;
    overflow: hidden;
    min-height: min(calc(100vh - var(--header-height)), 820px);
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.pft-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(158, 231, 113, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pft-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.pft-hero-eyebrow {
    display: inline-block;
    background: rgba(158, 231, 113, 0.12);
    color: #9ee771;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(158, 231, 113, 0.25);
    margin-bottom: 1.5rem;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.pft-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.pft-hero h1 .accent {
    color: #9ee771;
}

.pft-hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: #b8d4a8;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.pft-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.pft-btn-primary {
    background: #9ee771;
    color: #0c1900;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pft-btn-primary:hover {
    background: #c9f9aa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(158, 231, 113, 0.35);
}

.pft-btn-outline {
    background: transparent;
    color: #9ee771;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid rgba(158, 231, 113, 0.5);
    transition: background 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pft-btn-outline:hover {
    background: rgba(158, 231, 113, 0.08);
    border-color: #9ee771;
}

/* Hero dashboard image */
.pft-hero-image {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
}

.pft-hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(158, 231, 113, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ===== IMPACT STATS ===== */
.pft-stats {
    background: #173300;
    padding: 4rem 1rem;
    text-align: center;
}

.pft-stats-title {
    font-size: clamp(1.1rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 2.5rem;
    overflow-wrap: break-word;
}

.pft-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pft-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.pft-stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #9ee771;
    line-height: 1;
    font-feature-settings: 'tnum';
}

.pft-stat-label {
    font-size: 0.875rem;
    color: #7a9e6a;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Partner logos section */
.pft-partners {
    background: #0c1900;
    padding: 2.5rem 1rem;
    overflow: hidden;
    border-top: 1px solid rgba(158, 231, 113, 0.1);
    border-bottom: 1px solid rgba(158, 231, 113, 0.1);
}

.pft-partners-track {
    display: flex;
    gap: 3rem;
    align-items: center;
    animation: pft-scroll 30s linear infinite;
    width: max-content;
}

.pft-partners-track img {
    height: 32px;
    width: auto;
    filter: brightness(0.6) sepia(1) hue-rotate(60deg) saturate(2);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pft-partners-track img:hover {
    opacity: 1;
}

@keyframes pft-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== FEATURES GRID ===== */
.pft-features {
    background: #0c1900;
    padding: 5rem 1rem;
}

.pft-section-title {
    text-align: center;
    font-size: clamp(1.1rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    overflow-wrap: break-word;
    word-break: break-word;
}

.pft-section-sub {
    text-align: center;
    color: #7a9e6a;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
}

.pft-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.pft-feature-card {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.15);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pft-feature-card:hover {
    border-color: rgba(158, 231, 113, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pft-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(158, 231, 113, 0.1);
    border: 1px solid rgba(158, 231, 113, 0.25);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #9ee771;
}

.pft-feature-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pft-feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pft-feature-desc {
    font-size: 0.875rem;
    color: #7a9e6a;
    line-height: 1.6;
}

.pft-features-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ===== SPLIT SECTIONS ===== */
.pft-split {
    padding: 5rem 1rem;
}

.pft-split.alt {
    background: #0d1e00;
}

.pft-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.pft-split.reverse .pft-split-inner {
    direction: rtl;
}

.pft-split.reverse .pft-split-content,
.pft-split.reverse .pft-split-image {
    direction: ltr;
}

.pft-split-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ee771;
    margin-bottom: 0.75rem;
}

.pft-split-content h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.pft-split-content p {
    color: #b8d4a8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pft-split-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(158, 231, 113, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ===== INTEGRATIONS ===== */
.pft-integrations {
    background: #0c1900;
    padding: 5rem 1rem;
}

.pft-integrations-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 2.5rem auto 2rem;
}

.pft-integration-item {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.15);
    border-radius: 12px;
    padding: 1.25rem 2rem;
    text-align: center;
    min-width: 110px;
    transition: border-color 0.2s, transform 0.2s;
}

.pft-integration-item:hover {
    border-color: rgba(158, 231, 113, 0.4);
    transform: translateY(-3px);
}

.pft-integration-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #b8d4a8;
    margin-top: 0.5rem;
}

.pft-integrations-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== CATEGORIES SECTION ===== */
.pft-categories {
    background: #173300;
    padding: 5rem 1rem;
}

.pft-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.pft-cat-card {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.15);
    border-radius: 12px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
    display: block;
}

.pft-cat-card:hover {
    border-color: rgba(158, 231, 113, 0.4);
    transform: translateY(-3px);
}

.pft-cat-icon {
    width: 52px;
    height: 52px;
    background: rgba(158, 231, 113, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #9ee771;
}

.pft-cat-icon svg {
    width: 24px;
    height: 24px;
}

.pft-cat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.pft-cat-count {
    font-size: 0.8rem;
    color: #7a9e6a;
}

/* ===== POPULAR TOPICS / TAGS ===== */
.pft-topics {
    background: #0c1900;
    padding: 5rem 1rem;
}

.pft-topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.875rem;
    margin-top: 2.5rem;
}

.pft-topic-card {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.12);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: border-color 0.2s, background 0.2s;
}

.pft-topic-card:hover {
    border-color: rgba(158, 231, 113, 0.35);
    background: #1a2e1a;
}

.pft-topic-icon {
    color: #9ee771;
    flex-shrink: 0;
}

.pft-topic-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pft-topic-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e8f5e2;
    flex: 1;
}

.pft-topic-count {
    font-size: 0.75rem;
    color: #9ee771;
    background: rgba(158, 231, 113, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
}

/* ===== PAGE HERO (INTERNAL PAGES) ===== */
.pft-page-hero {
    background: linear-gradient(135deg, #142214 0%, #0c1900 100%);
    border-bottom: 1px solid rgba(158, 231, 113, 0.15);
    padding: 3rem 1.5rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.pft-page-hero::before {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(158, 231, 113, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.pft-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #7a9e6a;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.pft-breadcrumb a {
    color: #9ee771;
    text-decoration: none;
}

.pft-breadcrumb a:hover {
    text-decoration: underline;
}

.pft-breadcrumb-sep {
    color: #3a5a2a;
}

.pft-page-hero h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.pft-page-hero p {
    color: #b8d4a8;
    font-size: 1rem;
    max-width: 600px;
    line-height: 1.6;
}

/* ===== ARTICLE PAGE ===== */
.pft-article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    padding: 2rem 0;
}

.pft-article-body {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.12);
    border-radius: 12px;
    padding: 2rem 2.5rem;
}

.pft-article-body h1,
.pft-article-body h2,
.pft-article-body h3,
.pft-article-body h4 {
    color: #fff;
    margin: 1.5rem 0 0.75rem;
    line-height: 1.3;
}

.pft-article-body h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.pft-article-body h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.pft-article-body h3 { font-size: clamp(1.1rem, 1.75vw, 1.25rem); }

.pft-article-body p,
.pft-article-body li {
    color: #e8f5e2;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pft-article-body a {
    color: #9ee771;
    text-decoration: underline;
    text-decoration-color: rgba(158, 231, 113, 0.4);
}

.pft-article-body a:hover {
    text-decoration-color: #9ee771;
}

.pft-article-body ul,
.pft-article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.pft-article-body img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(158, 231, 113, 0.1);
}

/* Sidebar */
.pft-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pft-sidebar-box {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.12);
    border-radius: 12px;
    padding: 1.5rem;
}

.pft-sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #9ee771;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(158, 231, 113, 0.1);
}

.pft-sidebar-article {
    display: flex;
    gap: 0.75rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(158, 231, 113, 0.06);
    text-decoration: none;
    align-items: flex-start;
}

.pft-sidebar-article:last-child {
    border-bottom: none;
}

.pft-sidebar-article img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.pft-sidebar-article-title {
    font-size: 0.825rem;
    color: #e8f5e2;
    line-height: 1.4;
    font-weight: 500;
}

.pft-sidebar-article:hover .pft-sidebar-article-title {
    color: #9ee771;
}

/* ===== ARTICLES GRID (category/tag pages) ===== */
.pft-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.pft-article-card {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.12);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.pft-article-card:hover {
    border-color: rgba(158, 231, 113, 0.35);
    transform: translateY(-3px);
}

.pft-article-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pft-article-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pft-article-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.pft-article-card:hover .pft-article-card-title {
    color: #9ee771;
}

.pft-article-card-meta {
    font-size: 0.75rem;
    color: #7a9e6a;
    margin-top: auto;
}

/* ===== CONTACT PAGE ===== */
.pft-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
}

.pft-contact-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.pft-contact-info p {
    color: #b8d4a8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.pft-contact-detail {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #b8d4a8;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.pft-contact-detail-icon {
    width: 36px;
    height: 36px;
    background: rgba(158, 231, 113, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ee771;
    flex-shrink: 0;
}

.pft-contact-detail-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pft-contact-form {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.15);
    border-radius: 12px;
    padding: 2rem;
}

.pft-form-group {
    margin-bottom: 1.25rem;
}

.pft-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b8d4a8;
    margin-bottom: 0.5rem;
}

.pft-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0c1900;
    border: 1px solid rgba(158, 231, 113, 0.2);
    border-radius: 8px;
    color: #e8f5e2;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.pft-form-control:focus {
    border-color: #9ee771;
}

.pft-form-control::placeholder {
    color: #3a5a2a;
}

.pft-form-submit {
    width: 100%;
    padding: 0.875rem;
    background: #9ee771;
    color: #0c1900;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.pft-form-submit:hover {
    background: #c9f9aa;
    transform: translateY(-1px);
}

/* ===== 404 PAGE ===== */
.pft-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}

.pft-404-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    color: rgba(158, 231, 113, 0.15);
    line-height: 1;
    margin-bottom: -1rem;
}

.pft-404 h1 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
}

.pft-404 p {
    color: #b8d4a8;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    background: #080f00;
    border-top: 1px solid rgba(158, 231, 113, 0.1);
    padding: 4rem 1rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(158, 231, 113, 0.08);
}

.footer-brand p {
    color: #7a9e6a;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-top: 1rem;
    max-width: 280px;
}

.footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ee771;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #7a9e6a;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #9ee771;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 2rem auto 0;
    text-align: center;
}

.footer-disclaimer {
    color: #3a5a2a;
    font-size: 0.75rem;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.footer-bottom > p:last-child {
    color: #7a9e6a;
    font-size: 0.8rem;
}

/* ===== SEO CONTENT ===== */
.pft-seo-content {
    background: #0c1900;
    padding: 3rem 1rem;
    border-top: 1px solid rgba(158, 231, 113, 0.1);
}

.pft-seo-content p {
    color: #7a9e6a;
    font-size: 0.9rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== KEYWORD CAROUSEL ===== */
.pft-carousel-section {
    background: #0f2200;
    padding: 2.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(158, 231, 113, 0.08);
    border-bottom: 1px solid rgba(158, 231, 113, 0.08);
}

.pft-carousel-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.kw-pill {
    background: rgba(158, 231, 113, 0.08);
    border: 1px solid rgba(158, 231, 113, 0.2);
    color: #b8d4a8;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.825rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.kw-pill:hover {
    background: rgba(158, 231, 113, 0.15);
    border-color: rgba(158, 231, 113, 0.4);
    color: #9ee771;
}

/* ===== ARTICLE CONTENT OVERRIDES ===== */
.article-content {
    color: #e8f5e2;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #ffffff !important;
}

.article-content p,
.article-content li {
    color: #e8f5e2;
}

.article-content a {
    color: #9ee771;
}

.article-content a:hover {
    color: #c9f9aa;
}

.article-content th {
    background: #1a3300 !important;
    color: #fff !important;
}

.article-content tr:nth-child(even) {
    background: rgba(158, 231, 113, 0.04) !important;
}

.article-content td {
    color: #e8f5e2;
    border-bottom-color: rgba(158, 231, 113, 0.1) !important;
}

.article-content table {
    border-color: rgba(158, 231, 113, 0.15) !important;
}

.article-content blockquote {
    border-left: 3px solid #9ee771;
    background: rgba(158, 231, 113, 0.05);
    color: #b8d4a8;
}

.article-content code {
    background: #142214;
    color: #9ee771;
    border: 1px solid rgba(158, 231, 113, 0.2);
}

/* ===== CASINO CARDS (dark green theme override) ===== */
.casino-grid-new {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    padding-top: 2.5rem;
}

.casino-card-new {
    background: #142214 !important;
    border: 1px solid rgba(158, 231, 113, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.casino-card-new:hover {
    box-shadow: 0 16px 40px rgba(158, 231, 113, 0.12) !important;
}

.casino-card-new-badge {
    background: linear-gradient(135deg, #9ee771 0%, #5da83a 100%) !important;
    box-shadow: 0 4px 15px rgba(158, 231, 113, 0.3) !important;
}

.casino-card-new:nth-child(2n) .casino-card-new-badge {
    background: linear-gradient(135deg, #7ad458 0%, #4a9a28 100%) !important;
    box-shadow: 0 4px 15px rgba(158, 231, 113, 0.25) !important;
}

.casino-card-new:nth-child(3n) .casino-card-new-badge {
    background: linear-gradient(135deg, #c9f9aa 0%, #9ee771 100%) !important;
    box-shadow: 0 4px 15px rgba(158, 231, 113, 0.2) !important;
}

.casino-card-new:nth-child(5n) .casino-card-new-badge {
    background: linear-gradient(135deg, #9ee771 0%, #5da83a 100%) !important;
    box-shadow: 0 4px 15px rgba(158, 231, 113, 0.3) !important;
}

.casino-card-new-name {
    color: #e8f5e2 !important;
}

.casino-card-new-rating .rating-value {
    color: #e8f5e2 !important;
    background: rgba(158, 231, 113, 0.1) !important;
}

.casino-card-new-btn {
    background: linear-gradient(135deg, #9ee771 0%, #5da83a 100%) !important;
    color: #0c1900 !important;
}

.casino-card-new-btn:hover {
    background: linear-gradient(135deg, #c9f9aa 0%, #9ee771 100%) !important;
}

@media (max-width: 768px) {
    .casino-grid-new {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    .casino-grid-new {
        grid-template-columns: 1fr !important;
    }
}

/* ===== OLD COMPONENT OVERRIDES ===== */
/* Ensure old .hero class doesn't conflict */
.hero {
    display: none !important;
}

/* Override old card styles */
.card {
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.12);
}

.card-title a {
    color: #e8f5e2;
}

.card-title a:hover {
    color: #9ee771;
}

/* Override section styles */
.section {
    background: #0c1900;
}

.section-title {
    color: #ffffff;
}

.section-subtitle {
    color: #7a9e6a;
}

/* Override .main spacing */
.main {
    padding-top: 0;
    padding-bottom: 0;
}

/* Pagination */
.pagination-list {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-list a {
    padding: 0.5rem 1rem;
    background: #142214;
    border: 1px solid rgba(158, 231, 113, 0.2);
    color: #b8d4a8;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.pagination-list a:hover {
    background: #1a3300;
    color: #9ee771;
}

.pagination-current {
    padding: 0.5rem 1rem;
    background: #9ee771;
    color: #0c1900;
    border-radius: 6px;
    font-weight: 700;
    display: inline-block;
}

/* Breadcrumb override */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #7a9e6a;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #9ee771;
    text-decoration: none;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    color: #3a5a2a;
    margin-right: 0.25rem;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0c1900;
}
::-webkit-scrollbar-thumb {
    background: #253d15;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a5a2a;
}

/* ===== MAIN CONTENT SPACING ===== */
.main {
    padding-top: 25px;
    padding-bottom: 25px;
}

.main.main-home {
    padding-top: 0;
}

.main-content {
    padding: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .pft-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pft-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pft-article-layout {
        grid-template-columns: 1fr;
    }
    .pft-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-main {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .pft-split-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .pft-split.reverse .pft-split-inner {
        direction: ltr;
    }
    .pft-articles-grid {
        grid-template-columns: 1fr;
    }
    .pft-contact-grid {
        grid-template-columns: 1fr;
    }
    .pft-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pft-stats-grid {
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .pft-features-grid {
        grid-template-columns: 1fr;
    }
    .pft-cat-grid {
        grid-template-columns: 1fr;
    }
    .pft-hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .pft-btn-primary,
    .pft-btn-outline {
        justify-content: center;
        width: 100%;
    }
    .pft-integrations-grid {
        gap: 0.75rem;
    }
    .pft-hero {
        padding: 3rem 1.25rem 2.5rem;
    }
    .pft-hero h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    .pft-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
    .pft-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GLOBAL OVERFLOW FIX ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* All sections fill full width without overflowing */
section, .pft-hero, .pft-stats, .pft-categories, .pft-features,
.pft-split, .pft-integrations, .pft-topics, .pft-seo-content, .pft-carousel-section {
    max-width: 100vw;
    overflow-x: hidden;
}

.pft-hero-inner {
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
    box-sizing: border-box;
}

.pft-hero h1,
.pft-section-title,
.pft-stats-title,
.pft-split-content h2 {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Stat labels should not overflow their cells */
.pft-stat-label {
    white-space: normal;
    overflow-wrap: break-word;
    font-size: 0.75rem;
}

/* ===== MOBILE SPECIFIC FIXES ===== */
@media (max-width: 600px) {
    .pft-hero {
        padding: 2.5rem 1rem 2rem;
    }
    .pft-hero-inner {
        padding: 0;
        width: 100%;
    }
    .pft-hero h1 {
        font-size: clamp(1.4rem, 5.5vw, 2rem) !important;
        letter-spacing: -0.02em !important;
    }
    .pft-hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.03em;
        padding: 0.3rem 0.75rem;
        max-width: 100%;
        display: block;
        text-align: center;
    }
    .pft-hero-desc {
        font-size: 0.88rem;
        padding: 0 0.5rem;
    }
    .pft-hero-buttons {
        flex-direction: column !important;
        align-items: stretch !important;
        max-width: 260px !important;
        margin: 0 auto 2rem !important;
    }
    .pft-btn-primary,
    .pft-btn-outline {
        text-align: center;
        justify-content: center !important;
        padding: 0.75rem 1.25rem !important;
    }
    .pft-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.25rem !important;
    }
    .pft-stat-number {
        font-size: 2rem;
    }
    .pft-section-title {
        font-size: clamp(1.2rem, 5vw, 1.75rem) !important;
    }
    .pft-section-sub {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
}

/* ===== VERY SMALL SCREENS (iPhone SE, Galaxy S8) ===== */
@media (max-width: 430px) {
    .pft-hero h1 {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem) !important;
    }
    .pft-hero-eyebrow {
        font-size: 0.55rem;
        padding: 0.25rem 0.6rem;
    }
    .pft-hero-buttons {
        max-width: 240px !important;
    }
    .pft-hero-desc {
        font-size: 0.85rem;
    }
}

/* ===== GLOBAL HORIZONTAL OVERFLOW PREVENTION ===== */
.page-wrapper {
    overflow-x: hidden;
    max-width: 100vw;
}

.carousel-wrapper {
    overflow: hidden;
    max-width: 100%;
}
