﻿/* default-home.css — styles extracted from vn/Default.aspx */

/* --- from Default.aspx style block 1 --- */
.grid-item {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            border: 1px solid #ddd;
            padding: 20px;
            min-height: 120px;
            transition: background-color 0.3s ease, color 0.3s ease;
            cursor: pointer;
        }

        .icon {
            color: red;
            margin-right: 8px;
        }

        .highlight, .grid-item:hover {
            background-color: #f8d7da;
            color: #721c24;
        }

        .grid-item a {
            text-decoration: none;
            color: inherit;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-box {
            background: white;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
            margin-top: 50px;
        }

        .btn-search {
            background: linear-gradient(to right, #007bff, #00c853);
            color: white;
            border: none;
        }

            .btn-search:hover {
                background: linear-gradient(to right, #0056b3, #009624);
            }

        .overlay-caption {
            background-color: rgba(0, 0, 0, 0.5); /* nền mờ đen */
            color: white;
            display: inline-block;
            padding: 5px 10px;
            border-radius: 5px;
        }

        .carousel-image-wrapper {
            height: 100%;
            overflow: hidden;
        }

            .carousel-image-wrapper img {
                width: 100%;
                object-fit: cover;
            }

        .carousel-inner {
            position: relative;
            overflow: hidden;
        }

        .carousel-item {
            height: 100%;
        }

            .carousel-item img {
                object-fit: cover;
            }
        /* Caption cố định đáy mỗi ảnh */
        .carousel-caption-custom {
            position: absolute;
            bottom: 15px;
            left: 0;
            right: 0;
            z-index: 10;
            text-align: center;
        }

            .carousel-caption-custom p {
                background-color: rgba(0, 0, 0, 0.6);
                color: white;
                display: inline-block;
                padding: 5px 15px;
                border-radius: 5px;
                margin: 0;
                font-size: 2rem;
                line-height: 40px;
            }

        @media (max-width: 576px) {
            .carousel-caption-custom {
                position: absolute;
                bottom: 0px;
                left: 0;
                right: 0;
                z-index: 10;
                text-align: center;
            }

                .carousel-caption-custom p {
                    background-color: rgba(0, 0, 0, 0.6);
                    color: white;
                    display: inline-block;
                    padding: 5px 15px;
                    border-radius: 5px;
                    margin: 0;
                    font-size: 0.8rem;
                    line-height: 20px;
                }
        }

/* --- from Default.aspx style block 2 --- */
.rts__section--title2 {
            font-size: 2.8rem;
            font-weight: 800;
            color: #2c3e50;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            letter-spacing: -0.5px;
        }
        
        .rts__section--description2 {
            font-size: 1.15rem;
            color: #5a6c7d;
            max-width: 800px;
            margin: 0 auto 3rem;
            line-height: 1.8;
        }
        
        .lecturer-card {
            border: none;
            border-radius: 20px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            height: 100%;
            background: white;
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .lecturer-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }
        
        .lecturer-card:hover::before {
            transform: scaleX(1);
        }
        
        .lecturer-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
        }
        
        .lecturer-card .badge {
            position: absolute;
            top: 15px;
            right: 15px;
            padding: 8px 14px;
            font-size: 0.75rem;
            font-weight: 700;
            border-radius: 20px;
            letter-spacing: 0.5px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.15);
            z-index: 10;
        }
        
        .lecturer-avatar {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin: 30px auto 20px;
            border: 5px solid #fff;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            transition: all 0.3s ease;
        }
        
        .lecturer-card:hover .lecturer-avatar {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 12px 35px rgba(0,0,0,0.2);
        }
        
        .lecturer-card h6 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 8px;
            transition: color 0.3s ease;
        }
        
        .lecturer-card:hover h6 {
            color: #667eea;
        }
        
        .text-primary {
            color: #667eea !important;
        }
        
        .lecturer-skill {
            font-size: 0.9rem;
            color: #718096;
            min-height: 70px;
            margin: 15px 0 20px;
            line-height: 1.6;
            padding: 0 10px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            width: 100%;
            flex: 1 1 auto;
        }
        
        .lecturer-card > .btn-outline-primary {
            margin-top: auto;
            flex-shrink: 0;
        }
        
        .btn-outline-primary {
            border-radius: 25px;
            padding: 8px 25px;
            font-size: 0.9rem;
            font-weight: 600;
            border: 2px solid #667eea;
            color: #667eea;
            transition: all 0.3s ease;
            letter-spacing: 0.3px;
        }
        
        .btn-outline-primary:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-color: #667eea;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        
        .bg-danger {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
            border: none;
        }
        
        .bg-warning {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%) !important;
            border: none;
        }
        
        .bg-secondary {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
            border: none;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .col {
            animation: fadeInUp 0.6s ease-out;
            animation-fill-mode: both;
        }
        
        .col:nth-child(1) { animation-delay: 0.1s; }
        .col:nth-child(2) { animation-delay: 0.2s; }
        .col:nth-child(3) { animation-delay: 0.3s; }
        .col:nth-child(4) { animation-delay: 0.4s; }
        .col:nth-child(5) { animation-delay: 0.5s; }
        .col:nth-child(6) { animation-delay: 0.6s; }
        .col:nth-child(7) { animation-delay: 0.7s; }
        .col:nth-child(8) { animation-delay: 0.8s; }
        .col:nth-child(9) { animation-delay: 0.9s; }
        .col:nth-child(10) { animation-delay: 1s; }
        
        @media (max-width: 768px) {
            .rts__section--title {
                font-size: 2rem;
            }
            
            .rts-section-padding {
                padding: 50px 0;
            }
            
            .lecturer-avatar {
                width: 100px;
                height: 100px;
            }
        }

/* --- from Default.aspx style block 4 --- */
/* ===== SECTION CÔNG KHAI ===== */
.rts-public {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8fbff, #eef3f8);
    overflow: hidden;
}

/* Nền trang trí nhẹ */
.rts-public::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 50%;
    top: -120px;
    right: -120px;
}

/* Khối nội dung */
.rts-public-info {
    background: #fff;
    padding: 60px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

/* Tiêu đề */
.rts-public-info .rts-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0d2c54;
    margin-bottom: 25px;
}

/* Nội dung mô tả */
.rts-public-info p {
    font-size: 16.5px;
    line-height: 1.75;
    color: #555;
    margin: 0 auto 40px;
    max-width: 740px;
}

/* Nút */
.rts-public-btn {
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover nút */
.rts-public-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .rts-public {
        padding: 70px 0;
    }

    .rts-public-info {
        padding: 45px 30px;
    }

    .rts-public-info .rts-section-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .rts-public {
        padding: 50px 0;
    }

    .rts-public-info {
        padding: 35px 20px;
        border-radius: 16px;
    }

    .rts-public-info p {
        font-size: 15.5px;
    }
}

