/* Yellix Font Family Definition */
@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-Thin-BF6719a048221ef.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-Light-BF6719a04780b9c.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-Regular-BF6719a047e6e10.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-Medium-BF6719a047aad22.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-SemiBold-BF6719a047e7243.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-Bold-BF6719a047469e3.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Yellix';
    src: url('../fonts/YellixTRIAL-Black-BF6719a0485a132.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* Base Styles */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Yellix', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #14171c;
    /* text-brand-dark */
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Scale */
h1,
.h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2,
.h2 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: -0.01em;
}

h3,
.h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

h4,
.h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}

h5,
.h5 {
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
}

h6,
.h6 {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Spacing Scale */
:root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
}

/* Improved Readability */
.text-content {
    max-width: 65ch;
    line-height: 1.75;
}

.text-content p {
    margin-bottom: 1.25rem;
}

.text-content h2,
.text-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.text-content ul,
.text-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Modern Header Stilleri - Muhteşem Tasarım */
/* ==========================================================================
   LINEAR-TREND MODERN HEADER (2025)
   ========================================================================== */
:root {
    --h-height: 110px;
    --h-height-scroll: 80px;
    --h-bg: rgba(3, 4, 7, 0.6);
    --h-border: rgba(255, 255, 255, 0.06);
    --h-active-bg: rgba(255, 255, 255, 0.08);
    --h-accent: #3b82f6;
}

.trend-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--h-height);
    background: transparent;
    /* Changed from var(--h-bg) to transparent */
    backdrop-filter: blur(0px);
    /* Removed initial blur for clarity */
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    /* No border initially */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trend-header.scrolled {
    height: var(--h-height-scroll);
    background: rgba(3, 4, 7, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.trend-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- LOGO --- */
.trend-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.trend-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.trend-header.scrolled .trend-logo {
    height: 50px;
}

/* --- NAVIGATION PILL STRIP --- */
.trend-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 62px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* The Dock Effect */
    padding: 6px;
    border-radius: 999px;
    /* Pill shape container */
    transition: all 0.3s ease;
}

.trend-header.scrolled .trend-nav {
    background: transparent;
    border-color: transparent;
    padding: 0;
}

.trend-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.trend-link {
    color: #94a3b8;
    /* Slate-400 - Muted default */
    font-size: 17px;
    font-weight: 600;
    /* Increased weight */
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 999px;
    transition: all 0.2s ease;
    /* Normal Case - Modern Trend */
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hover State */
.trend-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
}

/* ACTIVE STATE - The "Flash" Pill */
.trend-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle highlighting */
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Chevron specific to Linear style */
.trend-chevron {
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
}

.group:hover .trend-chevron {
    transform: rotate(180deg);
}

/* --- ACTIONS RIGHT --- */
.trend-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language: Minimal Text */
.trend-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    margin-right: 12px;
}

.t-lang-link {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.t-lang-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.t-lang-link.active {
    color: #fff;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Fallback for separator if needed, though we moved to a button-like group */
.t-lang-sep {
    display: none;
}

/* CTA: Shimmer Button */
.trend-btn {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    /* Slate 900 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 30px;
    border-radius: 8px;
    /* Slightly squarer modern look */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    /* Keep natural case */
}

.trend-btn:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    background: #1e293b;
}

/* Mega Menu - Floating Panel */
/* Standard Dropdown - Premium */
.trend-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
    z-index: 999;
}

.group:hover .trend-dropdown,
.group.dropdown-open .trend-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(12px);
}

.trend-dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.trend-dropdown-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.trend-dropdown-link i {
    font-size: 10px;
    opacity: 0.5;
}

.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: calc(100vw - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 24px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
    z-index: 40;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-title {
    color: #2C449E;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: block;
}

.mega-menu-item {
    color: #475569;
    font-size: 15px;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.mega-menu-item:hover {
    color: #2C449E;
    background: rgba(44, 68, 158, 0.08);
    transform: translateX(8px);
}

.lang-switcher-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lang-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    width: 200px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.25s ease;
    z-index: 9999;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

#langDropdownWrap.lang-dropdown-open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

#langDropdownWrap.lang-dropdown-open .lang-chevron {
    transform: rotate(180deg);
}

.lang-option-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
}

.lang-option-item:hover {
    background: #f1f5f9;
    color: #2C449E;
}

.lang-option-item .flag {
    font-size: 18px;
}

.login-btn-zaferstyle {
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 24px;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    background: transparent;
    white-space: nowrap;
}

