/* ==========================================================================
   MoJamoza Technologies -- shared design system
   Extracted from the live site's screenshots + master brief so every page
   in the rebuild pulls from ONE stylesheet instead of two ~700-line inline
   <style> blocks per legacy page. Colors and behavior below are meant to
   be pixel-matched to the current site, not a new visual direction.
   ========================================================================== */

:root {
    --primary: #bd710d;
    --primary-dark: #9a5d0b;
    --secondary: #163b6d;
    --secondary-dark: #0f2849;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #6c757d;
    --gray-light: #8b949d;
    --success: #28a745;
    --danger: #dc3545;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --header-height: 80px;
    --container-width: 1200px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--light);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
}

p { margin-bottom: 15px; color: rgba(255, 255, 255, 0.85); }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 { font-size: 2.2rem; }
.section-title h2 span,
.text-primary { color: var(--primary); }

.section-title p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--gray-light);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary,
.btn:not(.btn-secondary):not(.btn-outline) {
    background: var(--primary);
    color: var(--light);
}
.btn-primary:hover,
.btn:not(.btn-secondary):not(.btn-outline):hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--light);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-group { display: flex; gap: 15px; flex-wrap: wrap; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ---------- Cards ---------- */
.card {
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Header -- fixed, goes "scrolled" (blurred, shadowed) once the page
   scrolls, hamburger menu slides in a full mobile nav panel.
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
    color: var(--light);
}
.site-logo .logo-mark { color: var(--primary); font-size: 1.6rem; }
.site-logo small {
    display: block;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gray-light);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav .nav-item { position: relative; }

.main-nav a.nav-link {
    display: block;
    padding: 10px 14px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a.nav-link:hover,
.main-nav .nav-item.has-children:hover > a.nav-link,
.main-nav a.nav-link.active {
    color: var(--primary);
}

.main-nav .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    box-shadow: var(--shadow);
}
.main-nav .nav-item.has-children:hover .submenu { display: block; }
.main-nav .submenu a { display: block; padding: 10px 12px; border-radius: 6px; font-size: 0.9rem; }
.main-nav .submenu a:hover { background: rgba(189, 113, 13, 0.15); color: var(--primary); }

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border);
}
.header-auth a {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.header-auth a:hover { border-color: var(--primary); color: var(--primary); }
.header-auth a.admin-login {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}
.header-auth a.admin-login:hover { background: var(--primary-dark); color: var(--light); }

.account-menu { position: relative; }
.account-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--light);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.account-toggle:hover, .account-menu:hover .account-toggle, .account-menu.open .account-toggle {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--light);
}
.account-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--darker);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    padding: 8px;
    min-width: 170px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
}
.account-menu:hover .account-dropdown, .account-menu.open .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.account-dropdown a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--light);
    text-decoration: none;
    white-space: nowrap;
}
.account-dropdown a:hover { background: rgba(189, 113, 13, 0.15); color: var(--primary); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1200;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: auto; }

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--darker);
    z-index: 1100;
    padding: 0 25px 30px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.mobile-nav-panel.active { right: 0; }
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-header .site-logo img { height: 30px; width: auto; }
.mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.3rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mobile-nav-close:hover { color: var(--primary); }

