/* second-section.css */

/* Переменные */
:root {
    --gray-bg: #dbdbdb;
    --light-bg: #f9f9f9;
    --text-dark: #000000;
    --border-color: #000000;
    --white: #ffffff;
}

/* Основные стили секции */
.second-container {
    padding: 0 80px;
}

.second-title {
    color: var(--text-dark);
    font-size: 34px;
    font-weight: 600;
    margin: 30px 0;
}

.second-inner {
    display: flex;
    gap: 20px;
}

/* Левая часть (центр) */
.inner-center {
    flex-basis: 95%;
}

.center-title {
    color: #000;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    background: #f9f9f9;
    border-radius: 10px 10px 0 0;
    padding: 20px 0;
}

.center-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    padding: 5px 15px 10px;
    background-color: #f9f9f9;
    border-radius: 0 0 10px 10px;
    margin: 0 0 20px;
}

/* Карточки вакансий */
.content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-item:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-img img {
    width: 100%;
    object-fit: cover;
    height: 190px;
    border-radius: 10px 10px 0 0;
}

.content-desc {
    /* margin-top: 5px; */
    text-align: center;
    font-size: 16px;
    color: var(--text-dark);
    padding: 0 5px 15px;
}

/* Теги вакансий (инлайн стили вынесены) */
.vacancy-tags {
    display: flex;
    gap: 10px;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 10px 0;
    list-style: none;
}

.vacancy-tags li {
    font-size: 11px;
    background: #0088cc;
    color: #fff;
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 500;
}

.content-desc > p:first-of-type {
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0 5px;
}

.content-desc > p:last-of-type {
    font-weight: 500;
    font-size: 16px;
}

/* Футер с популярными вакансиями */
.center-footer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px 40px;
    margin-top: 20px;
    color: var(--text-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    /* background-color: var(--light-bg); */
}

.second-inner .center-footer .footer-item {
    padding: 10px;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.second-inner .center-footer .footer-item:hover {
    background-color: rgba(30, 222, 123, 0.1);
}

/* Правая часть (категории) */
.inner-right {
    flex-basis: 20%;
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 10px 0 20px;
}

.right-title {
    color: var(--text-dark);
    text-align: center;
    margin: 10px 0 20px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.15;
}

.right-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
    padding: 0 15px;
}

/* Кастомный скроллбар для правой колонки */
.right-content::-webkit-scrollbar {
    width: 6px;
}

.right-content::-webkit-scrollbar-track {
    background: var(--gray-bg);
    border-radius: 10px;
}

.right-content::-webkit-scrollbar-thumb {
    background: #0088cc;
    border-radius: 10px;
}

.right-content::-webkit-scrollbar-thumb:hover {
    background: #0088cc;
}

/* Элементы категорий */
.right-content .content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    /* overflow: hidden; */
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-content .content-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.item-img {
    width: 100%;
    display: flex;
}

.item-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.item-desc {
    text-align: center;
    font-size: 14px;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    font-weight: 500;
    background: var(--white);
    width: 100%;
    border-radius: 10px;
}

/* Блок с регистрацией */
.register-block {
    display: flex;
    align-items: center;
    gap: 100px;
    /* margin: 10px 0; */
    padding: 10px;
    border-radius: 20px;
}

.register-title {
    color: var(--text-dark);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Стили для кнопки "Создать резюме" (переиспользуем существующий класс newdiz-account) */
.register-block .newdiz-account {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #0088cc;
    border-radius: 10px;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.register-block .newdiz-account:hover {
    background-color: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 222, 123, 0.3);
}

.register-block .newdiz-account:hover .login-arrow {
    transform: translateX(5px);
}

.register-block .login-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease-in-out;
}

/* Стили для footer-item с иконками */
.footer-item--with-icon {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-item--with-icon:hover {
    transform: translateX(5px);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Контейнер для иконки */
.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-icon img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.footer-item--with-icon:hover .footer-icon img {
    transform: scale(1.05);
}

/* Контентная часть */
.second-footer-content {
    flex: 1;
}

.second-footer-content h2 {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.second-footer-content p {
    font-size: 12px;
    color: #000;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}


/* Адаптивность */
@media (max-width: 1200px) {
    .second-container {
        padding: 0 15px;
    }
    
    .center-content {
        padding: 5px 20px 10px;
    }
}

@media (max-width: 992px) {
    .second-inner {
        flex-direction: column;
    }

    .second-title {
        font-size: 32px;
        line-height: 1.3;
    }
    
    .inner-center {
        flex-basis: 100%;
    }
    
    .inner-right {
        flex-basis: 100%;
    }
    
    .right-content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        max-height: none;
        gap: 15px;
    }
    
    .center-content {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    /* Адаптив для блока регистрации */
    .register-block {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .register-title {
        font-size: 20px;
    }
    
    .register-block .newdiz-account {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .second-container {
        padding: 0 20px;
    }
    
    .center-content {
        padding: 5px 15px 10px;
    }
    
    .center-title {
        font-size: 18px;
        padding: 15px 0;
    }
    
    .right-title {
        font-size: 18px;
    }
    
    .content-img img {
        height: 200px;
    }
    
    .vacancy-tags li {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .content-desc > p:first-of-type {
        font-size: 16px;
    }

    /* Адаптив для блока регистрации */
    .register-block {
        gap: 20px;
        padding: 15px;
        margin: 30px 0 15px;
    }
    
    .register-title {
        font-size: 18px;
    }
    
    .register-title br {
        display: none;
    }
    
    .register-block .newdiz-account {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-item--with-icon {
        padding: 12px;
        gap: 8px;
    }
    
    .footer-icon img {
        width: 50px;
        height: 50px;
    }
    
    .second-footer-content h2 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .second-footer-content p {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .second-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .second-container {
        padding: 0 15px;
    }
    
    .center-footer {
        grid-template-columns: 1fr;
    }
    
    .right-content {
        grid-template-columns: 1fr;
    }
    
    .center-content {
        grid-template-columns: 1fr;
    }
    
    .vacancy-tags {
        gap: 6px;
    }

    /* Адаптив для блока регистрации */
    .register-block {
        gap: 15px;
        padding: 12px;
    }
    
    .register-title {
        font-size: 16px;
    }

    .footer-item--with-icon {
        padding: 10px;
        gap: 6px;
    }
    
    .footer-icon img {
        width: 45px;
        height: 45px;
    }
    
    .second-footer-content h2 {
        font-size: 14px;
    }
    
    .second-footer-content p {
        font-size: 11px;
    }
}

@media (max-width: 500px) {
    .second-title {
        font-size: 25px;
    }
}

@media (max-width: 400px) {
    .second-title {
        font-size: 22px;
    }
}
