/**
 * Components CSS — Party Casino Guyana
 * Theme: Tropic Gold | Prefix: tg-*
 */

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: var(--leading-normal);
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: var(--leading-tight); }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HEADER ===== */
.tg-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-fixed);
    background: transparent;
}

/* Top brand bar */
.tg-header-top {
    background: var(--color-secondary-dark);
    height: var(--header-top-height);
    border-bottom: 2px solid var(--color-primary);
}
.tg-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--container-padding);
}
.tg-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.tg-logo img { width: 36px; height: 36px; flex-shrink: 0; }
.tg-logo-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.tg-header-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tg-cta-top {
    background: var(--gradient-accent);
    color: #fff;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition-base);
    white-space: nowrap;
}
.tg-cta-top:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: var(--shadow-glow-accent); }

/* Bottom nav bar */
.tg-nav-bar {
    background: var(--color-secondary);
    height: var(--header-height);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.tg-nav-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
    padding: 0 var(--container-padding);
}
.tg-nav-item {
    position: relative;
}
.tg-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.tg-nav-link:hover, .tg-nav-link.active {
    color: #fff;
    background: rgba(5,150,105,0.2);
}
.tg-nav-link.active { color: var(--color-primary-light); }
.tg-nav-arrow {
    width: 12px; height: 12px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}
.tg-nav-item:hover .tg-nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.tg-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-secondary-dark);
    border: 1px solid rgba(5,150,105,0.3);
    border-radius: var(--radius-md);
    padding: 8px 0;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    z-index: var(--z-dropdown);
}
.tg-nav-item:hover .tg-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tg-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}
.tg-dropdown-link:hover, .tg-dropdown-link.active {
    background: rgba(5,150,105,0.15);
    color: var(--color-primary-light);
    padding-left: 24px;
}
.tg-dropdown-link small { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.tg-dropdown-group {
    padding: 10px 18px 5px;
    color: var(--color-accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tg-dropdown-sub { padding-left: 28px; }

/* Mobile toggle */
.tg-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.tg-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile nav */
.tg-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: calc(var(--z-fixed) + 1);
}
.tg-mobile-nav {
    position: fixed;
    top: 0; left: -100%;
    width: 300px;
    height: 100dvh;
    background: var(--color-secondary-dark);
    z-index: calc(var(--z-fixed) + 2);
    overflow-y: auto;
    transition: left var(--transition-slow);
    padding-bottom: 2rem;
}
.tg-mobile-nav.open { left: 0; }
.tg-mobile-overlay.open { display: block; }
.tg-mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tg-mobile-close {
    background: none; border: none; cursor: pointer;
    color: #fff; padding: 4px;
}
.tg-mobile-close svg { width: 22px; height: 22px; }
.tg-mobile-links { padding: 12px 0; }
.tg-mob-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.tg-mob-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.tg-mob-link svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.tg-mob-item.open .tg-mob-link svg { transform: rotate(180deg); }
.tg-mob-link.active { color: var(--color-primary-light); }
.tg-mob-dropdown {
    display: none;
    background: rgba(0,0,0,0.2);
    padding: 8px 0 8px 16px;
}
.tg-mob-item.open .tg-mob-dropdown { display: block; }
.tg-mob-dropdown a {
    display: block;
    padding: 9px 20px;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    text-decoration: none;
}
.tg-mob-dropdown a:hover, .tg-mob-dropdown a.active { color: var(--color-primary-light); }
.tg-mob-all { font-weight: 600 !important; color: rgba(255,255,255,0.5) !important; }
.tg-mob-cta {
    display: block;
    margin: 16px 20px 0;
    background: var(--gradient-accent);
    color: #fff;
    text-align: center;
    padding: 13px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
}

/* ===== HERO — TYPE 25: APP MOCKUP ===== */
.tg-hero {
    background: var(--gradient-hero);
    min-height: 700px;
    max-height: 900px;
    padding-top: var(--total-header-height);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.tg-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(5,150,105,0.18) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(217,119,6,0.12) 0%, transparent 60%);
    pointer-events: none;
}
/* Floating particles */
.tg-hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tg-hero-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: 0.15;
    animation: tg-float 8s ease-in-out infinite;
}
.tg-hero-particles span:nth-child(1) { width: 80px; height: 80px; background: var(--color-primary); top: 15%; left: 5%; animation-delay: 0s; }
.tg-hero-particles span:nth-child(2) { width: 50px; height: 50px; background: var(--color-accent); top: 70%; left: 8%; animation-delay: 1.5s; }
.tg-hero-particles span:nth-child(3) { width: 120px; height: 120px; background: var(--color-secondary-light); top: 30%; right: 15%; animation-delay: 2.5s; }
.tg-hero-particles span:nth-child(4) { width: 40px; height: 40px; background: var(--color-accent-light); top: 60%; right: 8%; animation-delay: 0.8s; }
.tg-hero-particles span:nth-child(5) { width: 70px; height: 70px; background: var(--color-primary-light); top: 85%; left: 40%; animation-delay: 3s; }
.tg-hero-particles span:nth-child(6) { width: 55px; height: 55px; background: var(--color-primary); top: 5%; left: 55%; animation-delay: 2s; }

