/*
Theme Name: Life Square Theme
Theme URI: https://LifeSquare.com
Description: A complete custom WordPress theme built from scratch with full Elementor integration and WordPress Customizer support.
Author: Varion950
Version: 5.4.0
Text Domain: LifeSquare
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --primary-color: #1C7161;
    --primary-hover: #155a4d;
    --accent-color: #2d9b85;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #ffffff;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(28, 113, 97, 0.3);
    color: white;
}



/* =========================================
   HEADER STYLES (Equivalent to Tailwind)
   ========================================= */

:root {
    --primary-color: #1C7161;
    --primary-hover: #155a4d;
}

.container {
    max-width: 1280px; /* max-w-7xl */
    margin: 0 auto;
    padding: 0 24px; /* px-6 */
}

.icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.icon-wrapper svg { width: 100%; height: 100%; stroke: currentColor; }

.cinagen-header {
    position: sticky; /* sticky top-0 */
    top: 0;
    z-index: 50; /* z-50 */
    width: 100%;
    transition: all 0.3s ease;
}

/* Scrolled State (shadow-lg) */
.cinagen-header.header-scrolled .cinagen-main-nav {
    box-shadow: 0 10px 15px -3px rgba(28, 113, 97, 0.1);
    backdrop-filter: blur(12px); /* backdrop-blur-md */
}

/* Top Bar */
.cinagen-topbar {
    background-color: var(--primary-color); /* bg-primary */
    color: white; /* text-white */
    font-size: 12px; /* text-xs */
    padding: 8px 0; /* py-2 */
}
.cinagen-topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; /* gap-3 / gap-5 */ }
.topbar-item {
    display: flex; align-items: center; gap: 6px; color: white; text-decoration: none;
    transition: opacity 0.3s; background: none; border: none; cursor: pointer;
}
.topbar-item:hover { opacity: 0.8; /* hover:text-accent */ }

/* Main Nav */
.cinagen-main-nav {
    background-color: rgba(255, 255, 255, 0.95); /* bg-white/95 */
    backdrop-filter: blur(12px); /* backdrop-blur-md */
    border-bottom: 1px solid #f3f4f6; /* border-b border-gray-100 */
    transition: all 0.3s ease; /* transition-all duration-300 */
}
.cinagen-main-nav .container { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; /* py-3 */ }

