﻿.text-justify {
    text-align: justify;
}

.home-shell {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.section-card,
.profile-card {
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
    border-radius: var(--radius-xl);
    padding: 1rem;
    margin-bottom: 1.25rem;
    width: 100%;
    height: 100%;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

    .section-head h2,
    .section-head h3 {
        margin: 0;
        font-weight: 800;
        font-size: 1.25rem;
        color: var(--text-dark);
    }

    .section-head p {
        margin: 0;
        color: var(--text-muted);
    }

.section-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: rgba(91,108,255,.10);
    color: var(--primary-color);
    font-weight: 700;
    font-size: .9rem;
    border: 1px solid rgba(91,108,255,.10);
}

.feature-card {
    overflow: hidden;
    border-radius: 1.35rem;
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
    border: 1px solid rgba(15,23,42,.08);
    background: #fff;
}

    .feature-card img {
        width: 100%;
        max-height: 480px;
        object-fit: cover;
        display: block;
    }

.feature-body {
    padding: 1.2rem 1.2rem 1.35rem;
}

    .feature-body .content-text,
    .feature-body .card-text {
        line-height: 1.9;
    }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-bottom: 1rem;
}

.contact-item {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
    height: 100%;
}

    .contact-item span {
        display: block;
        font-size: .82rem;
        color: var(--text-muted);
        margin-bottom: .3rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .contact-item div,
    .contact-item strong {
        font-size: .98rem;
        color: var(--text-dark);
        line-height: 1.6;
        word-break: break-word;
    }

.profile-card {
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.profile-header {
    background: linear-gradient(135deg, rgba(45,50,80,.08), rgba(91,108,255,.08));
    padding: 1rem 1rem .85rem;
    border-bottom: 1px solid rgba(15,23,42,.08);
    text-align: center;
}

    .profile-header h3 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 800;
        color: var(--dark-color);
    }

.profile-body {
    padding: 1rem 1rem 1.25rem;
}

.profile-photo-wrap {
    text-align: center;
    margin-top: 1rem;
}

.profile-photo {
    width: 180px;
    height: 180px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.profile-name {
    margin-top: .8rem;
    margin-bottom: .25rem;
    font-weight: 800;
    text-align: center;
}

.profile-role {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: .75rem;
}

.readmore-btn {
    margin-top: .8rem;
    border-radius: 999px;
    font-weight: 700;
}

.gallery-album {
    margin-bottom: 1.75rem;
    padding: 1rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 3px 10px rgba(15,23,42,.04);
}

    .gallery-album:last-child {
        margin-bottom: 0;
    }

.top-first-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1.25rem;
}

    .top-first-row .carousel-col,
    .top-first-row .notice-col {
        width: 100%;
    }

    .top-first-row .section-card {
        height: 100%;
        margin-bottom: 0;
    }

.notice-col .section-card {
    display: flex;
    flex-direction: column;
}

.notice-col #NewsViewContent {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

#About .feature-card img {
    width: 100%;
    aspect-ratio: auto;
    max-height: 100vw;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f8f9fa;
}

.message-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.message-col {
    width: 100%;
}

.message-row .profile-card {
    margin-bottom: 0;
}

.result-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.result-social-col {
    width: 100%;
    display: flex;
}

.section-card {
}

.ajax-section {
    position: relative;
    scroll-margin-top: var(--navbar-offset);
}

.ajax-target {
    min-height: 120px;
}

.skeleton-loader {
    width: 100%;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1.15rem;
    background: #fff;
    padding: 1rem;
    overflow: hidden;
    position: relative;
}

    .skeleton-loader::before {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
        animation: skeleton-shimmer 1.35s infinite linear;
        will-change: transform;
        pointer-events: none;
    }

@@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-block,
.skeleton-line,
.skeleton-circle {
    background: linear-gradient(180deg, #eef2f7 0%, #e5eaf1 100%);
    position: relative;
    z-index: 1;
}

.skeleton-block {
    width: 100%;
    border-radius: 1rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 999px;
    margin-bottom: .75rem;
}

    .skeleton-line:last-child {
        margin-bottom: 0;
    }

    .skeleton-line.w-90 {
        width: 90%;
    }

    .skeleton-line.w-75 {
        width: 75%;
    }

    .skeleton-line.w-60 {
        width: 60%;
    }

    .skeleton-line.w-45 {
        width: 45%;
    }

.skeleton-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex: 0 0 72px;
}

