/*
Theme Name: Emmarfab
Theme URI: https://emmarfab.com
Author: Emmarfab Team
Author URI: https://emmarfab.com
Description: A modern, custom WordPress theme for Emmarfab website with beautiful design and full responsiveness.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emmarfab
Tags: custom, modern, responsive, clean, business
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

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

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

/* Top Bar Styles */
.top-bar {
    background: var(--text-color);
    color: #ffffff;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
}

.top-bar-item:hover {
    color: var(--accent-color);
}

.top-bar-icon {
    font-size: 1rem;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    transition: var(--transition);
    border-radius: 50%;
}

.social-link:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Header Styles */
.site-header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-color);
}

.brand-link:hover {
    color: var(--text-color);
}

/* Logo Styles */
.custom-logo {
    max-height: 75px;
    width: auto;
    height: auto;
}

.logo-placeholder {
    width: 62px;
    height: 62px;
    background: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.4rem;
}

.logo-placeholder::before {
    content: 'EF';
}

.company-name {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.site-title:hover {
    color: var(--primary-color);
}

/* Hamburger Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.main-navigation a:hover::after {
    width: 100%;
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    scroll-margin-top: 0;
}

.content-area {
    max-width: 900px;
    margin: 0 auto;
}

/* Pages: Use maximum width */
.page .content-area {
    max-width: 1200px;
    width: 100%;
}

/* Posts */
.post {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: var(--transition);
}

/* Pages: Remove overflow hidden to allow padding */
.page.post {
    overflow: visible;
}

.post:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-layout {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.post-thumbnail-wrapper {
    flex: 0 0 40%;
    min-width: 300px;
    overflow: hidden;
    background: var(--bg-light);
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.post-thumbnail-wrapper:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 300px;
}

.placeholder-image {
    text-align: center;
    color: white;
    font-size: 1.25rem;
    opacity: 0.7;
}

.post-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Pages: Image on left, content on right - Maximum space */
.page-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

.page-image-wrapper {
    flex: 0 0 45%;
    min-width: 300px;
    max-width: 45%;
    padding: 0.75rem;
    margin: 0;
    background: var(--bg-light);
    border-radius: 8px;
    align-self: flex-start;
    box-sizing: border-box;
}

.page-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: var(--shadow);
    padding: 0;
    background: transparent;
}

.page .post-content-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 0.75rem 0 0 0;
    margin: 0;
    align-self: flex-start;
    box-sizing: border-box;
}

.page .post-content {
    padding: 0;
    margin: 0;
    width: 100%;
}

/* When page uses body blocks: remove outer box, only individual block boxes show */
.page-uses-body-blocks.post {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    overflow: visible;
}

.page-uses-body-blocks.post:hover {
    box-shadow: none;
    transform: none;
}

.page-uses-body-blocks .page-layout {
    display: block;
    padding: 0;
}