.login-btn-zaferstyle:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Eski stiller - geriye dönük uyumluluk için */
.header-bg {
    background-color: #1a1e26;
    height: 74px;
}

.logo-box {
    background-color: #28458c;
    padding: 0 45px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-gradient {
    background: linear-gradient(to right, rgba(20, 23, 28, 0.9) 0%, rgba(20, 23, 28, 0.4) 100%);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.sector-card:hover .sector-overlay {
    opacity: 1;
}

.sector-overlay {
    background: linear-gradient(to top, rgba(40, 69, 140, 0.9) 0%, rgba(40, 69, 140, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Ensure it sits above content if needed, but relative z-index handles mostly */
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #28458c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e346a;
}

/* Eski nav-link stili - geriye dönük uyumluluk */
.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    transition: all 0.3s;
}

.nav-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

.mega-menu-item {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: all 0.2s ease;
}

.mega-menu-item:hover {
    color: #2C449E;
    padding-left: 6px;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 9999px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.ghost-btn:hover {
    background: #ffffff;
    color: #14171c;
}

/* ==========================================================================
   MOBILE MENU - COMPLETE IMPLEMENTATION
   ========================================================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active,
.mobile-menu-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.active,
.mobile-menu[aria-hidden="false"] {
    transform: translateX(0);
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
}

.mobile-menu-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.mobile-menu-close:active {
    transform: scale(0.95);
}

/* Mobile Menu Content */
.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-list>li {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-link i:first-child {
    width: 20px;
    text-align: center;
    color: #6b7280;
    font-size: 1.125rem;
}

.mobile-nav-link span {
    flex: 1;
}

.mobile-nav-link:hover {
    background: #f9fafb;
    color: #28458c;
}

.mobile-nav-link:hover i:first-child {
    color: #28458c;
}

.mobile-nav-link.active {
    background: #f0f7ff;
    color: #28458c;
    font-weight: 600;
}

.mobile-nav-link.active i:first-child {
    color: #28458c;
}

.mobile-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28458c;
}

/* Mobile Menu Dropdown */
.mobile-menu-item-has-children .mobile-nav-link {
    padding-right: 3rem;
}

.mobile-dropdown-icon {
    position: absolute;
    right: 1.5rem;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    color: #9ca3af;
}

.mobile-nav-dropdown-toggle.active .mobile-dropdown-icon {
    transform: rotate(180deg);
    color: #28458c;
}

.mobile-nav-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #f9fafb;
}

.mobile-nav-dropdown.active {
    max-height: 1000px;
    padding: 0.5rem 0;
}

.mobile-nav-dropdown .mobile-nav-link {
    padding-left: 3.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.mobile-nav-dropdown .mobile-nav-link:hover {
    background: #f3f4f6;
    color: #28458c;
}

.mobile-nav-dropdown .mobile-nav-link.active {
    background: #e0f2fe;
    color: #28458c;
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.mobile-lang-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-lang-link:hover {
    background: #ffffff;
    color: #28458c;
}

.mobile-lang-link.active {
    background: #28458c;
    color: #ffffff;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #28458c;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
    background: #1e346a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 69, 140, 0.3);
}

.mobile-menu-cta:active {
    transform: translateY(0);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Touch swipe to close support */
.mobile-menu {
    touch-action: pan-y;
}

/* Mobile menu animations */
@media (max-width: 1200px) {
    .trend-nav {
        display: none;
    }

    .trend-container {
        padding: 0 20px;
    }
}

@media (max-width: 1279px) {
    .mobile-nav-link {
        position: relative;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1279px) {
    .mobile-menu {
        width: 50%;
        max-width: 350px;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .mobile-menu {
        width: 90%;
    }

    .mobile-menu-header {
        padding: 1rem;
    }

    .mobile-nav-link {
        padding: 0.875rem 1.25rem;
    }

    .mobile-nav-dropdown .mobile-nav-link {
        padding-left: 3rem;
    }
}

/* Form Validation Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 69, 140, 0.1);
}

.form-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-input.success {
    border-color: #28a745;
    background-color: #f0fff4;
}

.form-error-message {
    display: none;
    color: #dc3545;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    animation: slideDown 0.3s ease;
}

.form-error-message.show {
    display: block;
}

.form-success-icon,
.form-error-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-success-icon.show,
.form-error-icon.show {
    opacity: 1;
}

.form-success-icon {
    color: #28a745;
}

.form-error-icon {
    color: #dc3545;
}

.form-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #28458c;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Image Loading States */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ==========================================================================
   SKELETON LOADER - ENHANCED DESIGN
   ========================================================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skeleton-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 8px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.skeleton-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skeleton-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-product-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
    border-radius: 0;
}

.skeleton-product-info {
    padding: 1rem;
}

.skeleton-product-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-product-price {
    height: 1.25rem;
    width: 40%;
    margin-bottom: 0.5rem;
}

.skeleton-product-desc {
    height: 0.875rem;
    margin-bottom: 0.5rem;
}

.skeleton-product-desc:last-child {
    width: 60%;
}

/* Form Loading States */
.form-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.form-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #28458c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Page Transition Animation */
.page-transition {
    animation: pageFadeIn 0.4s ease-out forwards;
}

/* Exclude hero slider from page transition */
.page-transition>.hero-slider-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition {
        animation: none;
        opacity: 1;
    }
}

/* Content Loading States */
.content-loading {
    position: relative;
    min-height: 200px;
}

.content-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #28458c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading Spinner Components */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(40, 69, 140, 0.1);
    border-top-color: #28458c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-container {
    text-align: center;
}

.loading-text {
    margin-top: 1rem;
    color: #28458c;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Page Loading Skeleton */
.page-skeleton {
    padding: 2rem;
}

.skeleton-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skeleton-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skeleton-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.skeleton-content {
    flex: 1;
}

.skeleton-title {
    height: 1.25rem;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton-subtitle {
    height: 0.875rem;
    width: 40%;
}

.skeleton-body {
    margin-top: 1rem;
}

.skeleton-line {
    height: 0.875rem;
    margin-bottom: 0.5rem;
}

.skeleton-line:last-child {
    width: 80%;
}

/* Product Card Skeleton */
.product-skeleton {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1rem;
}

.skeleton-product-info {
    padding: 1rem;
}

.skeleton-product-title {
    height: 1.5rem;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-product-price {
    height: 1.25rem;
    width: 40%;
    margin-bottom: 0.5rem;
}

.skeleton-product-desc {
    height: 0.875rem;
    margin-bottom: 0.5rem;
}

.skeleton-product-desc:last-child {
    width: 60%;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #28458c, #1e346a);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ==========================================================================
   ACCESSIBILITY IMPROVEMENTS - ENHANCED
   ========================================================================== */

/* Enhanced Focus Indicators */
*:focus-visible {
    outline: 3px solid #28458c;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 5px rgba(40, 69, 140, 0.3);
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -60px;
    left: 1rem;
    background: #28458c;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 10000;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ARIA Live Regions should not be visually hidden by default like this. 
   If needed, use .sr-only class instead. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Trap for Modals */
.focus-trap {
    position: relative;
}

.focus-trap:focus-within {
    outline: none;
}

/* Keyboard Navigation Enhancements */
.keyboard-nav-only {
    opacity: 0;
    pointer-events: none;
}

.keyboard-nav-only:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Enhanced Button Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #28458c;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Interactive Element Focus */
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[role="tab"]:focus-visible {
    outline: 3px solid #28458c;
    outline-offset: 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 5px rgba(40, 69, 140, 0.3);
}

/* Enhanced Link Focus */
a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Form Field Focus Enhancement */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    border-color: #28458c;
    box-shadow: 0 0 0 3px rgba(40, 69, 140, 0.1), 0 0 0 4px rgba(40, 69, 140, 0.2);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .skeleton,
    .skeleton::after {
        animation: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    *:focus-visible {
        outline: 4px solid #000000;
        outline-offset: 4px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        border-width: 3px;
    }

    a {
        text-decoration: underline;
    }
}

/* Color Contrast Improvements */
.text-low-contrast {
    color: #6b7280;
}

@media (prefers-contrast: high) {
    .text-low-contrast {
        color: #374151;
    }
}

/* Touch Target Sizes (Mobile Accessibility) */
@media (max-width: 768px) {

    button,
    a,
    input[type="button"],
    input[type="submit"],
    input[type="reset"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Landmark Roles Enhancement */
main[role="main"] {
    outline: none;
}

nav[role="navigation"] {
    outline: none;
}

/* Error Message Accessibility */
.error-message,
.form-error-message {
    color: #dc3545;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.error-message[role="alert"],
.form-error-message[role="alert"] {
    animation: shake 0.3s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Success Message Accessibility */
.success-message {
    color: #28a745;
    font-weight: 600;
    display: block;
    margin-top: 0.5rem;
}

.success-message[role="status"] {
    animation: fadeIn 0.3s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {

    .nav-link,
    .ghost-btn {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   BREADCRUMB NAVIGATION - MODERN DESIGN
   ========================================================================== */

.breadcrumb-nav-modern {
    padding: 1rem 0;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.breadcrumb-list-modern {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
    gap: 0.75rem;
}

.breadcrumb-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.breadcrumb-link-modern:hover {
    color: #28458c;
    background: #f0f7ff;
    transform: translateY(-1px);
}

.breadcrumb-link-modern i {
    font-size: 0.875rem;
    opacity: 0.8;
}

.breadcrumb-current-modern {
    color: #14171c;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.breadcrumb-separator-wrapper {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.breadcrumb-separator-modern {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
    opacity: 0.6;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.breadcrumb-link-modern i.fa-home {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Breadcrumb in hero / dark header sections */
section.relative .breadcrumb-nav-modern,
.hero-section .breadcrumb-nav-modern,
.hero-content .breadcrumb-nav-modern,
.page-header-dark .breadcrumb-nav-modern,
.legal-page-header .breadcrumb-nav-modern {
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
}

section.relative .breadcrumb-list-modern,
.hero-section .breadcrumb-list-modern,
.hero-content .breadcrumb-list-modern,
.page-header-dark .breadcrumb-list-modern,
.legal-page-header .breadcrumb-list-modern {
    font-size: 1rem;
    gap: 1rem;
}

section.relative .breadcrumb-link-modern,
.hero-section .breadcrumb-link-modern,
.hero-content .breadcrumb-link-modern,
.page-header-dark .breadcrumb-link-modern,
.legal-page-header .breadcrumb-link-modern {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.625rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

section.relative .breadcrumb-link-modern:hover,
.hero-section .breadcrumb-link-modern:hover,
.hero-content .breadcrumb-link-modern:hover,
.page-header-dark .breadcrumb-link-modern:hover,
.legal-page-header .breadcrumb-link-modern:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

section.relative .breadcrumb-link-modern i,
.hero-section .breadcrumb-link-modern i,
.hero-content .breadcrumb-link-modern i,
.page-header-dark .breadcrumb-link-modern i,
.legal-page-header .breadcrumb-link-modern i {
    font-size: 0.9375rem;
    opacity: 0.9;
}

section.relative .breadcrumb-current-modern,
.hero-section .breadcrumb-current-modern,
.hero-content .breadcrumb-current-modern,
.page-header-dark .breadcrumb-current-modern,
.legal-page-header .breadcrumb-current-modern {
    color: #ffffff !important;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

section.relative .breadcrumb-separator-modern,
.hero-section .breadcrumb-separator-modern,
.hero-content .breadcrumb-separator-modern,
.page-header-dark .breadcrumb-separator-modern,
.legal-page-header .breadcrumb-separator-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 0;
    display: inline-block;
    line-height: 1;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section.relative .breadcrumb-link-modern i.fa-home,
.hero-section .breadcrumb-link-modern i.fa-home,
.hero-content .breadcrumb-link-modern i.fa-home,
.page-header-dark .breadcrumb-link-modern i.fa-home,
.legal-page-header .breadcrumb-link-modern i.fa-home {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-nav-modern {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }

    .breadcrumb-list-modern {
        font-size: 0.875rem;
        gap: 0.5rem;
        justify-content: center;
    }

    .breadcrumb-item-modern {
        gap: 0.5rem;
    }

    .breadcrumb-link-modern,
    .breadcrumb-current-modern {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .breadcrumb-separator-modern {
        font-size: 0.6875rem;
        margin: 0 0.25rem;
    }

    section.relative .breadcrumb-list-modern,
    .hero-section .breadcrumb-list-modern,
    .hero-content .breadcrumb-list-modern,
    .page-header-dark .breadcrumb-list-modern,
    .legal-page-header .breadcrumb-list-modern {
        font-size: 0.875rem;
        gap: 0.5rem;
    }

    section.relative .breadcrumb-link-modern,
    .hero-section .breadcrumb-link-modern,
    .hero-content .breadcrumb-link-modern,
    section.relative .breadcrumb-current-modern,
    .hero-section .breadcrumb-current-modern,
    .hero-content .breadcrumb-current-modern,
    .page-header-dark .breadcrumb-link-modern,
    .page-header-dark .breadcrumb-current-modern,
    .legal-page-header .breadcrumb-link-modern,
    .legal-page-header .breadcrumb-current-modern {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    section.relative .breadcrumb-current-modern,
    .hero-section .breadcrumb-current-modern,
    .hero-content .breadcrumb-current-modern,
    .page-header-dark .breadcrumb-current-modern,
    .legal-page-header .breadcrumb-current-modern {
        color: #ffffff !important;
    }

    section.relative .breadcrumb-separator-modern,
    .hero-section .breadcrumb-separator-modern,
    .hero-content .breadcrumb-separator-modern,
    .page-header-dark .breadcrumb-separator-modern,
    .legal-page-header .breadcrumb-separator-modern {
        font-size: 0.75rem;
        margin: 0 0.375rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list-modern {
        font-size: 0.8125rem;
        gap: 0.375rem;
    }

    .breadcrumb-link-modern,
    .breadcrumb-current-modern {
        padding: 0.25rem 0.625rem;
        font-size: 0.8125rem;
    }

    section.relative .breadcrumb-list-modern,
    .hero-section .breadcrumb-list-modern,
    .hero-content .breadcrumb-list-modern,
    .page-header-dark .breadcrumb-list-modern,
    .legal-page-header .breadcrumb-list-modern {
        font-size: 0.8125rem;
    }

    section.relative .breadcrumb-link-modern,
    .hero-section .breadcrumb-link-modern,
    .hero-content .breadcrumb-link-modern,
    section.relative .breadcrumb-current-modern,
    .hero-section .breadcrumb-current-modern,
    .hero-content .breadcrumb-current-modern,
    .page-header-dark .breadcrumb-link-modern,
    .page-header-dark .breadcrumb-current-modern,
    .legal-page-header .breadcrumb-link-modern,
    .legal-page-header .breadcrumb-current-modern {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    section.relative .breadcrumb-current-modern,
    .hero-section .breadcrumb-current-modern,
    .hero-content .breadcrumb-current-modern,
    .page-header-dark .breadcrumb-current-modern,
    .legal-page-header .breadcrumb-current-modern {
        color: #ffffff !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #28458c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(40, 69, 140, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 1.25rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1e346a;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(40, 69, 140, 0.4);
}

.back-to-top:focus {
    outline: 2px solid #28458c;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* Error Page Styles */
.error-page-modern {
    min-height: calc(100vh - 200px);
}

.error-illustration {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Network Error Handling */
.network-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.network-error.show {
    display: block;
}

/* Product Filters */
.filter-btn.active {
    background: #28458c !important;
    color: white !important;
    transform: scale(1.05);
}

.filter-btn:focus {
    outline: 2px solid #28458c;
    outline-offset: 2px;
}

.product-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.filtered-out {
    display: none;
}

.product-card.filtered-in {
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid #e5e7eb;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-consent-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-consent-icon {
    font-size: 2rem;
    color: #28458c;
    flex-shrink: 0;
}

.cookie-consent-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #14171c;
    margin-bottom: 0.5rem;
}

.cookie-consent-content p {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
}

.cookie-consent-categories {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.cookie-category {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-category:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cookie-category-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.cookie-category-toggle input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.cookie-category-name {
    font-weight: 600;
    color: #14171c;
    display: block;
    margin-bottom: 0.25rem;
}

.cookie-category-desc {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-consent-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-btn-accept {
    background: #28458c;
    color: white;
}

.cookie-consent-btn-accept:hover {
    background: #1e346a;
}

.cookie-consent-btn-reject {
    background: #e5e7eb;
    color: #374151;
}

.cookie-consent-btn-reject:hover {
    background: #d1d5db;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #28458c;
    border: 1px solid #28458c;
}

.cookie-consent-btn-settings:hover {
    background: #f8f9fa;
}

.cookie-consent-link {
    color: #28458c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-consent-container {
        padding: 1rem;
    }

    .cookie-consent-header {
        flex-direction: column;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -10px;
    margin-top: -10px;
}

/* Swiper Slider Styles */
.hero-slider-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative;
    z-index: 10;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    background: transparent !important;
}

/* Prevent page-transition from affecting slider */
.page-transition .hero-slider-section,
.page-transition>.hero-slider-section,
main.page-transition .hero-slider-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    background: transparent !important;
}

/* Ensure slider content is always visible */
.hero-slider-section * {
    animation: none !important;
}

.hero-slider-section .swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Slider Base visibility */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

/* Prevent body or main from covering slider */
body>.hero-slider-section {
    position: relative !important;
    z-index: 100 !important;
    background: transparent !important;
}

/* Ensure slider images are visible */
.hero-slider-section img,
.hero-slider-section video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.heroSwiper {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    /* For mobile browsers */
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.heroSwiper .swiper-wrapper {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Swiper Slide default state */
.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    background: transparent;
}

/* Swiper Pagination Custom Styles */
.swiper-pagination-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.swiper-pagination-custom span {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0;
}

.swiper-pagination-custom span.swiper-pagination-bullet-active {
    background: #ffffff;
    width: 50px;
}

/* Swiper Navigation Buttons */
.swiper-button-prev-custom,
.swiper-button-next-custom {
    transition: all 0.3s ease;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    transform: scale(1.1);
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out;
}

.animate-slideUp {
    animation: slideUp 0.8s ease-out;
}

/* ==========================================================================
   SERVICE DETAIL PAGE - MODERN DESIGN (2025)
   ========================================================================== */

/* Service Detail Page Variables */
:root {
    --service-accent: #2C449E;
    --service-accent-dark: #1e346a;
    --service-accent-light: #f0f7ff;
    --service-bg-light: #f8fafc;
    --service-text-dark: #0f172a;
    --service-text-muted: #64748b;
    --service-glass-bg: rgba(255, 255, 255, 0.95);
    --service-glass-border: rgba(255, 255, 255, 0.4);
    --service-border-radius-lg: 40px;
    --service-border-radius-md: 24px;
    --service-shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --service-shadow-hover: 0 35px 60px -12px rgba(44, 68, 158, 0.15);
}

/* Page Header - Modern Gradient */
.service-detail-page .page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: calc(110px + 80px) 0 140px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.service-detail-page .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(44, 68, 158, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.service-detail-page .page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.service-detail-page .page-header .breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.service-detail-page .page-header .breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.service-detail-page .page-header .breadcrumb a:hover {
    opacity: 0.7;
}

.service-detail-page .page-header .breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* Service Detail Page Container */
.service-detail-page {
    padding: 0 0 100px;
    background: linear-gradient(to bottom, var(--service-bg-light) 0%, #ffffff 50%);
    min-height: 100vh;
}

/* Main Layout - Modern Grid */
.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1400px;
    margin: -80px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Service Detail Main Content */
.service-detail-main {
    background: white;
    border-radius: var(--service-border-radius-lg);
    box-shadow: var(--service-shadow-premium);
    padding: 60px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
}

.service-detail-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--service-accent) 0%, var(--service-accent-dark) 100%);
}

/* Service Detail Image */
.service-detail-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: var(--service-border-radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: var(--service-bg-light);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-detail-image:hover img {
    transform: scale(1.05);
}

/* Service Detail Icon */
.service-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--service-accent) 0%, var(--service-accent-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(44, 68, 158, 0.2);
    position: relative;
    overflow: hidden;
}

.service-detail-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
    }
}

.service-detail-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 1;
}

/* Service Detail Content */
.service-detail-content h2 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin: 0 0 25px;
    color: var(--service-text-dark);
    font-weight: 900;
    letter-spacing: -0.015em;
}

.service-description-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--service-text-muted);
    margin-bottom: 35px;
    font-weight: 400;
}

.service-content-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--service-text-dark);
    margin-bottom: 40px;
}

.service-content-text p {
    margin-bottom: 1.5rem;
}

.service-content-text h3,
.service-content-text h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--service-text-dark);
}

.service-content-text ul,
.service-content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.service-content-text li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* Service Features Detail */
.service-features-detail {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, var(--service-accent-light) 0%, #ffffff 100%);
    border-radius: var(--service-border-radius-md);
    border: 1px solid rgba(44, 68, 158, 0.1);
}

.service-features-detail h3 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--service-text-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-features-detail h3::before {
    content: '';
    width: 4px;
    height: 30px;
    background: var(--service-accent);
    border-radius: 2px;
}

.service-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features-grid li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(44, 68, 158, 0.05);
}

.service-features-grid li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(44, 68, 158, 0.12);
    border-color: rgba(44, 68, 158, 0.2);
}

.service-features-grid li i {
    color: var(--service-accent);
    font-size: 1.25rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.service-features-grid li span {
    color: var(--service-text-dark);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Service CTA Button */
.service-cta {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--service-bg-light);
}

.service-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--service-accent) 0%, var(--service-accent-dark) 100%);
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(44, 68, 158, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-cta .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.service-cta .btn:hover::before {
    left: 100%;
}

.service-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 68, 158, 0.4);
}

.service-cta .btn:active {
    transform: translateY(-1px);
}

.service-cta .btn i {
    transition: transform 0.3s;
}

.service-cta .btn:hover i {
    transform: translateX(5px);
}

/* Service Sidebar */
.service-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.service-sidebar h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--service-text-dark);
    font-weight: 800;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--service-bg-light);
}

.service-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: var(--service-border-radius-md);
    box-shadow: var(--service-shadow-premium);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-list-sidebar li {
    margin-bottom: 8px;
}

.service-list-sidebar li:last-child {
    margin-bottom: 0;
}

.service-list-sidebar a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: var(--service-text-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.service-list-sidebar a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--service-accent);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s;
}

.service-list-sidebar a:hover,
.service-list-sidebar a.active {
    background: var(--service-accent-light);
    color: var(--service-accent);
    padding-left: 25px;
}

.service-list-sidebar a:hover::before,
.service-list-sidebar a.active::before {
    height: 60%;
}

.service-list-sidebar a i {
    font-size: 1.1rem;
    color: var(--service-accent);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.service-list-sidebar a.active {
    font-weight: 700;
    background: linear-gradient(135deg, var(--service-accent-light) 0%, rgba(44, 68, 158, 0.05) 100%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-detail-layout {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .service-detail-main {
        padding: 50px;
    }
}

@media (max-width: 991px) {
    .service-detail-page .page-header {
        padding: calc(110px + 60px) 0 100px;
    }

    .service-detail-page .page-header h1 {
        font-size: 2.5rem;
    }

    .service-detail-layout {
        grid-template-columns: 1fr;
        margin-top: 20px;
        gap: 40px;
    }

    .service-detail-main {
        padding: 40px 30px;
        border-radius: var(--service-border-radius-md);
    }

    .service-sidebar {
        position: static;
        order: -1;
    }

    .service-features-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .service-detail-page .page-header {
        padding: calc(110px + 40px) 0 80px;
    }

    .service-detail-page .page-header h1 {
        font-size: 2rem;
    }

    .service-detail-main {
        padding: 30px 20px;
    }

    .service-detail-content h2 {
        font-size: 1.8rem;
    }

    .service-description-text {
        font-size: 1.1rem;
    }

    .service-content-text {
        font-size: 1rem;
    }

    .service-features-detail {
        padding: 30px 20px;
    }

    .service-detail-icon {
        width: 70px;
        height: 70px;
    }

    .service-detail-icon i {
        font-size: 1.5rem;
    }

    .service-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .service-detail-layout {
        padding: 0 15px;
    }

    .service-detail-page .page-header h1 {
        font-size: 1.75rem;
    }

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

/* ==========================================================================
   STANDARD BUTTON STYLES - UNIFIED DESIGN SYSTEM
   ========================================================================== */

/* Primary Button - Brand Blue */
.btn-primary,
a.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: #28458c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(40, 69, 140, 0.2);
}

.btn-primary:hover,
a.btn-primary:hover {
    background: #1e346a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 69, 140, 0.3);
}

.btn-primary:active,
a.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(40, 69, 140, 0.2);
}

/* Secondary Button - Outline */
.btn-secondary,
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: transparent;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #ffffff;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
a.btn-secondary:hover {
    background: #ffffff;
    color: #14171c;
    transform: translateY(-2px);
}

.btn-secondary:active,
a.btn-secondary:active {
    transform: translateY(0);
}

/* Ghost Button - Minimal */
.btn-ghost,
a.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2.5rem;
    background: transparent;
    color: #28458c;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #28458c;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover,
a.btn-ghost:hover {
    background: #28458c;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-ghost:active,
a.btn-ghost:active {
    transform: translateY(0);
}

/* Button Sizes */
.btn-sm,
a.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.6875rem;
}

.btn-lg,
a.btn-lg {
    padding: 1.125rem 3rem;
    font-size: 0.875rem;
}

/* Button with Icon */
.btn-primary i,
.btn-secondary i,
.btn-ghost i {
    font-size: 0.625rem;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-primary:hover i,
.btn-secondary:hover i,
.btn-ghost:hover i {
    opacity: 1;
    transform: translateX(4px);
}

/* ==========================================================================
   STANDARD HERO SECTION - UNIFIED DESIGN SYSTEM
   ========================================================================== */

/* Hero Section Base */
.hero-section {
    position: relative;
    height: 50vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 110px;
}

.hero-section-full {
    height: 100vh;
    min-height: 600px;
    padding-top: 110px;
}

/* Hero Background */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 23, 28, 0.9);
    z-index: 1;
}

.hero-overlay-light {
    background: rgba(20, 23, 28, 0.7);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #28458c;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title-large {
    font-size: 4.375rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-large {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 40vh;
        min-height: 350px;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title-large {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 35vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-title-large {
        font-size: 2rem;
    }
}

/* ==========================================================================
   STANDARD SPACING SYSTEM
   ========================================================================== */

/* Section Spacing */
.section-spacing {
    padding: 6rem 0;
}

.section-spacing-sm {
    padding: 4rem 0;
}

.section-spacing-lg {
    padding: 8rem 0;
}

.section-spacing-xl {
    padding: 10rem 0;
}

/* Container Spacing */
.container-spacing {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 1024px) {
    .container-spacing {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Content Spacing */
.content-spacing>*+* {
    margin-top: 2rem;
}

.content-spacing-sm>*+* {
    margin-top: 1rem;
}

.content-spacing-lg>*+* {
    margin-top: 3rem;
}

/* ==========================================================================
   MICRO INTERACTIONS - ENHANCED UX
   ========================================================================== */

/* Enhanced Hover Effects */
.hover-lift-enhanced {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(40, 69, 140, 0.3);
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Button Pulse Animation */
@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(40, 69, 140, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(40, 69, 140, 0);
    }
}

.btn-pulse {
    animation: buttonPulse 2s infinite;
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation for Lists */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* Enhanced Focus States */
.enhanced-focus:focus-visible {
    outline: 2px solid #28458c;
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 4px rgba(40, 69, 140, 0.1);
}

/* Smooth Transitions for Interactive Elements */
a,
button,
input,
select,
textarea {
    transition: all 0.2s ease;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Icon Hover Effects */
.icon-hover {
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Link Underline Animation */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #28458c;
    transition: width 0.3s ease;
}

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

/* Image Zoom on Hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Loading Button States */
.btn-loading-state {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in-up,
    .fade-in-left,
    .fade-in-right,
    .scale-in,
    .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   SEARCH MODAL - COMPLETE IMPLEMENTATION
   ========================================================================== */

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.search-modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-modal[aria-hidden="false"] .search-modal-container {
    transform: translateY(0);
}

.search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.search-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #14171c;
    margin: 0;
}

.search-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #374151;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-modal-close:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.search-modal-close:active {
    transform: scale(0.95);
}

.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #14171c;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.search-input:focus {
    background: #ffffff;
    border-color: #28458c;
    box-shadow: 0 0 0 4px rgba(40, 69, 140, 0.1);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    border: none;
    border-radius: 6px;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-clear:hover {
    background: #d1d5db;
    color: #374151;
}

.search-results {
    min-height: 200px;
}

.search-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #9ca3af;
}

.search-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-empty-state p {
    font-size: 1rem;
    font-weight: 500;
}

.search-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.search-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #28458c;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f0f7ff;
    border-color: #28458c;
}

.search-result-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 10px;
    color: #28458c;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.search-result-item-content {
    flex: 1;
    min-width: 0;
}

.search-result-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: #14171c;
    margin-bottom: 0.25rem;
}

.search-result-item-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.search-result-item-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.search-result-category {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.search-result-category-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 1rem;
}

.search-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.search-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 1rem;
    font-weight: 500;
}

.search-modal-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    flex-shrink: 0;
}

.search-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #6b7280;
}

.search-shortcut-label {
    font-weight: 600;
    margin-right: 0.25rem;
}

.search-shortcuts kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #374151;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .search-modal {
        padding-top: 2rem;
    }

    .search-modal-container {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .search-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .search-modal-body {
        padding: 1.5rem;
    }

    .search-input {
        font-size: 1rem;
        padding: 0.875rem 3rem 0.875rem 3rem;
    }

    .search-shortcuts {
        font-size: 0.6875rem;
    }
}


/* ==========================================================================
   CONTRAST & READABILITY FIXES
   ========================================================================== */

/* Force dark text for editor-generated light colors when on a white background */
.bg-white [style*="color: rgb(255, 255, 255)"],
.bg-white [style*="color: #fff"],
.bg-white [style*="color: white"],
.bg-white [style*="color:rgb(255, 255, 255)"],
.bg-white [style*="color:#fff"],
.bg-white [style*="color:white"],
.product-detail-layout-modern [style*="color: rgb(255, 255, 255)"],
.product-detail-layout-modern [style*="color: #fff"],
.product-detail-layout-modern [style*="color: white"],
.product-detail-layout-modern [style*="color:rgb(255, 255, 255)"],
.product-detail-layout-modern [style*="color:#fff"],
.product-detail-layout-modern [style*="color:white"] {
    color: #0f172a !important;
}

/* General reset for white background sections to ensure text visibility */
.bg-white {
    color: #1e293b;
}

/* Table readability within white sections */
.bg-white table td,
.bg-white table th {
    color: #1e293b;
}