.skeleton-carousel {
    min-height: 420px;
}

    .skeleton-carousel .skeleton-block {
        height: 360px;
        margin-bottom: 1rem;
    }

.skeleton-news {
    min-height: 320px;
}

.skeleton-news-item {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

    .skeleton-news-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

.skeleton-card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.skeleton-card {
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 1rem;
    padding: .9rem;
    background: #fff;
}

    .skeleton-card .skeleton-block {
        height: 220px;
        margin-bottom: .9rem;
    }

.ajax-error {
    display: none;
    width: 100%;
    border: 1px solid rgba(220, 38, 38, .14);
    border-radius: 1.15rem;
    background: #fff;
    padding: 1rem;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(15,23,42,.05);
}

    .ajax-error.show {
        display: block;
    }

.btn-retry-load {
    border: 0;
    border-radius: 999px;
    padding: .55rem 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #5b6cff 0%, #2d3250 100%);
    color: #fff;
}

    .btn-retry-load:hover {
        color: #fff;
        opacity: .96;
    }

.ajax-loaded {
    animation: ajaxFadeIn .45s ease;
}

@keyframes ajaxFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-modern .modal-content,
.login-modal .modal-content,
.admission-modal .modal-content {
    border: 0;
    border-radius: 1.6rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15,23,42,.18);
    background: #ffffff;
}

.login-modal .modal-dialog {
    max-width: 460px;
    margin: 1rem auto;
}

.admission-modal .modal-dialog {
    max-width: 980px;
    margin: 1rem auto;
}

.login-modal .modal-content,
.admission-modal .modal-content {
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-modal-header,
.admission-modal-header {
    position: relative;
    padding: 1.4rem 1.4rem 1rem;
    background: linear-gradient(135deg, #2d3250 0%, #5b6cff 100%);
    color: #fff;
    flex-shrink: 0;
}

.login-modal-body,
.admission-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.4rem;
    background: #ffffff;
}

    .login-modal-body::-webkit-scrollbar,
    .admission-modal-body::-webkit-scrollbar {
        width: 8px;
    }

    .login-modal-body::-webkit-scrollbar-thumb,
    .admission-modal-body::-webkit-scrollbar-thumb {
        background: rgba(91,108,255,.28);
        border-radius: 999px;
    }

    .login-modal-body::-webkit-scrollbar-track,
    .admission-modal-body::-webkit-scrollbar-track {
        background: rgba(15,23,42,.05);
        border-radius: 999px;
    }

.login-modal-header {
    text-align: center;
}

    .login-modal-header::before,
    .admission-modal-header::before {
        content: "";
        position: absolute;
        width: 170px;
        height: 170px;
        top: -55px;
        right: -45px;
        border-radius: 50%;
        background: rgba(255,255,255,.10);
    }

    .login-modal-header::after,
    .admission-modal-header::after {
        content: "";
        position: absolute;
        width: 130px;
        height: 130px;
        bottom: -45px;
        left: -35px;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
    }

.login-brand-icon {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 68px;
    margin: 0 auto .85rem;
    border-radius: 1.2rem;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 26px rgba(0,0,0,.10);
}

.login-modal-title,
.admission-modal-title {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
}

.login-modal-subtitle,
.admission-modal-subtitle {
    position: relative;
    z-index: 1;
    margin: .45rem 0 0;
    color: rgba(255,255,255,.88);
    font-size: .95rem;
}

.login-modal .btn-close,
.admission-modal .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    filter: invert(1) grayscale(100%);
    opacity: .95;
}

    .login-modal .btn-close:hover,
    .admission-modal .btn-close:hover {
        opacity: 1;
    }

.admission-modal-title-wrap {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-right: 2rem;
}

.admission-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: .45rem .9rem;
    margin-bottom: .8rem;
    font-size: .92rem;
}

