/*
 * style.css
 * Core Design System and Premium Theme for RashaFaraz
 */

/* --- Font Definitions --- */
@font-face {
    font-family: 'PeydaFaNum';
    src: url('../fonts/PeydaWebFaNum-Regular.woff2') format('woff2'),
         url('../fonts/PeydaWebFaNum-Regular.woff') format('woff'),
         url('../fonts/PeydaFaNum-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PeydaFaNum';
    src: url('../fonts/PeydaWebFaNum-Bold.woff2') format('woff2'),
         url('../fonts/PeydaWebFaNum-Bold.woff') format('woff'),
         url('../fonts/PeydaFaNum-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-Regular.woff2') format('woff2'),
         url('../fonts/IRANSansXFaNum-Regular.woff') format('woff'),
         url('../fonts/IRANSansXFaNum-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSansXFaNum';
    src: url('../fonts/IRANSansXFaNum-Bold.woff2') format('woff2'),
         url('../fonts/IRANSansXFaNum-Bold.woff') format('woff'),
         url('../fonts/IRANSansXFaNum-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

/* --- Core Variables & Design System --- */
:root {
    --primary: #FA5542;
    --primary-hover: #e04431;
    --primary-light: rgba(250, 85, 66, 0.1);
    --secondary: #0D74E2;
    --secondary-hover: #0a5cb5;
    --secondary-light: rgba(13, 116, 226, 0.1);
    
    /* Light Theme (Default) */
    --bg-base: #F9FAFB;
    --bg-card: #FFFFFF;
    --bg-header: rgba(255, 255, 255, 0.85);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --text-white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 25px -5px rgba(250, 85, 66, 0.05), 0 10px 10px -5px rgba(13, 116, 226, 0.05);
    --input-bg: #FFFFFF;
    --input-focus-border: #0D74E2;
    --badge-bg: #F3F4F6;
    --badge-text: #374151;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-title: 'PeydaFaNum', sans-serif;
    --font-body: 'IRANSansXFaNum', sans-serif;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
}

/* Dark Theme overrides */
.dark-mode {
    --bg-base: #0B0F19;
    --bg-card: #141C2F;
    --bg-header: rgba(20, 28, 47, 0.85);
    --text-main: #E5E7EB;
    --text-muted: #9CA3AF;
    --border-color: #1F2937;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --input-bg: #1D263B;
    --input-focus-border: #FA5542;
    --badge-bg: #1E293B;
    --badge-text: #9CA3AF;
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    direction: rtl;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.8;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-cols-4 { grid-template-columns: 1fr; }
    .grid-cols-3 { grid-template-columns: 1fr; }
    .grid-cols-2 { grid-template-columns: 1fr; }
    .section-padding { padding: 50px 0; }
}

/* --- Premium Buttons & Badges --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    font-family: var(--font-title);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    font-size: 0.8rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(250, 85, 66, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 85, 66, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(13, 116, 226, 0.4);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 116, 226, 0.6);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--badge-bg);
    color: var(--badge-text);
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

/* --- Beautiful Card Effects --- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-premium);
    border-color: rgba(13, 116, 226, 0.3);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- 3-Section Header Navigation --- */
header.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo section */
.header-logo-wrapper {
    display: flex;
    align-items: center;
}

.header-logo-wrapper img {
    height: 45px;
    transition: transform var(--transition-smooth);
}

.header-logo-wrapper img:hover {
    transform: scale(1.05);
}

/* Menu section */
nav.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav.header-nav a {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
    padding: 8px 4px;
    position: relative;
}

nav.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-smooth);
}

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

nav.header-nav a:hover::after,
nav.header-nav a.active::after {
    width: 100%;
}

nav.header-nav a.active {
    color: var(--primary);
}

/* Switcher & Request CTA section */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--badge-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    background-color: var(--border-color);
    transform: rotate(20deg);
}

/* Mobile Menu Toggle */
.mobile-toggle-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    background: none;
    border: none;
}

/* Body spacing for sticky header */
body.has-sticky-header {
    padding-top: 80px;
}

@media (max-width: 992px) {
    .mobile-toggle-btn {
        display: block;
    }
    
    nav.header-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 200px;
        height: calc(100vh - 80px);
        background-color: var(--bg-card);
        border-right: 1px solid var(--border-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 24px;
        gap: 24px;
        transition: left var(--transition-smooth);
        box-shadow: var(--shadow-lg);
    }
    
    nav.header-nav.active {
        left: 0;
    }
}

/* --- Hero Section & Animated Graphics --- */
.hero-section {
    position: relative;
    padding: 100px 0 120px 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-base) 0%, rgba(13, 116, 226, 0.05) 50%, rgba(250, 85, 66, 0.03) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--text-main) 30%, var(--primary) 70%, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    text-align: justify;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

.hero-graphic {
    position: relative;
}

.hero-img-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 4px solid var(--bg-card);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-smooth);
}

