/* GIEST HOMEPAGE STYLES
File: homepage.css
*/

/*CSS cho section 1*/
.giest-hero-slider-container {
position: relative;
width: 100%;
height: 75vh;
min-height: 450px;
overflow: hidden;
background-color: #000;
touch-action: pan-y;
}

.giest-hero-slide-item {
position: absolute;
inset: 0;
opacity: 0;
visibility: hidden;
transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}

.giest-hero-slide-item.active {
opacity: 1;
visibility: visible;
z-index: 2;
}

.giest-hero-bg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
opacity: 0.7;
transform: scale(1.1);
transition: transform 8s linear;
z-index: -1;
}

.giest-hero-slide-item.active .giest-hero-bg {
transform: scale(1);
}

.giest-hero-bg::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.giest-hero-content {
max-width: 1000px;
width: 90%;
color: #ffffff;
text-align: center;
opacity: 0;
transform: translateY(30px);
transition: all 0.8s 0.4s ease-out;
}

.giest-hero-slide-item.active .giest-hero-content {
opacity: 1;
transform: translateY(0);
}

.giest-hero-content h2 {
font-size: clamp(22px, 4.5vw, 48px);
font-weight: 700;
text-transform: uppercase;
margin-bottom: 15px;
line-height: 1.2;
letter-spacing: 1px;
}

.giest-hero-content p {
font-size: clamp(14px, 1.8vw, 17px);
font-weight: 300;
margin-bottom: 25px;
line-height: 1.6;
opacity: 0.9;
}

.giest-hero-btn-group {
display: flex;
gap: 15px;
justify-content: center;
flex-wrap: wrap;
}

.giest-hero-btn {
display: inline-block;
padding: 12px 30px;
border: 2px solid #ffffff;
color: #ffffff;
text-decoration: none;
font-weight: 600;
border-radius: 4px;
text-transform: uppercase;
transition: all 0.3s;
font-size: 14px;
cursor: pointer;
background: transparent;
}

.giest-hero-btn:hover {
background-color: #ffffff;
color: #1e3a8a;
}

.giest-hero-btn-ai {
background-color: #3b82f6;
border-color: #3b82f6;
}

.giest-hero-btn-ai:hover {
background-color: #2563eb;
border-color: #2563eb;
color: white;
transform: scale(1.05);
}

.giest-hero-dots {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 12px;
z-index: 10;
}

.giest-hero-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.3);
cursor: pointer;
transition: all 0.3s;
}

.giest-hero-dot.active {
background-color: #ffffff;
transform: scale(1.3);
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* AI Modal Styling */
.giest-ai-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.8);
z-index: 2000;
display: none;
align-items: center;
justify-content: center;
backdrop-filter: blur(5px);
}

