/* ============================================================
   Faculty — assets/css/style.css
   Layered on top of Bootstrap 5
   ============================================================ */

:root {
    --ct-primary: #4B46FF;
    --ct-primary-nav: #D7E7FF;
    --ct-primary-dark: #4949de;
    --ct-navy: #ffffff;
    --ct-text: #131315;
    --ct-light-bg: #f3f4f6;
    --ct-font: 'Inter', system-ui, -apple-system, sans-serif;
    --section-py: 80px;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--ct-font);
    color: var(--ct-text);
    background: var(--ct-navy);
    overflow-x: hidden;
}

.py-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

body .rounded {
    border-radius: 1.5rem !important;
}

/* Buttons */
.ct-btn-primary {
    background: var(--ct-primary);
    color: #fff !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    border: none;
    transition: 0.2s;
}

.ct-btn-primary:hover {
    background: var(--ct-primary-dark);
    transform: translateY(-2px);
}

/* Header & Topbar */
.ct-topbar {
    height: 80px;
    display: flex;
    background: linear-gradient(135deg, var(--ct-primary) 75%, var(--ct-primary-nav) 40%);
    overflow: hidden;
}

.ct-topbar__link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ct-topbar__social-link {
    color: var(--ct-primary);
    transition: opacity 0.2s;
}

.ct-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ct-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.navbar-nav .menu-item {
    color: #333 !important;
    font-weight: 600;
    padding: 10px 20px !important;
}

.ct-btn-pill {
    background-color: var(--ct-primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 500;
    border: none;
    white-space: nowrap;
    border: 2px solid var(--ct-primary)
}

.ct-btn-pill:hover {
    background-color: transparent;
    border-color: var(--ct-primary);
    color: var(--ct-primary) !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.ct-logo-wrapper img {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain;
    display: block;
}

.custom-logo-link {
    display: inline-block;
}

.ct-site-name {
    color: #333;
    display: block;
    max-width: 250px;
    line-height: 1.2;
}

.ct-logo-wrapper {
    flex-shrink: 0;
}

.ct-header .nav-link {
    color: var(--ct-text) !important;
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
}

.ct-header .nav-link:hover,
.ct-header .nav-link.active {
    color: var(--ct-primary) !important;
}

/* Tickers */
.ct-ticker {
    padding: 2rem 0;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--ct-primary);
    color: var(--ct-navy)
}

.ct-ticker__track {
    display: inline-flex;
    align-items: center;
    animation: ctscroll 30s linear infinite;
}

.ct-ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem;
    font-size: 1.75rem;
    font-weight: 500;
}

.ct-ticker__dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.ct-ticker__dot--white {
    border: 2px solid #fff;
}

@keyframes ctscroll {
    0% {
        transform: translateX(0);
    }

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

/* Hero text */
.ct-hero-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--ct-text);
    line-height: 1.1;
}

.ct-hero-subtext {
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 90%;
}

/* Sections */
.ct-section-heading {
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.2;
}

/* Contacts Form */
.ct-contact-form input,
.ct-contact-form textarea {
    font-size: 0.85rem;
    border: none;
}

.ct-contact-form .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #111;
}

/* Footer */
.ct-footer {
    background: var(--ct-primary);
    color: #fff;
}

.ct-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
}

.ct-footer a:hover {
    color: #fff;
}

.ct-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* History */
.col-lg-5.position-relative {
    min-height: 300px;
}

.ct-bg-icon-inner {
    position: absolute;
    bottom: -40px;
    right: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.ct-bg-icon-inner svg {
    width: 280px;
    height: auto;
}

.history-arrow-btn {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.history-item [aria-expanded="true"] .history-arrow-btn {
    background: #fff;
    color: #554dff;
    transform: rotate(180deg);
}

.history-item:hover .history-arrow-btn {
    background: rgba(255, 255, 255, 0.4);
}

.ct-bg-icon {
    bottom: -20px;
    left: 15%;
    width: 400px;
    pointer-events: none;
    z-index: 1;
}

.ct-achievements-section .row.g-0 {
    margin: 0;
}

.ach-card {
    transition: transform 0.3s ease;
    min-height: 250px;
}

.ach-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.ach-card-wrapper:nth-child(1) .ach-card,
.ach-card-wrapper:nth-child(4) .ach-card {
    background-color: #6366f1;
}

.ach-card-wrapper:nth-child(2) .ach-card,
.ach-card-wrapper:nth-child(3) .ach-card {
    background-color: var(--ct-primary);
}

.ach-photo {
    transition: transform 0.5s ease;
}

.ach-photo:hover {
    filter: brightness(1.1);
}

.ct-mission-card {
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.ct-mission-card__num {
    font-size: 4rem;
    color: #f1f3f5;
    line-height: 0.8;
    letter-spacing: -2px;
    z-index: 1;
}

.ct-mission-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: #D7E7FF;
    border-radius: 0 0 1rem 1rem;
}

.ct-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05) !important;
}

.ct-section-heading {
    font-size: 3.5rem;
    line-height: 1.1;
}