.page-uses-body-blocks .post-content-wrapper {
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.page-uses-body-blocks .post-content {
    padding: 0;
}

/* Multiple body content blocks – layout per page (vertical or horizontal) */
.page-body-blocks {
    gap: 1.5rem;
    width: 100%;
}

/* Vertical: stacked one after another (default) */
.page-body-blocks-vertical {
    display: flex;
    flex-direction: column;
}

/* Horizontal: grid (2 or 3 columns; beyond 3 wrap to next row) */
.page-body-blocks-horizontal {
    display: grid;
}

.page-body-blocks-horizontal.page-body-blocks-cols-1 {
    grid-template-columns: 1fr;
}

.page-body-blocks-horizontal.page-body-blocks-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.page-body-blocks-horizontal.page-body-blocks-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.page-body-block {
    display: block;
    padding: 0;
    margin: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.page-body-block-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    max-width: 100%;
}

/* In horizontal 2 or 3 column layout: stack image above text inside each box */
.page-body-blocks-horizontal.page-body-blocks-cols-2 .page-body-block-inner,
.page-body-blocks-horizontal.page-body-blocks-cols-3 .page-body-block-inner {
    flex-direction: column;
}

.page-body-blocks-horizontal.page-body-blocks-cols-2 .page-body-block.image-right .page-body-block-inner,
.page-body-blocks-horizontal.page-body-blocks-cols-3 .page-body-block.image-right .page-body-block-inner {
    flex-direction: column;
}

/* Image on right: reverse row order (vertical layout or horizontal single column) */
.page-body-blocks-vertical .page-body-block.image-right .page-body-block-inner,
.page-body-blocks-horizontal.page-body-blocks-cols-1 .page-body-block.image-right .page-body-block-inner {
    flex-direction: row-reverse;
}

/* Image on left (default), text on right in the same row */
.page-body-block-image {
    flex: 0 0 40%;
    min-width: 200px;
    max-width: 400px;
}

.page-body-blocks-horizontal.page-body-blocks-cols-2 .page-body-block-image,
.page-body-blocks-horizontal.page-body-blocks-cols-3 .page-body-block-image {
    flex: 0 0 auto;
    min-width: 100%;
    max-width: 100%;
}

.page-body-block-image .page-body-block-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.page-body-block-content {
    flex: 1 1 auto;
    min-width: 0;
}

.page-body-block-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.page-body-block-text {
    margin: 0;
    line-height: 1.7;
}

.page-body-block-text p {
    margin-bottom: 1rem;
}

.page-body-block-text p:last-child {
    margin-bottom: 0;
}

.page-body-block-text ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.page-body-block-text ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .page-body-blocks-horizontal.page-body-blocks-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-body-blocks-horizontal.page-body-blocks-cols-1,
    .page-body-blocks-horizontal.page-body-blocks-cols-2,
    .page-body-blocks-horizontal.page-body-blocks-cols-3 {
        grid-template-columns: 1fr;
    }

    .page-body-block-inner {
        flex-direction: column;
        flex-wrap: wrap;
        padding: 1.25rem;
        gap: 1rem;
    }

    .page-body-block.image-right .page-body-block-inner {
        flex-direction: column;
    }

    .page-body-block-image {
        flex: 0 0 auto;
        min-width: 100%;
        max-width: 100%;
    }

    .page-body-block-image .page-body-block-img {
        max-width: 100%;
    }
}

/* Bold title styling for page content */
.page .post-content h1:first-child,
.page .post-content h2:first-child,
.page .post-content h3:first-child,
.page .post-content h4:first-child,
.page .post-content h5:first-child,
.page .post-content h6:first-child,
.page .post-content p:first-child strong,
.page .post-content p:first-child b {
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Two-column bullet points for page content */
.page .post-content ul,
.page .page-custom-content ul,
.page .page-body-block-text ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.page .post-content ul li,
.page .page-custom-content ul li,
.page .page-body-block-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.page .post-content ul li::before,
.page .page-custom-content ul li::before,
.page .page-body-block-text ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color, #0073aa);
    font-weight: bold;
    font-size: 1.2em;
}

