/*
Theme Name: SGTK College
Theme URI: http://sgtk.local
Author: SGTK
Description: Официальная тема Современного гуманитарно-технического колледжа
Version: 1.0
Text Domain: sgtk
*/

/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #10233f;
    background: #f7f9fc;
}

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

img {
    max-width: 100%;
    display: block;
}


/* ===== ШАПКА ===== */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
    position: relative;
    z-index: 100;
}

.header-container {
    max-width: 1450px;
    min-height: 90px;
    margin: 0 auto;
    padding: 0 35px;

    display: flex;
    align-items: center;
    gap: 35px;
}

.college-brand {
    margin-right: auto;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #0869d8;
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 800;
    font-size: 17px;
}

.college-logo img {
    max-height: 65px;
    width: auto;
}

.college-name {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.15;
}

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

    display: flex;
    align-items: center;
    gap: 28px;
}

.main-menu a {
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

.main-menu a:hover {
    color: #0878f9;
}

.account-button {
    background: #0878f9;
    color: white;
    padding: 15px 22px;
    border-radius: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s;
}

.account-button:hover {
    background: #0563cf;
}


/* ===== ГЛАВНЫЙ БАННЕР ===== */

.hero {
    min-height: 520px;

    background:
        linear-gradient(
            90deg,
            rgba(3, 37, 68, 0.97) 0%,
            rgba(3, 50, 87, 0.88) 45%,
            rgba(3, 44, 75, 0.60) 100%
        );

    position: relative;
    display: flex;
    align-items: center;
}

.hero-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 65px 55px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 70px;

    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
    max-width: 760px;
}

