/* TFabrika Kurumsal Theme Styles */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Bar */
.tfabrika-topbar {
    background-color: var(--tfabrika-secondary, #0f172a);
    color: #fff;
    padding: 14px 16px;
    border-bottom: 1px solid var(--tfabrika-secondary-light, #1e293b);
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 60;
    transition: transform 0.3s;
}

.tfabrika-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tfabrika-topbar-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.tfabrika-topbar-left span {
    display: flex;
    align-items: center;
}

.tfabrika-topbar-left i {
    color: var(--tfabrika-primary);
    margin-right: 10px;
}

.tfabrika-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tfabrika-topbar-right .tfabrika-social-label {
    color: rgba(255, 255, 255, 0.7);
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    font-style: italic;
}

.tfabrika-topbar-right a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    transition: color 0.3s;
}

.tfabrika-topbar-right a:hover {
    color: var(--tfabrika-primary);
}

/* Navigation */
.tfabrika-nav {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 49px;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: top 0.3s, box-shadow 0.3s;
}

.tfabrika-nav.nav-scrolled {
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tfabrika-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 26px;
    padding-bottom: 20px;
}

.tfabrika-logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.tfabrika-logo-accent {
    color: var(--tfabrika-primary);
}

.tfabrika-logo img {
    max-height: 50px;
    width: auto;
}

/* Desktop Menu */
.tfabrika-desktop-menu {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 500;
    color: #475569;
}

.tfabrika-desktop-menu > a,
.tfabrika-desktop-menu > .dropdown {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    border-right: 1px solid #e2e8f0;
}

.tfabrika-desktop-menu > a:last-child,
.tfabrika-desktop-menu > .dropdown:last-child {
    border-right: none;
    padding-right: 0;
}

.tfabrika-desktop-menu > a:first-child,
.tfabrika-desktop-menu > .dropdown:first-child {
    padding-left: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
    line-height: inherit;
    white-space: nowrap;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--tfabrika-primary);
    transition: width 0.3s;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown - Level 1 */
.dropdown {
    position: relative;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    width: 230px;
    border: 1px solid #f1f5f9;
    z-index: 100;
}

.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 24px;
    transition: all 0.2s;
    font-size: 14px;
    color: #475569;
}

.dropdown-item:hover {
    background: rgba(var(--tfabrika-primary-rgb), 0.08);
    color: var(--tfabrika-primary);
}

.dropdown-item.has-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item.has-sub i {
    font-size: 8px;
    opacity: 0.4;
    transition: all 0.2s;
}

.dropdown-item.has-sub:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* Dropdown - Level 2 (sub-submenu) */
.dropdown-item-parent {
    position: relative;
    padding-right: 10px;
    margin-right: -10px;
}

.dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    width: 220px;
    border: 1px solid #f1f5f9;
    z-index: 101;
}

.dropdown-item-parent:hover > .dropdown-submenu {
    display: block;
}

.dropdown-subitem {
    display: block;
    padding: 10px 24px;
    transition: all 0.2s;
    font-size: 14px;
    color: #64748b;
}

.dropdown-subitem:hover {
    background: rgba(var(--tfabrika-primary-rgb), 0.08);
    color: var(--tfabrika-primary);
}

/* Contact button in nav */
.tfabrika-nav-contact {
    background: var(--tfabrika-primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 9999px;
    transition: background 0.3s;
}

.tfabrika-nav-contact:hover {
    background: var(--tfabrika-primary-dark);
}

.tfabrika-nav-contact::after {
    display: none !important;
}

/* Mobile Menu */
.tfabrika-mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #1e293b;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: background 0.2s;
}

.tfabrika-mobile-btn:hover {
    background: #f1f5f9;
}

.tfabrika-mobile-menu {
    display: none;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.tfabrika-mobile-menu.active {
    display: flex;
}

.tfabrika-mobile-menu ul,
.tfabrika-mobile-menu li {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.tfabrika-mobile-menu a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.tfabrika-mobile-menu a:last-child {
    border-bottom: none;
}

.tfabrika-mobile-menu a:hover,
.tfabrika-mobile-menu a:active {
    background: rgba(var(--tfabrika-primary-rgb), 0.06);
    color: var(--tfabrika-primary);
    border-bottom-color: transparent;
}

.tfabrika-mobile-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tfabrika-mobile-menu .sub-menu a {
    padding-left: 32px;
    font-size: 14px;
    font-weight: 400;
    color: #475569;
    border-bottom: 1px solid #f8fafc;
}

.tfabrika-mobile-menu .sub-menu a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tfabrika-primary);
    margin-right: 10px;
    opacity: 0.5;
}