.ct-spec-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.ct-spec-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.ct-spec-badge {
    background-color: #DDE7FF;
    color: #333;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.ct-spec-badge span {
    font-size: 0.9rem;
    color: #000;
}

#ctAppPrev,
#ctAppNext {
    transition: all 0.3s ease;
}

#ctAppPrev:hover,
#ctAppNext:hover {
    background-color: #ffffff !important;
    transform: scale(1.1);
}

/* FAQ Updates */
.ct-faq-item {
    background-color: #E6E6E6;
    color: #333333;
    transition: all 0.3s ease;
}

.ct-faq-item.ct-faq-active {
    background-color: #4B46FF !important;
    color: #FFFFFF !important;
}

.ct-faq-item.ct-faq-active .ct-faq-icon {
    color: #4B46FF !important;
}

.ct-faq-btn:not(.collapsed) .ct-faq-icon-svg {
    transform: rotate(180deg);
}

@media (max-width: 991px) {
    .ct-bg-icon {
        width: 250px;
        left: 50%;
        transform: translateX(-50%);
    }

    :root {
        --section-py: 60px;
    }

    .ct-hero .ct-hero__text-box {
        padding: 2rem !important;
    }

    .ct-bg-icon-inner {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        text-align: right;
    }

    .ct-bg-icon-inner svg {
        width: 180px;
    }

    .ach-card-wrapper {
        width: 100%;
    }

    .ach-photo {
        min-height: 250px !important;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        justify-content: space-between;
    }

    .navbar-expand-lg .navbar-nav {
        width: 70%;
        justify-content: center;
        align-items: center;
        gap: 20px;

        li a {
            color: var(--ct-text);
            text-decoration: none;
        }
    }
}

@media (max-width: 991.98px) {
    .ct-topbar {
        background: linear-gradient(135deg, var(--ct-primary) 60%, var(--ct-primary-nav) 40%);
    }

    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
        padding-bottom: 20px;
        transition: all 0.3s ease-in-out;
    }

    .navbar-nav {
        padding-top: 20px;
    }

    .navbar-nav .nav-link {
        font-size: 20px;
        padding: 10px 0;
        display: block;
        width: 100%;
    }

    .navbar-toggler-icon-custom {
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--ct-primary);
        position: relative;
    }

    .navbar-toggler-icon-custom::before,
    .navbar-toggler-icon-custom::after {
        content: "";
        width: 30px;
        height: 2px;
        background-color: var(--ct-primary);
        position: absolute;
        left: 0;
    }

    .navbar-toggler-icon-custom::before {
        top: -8px;
    }

    .navbar-toggler-icon-custom::after {
        bottom: -8px;
    }

    .ct-topbar__link span {
        font-size: 12px;
    }
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 15px;
    }
}

/* =========================================================================
   NEWS SECTION (New styles added)
   ========================================================================= */
.news-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-left: 15px;
}

.ct-news-item {
    transition: opacity 0.3s ease;
}

.ct-news-item__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.ct-news-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ct-news-item:hover .ct-news-item__image img {
    transform: scale(1.05);
}

/* Контентная часть */
.ct-news-item__category {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.ct-news-item__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ct-news-item__title a {
    text-decoration: none;
    color: #222;
    transition: color 0.2s;
}

.ct-news-item__title a:hover {
    color: #4f46e5;
}

.ct-news-item__excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 20px;
    max-width: 500px;
}

/* Кнопка-стрелка */
.ct-news-item__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: #E9F0FF;
    color: #4f46e5; 
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ct-news-item__arrow:hover {
    background-color: #4f46e5;
    color: #ffffff;
    transform: scale(1.1);
}

.ct-pagination-wrapper {
    margin-top: 50px;
}

.ct-pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 4px;
    background-color: #E9F0FF;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s;
}

.ct-pagination-wrapper .page-numbers.current {
    background-color: #4f46e5;
    color: #ffffff;
}

.ct-pagination-wrapper .page-numbers:hover:not(.current) {
    background-color: #d1e0ff;
}

@media (max-width: 768px) {
    .news-main-title { font-size: 32px; }
    .ct-news-item__title { font-size: 20px; }
    .ct-news-item__image { margin-bottom: 15px; }
}

.news-main-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
}

.ct-news-item__image {
    aspect-ratio: 1.8;
    border-radius: 12px;
    overflow: hidden;
    background: #e5e7eb;
}

.ct-news-item__category {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}

.ct-news-item__title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.ct-news-item__excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 550px;
}

.ct-news-item__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #E9F0FF;
    color: #4F46E5;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ct-news-item__arrow:hover {
    background-color: #4F46E5;
    color: #ffffff;
}

.btn-news-all-pill {
    display: block;
    width: 100%;
    max-width: 400px;
    background-color: #5850FF;
    color: #fff !important;
    text-align: center;
    padding: 16px 0;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-news-all-pill:hover {
    background-color: #4338ca;
}

@media (max-width: 768px) {
    .btn-news-all-pill {
        max-width: 100%;
    }
    .news-main-title {
        font-size: 32px;
    }
}