.giest-ai-modal {
background: #fff;
width: 90%;
max-width: 500px;
border-radius: 12px;
padding: 30px;
position: relative;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.giest-ai-modal h3 {
color: #1e3a8a;
margin-bottom: 15px;
font-size: 20px;
}

.giest-ai-input {
width: 100%;
padding: 12px;
border: 1px solid #ddd;
border-radius: 6px;
margin-bottom: 15px;
font-size: 14px;
min-height: 100px;
resize: vertical;
}

.giest-ai-response {
max-height: 250px;
overflow-y: auto;
padding: 15px;
background: #f8fafc;
border-radius: 6px;
font-size: 14px;
line-height: 1.6;
display: none;
margin-bottom: 15px;
border-left: 4px solid #3b82f6;
}

.giest-ai-close {
position: absolute;
top: 15px;
right: 15px;
cursor: pointer;
font-size: 20px;
color: #999;
}

.giest-ai-loading {
display: none;
text-align: center;
margin-bottom: 15px;
color: #3b82f6;
font-weight: 600;
}

@media (max-width: 768px) {
.giest-hero-slider-container { height: 60vh; }
.giest-hero-content h2 { margin-bottom: 10px; }
.giest-hero-content p {overflow: hidden; }
}

/* CSS cho section 2 */
/* Biến màu sắc và cấu hình chung */
:root {
    --vnuk-v1-primary-blue: #1a3a72;
    --vnuk-v1-accent-red: #a30b2e;
    --vnuk-v1-text-gray: #444;
    --vnuk-v1-white: #ffffff;
}

.vnuk-v1-banner-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #f8faff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.vnuk-v1-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 20px;
    position: relative;
    /* Ảnh nền tháp đồng hồ mờ bên trái */
    background-image: linear-gradient(to right, rgba(255,255,255,0.92), rgba(255,255,255,0.8)), 
                      url('https://images.unsplash.com/photo-1529655683826-aba9b3e77383?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: 35% auto;
    background-repeat: no-repeat;
    background-position: left center;
}

/* Khối Nội Dung Bên Trái */
.vnuk-v1-section-left {
    flex: 1.3;
    text-align: left;
    padding-left: 40px;
    padding-right: 20px;
}

.vnuk-v1-intro-text {
    font-size: 26px;
    color: var(--vnuk-v1-primary-blue);
    margin-bottom: 20px;
    font-weight: 400;
}

.vnuk-v1-major-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vnuk-v1-major-item {
    font-weight: 800;
    font-size: 18px;
    color: var(--vnuk-v1-primary-blue);
    line-height: 1.5;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Khối Trung Tâm (Logo VNUK) */
.vnuk-v1-section-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-left: 2px solid #d1d1d1;
    padding: 0 40px;
}

.vnuk-v1-brand-logo {
    font-size: 65px;
    font-weight: 900;
    color: var(--vnuk-v1-accent-red);
    line-height: 1;
    margin-bottom: 15px;
    letter-spacing: -3px;
}

.vnuk-v1-sub-majors {
    text-align: center;
}

.vnuk-v1-sub-item {
    font-weight: 700;
    font-size: 17px;
    color: var(--vnuk-v1-primary-blue);
    text-transform: uppercase;
    margin: 6px 0;
}

/* Khối Ảnh Bên Phải */
.vnuk-v1-section-right {
    flex: 1.8;
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 20px;
}

.vnuk-v1-student-img {
    width: 100%;
    height: 90%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Responsive cho Mobile */
@media (max-width: 992px) {
    .vnuk-v1-banner-container {
        flex-direction: column;
        text-align: center;
        background-size: cover;
        padding-bottom: 30px;
    }

    .vnuk-v1-section-left, 
    .vnuk-v1-section-center {
        text-align: center;
        padding: 20px;
        border-left: none;
        flex: none;
        width: 100%;
    }

    .vnuk-v1-section-center {
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        margin: 20px 0;
    }

    .vnuk-v1-brand-logo {
        font-size: 65px;
    }

    .vnuk-v1-section-right {
        width: 100%;
        height: 280px;
        margin-top: 10px;
        padding-left: 0;
    }
}

/* CSS cho section 3 */
/* Biến màu sắc và cấu hình chung cho Section */
:root {
    --lm-red: #d32f2f;
    --lm-bg: #ffffff;
    --lm-gray-light: #f4f7f6;
    --lm-text: #2d3436;
    --lm-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.lm-ecosys-wrap {
    padding: 60px 20px;
    background: linear-gradient(to right, #ffffff, #f9f9f9);
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.lm-ecosys-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Cấu trúc cột */
.lm-ecosys-col {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lm-ecosys-center {
    flex: 0 0 33.33%;
    position: relative;
    padding: 0 20px;
}

.lm-ecosys-img {
    width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
    transform: scale(1.15);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

.lm-ecosys-badge {
    position: absolute;
    top: 15%;
    right: 15%;
    background: var(--lm-red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lm-float 3s infinite ease-in-out;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Style cho các Card Accordion */
.lm-ecosys-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    box-shadow: var(--lm-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.lm-ecosys-card:hover {
    border-color: #ddd;
    transform: translateX(5px);
}

.lm-ecosys-card.lm-active {
    border-color: var(--lm-red);
    background: #fffafa;
}

.lm-ecosys-featured {
    border: 2px solid var(--lm-red);
}

.lm-ecosys-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lm-ecosys-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    background: #fff2f2;
    color: var(--lm-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s;
}

.lm-active .lm-ecosys-icon {
    background: var(--lm-red);
    color: white;
}

.lm-ecosys-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--lm-text);
    flex: 1;
}

.lm-ecosys-arrow {
    font-size: 0.8rem;
    color: #bbb;
    transition: 0.4s;
}

.lm-active .lm-ecosys-arrow {
    transform: rotate(180deg);
    color: var(--lm-red);
}

.lm-ecosys-body {
    display: none;
    padding: 0 20px 20px 77px;
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.6;
}

/* Hiệu ứng */
@keyframes lm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 1024px) {
    .lm-ecosys-center { flex: 0 0 100%; order: -1; margin-bottom: 40px; }
    .lm-ecosys-img { max-width: 400px; margin: 0 auto; transform: scale(1); }
    .lm-ecosys-col { flex: 0 0 48%; }
}

@media (max-width: 768px) {
    .lm-ecosys-col { flex: 0 0 100%; }
    .lm-ecosys-card:hover { transform: none; }
    .lm-ecosys-body { padding-left: 20px; }
}

/* Section 4 */
#ielts-conquer-section {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    padding: 60px 20px;
    color: #333;
    overflow: hidden;
}

.ielts-conquer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Phần Tiêu đề */
.ielts-conquer-heading {
    text-align: center;
    color: #d12027; /* Màu đỏ đô giống thiết kế */
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 50px;
    text-transform: uppercase;
}

/* Bố cục nội dung 2 cột */
.ielts-conquer-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Cột bên trái: Danh sách */
.ielts-conquer-content {
    flex: 1;
    min-width: 300px;
}

.ielts-conquer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ielts-conquer-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.ielts-conquer-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    font-size: 24px;
    margin-right: 20px;
}

.ielts-conquer-text {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    padding-top: 5px; /* Căn chỉnh text với icon */
}

/* Cột bên phải: Hình ảnh */
.ielts-conquer-image-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.ielts-conquer-img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

/* --- CSS Hiệu ứng chuyển động (Animation) --- */
.ielts-conquer-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.ielts-conquer-anim.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tạo độ trễ (delay) cho từng dòng để xuất hiện lần lượt */
.ielts-conquer-delay-1 { transition-delay: 0.1s; }
.ielts-conquer-delay-2 { transition-delay: 0.3s; }
.ielts-conquer-delay-3 { transition-delay: 0.5s; }
.ielts-conquer-delay-4 { transition-delay: 0.7s; }

/* --- Reponsive cho Điện thoại và Tablet --- */
@media (max-width: 991px) {
    .ielts-conquer-heading {
        font-size: 26px;
        margin-bottom: 40px;
    }
    .ielts-conquer-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    #ielts-conquer-section {
        padding: 40px 15px;
    }
    .ielts-conquer-heading {
        font-size: 22px;
    }
    .ielts-conquer-wrapper {
        flex-direction: column-reverse; /* Đưa ảnh lên trên text ở mobile */
        text-align: center;
    }
    .ielts-conquer-item {
        text-align: left; /* Giữ chữ căn trái dù parent căn giữa */
    }
}