.hero-label {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero h1 {
    margin: 0 0 20px;

    font-size: clamp(42px, 4vw, 64px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-content p {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: #e7f0fa;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 55px;
    padding: 0 27px;
    border-radius: 12px;

    font-weight: 700;
    transition: 0.2s;
}

.btn-primary {
    background: #0878f9;
    color: white;
}

.btn-primary:hover {
    background: #0565d6;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.8);
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #0b3155;
}


/* ===== ПРЕИМУЩЕСТВА ===== */

.hero-features {
    width: 310px;
    background: rgba(255,255,255,0.95);
    border-radius: 22px;
    padding: 20px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px 10px;
    color: #10233f;
    font-weight: 600;
}

.feature + .feature {
    border-top: 1px solid #e8edf4;
}

.feature-icon {
    width: 46px;
    height: 46px;

    background: #eef6ff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    flex-shrink: 0;
}


/* ===== КАРТОЧКИ РАЗДЕЛОВ ===== */

.quick-sections {
    background: #ffffff;
    padding: 25px 30px 40px;
}

.section-container {
    max-width: 1450px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
}

.quick-card {
    position: relative;
    min-height: 185px;

    padding: 25px 22px;

    border: 1px solid #e7edf5;
    border-radius: 17px;

    background: white;

    box-shadow: 0 8px 30px rgba(20, 50, 90, 0.06);
    transition: 0.25s;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 50, 90, 0.12);
}

.quick-icon {
    font-size: 27px;
    margin-bottom: 18px;
}

.quick-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.quick-card p {
    margin: 0;
    color: #68778c;
    line-height: 1.5;
    font-size: 14px;
}

.quick-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;

    width: 35px;
    height: 35px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background: #eef6ff;
    color: #0878f9;
}


/* ===== НОВОСТИ ===== */

.news-section {
    padding: 55px 30px 75px;
    background: #f7f9fc;
}

.content-container {
    max-width: 1450px;
    margin: 0 auto;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    font-size: 32px;
}

.section-heading a {
    color: #0878f9;
    font-weight: 700;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.news-card {
    overflow: hidden;

    background: white;
    border: 1px solid #e7edf5;
    border-radius: 18px;

    box-shadow: 0 10px 35px rgba(20, 50, 90, 0.06);
}

.news-image {
    display: block;
    height: 230px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-content {
    padding: 24px;
}

.news-date {
    display: block;
    color: #8a98aa;
    font-size: 13px;
    margin-bottom: 10px;
}

.news-content h3 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.3;
}

.news-content p {
    color: #68778c;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    margin-top: 8px;

    color: #0878f9;
    font-weight: 700;
}

.no-news {
    grid-column: 1 / -1;

    background: white;
    border-radius: 18px;
    padding: 45px;

    text-align: center;
    border: 1px solid #e7edf5;
}


/* ===== ПОДВАЛ ===== */

.site-footer {
    background: #07345e;
    color: white;
    padding: 38px 30px;
}

.footer-container {
    max-width: 1450px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    max-width: 380px;
    font-size: 16px;
    line-height: 1.5;
}

.footer-copy {
    color: #d7e4f1;
    font-size: 14px;
    line-height: 1.7;
}


/* ===== АДАПТАЦИЯ ===== */

@media (max-width: 1200px) {

    .main-navigation {
        display: none;
    }

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

@media (max-width: 850px) {

    .hero-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-features {
        width: 100%;
    }

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

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

@media (max-width: 600px) {

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

    .college-name {
        font-size: 11px;
    }

    .account-button {
        display: none;
    }

    .hero-container {
        padding: 50px 25px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Страница "О колледже" */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 30px;
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.page-content p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}
/* Фон страницы "О колледже" */
body.page-id-88 {
    background: red !important;
}
/* Прозрачный контент на странице "О колледже" */
body.page-id-88 .site-main,
body.page-id-88 .page-content {
    background: transparent !important;
}
/* Фоновое фото главного блока */
.hero {
    background:
        linear-gradient(rgba(0, 55, 140, 0.72), rgba(0, 100, 210, 0.72)),
        url("http://sgtk.local/wp-content/uploads/2026/10/WhatsApp-Image-2026-06-23-at-14.33.06-1.jpeg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.news-title {
    font-size: 42px;
}

.news-content,
.news-content p {
    font-size: 21px;
    line-height: 1.8;
}
/* Красивое расположение отдельной новости */
.single-news {
    width: 100%;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 50px 30px !important;
    box-sizing: border-box;
}

.news-article {
    width: 100% !important;
    max-width: 900px !important;
    margin: 0 auto !important;
}

.news-title {
    font-size: 38px !important;
    line-height: 1.25 !important;
    max-width: 900px;
    margin: 0 0 15px 0 !important;
}

.news-content {
    width: 100% !important;
    font-size: 21px !important;
    line-height: 1.7 !important;
}

.news-content p {
    width: 100% !important;
    max-width: 900px !important;
    font-size: 21px !important;
    line-height: 1.7 !important;
    margin: 0 0 25px 0 !important;
}

.news-content figure,
.news-content .wp-block-image {
    width: 100% !important;
    max-width: 900px !important;
    margin: 30px 0 !important;
}

.news-content img {
    display: block !important;
    width: 100% !important;
    max-width: 900px !important;
    height: auto !important;
    border-radius: 12px;
}
/* Увеличение логотипа и названия колледжа на 50% */

.college-logo img,
.college-logo .custom-logo {
    width: 90px !important;
    height: auto !important;
    max-height: none !important;
}

.college-name span {
    font-size: 18px !important;
    line-height: 1.25 !important;
}
/* Личный кабинет — увеличить на 50% */
.account-button {
    font-size: 24px !important;
    padding: 18px 30px !important;
    border-radius: 10px !important;
}
.college-name,
.college-name span {
    font-family: Arial, "Noto Sans", sans-serif !important;
    font-weight: 700 !important;
}
.college-name,
.college-name span {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
}/* Верхняя панель даты и времени */
.top-datetime {
    width: 100%;
    background: linear-gradient(90deg, #0757a8, #168de2);
    color: white;
    padding: 10px 30px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#college-datetime {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
}
/* Лучшие новости */

.best-news {
    padding: 55px 30px;
    background: #f7f9fc;
}

.best-news-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
}

.best-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.best-news-card {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #1b6fd8;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.best-news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.best-news-card:hover img {
    transform: scale(1.06);
}

.best-news-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 45px 18px 18px;
    color: white;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,0.85)
    );
}

.best-news-info span {
    font-size: 13px;
}

.best-news-info h3 {
    margin: 6px 0 0;
    font-size: 20px;
    line-height: 1.25;
    color: white;
}

@media (max-width: 800px) {
    .best-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Исправление Instagram и 2ГИС */
.header-social {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    flex-shrink: 0 !important;
    width: auto !important;
}

.header-social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: max-content !important;
    height: 48px !important;
    padding: 0 18px !important;
    font-size: 17px !important;
    color: #17213a !important;
    background: transparent !important;
    border-right: 1px solid #d1d5db !important;
    text-decoration: none !important;
}

.header-social a img {
    display: block !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
}

.header-social a span {
    display: inline-block !important;
    white-space: nowrap !important;
}
.college-photo {
    display: block !important;
    width: 100%;
    padding: 25px 0;
    background: white;
}

.college-photo img {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}