@keyframes tg-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.tg-hero-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem var(--container-padding);
    position: relative;
    z-index: 2;
}
.tg-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(217,119,6,0.15);
    border: 1px solid rgba(217,119,6,0.4);
    color: var(--color-accent-light);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.tg-hero-badge svg { width: 14px; height: 14px; fill: var(--color-accent-light); }
.tg-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.7rem, 4vw, 3.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.tg-hero-title em {
    font-style: normal;
    color: var(--color-primary-light);
}
.tg-hero-sub {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.8rem;
    max-width: 480px;
}
.tg-hero-features {
    list-style: none;
    padding: 0; margin: 0 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.tg-hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 600;
}
.tg-hero-features li svg {
    width: 16px; height: 16px;
    fill: var(--color-primary-light);
    flex-shrink: 0;
}
.tg-hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.tg-btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-base);
    box-shadow: 0 4px 16px rgba(5,150,105,0.4);
    white-space: nowrap;
}
.tg-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-primary); }
.tg-btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
    font-weight: 700;
    padding: 11px 28px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-base);
    white-space: nowrap;
}
.tg-btn-outline:hover { border-color: var(--color-primary-light); color: var(--color-primary-light); }
.tg-btn-lg { padding: 15px 36px; font-size: 1rem; }

/* Phone mockup */
.tg-hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}
.tg-phone-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
}
.tg-phone-device {
    width: 280px;
    background: #1a1a2e;
    border-radius: 40px;
    border: 3px solid rgba(255,255,255,0.12);
    box-shadow:
        0 30px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.06),
        inset 0 1px 0 rgba(255,255,255,0.1);
    padding: 16px 8px;
    position: relative;
    transform: perspective(800px) rotateY(-12deg) rotateX(3deg);
    animation: tg-phone-float 5s ease-in-out infinite;
}
@keyframes tg-phone-float {
    0%, 100% { transform: perspective(800px) rotateY(-12deg) rotateX(3deg) translateY(0); }
    50% { transform: perspective(800px) rotateY(-12deg) rotateX(3deg) translateY(-12px); }
}
.tg-phone-notch {
    width: 80px; height: 20px;
    background: #0d0d1a;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 10px;
    position: relative;
}
.tg-phone-notch::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    background: #2a2a3e;
    border-radius: 50%;
}
.tg-phone-screen {
    border-radius: 20px;
    overflow: hidden;
    height: 430px;
    background: #0a0a1a;
}
.tg-phone-screen img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.tg-phone-home-bar {
    width: 100px; height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin: 12px auto 0;
}

/* Floating cards on phone */
.tg-phone-float {
    position: absolute;
    background: rgba(30,27,75,0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(5,150,105,0.4);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: var(--shadow-lg);
    animation: tg-float-card 4s ease-in-out infinite;
}
.tg-phone-float svg { width: 18px; height: 18px; fill: var(--color-accent-light); flex-shrink: 0; }
.tg-float-top { top: 60px; right: -55px; animation-delay: 0.5s; }
.tg-float-bottom { bottom: 80px; left: -55px; animation-delay: 1.2s; }
.tg-float-top svg { fill: var(--color-accent-light); }
.tg-float-bottom svg { fill: var(--color-primary-light); }
@keyframes tg-float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll reveal animations — hidden only after JS marks body as js-loaded */
.js-loaded .tg-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-loaded .tg-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.tg-reveal.tg-visible, .tg-reveal-right.tg-visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== STATS ===== */
.tg-stats {
    background: var(--color-bg-light);
    border-top: 4px solid var(--color-primary);
    padding: 3rem 0;
}
.tg-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.tg-stat {
    flex: 1;
    text-align: center;
    padding: 1.5rem;
}
.tg-stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.tg-stat-num span { color: var(--color-primary); }
.tg-stat-line {
    width: 32px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto 0.5rem;
}
.tg-stat-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.tg-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(30,27,75,0.1);
    flex-shrink: 0;
}