/* Logo */
.logo-wrapper { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon {
    width: 40px; height: 40px; border-radius: 12px; /* rounded-xl */
    background: linear-gradient(135deg, var(--primary-color), #2d9b85); /* gradient */
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(28, 113, 97, 0.2);
    transition: transform 0.3s;
}
.logo-wrapper:hover .logo-icon { transform: scale(1.05); /* group-hover:scale-105 */ }
.logo-text { display: flex; flex-direction: column; }
.logo-name { color: var(--primary-color); font-weight: 900; font-size: 18px; line-height: 1.2; }
.logo-subtitle { color: #9ca3af; /* text-gray-400 */ font-size: 10px; font-weight: 500; margin-top: -2px; }

/* Desktop Menu */
.nav-menu-wrapper { display: none; }
@media (min-width: 1024px) { .nav-menu-wrapper { display: block; } } /* hidden lg:flex */
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: #374151; text-decoration: none; transition: all 0.2s ease;
}
.nav-menu > li > a:hover { color: var(--primary-color); background-color: rgba(28, 113, 97, 0.05); }

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 224px; /* w-56 */
    background: white; border-radius: 12px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6; padding: 8px 0; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.2s ease; z-index: 50; list-style: none;
}
.nav-menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu li a {
    display: block; padding: 10px 16px; color: #4b5563; text-decoration: none; font-size: 14px;
}
.nav-menu .sub-menu li a:hover { background-color: rgba(28, 113, 97, 0.05); color: var(--primary-color); }

/* CTA Button */
.nav-actions { display: none; }
@media (min-width: 1024px) { .nav-actions { display: flex; } }
.btn-cta {
    display: inline-flex; align-items: center; gap: 8px; background-color: var(--primary-color);
    color: white; padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 700;
    text-decoration: none; box-shadow: 0 4px 6px -1px rgba(28, 113, 97, 0.2); transition: all 0.3s ease;
}
.btn-cta:hover { background-color: var(--primary-hover); box-shadow: 0 10px 15px -3px rgba(28, 113, 97, 0.3); transform: translateY(-2px); }

/* Mobile Toggle & Overlay */
.mobile-toggle {
    display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 8px;
    background: none; border: none; cursor: pointer; color: #4b5563;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } } /* lg:hidden */
.mobile-toggle:hover { background-color: #f3f4f6; }

.mobile-overlay {
    position: fixed; inset: 0; top: 120px; z-index: 40; background-color: white;
    overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease;
}
@media (min-width: 1024px) { .mobile-overlay { display: none; } }
.mobile-overlay.active { transform: translateX(0); }
.mobile-menu-content { display: flex; flex-direction: column; padding: 24px; gap: 4px; }
.mobile-menu { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.mobile-menu a {
    display: block; padding: 16px; font-size: 16px; font-weight: 700; color: #111827;
    text-decoration: none; border-bottom: 1px solid #f3f4f6;
}
.mobile-actions { margin-top: 24px; }
.btn-cta-mobile {
    display: block; text-align: center; background-color: var(--primary-color); color: white;
    padding: 16px; border-radius: 12px; font-weight: 900; text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(28, 113, 97, 0.2);
}

/* Dark Mode Overrides */
.dark .cinagen-main-nav { background-color: rgba(17, 24, 39, 0.95); border-color: #1f2937; }
.dark .nav-menu > li > a { color: #d1d5db; }
.dark .nav-menu > li > a:hover { color: white; background-color: rgba(255, 255, 255, 0.05); }
.dark .mobile-overlay { background-color: #111827; }
.dark .mobile-menu a { color: white; border-color: #1f2937; }




/* =========================================
   DARK MODE STYLES (Fix)
   ========================================= */

/* 1. تغییر رنگ پس‌زمینه و متن کل سایت */
.dark body {
    background-color: #111827; /* gray-900 */
    color: #f3f4f6; /* gray-100 */
}

/* 2. تغییر رنگ نوار اصلی هدر در حالت دارک */
.dark .cinagen-main-nav {
    background-color: rgba(17, 24, 39, 0.95); /* gray-900/95 */
    border-bottom-color: #374151; /* gray-700 */
}

/* 3. تغییر رنگ لینک‌های منو در حالت دارک */
.dark .nav-menu > li > a {
    color: #d1d5db; /* gray-300 */
}
.dark .nav-menu > li > a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* 4. تغییر رنگ دراپ‌داون منو در حالت دارک */
.dark .nav-menu .sub-menu {
    background-color: #1f2937; /* gray-800 */
    border-color: #374151;
}
.dark .nav-menu .sub-menu li a {
    color: #9ca3af; /* gray-400 */
}
.dark .nav-menu .sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* 5. تغییر رنگ منوی موبایل در حالت دارک */
.dark .mobile-overlay {
    background-color: #111827;
}
.dark .mobile-menu a {
    color: #f3f4f6;
    border-bottom-color: #374151;
}

/* 6. تغییر رنگ لوگو در حالت دارک */
.dark .logo-name {
    color: #ffffff;
}
.dark .logo-subtitle {
    color: #9ca3af;
}

/* 7. تغییر رنگ دکمه همبرگری موبایل */
.dark .mobile-toggle {
    color: #d1d5db;
}
.dark .mobile-toggle:hover {
    background-color: #1f2937;
}






/* =========================================
   BREADCRUMBS STYLES - FINAL VERSION
   ========================================= */

/* جلوگیری از اسکرول افقی */
html, body { overflow-x: hidden !important; }

.cg-breadcrumbs {
    background: #ffffff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 20px 0 !important;
    
    /* ===== تمام‌عرض کردن (مشابه ویجت‌های دیگر) ===== */
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    
    /* ===== فاصله از بالا برای قرارگیری زیر هدر فیکس ===== */
    /* ارتفاع هدر شما حدود ۱۴۰ پیکسل است (topbar + nav) */
    margin-top: 140px !important;
}

html.dark .cg-breadcrumbs {
    background: #030712 !important;
    border-color: #1f2937 !important;
}

.cg-breadcrumbs-inner {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    font-size: 14px !important;
}

.cg-breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

html.dark .cg-breadcrumb-item {
    color: #9ca3af !important;
}

.cg-breadcrumb-item:hover {
    color: #1C7161 !important;
}

html.dark .cg-breadcrumb-item:hover {
    color: #2d9b85 !important;
}

.cg-breadcrumb-home svg {
    width: 16px !important;
    height: 16px !important;
    color: #1C7161 !important;
}

html.dark .cg-breadcrumb-home svg {
    color: #2d9b85 !important;
}

.cg-breadcrumb-current {
    color: #111827 !important;
    font-weight: 600 !important;
}

html.dark .cg-breadcrumb-current {
    color: #f3f4f6 !important;
}

.cg-breadcrumb-separator {
    display: inline-flex !important;
    align-items: center !important;
    color: #d1d5db !important;
    margin: 0 4px !important;
}

html.dark .cg-breadcrumb-separator {
    color: #4b5563 !important;
}