.mobile-nav-panel ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-panel a.nav-link {
    display: block;
    padding: 14px 10px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-panel a.nav-link:hover, .mobile-nav-panel a.nav-link.active { color: var(--primary); }
.mobile-nav-panel .submenu { padding-left: 15px; }
.mobile-nav-panel .header-auth {
    flex-direction: column;
    align-items: stretch;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
}
.mobile-nav-panel .header-auth a { text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--darker);
    border-top: 1px solid var(--border);
    padding: 70px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-newsletter { margin-top: 25px; }
.footer-newsletter h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 10px;
}
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col h4 {
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col p { font-size: 0.9rem; color: var(--gray-light); }

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 0.9rem;
    color: var(--gray-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul a i { color: var(--primary); width: 16px; text-align: center; }
.footer-col ul a:hover { color: var(--primary); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.footer-social a:hover { background: var(--primary); }
.footer-social a.social-facebook:hover { background: #1877f2; }
.footer-social a.social-twitter:hover { background: #000000; }
.footer-social a.social-instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social a.social-linkedin:hover { background: #0a66c2; }
.footer-social a.social-youtube:hover { background: #ff0000; }
.footer-social a.social-tiktok:hover { background: #000000; }
.footer-social a.social-whatsapp:hover { background: #25d366; }
.footer-social a.social-telegram:hover { background: #26a5e4; }
.footer-social a.social-github:hover { background: #333333; }
.footer-social a:hover { color: #fff; transform: translateY(-3px); }
.footer-social a { transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease; }

#backToTop {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
#backToTop.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--primary-dark); }
@media (max-width: 640px) { #backToTop { bottom: 84px; right: 16px; width: 40px; height: 40px; } }

.footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 16px;
}
.footer-contact strong { display: block; color: var(--light); font-size: 0.85rem; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-light);
}
.footer-bottom a { color: var(--gray-light); margin-left: 15px; }
.footer-bottom a:hover { color: var(--primary); }

/* ==========================================================================
   Homepage hero (Phase 1: structure is code-driven, headline/copy comes
   from the `pages` table's "home" row)
   ========================================================================== */
.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background:
        linear-gradient(120deg, rgba(10,10,10,0.92) 30%, rgba(22,59,109,0.55) 100%),
        radial-gradient(circle at 80% 20%, rgba(189,113,13,0.25), transparent 45%),
        var(--dark);
    position: relative;
    overflow: hidden;
}

.hero-content { max-width: 680px; }

.hero-eyebrow {
    display: inline-block;
    background: rgba(189, 113, 13, 0.15);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }

.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    max-width: 560px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.hero-stats .stat-label {
    font-size: 0.85rem;
    color: var(--gray-light);
}

/* ==========================================================================
   Generic content section (used by pages-table content)
   ========================================================================== */
.content-section { padding: 80px 0; }
.content-section.alt { background: var(--darker); }

/* ---------- Inner-page hero banner (About, Services, Portfolio, etc.) ---------- */
.page-hero {
    padding: calc(var(--header-height) + 70px) 0 60px;
    text-align: center;
    background:
        linear-gradient(rgba(10,10,10,0.88), rgba(10,10,10,0.88)),
        radial-gradient(circle at 30% 20%, rgba(189,113,13,0.25), transparent 50%);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: 12px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--gray-light); font-size: 1.05rem; }
.page-hero .btn-group { justify-content: center; margin-top: 25px; }

.stat-strip {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 35px;
}
.stat-strip .stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-strip .stat-label { font-size: 0.82rem; color: var(--gray-light); }

/* ---------- Filter bar (services / portfolio category filters) ---------- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 45px;
}
.filter-bar a {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-light);
}
.filter-bar a:hover { border-color: var(--primary); color: var(--primary); }
.filter-bar a.active { background: var(--primary); border-color: var(--primary); color: var(--light); }

/* ---------- Pricing / service summary card ---------- */
.price-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 25px 30px;
    max-width: 480px;
}
.price-card .price-label { color: var(--primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.price-card .price-amount { font-size: 2.2rem; font-weight: 800; margin: 8px 0; }
.price-card .price-deposit { color: var(--gray-light); font-size: 0.85rem; margin-bottom: 15px; }
.price-card ul { display: flex; flex-direction: column; gap: 8px; }
.price-card ul li { font-size: 0.88rem; color: rgba(255,255,255,0.85); }
.price-card ul li i { color: var(--success); margin-right: 8px; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 25px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; }
.feature-list li i { color: var(--primary); margin-top: 4px; }

.module-card { background: #181818; border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 8px; padding: 20px; }
.module-card h4 { font-size: 1rem; margin-bottom: 12px; }
.module-card ul li { font-size: 0.88rem; color: var(--gray-light); padding: 4px 0; }
.module-card ul li i { color: var(--primary); margin-right: 8px; font-size: 0.75rem; }

.benefit-card { text-align: center; padding: 25px; background: #181818; }
.benefit-card .benefit-icon {
    width: 60px; height: 60px; border-radius: 50%; background: rgba(189,113,13,0.15);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
    color: var(--primary); font-size: 1.4rem;
}

.feature-card { padding: 30px; background: #181818; }
.feature-card .feature-icon {
    width: 55px; height: 55px; border-radius: 12px; background: rgba(189,113,13,0.15);
    display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
    color: var(--primary); font-size: 1.3rem;
}
.feature-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--gray-light); font-size: 0.92rem; margin: 0; }

/* ---------- Portfolio card ---------- */
.portfolio-card { overflow: hidden; padding: 0; }
.portfolio-card .thumb {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary), var(--dark));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.3); font-size: 2.5rem;
}
.portfolio-card .body { padding: 25px; }
.portfolio-card .cat-badge { color: var(--primary); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.portfolio-card h3 { font-size: 1.15rem; margin: 8px 0; }
.portfolio-card .meta { font-size: 0.82rem; color: var(--gray-light); display: flex; justify-content: space-between; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--border); }

/* ---------- Job / testimonial / team cards ---------- */
.job-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.job-card h3 { margin-bottom: 6px; }
.job-card .job-meta span { color: var(--gray-light); font-size: 0.85rem; margin-right: 15px; }

.empty-state-card { text-align: center; padding: 60px 20px; }
.empty-state-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

.testimonial-card { position: relative; }
.testimonial-card .stars { color: var(--primary); margin-bottom: 12px; }
.testimonial-card .tag { display: inline-block; background: rgba(189,113,13,0.15); color: var(--primary); font-size: 0.75rem; padding: 3px 12px; border-radius: 20px; margin-top: 15px; }
.testimonial-card .client { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.testimonial-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; }

.team-card { text-align: center; }
.team-card .photo { width: 100px; height: 100px; border-radius: 50%; background: var(--secondary); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 700; }
.team-card h3 { margin-bottom: 4px; font-size: 1.1rem; }
.team-card .role { color: var(--primary); font-size: 0.85rem; margin-bottom: 12px; }
.team-card p { font-size: 0.85rem; color: var(--gray-light); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-info-card { display: flex; gap: 15px; margin-bottom: 22px; }
.contact-info-card i { width: 42px; height: 42px; border-radius: 8px; background: rgba(189,113,13,0.15); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-card strong { display: block; margin-bottom: 3px; }
.contact-info-card span { color: var(--gray-light); font-size: 0.9rem; }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

.blog-card { overflow: hidden; padding: 0; }
.blog-card .thumb { height: 190px; background: linear-gradient(135deg, var(--secondary), var(--dark)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); font-size: 2.2rem; }
.blog-card .body { padding: 22px; }
.blog-card .meta-row { display: flex; gap: 14px; font-size: 0.78rem; color: var(--gray-light); margin-bottom: 10px; flex-wrap: wrap; }
.blog-card .meta-row span { display: flex; align-items: center; gap: 5px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 0.9rem; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 12px;
    border-radius: 6px; border: 1px solid var(--border); font-size: 0.88rem;
    color: var(--gray-light);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: var(--light); }
.pagination .disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Sidebar widgets (rendered generically by WidgetRenderer) ---------- */
.widget { background: var(--darker); border: 1px solid var(--border); border-radius: 10px; padding: 22px; margin-bottom: 25px; }
.widget-title { font-size: 1rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.widget-empty { font-size: 0.85rem; color: var(--gray-light); margin: 0; }
.widget-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.widget-list li:last-child { border-bottom: none; padding-bottom: 0; }
.widget-list a { flex: 1; }
.widget-list a:hover { color: var(--primary); }
.widget-meta, .widget-count { font-size: 0.75rem; color: var(--gray-light); white-space: nowrap; }
.widget-count { background: rgba(189,113,13,0.15); color: var(--primary); padding: 2px 9px; border-radius: 20px; }
.widget-search-form { display: flex; gap: 8px; }
.widget-search-form input { flex: 1; padding: 10px 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 6px; color: var(--light); }
.widget-search-form button { width: 42px; border-radius: 6px; border: none; background: var(--primary); color: var(--light); cursor: pointer; }
.widget-body p { font-size: 0.88rem; margin: 0; }

/* ---------- Single post ---------- */
.post-meta-row { display: flex; gap: 18px; flex-wrap: wrap; color: var(--gray-light); font-size: 0.85rem; margin-bottom: 25px; }
.post-body { font-size: 1.02rem; line-height: 1.8; }
.post-body h3 { margin-top: 30px; }
.post-body ul, .post-body ol { margin: 0 0 18px 22px; }
.post-body li { margin-bottom: 6px; color: rgba(255,255,255,0.85); }

.comments-section { margin-top: 50px; padding-top: 35px; border-top: 1px solid var(--border); }
.comment-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-item .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.comment-item .comment-meta { font-size: 0.78rem; color: var(--gray-light); margin-bottom: 6px; }

/* ==========================================================================
   Resources & Knowledge Base
   ========================================================================== */
.search-bar-row { display: flex; gap: 12px; max-width: 700px; margin: 0 auto 40px; flex-wrap: wrap; }
.search-bar-row input.form-control { flex: 1; min-width: 220px; }
.search-bar-row select.form-control { max-width: 220px; }

.resource-card { text-align: center; padding: 30px 25px; }
.resource-card .file-icon { width: 60px; height: 60px; border-radius: 12px; background: rgba(189,113,13,0.15); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 18px; }
.resource-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.resource-card .file-meta { font-size: 0.78rem; color: var(--gray-light); margin-bottom: 15px; }
.resource-card .stars-row { color: var(--primary); font-size: 0.85rem; margin-bottom: 15px; }
.resource-card .stars-row span { color: var(--gray-light); margin-left: 4px; }

.rating-stars { display: flex; gap: 6px; font-size: 1.6rem; cursor: pointer; margin-bottom: 15px; }
.rating-stars i { color: rgba(255,255,255,0.25); transition: color 0.15s ease; }
.rating-stars i.active, .rating-stars i:hover, .rating-stars i.hover { color: var(--primary); }

.kb-category-card { text-align: center; padding: 28px 20px; }
.kb-category-card .cat-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(189,113,13,0.15); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 16px; }
.kb-category-card h3 { font-size: 1rem; margin-bottom: 8px; }
.kb-category-card p { font-size: 0.85rem; min-height: 40px; }
.kb-category-card .article-count { font-size: 0.78rem; color: var(--primary); font-weight: 600; margin-bottom: 15px; }

.article-list-item { display: block; padding: 18px 22px; margin-bottom: 12px; }
.article-list-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.article-list-item .cat-tag { font-size: 0.75rem; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; }

.helpful-row { display: flex; align-items: center; gap: 15px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--border); }
.helpful-row .btn-helpful { padding: 8px 18px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: var(--light); cursor: pointer; font-size: 0.85rem; }
.helpful-row .btn-helpful:hover { border-color: var(--primary); color: var(--primary); }
.helpful-row .btn-helpful.voted { background: var(--primary); border-color: var(--primary); }

/* ==========================================================================
   Client Portal (dark theme, matching the public site -- distinct from
   the light admin panel since this is a client-facing surface)
   ========================================================================== */
.client-shell { display: flex; min-height: 100vh; padding-top: 0; }
.client-sidebar {
    width: 240px; flex-shrink: 0; background: var(--darker);
    border-right: 1px solid var(--border); padding: 25px 0; min-height: 100vh;
}
.client-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 22px 20px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 15px; }
.client-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 22px; font-size: 0.9rem; color: var(--gray-light); border-left: 3px solid transparent;
}
.client-nav a:hover { color: var(--light); background: rgba(255,255,255,0.04); }
.client-nav a.active { color: var(--primary); border-left-color: var(--primary); background: rgba(189,113,13,0.08); }
.client-nav .nav-badge { background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; }

.client-main { flex: 1; min-width: 0; }
.client-topbar {
    height: 70px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; border-bottom: 1px solid var(--border);
}
.client-topbar h1 { font-size: 1.25rem; margin: 0; }
.client-content { padding: 30px; }

.client-stat-card { background: var(--darker); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 20px; }
.client-stat-card .label { font-size: 0.8rem; color: var(--gray-light); margin-bottom: 6px; }
.client-stat-card .value { font-size: 1.7rem; font-weight: 800; }

.client-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.client-badge.planning, .client-badge.pending { background: rgba(253,243,224,0.15); color: #e8a94a; }
.client-badge.in_progress, .client-badge.confirmed { background: rgba(46,111,217,0.15); color: #6ea8fe; }
.client-badge.completed, .client-badge.paid { background: rgba(40,167,69,0.15); color: #7be495; }
.client-badge.on_hold, .client-badge.delayed { background: rgba(220,53,69,0.15); color: #ff8b95; }
.client-badge.cancelled, .client-badge.refunded { background: rgba(108,117,125,0.2); color: var(--gray-light); }

.progress-track { background: rgba(255,255,255,0.08); border-radius: 20px; height: 8px; overflow: hidden; }
.progress-track .progress-fill { background: var(--primary); height: 100%; border-radius: 20px; }

.milestone-item { display: flex; gap: 15px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.milestone-item:last-child { border-bottom: none; }
.milestone-item .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gray); margin-top: 5px; flex-shrink: 0; }
.milestone-item.completed .dot { background: var(--success); }
.milestone-item.in_progress .dot { background: var(--primary); }
.milestone-item.delayed .dot { background: var(--danger); }

@media (max-width: 900px) {
    .client-sidebar { display: none; }
    .client-content { padding: 18px; }
}

.tag-chip {
    display: inline-block;
    background: rgba(189,113,13,0.15);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ==========================================================================
   Forms & modals (contact form, careers application, partnership form --
   shared here since main.css is the only stylesheet public pages load)
   ========================================================================== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: rgba(255,255,255,0.85); }
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--light);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); background: rgba(255,255,255,0.08); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control option { background: var(--dark); }

.form-message { display: none; padding: 10px 14px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 15px; }
.form-message.success { display: block; background: rgba(40,167,69,0.15); color: #7be495; }
.form-message.error { display: block; background: rgba(220,53,69,0.15); color: #ff8b95; }

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; }
.modal-content {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
}
.modal-header h3 { margin: 0; font-size: 1.05rem; }
.close-modal { background: none; border: none; color: var(--gray-light); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.close-modal:hover { color: var(--light); }
.modal-body { padding: 25px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 25px;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.4rem; }
    .main-nav ul { gap: 0; }
    .main-nav a.nav-link { padding: 10px 9px; font-size: 0.88rem; }
    .header-auth { margin-left: 10px; padding-left: 10px; }
}

@media (max-width: 768px) {
    .main-nav > ul { display: none; }
    .hamburger { display: flex; }
    .account-toggle { width: 36px; height: 36px; font-size: 0.95rem; }
    .header-auth { margin-left: 10px; padding-left: 10px; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom a { margin: 0 8px; }

    .hero { text-align: center; min-height: auto; padding: calc(var(--header-height) + 40px) 0 60px; }
    .hero-content { margin: 0 auto; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .btn-group { justify-content: center; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .feature-list { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.9rem; }
    .job-card { flex-direction: column; align-items: flex-start; }
    .job-card .btn { width: 100%; justify-content: center; }
    .blog-layout { grid-template-columns: 1fr; }
}