.login-modal .form-floating > .form-control,
.login-modal .form-floating > .form-select,
.admission-modal .form-floating > .form-control,
.admission-modal .form-floating > .form-select {
    min-height: 56px;
    height: 56px;
    border-radius: 1rem;
    border: 1px solid rgba(15,23,42,.12);
    box-shadow: none !important;
    background: #fff;
}

    .login-modal .form-floating > .form-control:focus,
    .login-modal .form-floating > .form-select:focus,
    .admission-modal .form-floating > .form-control:focus,
    .admission-modal .form-floating > .form-select:focus {
        border-color: rgba(91,108,255,.55);
        box-shadow: 0 0 0 4px rgba(91,108,255,.10) !important;
    }

.login-modal .form-floating > label,
.admission-modal .form-floating > label {
    color: var(--text-muted);
    font-weight: 600;
}

.login-modal .form-floating > .form-select,
.admission-modal .form-floating > .form-select {
    padding-top: 1.625rem;
    padding-bottom: .625rem;
}

.login-input-group {
    position: relative;
}

.login-input {
    padding-right: 3.2rem;
    font-size: 1rem;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: .7rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    z-index: 5;
}

    .password-toggle-btn:hover {
        background: rgba(91,108,255,.08);
        color: var(--primary-color);
    }

.login-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.login-modal .form-check-label {
    color: var(--text-muted);
    font-weight: 600;
}

.login-modal .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.login-status-box {
    min-height: 22px;
    text-align: center;
    font-weight: 600;
    margin-bottom: .9rem;
    color: var(--primary-color);
}

.login-submit-btn,
.admission-submit-btn {
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #5b6cff 0%, #2d3250 100%);
    box-shadow: 0 12px 26px rgba(91,108,255,.22);
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

    .login-submit-btn:hover,
    .admission-submit-btn:hover {
        color: #fff;
        transform: translateY(-1px);
        opacity: .97;
        box-shadow: 0 16px 30px rgba(91,108,255,.24);
    }

    .login-submit-btn:active,
    .admission-submit-btn:active {
        transform: translateY(0);
    }

.login-footer-note,
.admission-footer-note {
    text-align: start;
    margin-top: 1rem;
    font-size: .9rem;
    color: var(--text-muted);
}

.admission-section-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 1.15rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(15,23,42,.04);
}

.admission-section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: .9rem;
    font-size: 1rem;
}

    .admission-section-title i {
        color: var(--primary-color);
    }

.admission-modal .text-danger,
.login-modal .text-danger {
    font-size: .88rem;
}

.captcha-box {
    border: 1px dashed rgba(91,108,255,.35);
    background: rgba(91,108,255,.06);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .captcha-box img {
        max-width: 100%;
        border-radius: .75rem;
        display: block;
    }

@media (min-width: 768px) {
    .skeleton-card-grid.two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skeleton-card-grid.four-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .top-first-row {
        flex-wrap: nowrap;
    }

        .top-first-row .carousel-col {
            width: 65%;
        }

        .top-first-row .notice-col {
            width: 35%;
        }

    .message-row {
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .message-col {
        width: 50%;
        flex: 0 0 50%;
    }

    .message-row .message-col:only-child {
        width: 100%;
        flex: 0 0 100%;
    }

    .result-social-row.two-items {
        flex-wrap: nowrap;
        align-items: stretch;
    }

        .result-social-row.two-items .social-col {
            flex: 0 0 40%;
            max-width: 40%;
        }

        .result-social-row.two-items .result-col {
            flex: 0 0 60%;
            max-width: 60%;
        }

    .result-social-row.one-item .result-social-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .home-shell {
        padding-top: .75rem;
    }

    .login-modal-header,
    .admission-modal-header {
        padding: 1.2rem 1rem .9rem;
    }

    .login-brand-icon {
        width: 60px;
        height: 60px;
        font-size: 1.45rem;
        border-radius: 1rem;
    }

    .login-modal-title,
    .admission-modal-title {
        font-size: 1.25rem;
    }

    .login-modal-body,
    .admission-modal-body {
        padding: 1rem;
    }

    .admission-section-card {
        padding: .9rem;
    }

    .skeleton-carousel {
        min-height: 260px;
    }

        .skeleton-carousel .skeleton-block {
            height: 220px;
        }
}