.tfabrika-mobile-menu .sub-menu a:hover::before {
    opacity: 1;
}

.tfabrika-mobile-menu .sub-menu .sub-menu a {
    padding-left: 52px;
    font-size: 13px;
    color: #64748b;
}

.tfabrika-mobile-menu .sub-menu .sub-menu a::before {
    width: 5px;
    height: 5px;
    background: #94a3b8;
}

.tfabrika-mobile-menu .menu-item-has-children {
    position: relative;
}

.tfabrika-mobile-menu .menu-item-has-children > a {
    padding-right: 56px;
}

.tfabrika-mobile-menu .menu-item-has-children > .tfabrika-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: #f1f5f9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: #475569;
    position: absolute;
    right: 12px;
    top: 10px;
    transition: background 0.2s, color 0.2s;
}

.tfabrika-mobile-menu .menu-item-has-children > .tfabrika-mobile-toggle i {
    transition: transform 0.2s;
}

.tfabrika-mobile-menu .menu-item-has-children > .tfabrika-mobile-toggle.open {
    background: rgba(var(--tfabrika-primary-rgb), 0.12);
    color: var(--tfabrika-primary);
}

.tfabrika-mobile-menu .menu-item-has-children > .tfabrika-mobile-toggle.open i {
    transform: rotate(180deg);
}

.tfabrika-mobile-menu .sub-menu {
    display: none;
}

.tfabrika-mobile-menu .sub-menu.open {
    display: block;
}

/* Hero Slider */
.tfabrika-slider-wrap {
    position: relative;
    height: 750px;
    overflow: hidden;
    margin-top: 121px;
}

.tfabrika-slider-wrap:hover .tfabrika-slider-arrow {
    opacity: 1;
}

.tfabrika-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
}

.tfabrika-slide.active {
    opacity: 1;
    z-index: 10;
}

.tfabrika-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 10;
}

.tfabrika-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tfabrika-slide-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 120px 16px 40px;
}

.tfabrika-slide-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.tfabrika-slide-content p {
    font-size: 20px;
    max-width: 640px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.tfabrika-slide-buttons {
    display: flex;
    gap: 16px;
}

.tfabrika-btn-primary {
    background: var(--tfabrika-primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
    display: inline-block;
}

.tfabrika-btn-primary:hover {
    background: var(--tfabrika-primary-dark);
}

.tfabrika-btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.tfabrika-btn-outline:hover {
    background: #fff;
    color: #0f172a;
}

/* Slider Controls */
.tfabrika-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    font-size: 20px;
}

.tfabrika-slider-arrow:hover {
    background: #fff;
    color: var(--tfabrika-primary);
}

.tfabrika-slider-prev {
    left: 24px;
}

.tfabrika-slider-next {
    right: 24px;
}

.tfabrika-slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    display: flex;
    gap: 8px;
}

.tfabrika-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.tfabrika-slider-dot.active {
    background: var(--tfabrika-primary);
    width: 24px;
}

/* Features Section */
.tfabrika-features {
    padding: 80px 0;
}

.tfabrika-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.tfabrika-feature-box {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s;
}

.tfabrika-feature-box:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.tfabrika-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 24px;
}

.tfabrika-feature-icon.blue {
    background: rgba(var(--tfabrika-primary-rgb), 0.12);
    color: var(--tfabrika-primary);
}

.tfabrika-feature-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.tfabrika-feature-icon.purple {
    background: #f3e8ff;
    color: #9333ea;
}

.tfabrika-feature-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.tfabrika-feature-icon.orange {
    background: #ffedd5;
    color: #ea580c;
}

.tfabrika-feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tfabrika-feature-box p {
    color: #64748b;
    font-size: 15px;
}

/* About Section */
.tfabrika-about {
    padding: 80px 0;
    background: #f1f5f9;
}

.tfabrika-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tfabrika-about-image {
    position: relative;
}

.tfabrika-about-image img {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
}