/* ===== FEATURES ===== */
.tg-features {
    background: var(--color-bg);
    padding: 5rem 0;
}
.tg-section-head {
    text-align: center;
    margin-bottom: 3rem;
}
.tg-section-head h2 {
    font-size: var(--text-3xl);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}
.tg-section-head p {
    color: var(--color-text-light);
    font-size: var(--text-lg);
    max-width: 560px;
    margin: 0 auto;
}
.tg-label {
    display: inline-block;
    background: rgba(5,150,105,0.1);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(5,150,105,0.2);
}
.tg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.tg-feat-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(30,27,75,0.08);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}
.tg-feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}
.tg-feat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.tg-feat-card:hover::before { transform: scaleX(1); }
.tg-feat-card-center {
    border-top: 3px solid var(--color-primary);
    background: linear-gradient(135deg, rgba(5,150,105,0.04) 0%, var(--color-bg-light) 100%);
}
.tg-feat-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.tg-feat-icon svg { width: 28px; height: 28px; }
.tg-feat-icon-1 { background: rgba(5,150,105,0.12); }
.tg-feat-icon-1 svg { fill: var(--color-primary-dark); }
.tg-feat-icon-2 { background: rgba(30,27,75,0.1); }
.tg-feat-icon-2 svg { fill: var(--color-secondary); }
.tg-feat-icon-3 { background: rgba(217,119,6,0.1); }
.tg-feat-icon-3 svg { fill: var(--color-accent-dark); }
.tg-feat-card h3 {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}
.tg-feat-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.tg-feat-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
}
.tg-feat-link:hover { color: var(--color-primary-dark); }

/* ===== CATEGORIES ===== */
.tg-categories {
    background: var(--color-secondary-dark);
    padding: 5rem 0;
}
.tg-categories .tg-section-head h2 { color: #fff; }
.tg-categories .tg-section-head p { color: rgba(255,255,255,0.6); }
.tg-cat-magazine {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.tg-cat-mag-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
}
.tg-cat-mag-item:hover {
    background: rgba(5,150,105,0.15);
    border-color: rgba(5,150,105,0.4);
    transform: translateX(4px);
}
.tg-cat-mag-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.12);
    flex-shrink: 0;
    width: 48px;
    line-height: 1;
}
.tg-cat-mag-item-0 .tg-cat-mag-num { color: rgba(5,150,105,0.35); }
.tg-cat-mag-item-1 .tg-cat-mag-num { color: rgba(217,119,6,0.35); }
.tg-cat-mag-item-2 .tg-cat-mag-num { color: rgba(255,255,255,0.2); }
.tg-cat-mag-content { flex: 1; min-width: 0; }
.tg-cat-mag-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tg-cat-mag-content span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}
.tg-cat-mag-arrow svg {
    width: 18px; height: 18px;
    stroke: rgba(255,255,255,0.3);
    transition: var(--transition-fast);
}
.tg-cat-mag-item:hover .tg-cat-mag-arrow svg {
    stroke: var(--color-primary-light);
    transform: translateX(4px);
}

/* ===== IMAGE GALLERY ===== */
.tg-gallery { overflow: hidden; }
.tg-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
    height: 220px;
    gap: 4px;
}
.tg-gallery-item {
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
    overflow: hidden;
}
.tg-gallery-item:hover { transform: scale(1.03); }

/* ===== RECENT ARTICLES ===== */
.tg-articles {
    background: var(--color-bg);
    padding: 5rem 0;
}
.tg-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.tg-article-card {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.tg-article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.tg-article-img {
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}
.tg-article-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.tg-article-card:hover .tg-article-img img { transform: scale(1.06); }
.tg-article-featured .tg-article-img { height: 200px; }
.tg-article-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.tg-article-cat {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    display: block;
}
.tg-article-body h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.4;
    margin-bottom: auto;
    padding-bottom: 0.75rem;
    flex: 1;
}
.tg-article-read {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-top: auto;
}

