/* Sidebar Quick Links - tpp2.mn */

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

/* Slider styling */
.slider-image {
    object-fit: cover;
}

.slider-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
}

.slider-title {
    font-size: 22px;
    line-height: 1.5;
    display: inline-block;
    padding: 16px 26px; /* Golden ratio: 16 * 1.618 ≈ 26 */
}

/* Swiper Navigation - Glassmorphism */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all 0.3s ease;
}

.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
}

.mySwiper .swiper-button-next:hover,
.mySwiper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Swiper Pagination - Glassmorphism */
.mySwiper .swiper-pagination {
    bottom: 20px;
}

.mySwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.mySwiper .swiper-pagination-bullet-active {
    background: rgba(255, 242, 0, 0.8);
    border-color: rgba(255, 242, 0, 0.9);
    width: 32px;
    border-radius: 6px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    background: #f0f0ff;
    border-left: 4px solid #00026f;
    border-radius: 8px;
    padding: 12px 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-link-item:hover {
    background: #e8e8ff;
    border-left-width: 6px;
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quick-link-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quick-link-icon i {
    font-size: 28px;
    color: #00026f;
}

.quick-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-link-divider {
    width: 1px;
    background: linear-gradient(to bottom, rgba(0, 2, 111, 0.2) 0%, rgba(0, 2, 111, 1) 50%, rgba(0, 2, 111, 0.2) 100%);
    height: 45px;
    margin: 0 12px;
    flex-shrink: 0;
}

.quick-link-text {
    flex: 1;
    font-size: 11px;
    font-weight: bold;
    color: #00026f;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: left;
}

/* Why Choose Us - Feature Cards */
.why-choose-us {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 2, 111, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(0, 2, 111, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.feature-card.featured {
    background: linear-gradient(135deg, rgba(0, 2, 111, 0.9) 0%, rgba(34, 36, 139, 0.9) 100%);
    border-color: rgba(255, 242, 0, 0.3);
}

.feature-card.featured .feature-icon {
    color: #fff200;
}

.feature-card.featured .feature-title {
    color: #ffffff;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-icon svg,
.feature-icon img {
    max-width: 60px;
    max-height: 60px;
    transition: all 0.3s ease;
}

.feature-icon svg {
    color: #00026f;
}

.feature-card.featured .feature-icon svg {
    color: #fff200;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: #00026f;
    margin: 0;
    line-height: 1.4;
}

/* Welcome Section - Director Message */
.welcome-section {
    background: #FFF;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #00026f;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #00026f 0%, #fff200 100%);
}

.director-message {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 2, 111, 0.08);
}

.message-content {
    display: flow-root;
}

.director-image {
    width: 280px;
    float: left;
    margin: 0 20px 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.message-text {
    text-align: justify;
    line-height: 1.8;
    color: #333;
}

.message-text p {
    margin-bottom: 1rem;
}

/* Info Cards */
.info-cards-wrapper {
    height: 100%;
}

.info-card {
    background: linear-gradient(135deg, rgba(240, 241, 245, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 2, 111, 0.08);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 241, 245, 0.5) 100%);
    box-shadow: 0 12px 32px rgba(0, 2, 111, 0.15);
    transform: translateY(-8px);
}

.info-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    align-self: flex-start;
    border-radius: 50%;
    background: #fff;
    border: 0.5px solid rgba(162, 163, 229, 0.1);
}

.info-icon img {
    max-width: 60px;
    max-height: 60px;
}

.info-card:hover .info-icon {
    transform: scale(1.05);
}

.info-title {
    font-size: 15px;
    font-weight: 600;
    color: #00026f;
    margin: 0;
    line-height: 1.4;
}

/* Counter Card Styles */
.counter-description {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.counter-number {
    font-size: 32px;
    font-weight: 700;
    color: #00026f;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
    display: inline-block;
}

/* Feature Swiper Simple Cards */
.featureSwiper {
    padding: 20px 0 50px;
    position: relative;
}

.feature-card-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.feature-icon-simple {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon-simple img {
    max-width: 80px;
    max-height: 80px;
}

.feature-title-simple {
    font-size: 16px;
    font-weight: 600;
    color: #00026f;
    margin: 0;
    line-height: 1.4;
}

/* Feature Swiper Navigation */
.featureSwiper .feature-next,
.featureSwiper .feature-prev {
    width: 35px;
    height: 35px;
    background: rgba(0, 2, 111, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.featureSwiper .feature-next::after,
.featureSwiper .feature-prev::after {
    font-size: 16px;
    font-weight: 400;
    color: #00026f;
}

.featureSwiper .feature-next:hover,
.featureSwiper .feature-prev:hover {
    background: rgba(0, 2, 111, 0.15);
}

/* Feature Swiper Pagination */
.featureSwiper .feature-pagination {
    bottom: 10px;
}

.featureSwiper .feature-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(0, 2, 111, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}

.featureSwiper .feature-pagination .swiper-pagination-bullet-active {
    background: #00026f;
    width: 24px;
    border-radius: 4px;
}

/* News Grid Section */
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    min-height: 2.8em; /* 2 lines * 1.4 line-height */
}

/* Magazine Section Styling */
.magazine-page {
    display: flex;
    flex-wrap: wrap;
}

.magazine-page > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.magazine-section {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 2, 111, 0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-header {
    background: linear-gradient(135deg, #00026f 0%, #22248b 100%);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    font-size: 20px;
    color: #fff200;
}

.section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 15px;
    flex: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    display: block;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 2, 111, 0.2);
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Statistics Table */
.stats-table {
    padding: 20px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 2, 111, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.stat-label i {
    font-size: 18px;
    color: #00026f;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #00026f;
    font-family: 'Roboto', sans-serif;
}

/* News List Styling */
.news-list {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item-modern {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 2, 111, 0.1);
    padding-bottom: 15px;
    flex-shrink: 0;
}

.news-item-modern:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.news-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.news-link:hover {
    transform: translateX(3px);
}

.news-link:hover .news-title {
    color: #00026f;
}

.news-image {
    width: 90px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.news-link:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.news-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-more {
    margin-top: auto;
    padding-top: 15px;
    text-align: right;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #00026f 0%, #22248b 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 2, 111, 0.2);
}

.btn-more:hover {
    background: linear-gradient(135deg, #22248b 0%, #00026f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 2, 111, 0.3);
    color: #ffffff;
}

.btn-more i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.btn-more:hover i {
    transform: translateX(3px);
}

/* Partners Section */
.partners-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 0;
    margin-top: 60px;
}

.partners-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.partners-header i {
    font-size: 32px;
    color: #00026f;
}

.partners-header h4 {
    margin: 0;
    font-weight: 700;
    color: #00026f;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partnersSwiper {
    padding: 20px 0;
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 2, 111, 0.08);
    transition: all 0.3s ease;
    height: 120px;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 2, 111, 0.15);
}

.partner-item img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}
/* Footer Styling */
footer#footer {
    position: relative;
    background: #1E398D;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://tpp2.mn/storage/zurag/November2020/4k4x5oAjFkXHz6cRS6iO.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) blur(3px);
    opacity: 0.15;
    z-index: 0;
}

.footer {
    position: relative;
    z-index: 1;
}

.footer-column {
    margin-bottom: 30px;
}

.footer-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #00d4ff;
}

.footer-heading i {
    font-size: 22px;
    color: #00d4ff;
}

.footer-heading h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.8;
}

.contact-item i {
    color: #00d4ff;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
    width: 20px;
}

/* Footer Social Grid */
.footer-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 15px;
}

.social-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-grid-item:hover {
    color: #00d4ff;
    transform: translateX(3px);
}

.social-grid-item i {
    font-size: 20px;
    color: #00d4ff;
    width: 22px;
    text-align: center;
}

/* Footer Stats */
.footer-stats {
    margin-top: 10px;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 15px;
    padding: 8px 0;
    line-height: 1.6;
}

.footer-stat-item i {
    color: #00d4ff;
    font-size: 18px;
    width: 22px;
}

.footer-stat-item span {
    color: #ffffff;
}

.footer-stat-item strong {
    color: #00d4ff;
    font-weight: 700;
    font-size: 16px;
}

/* Copyright */
.copyright {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.copyright-text {
    text-align: center;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.copyright-text i {
    margin-right: 5px;
    color: #00d4ff;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar-quick-links {
        margin-top: 20px;
    }

    .director-image {
        width: 100%;
        float: none;
        margin: 0 0 20px 0;
    }

    .info-cards-wrapper {
        margin-top: 20px;
    }

    .magazine-section {
        margin-bottom: 20px;
    }

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

@media (max-width: 575px) {
    .quick-link-item {
        padding: 15px 10px;
    }

    .quick-link-icon {
        width: 45px;
        height: 45px;
    }

    .quick-link-icon i {
        font-size: 28px;
    }

    .quick-link-divider {
        height: 45px;
        margin: 0 10px;
    }

    .quick-link-text {
        font-size: 11px;
    }
}