.tfabrika-about-image-bg {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 256px;
    height: 256px;
    background: var(--tfabrika-primary);
    border-radius: 24px;
    z-index: 0;
}

.tfabrika-about-subtitle {
    color: var(--tfabrika-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    margin-bottom: 16px;
    display: block;
}

.tfabrika-about h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #0f172a;
    line-height: 1.2;
}

.tfabrika-about-text {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.tfabrika-about-features {
    list-style: none;
    margin-bottom: 32px;
}

.tfabrika-about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 500;
}

.tfabrika-about-features li i {
    color: var(--tfabrika-primary);
}

.tfabrika-about-link {
    display: inline-flex;
    align-items: center;
    color: var(--tfabrika-primary);
    font-weight: 700;
    gap: 8px;
}

.tfabrika-about-link i {
    transition: transform 0.3s;
}

.tfabrika-about-link:hover i {
    transform: translateX(8px);
}

/* Category Section (Solutions, Services, etc.) */
.tfabrika-section {
    padding: 80px 0;
}

.tfabrika-section.bg-white {
    background: #fff;
}

.tfabrika-section.bg-dark {
    background: var(--tfabrika-secondary, #0f172a);
    color: #fff;
}

.tfabrika-section.bg-light {
    background: #f8fafc;
}

.tfabrika-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.tfabrika-section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tfabrika-section-header p {
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
}

.tfabrika-section.bg-dark .tfabrika-section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.tfabrika-section-divider {
    width: 80px;
    height: 6px;
    background: var(--tfabrika-primary);
    margin: 0 auto;
    border-radius: 3px;
}

/* Statistics Section */
.tfabrika-stats {
    padding: 80px 0;
    background: #f8fafc;
}

.tfabrika-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.tfabrika-stat-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.tfabrika-stat-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
}

.tfabrika-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(var(--tfabrika-primary-rgb), 0.1);
    color: var(--tfabrika-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 16px;
}

.tfabrika-stat-number {
    font-size: 44px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.tfabrika-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tfabrika-stat-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--tfabrika-primary);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s;
}

.tfabrika-stat-card:hover .tfabrika-stat-bar {
    width: 100%;
}

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

    .tfabrika-stat-number {
        font-size: 34px;
    }

    .tfabrika-stat-card {
        padding: 28px 20px;
    }

    .tfabrika-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Solutions Grid */
.tfabrika-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.tfabrika-solution-card {
    cursor: pointer;
}

.tfabrika-solution-card .tfabrika-card-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 24px;
}

.tfabrika-solution-card .tfabrika-card-image img {
    width: 100%;
    height: 256px;
    object-fit: cover;
    transition: transform 0.5s;
}

.tfabrika-solution-card:hover .tfabrika-card-image img {
    transform: scale(1.1);
}

.tfabrika-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--tfabrika-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
}

.tfabrika-solution-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.tfabrika-solution-card:hover h3 {
    color: var(--tfabrika-primary);
}

.tfabrika-solution-card p {
    color: #64748b;
    line-height: 1.7;
}

/* Services Grid */
.tfabrika-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tfabrika-service-card {
    padding: 32px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    transition: all 0.3s;
}

.tfabrika-service-card:hover {
    background: var(--tfabrika-primary);
    color: #fff;
}

.tfabrika-service-card i {
    font-size: 30px;
    margin-bottom: 24px;
    color: var(--tfabrika-primary);
    display: block;
}

.tfabrika-service-card:hover i {
    color: #fff;
}

.tfabrika-service-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tfabrika-service-card p {
    opacity: 0.8;
    font-size: 15px;
}

/* Projects Grid */
.tfabrika-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.tfabrika-projects-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tfabrika-projects-header p {
    color: rgba(255, 255, 255, 0.7);
}

.tfabrika-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tfabrika-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.tfabrika-project-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s;
}

.tfabrika-project-card:hover img {
    transform: scale(1.1);
}

.tfabrika-project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 138, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.tfabrika-project-card:hover .tfabrika-project-overlay {
    opacity: 1;
}

.tfabrika-project-overlay span {
    color: rgba(var(--tfabrika-primary-rgb), 0.7);
    font-size: 14px;
    margin-bottom: 8px;
}