/* ===== CTA BANNER ===== */
.tg-cta-banner {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    overflow: hidden;
}
.tg-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,27,75,0.88) 0%, rgba(5,80,55,0.82) 100%);
}
.tg-cta-content {
    position: relative;
    z-index: 2;
}
.tg-cta-content h2 {
    font-size: var(--text-3xl);
    color: #fff;
    margin-bottom: 1rem;
}
.tg-cta-content p {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-lg);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== TAGS ===== */
.tg-tags {
    background: var(--color-bg-light);
    padding: 4rem 0;
}
.tg-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}
.tg-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-bg);
    border: 1.5px solid rgba(30,27,75,0.1);
    color: var(--color-text);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
}
.tg-tag-pill:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-primary);
}
.tg-tag-featured {
    background: rgba(5,150,105,0.08);
    border-color: rgba(5,150,105,0.3);
    color: var(--color-primary-dark);
}
.tg-tag-featured:hover { background: var(--color-primary); color: #fff; }
.tg-tag-num {
    background: rgba(30,27,75,0.1);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-weight: 700;
}
.tg-tag-pill:hover .tg-tag-num { background: rgba(255,255,255,0.25); color: #fff; }

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-footer);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}
.footer-brand .tg-logo-text { color: #fff; }
.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-top: 1rem;
}
.footer-title {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--color-primary-light); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    text-align: center;
}
.footer-disclaimer {
    color: rgba(255,255,255,0.35);
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.footer-bottom p:last-child {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

/* ===== INTERNAL PAGES ===== */

/* Page hero / banner */
.page-hero {
    background: var(--gradient-hero);
    padding: calc(var(--total-header-height) + 3rem) 0 3rem;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
}
.page-hero h1 {
    font-size: var(--text-4xl);
    color: #fff;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-lg);
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-primary-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: rgba(255,255,255,0.3); }

/* Article card grid (category pages) */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.article-card-item {
    background: var(--color-bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(30,27,75,0.06);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}
.article-card-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.article-card-img {
    height: 160px;
    overflow: hidden;
}
.article-card-img img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.article-card-cat {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}
.article-card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.4;
    flex: 1;
}
.article-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Article page */
.article-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}
.article-content h1 {
    font-size: var(--text-3xl);
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-size: var(--text-2xl);
    color: var(--color-secondary);
    margin: 2rem 0 1rem;
}
.article-content h3 {
    font-size: var(--text-xl);
    color: var(--color-secondary-light);
    margin: 1.5rem 0 0.75rem;
}
.article-content p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.article-content ul, .article-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    line-height: 1.8;
}
.article-content a { color: var(--color-primary); }
.article-content a:hover { text-decoration: underline; }
.article-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem auto;
    max-width: 100%;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.article-content table th {
    background: var(--color-secondary);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
}
.article-content table td {
    border: 1px solid rgba(30,27,75,0.1);
    padding: 10px 14px;
    color: var(--color-text);
}
.article-content table tr:nth-child(even) td { background: var(--color-bg); }

/* Casino grid (article.php) */
.casino-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.casino-card-new {
    background: var(--color-bg-light);
    border: 1.5px solid rgba(5,150,105,0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.casino-card-new:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--color-primary); }
.casino-card-new img {
    height: 50px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 0.75rem;
    object-fit: contain;
}
.casino-card-new h4 {
    font-size: 0.9rem;
    color: var(--color-secondary);
    margin-bottom: 0.4rem;
}
.casino-card-new p {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}
.casino-card-new a.btn-casino {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    padding: 7px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
}
.casino-card-new a.btn-casino:hover { opacity: 0.88; transform: translateY(-1px); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}
.pagination a {
    background: var(--color-bg-light);
    color: var(--color-secondary);
    border: 1.5px solid rgba(30,27,75,0.1);
}
.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination span {
    background: var(--color-secondary);
    color: #fff;
    border: 1.5px solid var(--color-secondary);
}
.pagination .prev, .pagination .next {
    background: var(--color-bg);
    color: var(--color-primary);
}

/* Section spacing */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}
.section-subtitle { color: var(--color-text-light); font-size: var(--text-lg); }

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--color-bg-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(30,27,75,0.15);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: var(--transition-fast);
    outline: none;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.1);
    background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    padding: 13px 36px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition-base);
    box-shadow: 0 4px 14px rgba(5,150,105,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-primary); }

/* 404 page */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--total-header-height) + 2rem) 0 4rem;
}
.error-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    opacity: 0.3;
    margin-bottom: 1rem;
}
.error-page h2 { font-size: var(--text-2xl); color: var(--color-secondary); margin-bottom: 1rem; }
.error-page p { color: var(--color-text-light); margin-bottom: 2rem; }

/* Utility */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
