/* Companies Catalog Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Montserrat', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    color: #333;
    line-height: 1.5;
    background-color: #f5f5f5;
}

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

/* Header Styles */
.top-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
}

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

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #2688eb;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a6ec0;
}

.nav-right {
    display: flex;
    gap: 16px;
}

.login-link,
.register-link {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.login-link:hover,
.register-link:hover {
    color: #1a6ec0;
}

/* Main Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2688eb;
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    white-space: nowrap;
}

.logo i {
    font-size: 24px;
}

.logo img {
    height: 67px;
}

/* Search Form Styles */
.search-container {
    display: flex;
    flex: 1;
    max-width: 800px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.search-input-group {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0 15px;
}

.search-icon {
    color: #777;
    margin-right: 10px;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 16px;
    outline: none;
    color: #333;
}

.search-input::placeholder {
    color: #777;
}

.location-selector {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background-color: #fff;
    border-left: 1px solid #e0e0e0;
    cursor: pointer;
    position: relative;
}

.location-selector:hover {
    background-color: #f9f9f9;
}

.location-icon {
    color: #777;
    margin-right: 8px;
}

.location-text {
    font-size: 16px;
    color: #333;
    white-space: nowrap;
}

.location-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 250px;
    z-index: 100;
    display: none;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.location-selector:hover .location-dropdown {
    display: block;
}

.location-dropdown a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.location-dropdown a:hover {
    background-color: #f5f5f5;
    color: #2688eb;
}

.search-button {
    background-color: #2688eb;
    color: white;
    border: none;
    padding: 0 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-button:hover {
    background-color: #1a6ec0;
}

/* Breadcrumbs */
.breadcrumbs {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-links {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb-links a {
    text-decoration: none;
    color: #2688eb;
}

.breadcrumb-links span {
    color: #777;
}

/* Page Header */
.page-header {
    padding: 30px 0 20px;
    background-color: #f5f5f5;
    width: 100%;
}

.page-header .container {
    padding-left: 20px;
    padding-right: 15px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    text-align: left;
}

.page-subtitle {
    color: #777;
    font-size: 16px;
    margin-bottom: 25px;
    text-align: left;
}

/* SEO Text Block */
.seo-block {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.seo-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.seo-text {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-text:last-child {
    margin-bottom: 0;
}

/* Rubricator Section */
.rubricator {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rubricator-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.rubricator-section {
    margin-bottom: 30px;
}

.rubricator-section:last-child {
    margin-bottom: 0;
}

.rubricator-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2688eb;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.rubricator-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rubricator-link {
    display: inline-block;
    background-color: #f0f7ff;
    color: #2688eb;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.rubricator-link:hover {
    background-color: #2688eb;
    color: white;
}

.alphabet-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.alphabet-letter {
    display: inline-block;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    background-color: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.alphabet-letter:hover,
.alphabet-letter.active {
    background-color: #2688eb;
    color: white;
}

/* Companies Grid */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.company-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.company-logo-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
    background-color: #fff;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
    display: block;
}

.company-name:hover {
    color: #2688eb;
}

.company-industry {
    font-size: 14px;
    color: #777;
}

.company-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.company-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.company-city {
    font-size: 14px;
    color: #777;
}

.company-city i {
    margin-right: 5px;
}

.vacancy-count {
    font-size: 14px;
    color: #2688eb;
    font-weight: 500;
}

.view-company {
    color: #2688eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-company:hover {
    text-decoration: underline;
}

/* Popular Cities Section */
.popular-cities {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.popular-cities-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.city-link-large {
    display: block;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.city-link-large:hover {
    background-color: #2688eb;
    color: white;
}

.city-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.city-vacancy-count {
    font-size: 14px;
    color: #777;
}

.city-link-large:hover .city-vacancy-count {
    color: rgba(255, 255, 255, 0.8);
}

/* No Companies Message */
.no-companies {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
}

.no-companies p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

.reset-filters-btn {
    display: inline-block;
    background-color: #2688eb;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.reset-filters-btn:hover {
    background-color: #1a6ec0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-list {
    display: flex;
    gap: 5px;
    list-style: none;
}

.pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-item a {
    text-decoration: none;
    color: #333;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.pagination-item:hover {
    background-color: #f0f7ff;
}

.pagination-item.active {
    background-color: #2688eb;
}

.pagination-item.active a {
    color: white;
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #777;
    font-size: 14px;
}

.footer-links a:hover {
    color: #2688eb;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        width: 100%;
    }

    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

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

    .nav-right {
        display: none;
    }

    .search-container {
        flex-direction: column;
        border-radius: 8px;
        overflow: visible;
    }

    .search-input-group {
        border-bottom: 1px solid #e0e0e0;
    }

    .location-selector {
        justify-content: center;
        border-left: none;
        border-top: 1px solid #e0e0e0;
    }

    .search-button {
        padding: 12px;
        border-radius: 0 0 8px 8px;
    }

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

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .page-title {
        font-size: 24px;
    }

    .rubricator-title {
        font-size: 20px;
    }

    .rubricator-subtitle {
        font-size: 16px;
    }
}