.tfabrika-project-overlay h4 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* References */
.tfabrika-references {
    padding: 80px 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.tfabrika-references-header {
    text-align: center;
    margin-bottom: 48px;
}

.tfabrika-references-header p {
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.tfabrika-references-header h3 {
    font-size: 30px;
    font-weight: 700;
}

.tfabrika-references-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;
    align-items: center;
    gap: 40px;
    filter: grayscale(100%);
    opacity: 0.4;
    transition: all 0.7s;
}

.tfabrika-references-grid:hover {
    filter: grayscale(0);
    opacity: 1;
}

.tfabrika-reference-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tfabrika-reference-item img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 12px;
}

.tfabrika-reference-item span {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

/* Footer */
.tfabrika-footer {
    background: var(--tfabrika-secondary, #0f172a);
    color: rgba(255, 255, 255, 0.75);
    padding-top: 80px;
    padding-bottom: 40px;
}

.tfabrika-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.tfabrika-footer-col {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 30px;
}

.tfabrika-footer-col:first-child {
    border-left: none;
    padding-left: 0;
}

.tfabrika-footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
}

.tfabrika-footer-logo .tfabrika-logo-accent {
    color: var(--tfabrika-primary);
}

.tfabrika-footer-logo img {
    max-height: 40px;
    width: auto;
}

.tfabrika-footer-desc {
    margin-bottom: 24px;
    line-height: 1.7;
}

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

.tfabrika-footer-social a {
    width: 40px;
    height: 40px;
    background: var(--tfabrika-secondary-light, #1e293b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.3s;
}

.tfabrika-footer-social a:hover {
    background: var(--tfabrika-primary);
    color: #fff;
}

.tfabrika-footer h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
}

.tfabrika-footer-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.tfabrika-footer-menu li {
    width: 50%;
    margin-bottom: 16px;
}

.tfabrika-footer-menu a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s;
}

.tfabrika-footer-menu a:hover {
    color: #fff;
}

.tfabrika-footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    list-style: none;
}

.tfabrika-footer-contact li i {
    color: var(--tfabrika-primary);
    margin-right: 12px;
    margin-top: 4px;
}

.tfabrika-footer-bottom {
    border-top: 1px solid var(--tfabrika-secondary-light, #1e293b);
    padding-top: 40px;
    text-align: center;
    font-size: 14px;
}

/* WordPress specific */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

/* Single Post */
.tfabrika-single-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 16px;
}

.tfabrika-single-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.tfabrika-single-meta {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
}

.tfabrika-single-featured {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.tfabrika-single-featured img {
    width: 100%;
    height: auto;
}

.tfabrika-single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.tfabrika-single-content h2,
.tfabrika-single-content h3 {
    color: #0f172a;
    margin: 32px 0 16px;
}

.tfabrika-single-content p {
    margin-bottom: 20px;
}

/* Archive */
.tfabrika-archive-wrap {
    padding: 60px 0;
    padding-top: 140px;
}

.tfabrika-archive-header {
    text-align: center;
    margin-bottom: 48px;
}

.tfabrika-archive-header h1 {
    font-size: 36px;
    font-weight: 700;
}

.tfabrika-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tfabrika-archive-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.tfabrika-archive-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.tfabrika-archive-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tfabrika-archive-card-body {
    padding: 24px;
}

.tfabrika-archive-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tfabrika-archive-card h3 a {
    color: #0f172a;
    transition: color 0.3s;
}

.tfabrika-archive-card h3 a:hover {
    color: var(--tfabrika-primary);
}

.tfabrika-archive-card p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

.tfabrika-archive-card .tfabrika-read-more {
    color: var(--tfabrika-primary);
    font-weight: 600;
    font-size: 14px;
}

/* Pagination */
.tfabrika-pagination {
    text-align: center;
    margin-top: 48px;
}

.tfabrika-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.3s;
}

.tfabrika-pagination .page-numbers.current,
.tfabrika-pagination .page-numbers:hover {
    background: var(--tfabrika-primary);
    color: #fff;
    border-color: var(--tfabrika-primary);
}

/* 404 Page */
.tfabrika-404 {
    text-align: center;
    padding: 100px 16px;
}

.tfabrika-404 h1 {
    font-size: 120px;
    font-weight: 700;
    color: var(--tfabrika-primary);
}

.tfabrika-404 h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.tfabrika-404 p {
    color: #64748b;
    margin-bottom: 32px;
}