/* Responsive: Single column on mobile */
@media (max-width: 768px) {
    .page .post-content ul,
    .page .page-custom-content ul,
    .page .page-body-block-text ul {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Contact form + Map: 2-column layout on Contact Us page */
.contact-form-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.contact-form-map-col {
    min-width: 0;
}

.contact-map-col .page-map-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

@media (max-width: 768px) {
    .contact-form-map-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Contact form (Contact Us page) */
.emmarfab-contact-form-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.emmarfab-contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.emmarfab-contact-form-message.emmarfab-contact-form-success {
    color: #047857;
    background: #d1fae5;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.emmarfab-contact-form-errors {
    list-style: none;
    padding: 0.75rem 1rem;
    margin: 0 0 1rem 0;
    color: #b91c1c;
    background: #fee2e2;
    border-radius: 6px;
}

.emmarfab-contact-form-errors li {
    margin-bottom: 0.25rem;
}

.emmarfab-contact-form-errors li:last-child {
    margin-bottom: 0;
}

.emmarfab-contact-form {
    max-width: 100%;
}

.emmarfab-contact-form-row {
    margin-bottom: 1.25rem;
}

.emmarfab-contact-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-color);
}

.emmarfab-contact-form .required {
    color: #b91c1c;
}

.emmarfab-contact-input,
.emmarfab-contact-textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.emmarfab-contact-input:focus,
.emmarfab-contact-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.emmarfab-contact-textarea {
    resize: vertical;
    min-height: 120px;
}

.emmarfab-contact-form-submit {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.emmarfab-contact-submit {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Page map / location section (e.g. Contact Us) */
.page-map-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.page-map-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--text-color);
}

.page-map-embed-wrapper {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-map-embed {
    display: block;
    width: 100%;
    min-height: 400px;
}

.page-map-address {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.page-map-address-label {
    font-weight: 600;
}

.page-map-link {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.page-map-link:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .page-map-embed {
        min-height: 300px;
    }
}

.post-header {
    margin-bottom: 1rem;
}

.post-title {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.post-title a {
    color: var(--text-color);
    transition: var(--transition);
}

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

.post-meta {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-meta span {
    display: inline-block;
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-content-image {
    margin-bottom: 1.5rem;
    text-align: center;
}

.post-content-image .content-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: block;
    margin: 0 auto;
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Single Post */
.single-post .post-content {
    padding: 0;
}

.single-post .post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Sidebar */
.sidebar {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: #ffffff;
    margin-top: 4rem;
}

.footer-main {
    padding: 4rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Company Section */
.footer-company {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .custom-logo {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-company-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.footer-tagline {
    color: #d1d5db;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    transition: var(--transition);
}

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

/* Quick Links Section */
.footer-links {
    min-width: 150px;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu a {
    color: #d1d5db;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Contact Section */
.footer-contact {
    min-width: 200px;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #d1d5db;
}

.contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-text {
    color: #d1d5db;
    text-decoration: none;
    line-height: 1.6;
    transition: var(--transition);
}

.contact-text:hover {
    color: var(--primary-color);
}

/* Site Info (Copyright) */
.site-info {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-info-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.site-info p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 4px;
    color: var(--text-color);
}

.pagination .current {
    background: var(--primary-color);
    color: #ffffff;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Post Tags */
.post-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

.post-navigation a:hover .nav-title {
    color: var(--secondary-color);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Comments */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    margin: 2rem 0;
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.comment-content {
    margin-bottom: 1rem;
}

/* Error 404 */
.error-404 {
    text-align: center;
    padding: 3rem 0;
}

.error-404 .page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Page Links */
.page-links {
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: var(--bg-light);
    border-radius: 4px;
}

.page-links > span {
    background: var(--primary-color);
    color: #ffffff;
}

/* Image Carousel */
.image-carousel-wrapper {
    width: 100%;
    margin: 0;
    position: relative;
}

.image-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px);
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: var(--bg-light);
}

.carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.placeholder-content {
    text-align: center;
    padding: 2rem;
}

.placeholder-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Client Logos Marquee */
.client-logos-section {
    padding: 2rem 0;
    background: var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    overflow: hidden;
}

.client-logos-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.client-logos-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.client-logos-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.client-logos-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: fit-content;
    animation: client-logos-marquee var(--marquee-speed, 30s) linear infinite;
    will-change: transform;
}

.client-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-height: 64px;
    width: auto;
    height: auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.client-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.03);
}

.client-logos-label {
    flex-shrink: 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

@keyframes client-logos-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .client-logos-inner {
        padding: 0 1rem;
    }

    .client-logos-track {
        gap: 1.5rem;
    }

    .client-logo img {
        max-height: 48px;
    }
}

.placeholder-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    color: var(--text-color);
    box-shadow: var(--shadow);
}

.carousel-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Page Banner */
.page-banner-section {
    position: relative;
    width: 100%;
    min-height: 150px;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.page-banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-banner-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.page-banner-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 1.5rem 0;
    text-align: left;
}

.page-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-banner-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--banner-title-color, #ffffff);
    line-height: 1.2;
    text-align: left;
}

.page-banner-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--banner-text-color, #ffffff);
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .page-banner-section {
        min-height: 140px;
        max-height: 240px;
    }

    .page-banner-content {
        padding: 1.25rem 0;
    }

    .page-banner-inner {
        padding: 0 1rem;
    }

    .page-banner-title {
        font-size: 1.5rem;
    }

    .page-banner-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-banner-section {
        min-height: 120px;
        max-height: 200px;
    }

    .page-banner-content {
        padding: 1rem 0;
    }

    .page-banner-inner {
        padding: 0 1rem;
    }

    .page-banner-title {
        font-size: 1.25rem;
    }

    .page-banner-text {
        font-size: 0.875rem;
    }
}

/* Carousel Responsive */
@media (max-width: 1024px) {
    .image-carousel {
        height: calc(100vh - 120px);
        min-height: 550px;
        max-height: 800px;
    }
}

@media (max-width: 768px) {
    .image-carousel {
        height: calc(100vh - 100px);
        min-height: 400px;
        max-height: 600px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .placeholder-content h2 {
        font-size: 1.5rem;
    }

    .placeholder-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        height: calc(100vh - 90px);
        min-height: 350px;
        max-height: 500px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar {
        padding: 0.5rem 0;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem;
        text-align: center;
    }

    .top-bar-left {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .top-bar-item {
        font-size: 0.8rem;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        padding: 0.75rem 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        order: -1;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .site-branding {
        flex: 1;
        justify-content: flex-start;
        width: auto;
    }

    .brand-link {
        flex-direction: row;
        text-align: left;
        gap: 0.75rem;
    }

    .site-title {
        font-size: 1.4rem;
    }

    .main-navigation {
        display: none;
        flex-basis: 100%;
        order: 1;
        margin-top: 0.75rem;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        width: 100%;
    }

    .main-navigation ul li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation ul li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 0.6rem 0;
    }

    .content-area {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Post Layout Responsive */
    .post-layout {
        flex-direction: column;
    }

    /* Page Layout Responsive - Stack image and content vertically on mobile */
    .page-layout {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
        width: 100%;
    }

    .page-image-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 0.5rem;
    }

    .page .post-content-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 0.5rem 0 0 0;
        width: 100%;
    }

    .post-thumbnail-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
        min-height: 250px;
    }

    .post-thumbnail {
        min-height: 250px;
    }

    .post-content-wrapper {
        padding: 1.5rem;
    }

    .page .post-content-wrapper {
        padding: 0;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Footer Responsive */
    .footer-main {
        padding: 3rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-company {
        max-width: 100%;
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-title {
        text-align: center;
    }

    .footer-menu {
        text-align: center;
    }

    .footer-contact-info {
        align-items: center;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }

    .site-main {
        padding: 2rem 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* ============================================
   Gallery Page
   ============================================ */

.gallery-page-area {
    padding: 3rem 2rem;
}

.gallery-page-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Gallery Card */
.gallery-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    outline: none;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-card:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-card--hidden {
    display: none;
}

.gallery-card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.gallery-card-placeholder {
    background: var(--bg-light);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay,
.gallery-card:focus-visible .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-caption {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0.75rem 1rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
}

/* .gallery-card-meta, .gallery-card-title, .gallery-card-industry removed (photo-only grid) */

.gallery-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.gallery-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-img {
    max-width: 88vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.gallery-lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
    z-index: 2;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 3rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
    z-index: 2;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }

.gallery-lightbox-footer {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
}

.gallery-lightbox-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.gallery-lightbox-counter {
    color: rgba(255, 255, 255, 0.55);
}

/* Gallery Responsive */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-page-area {
        padding: 2rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-lightbox-prev { left: 0.4rem; }
    .gallery-lightbox-next { right: 0.4rem; }
}

/* ============================================
   Single Gallery Project
   ============================================ */

.single-project-area {
    padding: 3rem 2rem;
}

.single-project-container {
    max-width: 1200px;
    margin: 0 auto;
}

.single-project-header {
    margin-bottom: 2rem;
}

.single-project-back {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.single-project-back:hover {
    color: var(--secondary-color);
    transform: translateX(-4px);
}

.single-project-title {
    font-size: 2rem;
    margin: 0.25rem 0 1rem;
}

.single-project-industries {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.single-project-industry-tag {
    padding: 0.25rem 0.85rem;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.single-project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.single-project-gallery-item:first-child {
    grid-column: span 3;
}

.single-project-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.single-project-gallery-item:first-child .single-project-gallery-img {
    aspect-ratio: 16 / 7;
}

.single-project-gallery-img:hover {
    transform: scale(1.02);
}

.single-project-content {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .single-project-area {
        padding: 2rem 1rem;
    }

    .single-project-title {
        font-size: 1.5rem;
    }

    .single-project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-project-gallery-item:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .single-project-gallery {
        grid-template-columns: 1fr;
    }

    .single-project-gallery-item:first-child {
        grid-column: span 1;
    }

    .single-project-gallery-item:first-child .single-project-gallery-img {
        aspect-ratio: 4 / 3;
    }
}