.hero-img-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Floating Stats overlay */
.floating-stat-card {
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-stat-card.c1 {
    bottom: -30px;
    right: -20px;
}

.floating-stat-card.c2 {
    top: -20px;
    left: -20px;
    animation-delay: 2s;
}

.floating-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.floating-stat-card.c2 .floating-stat-icon {
    background-color: var(--secondary-light);
    color: var(--secondary);
}

@keyframes floatAnim {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { margin: 0 auto 30px auto; }
    .hero-btns { justify-content: center; }
    .hero-graphic { margin-top: 50px; display: flex; justify-content: center; }
    .hero-img-card { max-width: 80%; transform: none !important; }
    .floating-stat-card { display: none; }
}

/* --- Stats counter bar --- */
.stats-bar {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Services Grid Section --- */
.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    background-color: var(--primary-light);
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all var(--transition-smooth);
}

.card:hover .service-icon-box {
    background-color: var(--primary);
    color: var(--text-white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-link:hover {
    color: var(--primary);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-link:hover i {
    transform: translateX(-4px);
}

/* --- Projects Listing & Showcase --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-premium);
}

.project-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}

.project-badge-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(13, 116, 226, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.project-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-logo-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.project-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: white;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-logo-circle img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.project-card-content h3 {
    font-size: 1.15rem;
    line-height: 1.5;
}

.project-card-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.project-detail-link {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary);
}

@media (max-width: 992px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* --- Blog Cards Layout --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 180px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.blog-meta span i {
    margin-left: 4px;
    color: var(--secondary);
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-readmore {
    font-weight: bold;
    color: var(--secondary);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* --- Brand Partners Section --- */
.partners-slider {
    overflow: hidden;
    padding: 30px 0;
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.partners-track {
    display: flex;
    gap: 60px;
    width: max-content;
    animation: scrollLogos 25s linear infinite;
}

.partner-logo-item {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}

.partner-logo-item:hover {
    opacity: 1;
}

.partner-logo-item img {
    height: 100%;
    object-fit: contain;
    transition: filter var(--transition-smooth);
}

/* In dark mode, invert the dark logo images to light gray so they stand out */
.dark-mode .partner-logo-item img {
    filter: brightness(0) invert(1) opacity(0.7);
}

.dark-mode .partner-logo-item:hover img {
    filter: none;
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* --- About Summary Section --- */
.about-summary-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 60px;
    align-items: center;
}

.about-summary-content h2 {
    font-size: 2.2rem;
    margin-bottom: 24px;
}

.about-summary-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
    text-align: justify;
}

.about-summary-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.about-feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .about-summary-grid { grid-template-columns: 1fr; }
}

/* --- 4-Column Footer --- */
footer.main-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    transition: background-color var(--transition-smooth);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-col-about img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-col-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    text-align: justify;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all var(--transition-smooth);
}

.footer-social-btn:hover {
    background-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-right: 6px;
}

.footer-contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-contact-info li i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 4px;
}

/* Newsletter Form */
.newsletter-form {
    margin-top: 24px;
}

.newsletter-form p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.newsletter-input-group {
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.newsletter-input-group input {
    flex-grow: 1;
    border: none;
    padding: 12px 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
}

.newsletter-input-group button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-input-group button:hover {
    background-color: var(--primary-hover);
}

/* Footer Bottom Copyright */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- Inner Page Banner / Header --- */
.inner-page-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(13, 116, 226, 0.03) 50%, rgba(250, 85, 66, 0.02) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
    text-align: center;
}

.inner-page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.inner-page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- Forms design (Consulting/Funding/Complaint) --- */
.form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: var(--font-title);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--text-main);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(13, 116, 226, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }
}

/* --- Accordion (FAQ Page) --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-title);
    font-size: 1.1rem;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--badge-bg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
    color: var(--text-muted);
    font-size: 0.95rem;
    border-top: 0 solid var(--border-color);
}

.faq-item.active .faq-answer {
    padding: 20px 24px;
    max-height: 300px;
    border-top-width: 1px;
}

.faq-question i {
    transition: transform var(--transition-smooth);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Single Post Style --- */
.post-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-detail-img {
    height: 400px;
    overflow: hidden;
}

.post-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-detail-body {
    padding: 40px;
}

.post-detail-body h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px 0;
    color: var(--primary);
}

.post-detail-body p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.05rem;
}

/* --- Admin Panel --- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background-color: #111827;
    color: #9CA3AF;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.admin-sidebar h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-menu li {
    margin-bottom: 12px;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: #D1D5DB;
    transition: all var(--transition-fast);
}

.admin-menu a:hover,
.admin-menu a.active {
    background-color: #1F2937;
    color: white;
}

.admin-main {
    background-color: var(--bg-base);
    padding: 40px;
    overflow-y: auto;
    height: 100vh;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: right;
}

.admin-table th {
    background-color: var(--badge-bg);
    font-weight: 700;
}

.admin-table tbody tr:hover {
    background-color: rgba(13, 116, 226, 0.03);
}

.admin-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.admin-badge-pending { background-color: #FEF3C7; color: #D97706; }
.admin-badge-process { background-color: #DBEAFE; color: #2563EB; }
.admin-badge-resolved { background-color: #D1FAE5; color: #059669; }

@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

/* Toast alert notification */
.toast-msg {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background-color: #10B981;
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    z-index: 2000;
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-msg.error {
    background-color: #EF4444;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Font Overrides for Inputs & Datepicker */
input, select, textarea, button, .form-control, .form-control-gamified {
    font-family: var(--font-body) !important;
}

.persian-datepicker-container, 
.persian-datepicker-container *,
.datepicker-plot-area,
.datepicker-plot-area *,
.datepicker-container,
.datepicker-container * {
    font-family: var(--font-body) !important;
}

.leaflet-popup-content {
	font-family: 'IRANSansXFaNum', sans-serif !important;
	font-size: 10px !important;
	text-align: center !important;
}

/* Responsive Grid Layouts for inner pages */
.responsive-layout-grid-projects,
.responsive-layout-grid-post,
.responsive-layout-grid-contact {
    display: grid;
    gap: 50px;
}

.responsive-layout-grid-projects {
    grid-template-columns: 1.3fr 0.7fr;
}

.responsive-layout-grid-post {
    grid-template-columns: 1.3fr 0.7fr;
}

.responsive-layout-grid-contact {
    grid-template-columns: 0.9fr 1.1fr;
}

@media (max-width: 991px) {
    .responsive-layout-grid-projects,
    .responsive-layout-grid-post,
    .responsive-layout-grid-contact {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}