/* Page */
.tfabrika-page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 16px;
}

.tfabrika-page-wrap h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 32px;
}

.tfabrika-page-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.tfabrika-page-content p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tfabrika-features-grid,
    .tfabrika-solutions-grid,
    .tfabrika-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tfabrika-references-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tfabrika-footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tfabrika-topbar {
        display: none;
    }

    .tfabrika-nav {
        top: 0;
    }

    .tfabrika-page-banner {
        padding-top: 80px;
    }

    .tfabrika-desktop-menu {
        display: none;
    }

    .tfabrika-mobile-btn {
        display: block;
    }

    .tfabrika-slider-wrap {
        height: 450px;
        margin-top: 72px;
    }

    .tfabrika-slide-content h1 {
        font-size: 32px;
    }

    .tfabrika-slide-content p {
        font-size: 16px;
    }

    .tfabrika-features-grid,
    .tfabrika-solutions-grid,
    .tfabrika-services-grid,
    .tfabrika-projects-grid,
    .tfabrika-archive-grid {
        grid-template-columns: 1fr;
    }

    .tfabrika-references-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tfabrika-reference-item img {
        width: 100px;
        height: 100px;
    }

    .tfabrika-about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tfabrika-about-image-bg {
        display: none;
    }

    .tfabrika-footer-grid {
        grid-template-columns: 1fr;
    }

    .tfabrika-footer-col {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 24px;
        margin-top: 24px;
    }

    .tfabrika-footer-col:first-child {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

    .tfabrika-footer-menu li {
        width: 100%;
    }

    .tfabrika-projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tfabrika-detail-wrap.has-sidebar {
        flex-direction: column;
    }

    .tfabrika-detail-wrap.has-sidebar .tfabrika-single-wrap,
    .tfabrika-detail-wrap.has-sidebar .tfabrika-page-wrap {
        max-width: 100%;
    }

    .tfabrika-sidebar {
        position: static;
    }

    .tfabrika-archive-wrap {
        padding-top: 90px;
    }

    .tfabrika-slider-arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
    }

    .tfabrika-slider-dot {
        width: 12px;
        height: 12px;
        padding: 6px;
    }

    .tfabrika-slide-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tfabrika-section-header h2,
    .tfabrika-about h2,
    .tfabrika-projects-header h2 {
        font-size: 28px;
    }

    .tfabrika-archive-header h1 {
        font-size: 28px;
    }

    .tfabrika-page-banner-content h1 {
        font-size: 28px;
    }

    .tfabrika-404 h1 {
        font-size: 64px;
    }
}

/* Detail Wrap with Sidebar */
.tfabrika-detail-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 16px;
}

.tfabrika-detail-wrap.has-sidebar {
    display: flex;
    gap: 48px;
}

.tfabrika-detail-wrap.has-sidebar .tfabrika-single-wrap,
.tfabrika-detail-wrap.has-sidebar .tfabrika-page-wrap {
    flex: 1;
    max-width: calc(100% - 348px);
    padding: 0;
    margin: 0;
}

/* Sidebar */
.tfabrika-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.tfabrika-sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tfabrika-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.tfabrika-sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tfabrika-sidebar-post {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.tfabrika-sidebar-post:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tfabrika-sidebar-post-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.tfabrika-sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tfabrika-sidebar-post:hover .tfabrika-sidebar-post-thumb img {
    transform: scale(1.08);
}

.tfabrika-sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.tfabrika-sidebar-post-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.45;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tfabrika-sidebar-post:hover .tfabrika-sidebar-post-info h4 {
    color: var(--tfabrika-primary);
}


/* Page Title Banner */
.tfabrika-page-banner {
    position: relative;
    min-height: 280px;
    padding-top: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tfabrika-secondary, #0f172a);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.tfabrika-page-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(var(--tfabrika-primary-rgb), 0.4));
    z-index: 1;
}

.tfabrika-page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 60px 16px 40px;
}

.tfabrika-page-banner-content h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb */
.tfabrika-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.tfabrika-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.tfabrika-breadcrumb a:hover {
    color: #fff;
}

.tfabrika-breadcrumb-sep {
    margin: 0 10px;
    font-size: 10px;
    opacity: 0.5;
}

.tfabrika-breadcrumb span:last-child {
    color: #fff;
    font-weight: 600;
}
