* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #f3f4f6;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-size: 20px 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

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

.header {
    background: #005EB4;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

.header + * {
    margin-top: 0 !important;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    gap: 12px;
}

.logo img {
    width: 100px;
    transition: transform 0.3s ease;
}

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

.logo-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-item {
    position: relative;
    white-space: nowrap;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
    font-size: 15px;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.nav-link.active::after {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.input-small {
    width: 200px;
    height: 40px;
    padding: 8px 12px;
    font-size: 0.875rem;
    border-radius: 20px;
}

.input-with-right-icon {
    padding-right: 40px;
}

.header-search-wrapper {
    position: relative;
}

.header-search-input {
    width: 200px !important;
    height: 40px !important;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input input {
    width: 200px !important;
    height: 40px !important;
    border-radius: 20px;
    border: 1px solid #ddd !important;
    color: #fff !important;
    background: none !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    padding-right: 40px !important;
}

.header-search-input input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.header-search-input input:focus {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.header-search-input.input-with-right-icon input {
    padding-right: 40px !important;
}

.header-search-input .input-icon-right {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.header-search-input .input-icon {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.header-search-input:focus-within .input-icon {
    color: rgba(255, 255, 255, 0.9);
}

.global-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 500px;
    overflow-y: auto;
    z-index: 1001;
    min-width: 400px;
}

.global-search-results .search-section {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.global-search-results .search-section:last-child {
    border-bottom: none;
}

.global-search-results .search-section-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.global-search-results .search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.2s;
    cursor: pointer;
}

.global-search-results .search-item:hover {
    background: #f8fafc;
}

.global-search-results .search-item-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.global-search-results .search-item-info {
    flex: 1;
    min-width: 0;
}

.global-search-results .search-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.global-search-results .search-item-meta {
    font-size: 12px;
    color: #64748b;
}

.global-search-results .no-results {
    padding: 24px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.header-button {
    width: 150px;
    height: 40px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, color 0.3s ease;
    background: none;
    text-wrap-mode: nowrap;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    gap: 8px;
}

.header-button:hover {
    color: #dbdbdb;
}

.header-button:hover .icon {
    color: #dbdbdb;
}

.header-button:hover .icon svg,
.header-button:hover .icon svg path {
    stroke: #dbdbdb;
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user-info {
    display: flex;
    align-items: center;
}

.header-user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    width: auto;
    padding: 0 16px;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle-open span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle-open span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-item:last-child {
    border-bottom: none;
}

.footer {
    background-color: #0a4a8e;
    color: #ffffff;
    padding: 40px 0 0;
    margin-top: 0;
}

.footerTop {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer .logo {
    width: 120px;
    margin-bottom: 20px;
}

.socialLinks {
    display: flex;
    gap: 15px;
}

.socialIcon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.socialIcon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

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

.columnTitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
}

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

.linkList li {
    margin-bottom: 12px;
}

.link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link:hover {
    text-decoration: underline;
    color: #cccccc;
}

.linkIcon {
    font-size: 14px;
    flex-shrink: 0;
}

.footerBottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyrightText {
    display: flex;
    align-items: center;
    color: #ffffff;
    margin: 0;
}

.faraziLogo {
    height: 16px;
    vertical-align: middle;
    margin: 0 5px;
}

.legalLinks {
    display: flex;
    gap: 20px;
}

.legalLink {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.legalLink:hover {
    text-decoration: underline;
    color: #cccccc;
}

.mobile-title-override {
    padding: 0px 10px;
}

.btn {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    padding: 12px 24px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: #005EB4 !important;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #005EB4;
}

.btn-secondary {
    background: transparent;
    color: #005EB4;
    border: 2px solid #005EB4;
}

.btn-secondary:hover:not(:disabled) {
    background: #005EB4;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #333;
    border: 2px solid #ddd;
}

.btn-outline:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #005EB4;
    color: #005EB4;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.slider-content {
    align-items: normal !important;
}

.slider-text-content {
    padding: 0 !important;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    flex-wrap: wrap;

    max-width: 1200px;
    margin: 0 auto 20px auto;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}


@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        padding: 0;
        gap: 0;
        margin: 0;
        width: 100%;
    }

    .nav-item {
        border-bottom: 1px solid #e9ecef;
        width: 100%;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 16px 20px;
        font-size: 15px;
        font-weight: 400;
        color: #333 !important;
        transition: all 0.3s ease;
        background-color: transparent;
        box-sizing: border-box;
    }

    .nav-link:hover {
        color: #005EB4 !important;
        background-color: #f8f9fa;
        padding-left: 24px;
    }

    .nav-link.active {
        color: #005EB4 !important;
        background-color: #f0f0f0;
        font-weight: 500;
    }

    .nav-link::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

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

    .footerBottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .legalLinks {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header-content {
        height: 60px;
        padding: 0 10px;
    }

    .logo {
        font-size: 1.3rem;
    }
}

