/* ---------------------------------------------------------------------------
   0. TOÀN TRANG & NỀN TRANG WEB (BACKGROUND ARTWORK INTEGRATION)
   --------------------------------------------------------------------------- */
html, body {
    margin: 0;
    padding: 0;
    background-color: #bce3fd;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-image: url('../images/EPlus (3).png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
}

section, .container-fluid, .wrapper {
    height: auto !important;
    min-height: unset !important;
}

/* ---------------------------------------------------------------------------
   1. THANH ĐIỀU HƯỚNG DẠNG VIÊN THUỐC (PILL NAVBAR)
   --------------------------------------------------------------------------- */
.navbar-floating-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    pointer-events: none;
}

.pill-navbar {
    pointer-events: auto;
    background-color: rgba(100, 115, 124, 0.9);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    border-radius: 50px;
    gap: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.pill-navbar .nav-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pill-navbar .nav-item:hover {
    color: #c9e4ff;
}

.pill-navbar .nav-logo-center {
    display: flex;
    align-items: center;
}

.pill-navbar .nav-logo-center img {
    height: 34px;
    width: auto;
    object-fit: contain;
}

/* Responsive Navbar */
@media (max-width: 767.98px) {
    .navbar-floating-wrapper {
        top: 12px;
        padding: 0 10px;
    }
    .pill-navbar {
        padding: 9px 22px;
        gap: 18px;
        max-width: 95vw;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .pill-navbar::-webkit-scrollbar {
        display: none;
    }
    .pill-navbar .nav-item {
        font-size: 15px;
    }
    .pill-navbar .nav-logo-center img {
        height: 28px;
    }
}

@media (max-width: 420px) {
    .pill-navbar {
        padding: 7px 16px;
        gap: 13px;
    }
    .pill-navbar .nav-item {
        font-size: 14px;
    }
    .pill-navbar .nav-logo-center img {
        height: 26px;
    }
}

/* ---------------------------------------------------------------------------
   2. HERO SECTION & OVERLAY (Nút Đăng ký & Đếm ngược đặt HOÀN TOÀN TRONG VÙNG TRỜI XANH TRỐNG DƯỚI DÒNG CHỮ Are you ready to CARDINAL ?)
   --------------------------------------------------------------------------- */
.hero-section {
    width: 100%;
    position: relative;
    padding-top: 96vw; /* Đẩy Nút Đăng ký & Đếm ngược xuống vùng trời xanh rộng trống hoàn toàn bên dưới tiêu đề chữ nghệ thuật */
    padding-bottom: 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-action-container {
    text-align: center;
}

.btn-apply {
    background: linear-gradient(135deg, #1146a5, #2575fc);
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px !important;
    padding: 18px 60px !important;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(17, 70, 165, 0.45) !important;
    max-width: 90vw;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-apply:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #185adb, #3b82f6);
    box-shadow: 0 12px 30px rgba(17, 70, 165, 0.6) !important;
}

/* Countdown Timer */
.countdown-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
    max-width: 100%;
}

.time-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 8px 12px;
    min-width: 65px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(17, 70, 165, 0.15);
}

.time-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #1146a5;
    line-height: 1.2;
}

.time-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #555555;
    text-transform: uppercase;
    margin-top: 2px;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 95vw; /* Trên Mobile, đặt nút Đăng ký & Đếm ngược hoàn toàn dưới câu Are you ready to CARDINAL ? */
        padding-bottom: 2vw;
    }
    .btn-apply {
        padding: 13px 32px !important;
        font-size: 17px !important;
        max-width: 88vw;
    }
    .countdown-wrapper {
        gap: 8px;
        margin-top: 10px;
    }
    .time-card {
        padding: 6px 10px;
        min-width: 52px;
        border-radius: 10px;
    }
    .time-num {
        font-size: 17px;
    }
    .time-label {
        font-size: 9px;
    }
}

@media (max-width: 420px) {
    .hero-section {
        padding-top: 94vw;
    }
    .btn-apply {
        padding: 11px 24px !important;
        font-size: 15px !important;
        max-width: 85vw;
    }
    .countdown-wrapper {
        gap: 5px;
        margin-top: 6px;
    }
    .time-card {
        padding: 4px 6px;
        min-width: 44px;
        border-radius: 8px;
    }
    .time-num {
        font-size: 14px;
    }
    .time-label {
        font-size: 8px;
    }
}

/* ---------------------------------------------------------------------------
   3. PHẦN GIỚI THIỆU (ABOUT / CARDINAL SECTION)
   Nằm nối tiếp ngay sau Nút Đăng ký và Đồng hồ đếm ngược
   --------------------------------------------------------------------------- */
.about-section {
    position: relative;
    z-index: 5;
    margin-top: 6vw;
    padding-top: 2vw;
    padding-bottom: 5vw;
}

.about-image-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(17, 70, 165, 0.15);
    display: inline-block;
    max-width: 420px;
    width: 100%;
    transition: transform 0.3s ease;
}

.about-image-card:hover {
    transform: translateY(-5px);
}

.about-image-card img {
    border-radius: 16px;
    width: 100%;
    height: auto;
}

.about-content-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(17, 70, 165, 0.12);
    color: #2b3e50;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
    text-align: justify;
}

.about-content-box strong {
    color: #1146a5;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .about-section {
        margin-top: 8vw;
        padding-top: 2vw;
        padding-bottom: 6vw;
    }
    .about-content-box {
        padding: 20px !important;
        font-size: 14px;
        line-height: 1.6;
        border-radius: 18px;
    }
    .about-image-card {
        max-width: 320px;
        border-radius: 18px;
        padding: 8px;
    }
    .about-image-card img {
        border-radius: 12px;
    }
}

/* ---------------------------------------------------------------------------
   4. PHẦN GIỚI THIỆU VỀ EPLUS SECTION
   --------------------------------------------------------------------------- */
.intro-eplus-section {
    position: relative;
    z-index: 5;
    padding-top: 4vw;
    padding-bottom: 5vw;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: #1146a5;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.6);
}

.intro-text-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(17, 70, 165, 0.1);
    color: #2b3e50;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
    text-align: justify;
}

.intro-text-box p {
    margin-bottom: 12px;
}

.intro-text-box strong {
    color: #1146a5;
    font-weight: 700;
}

.intro-image-card img, .intro-logo-card img {
    border-radius: 16px;
}

.intro-image-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(17, 70, 165, 0.1);
}

.intro-logo-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(17, 70, 165, 0.1);
}

@media (max-width: 767.98px) {
    .intro-eplus-section {
        padding-top: 5vw;
        padding-bottom: 6vw;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .intro-text-box {
        font-size: 14px;
        line-height: 1.6;
        padding: 16px;
        border-radius: 16px;
    }
    .intro-logo-card {
        padding: 16px !important;
        border-radius: 18px;
    }
}

/* ---------------------------------------------------------------------------
   5. PHẦN CƠ CẤU TỔ CHỨC (ORGANIZATIONAL STRUCTURE)
   --------------------------------------------------------------------------- */
.org-section {
    position: relative;
    z-index: 5;
    padding-top: 4vw;
    padding-bottom: 5vw;
}

.org-badge-pill {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: #1146a5;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(17, 70, 165, 0.15);
}

.org-member-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 15px 35px rgba(17, 70, 165, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.org-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 70, 165, 0.25);
}

.org-member-card img {
    border-radius: 16px;
    width: 100%;
    height: auto;
}

.center-card {
    transform: scale(1.06);
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 1);
    box-shadow: 0 20px 45px rgba(17, 70, 165, 0.25);
}

.center-card:hover {
    transform: scale(1.09) translateY(-5px);
}

@media (max-width: 991.98px) {
    .center-card {
        transform: scale(1);
    }
    .center-card:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 767.98px) {
    .org-section {
        padding-top: 5vw;
        padding-bottom: 6vw;
    }
    .org-badge-pill {
        font-size: 15px;
        padding: 6px 18px !important;
    }
    .org-member-card {
        max-width: 280px;
        margin: 0 auto;
        border-radius: 18px;
        padding: 8px;
    }
    .org-member-card img {
        border-radius: 12px;
    }
}

/* ---------------------------------------------------------------------------
   6. PHẦN CÁC BAN CHUYÊN MÔN (DEPARTMENTS)
   --------------------------------------------------------------------------- */
.departments-section {
    position: relative;
    z-index: 5;
    padding-top: 4vw;
    padding-bottom: 5vw;
}

.dept-nav-wrapper {
    margin-bottom: 25px;
}

.dept-nav-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(17, 70, 165, 0.15) !important;
}

.dept-btn {
    background: transparent;
    border: none;
    color: #1146a5;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 24px;
    border-radius: 50rem;
    transition: all 0.3s ease;
}

.dept-btn:hover, .dept-btn.active {
    background: #1146a5;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 70, 165, 0.3);
}

.dept-panel {
    display: none;
}

.dept-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dept-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(17, 70, 165, 0.1) !important;
    overflow: hidden;
}

.dept-title {
    color: #1146a5;
    font-size: 24px;
}

.dept-text-content p {
    color: #2b3e50;
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

.dept-text-content strong {
    color: #1146a5;
}

.dept-gallery {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(17, 70, 165, 0.1);
}

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

.dept-gallery img:hover {
    transform: scale(1.03);
}

@media (max-width: 991.98px) {
    .dept-gallery {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .departments-section {
        padding-top: 5vw;
        padding-bottom: 6vw;
    }
    .dept-nav-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        padding: 6px !important;
        gap: 6px !important;
        border-radius: 24px !important;
        max-width: 320px;
        margin: 0 auto;
    }
    .dept-btn {
        font-size: 13px;
        padding: 8px 10px;
        width: 100%;
        text-align: center;
        white-space: nowrap;
    }
    .dept-card {
        padding: 20px !important;
        border-radius: 18px;
    }
    .dept-title {
        font-size: 20px;
    }
    .dept-text-content p {
        font-size: 14px;
        line-height: 1.6;
    }
    .dept-gallery {
        height: 210px;
        margin-top: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 420px) {
    .dept-nav-container {
        max-width: 290px;
        padding: 5px !important;
        gap: 5px !important;
    }
    .dept-btn {
        font-size: 12px;
        padding: 7px 6px;
    }
}

/* ---------------------------------------------------------------------------
   7. PHẦN SỰ KIỆN NỔI BẬT (EVENTS SECTION) & MODAL
   --------------------------------------------------------------------------- */
.events-section {
    position: relative;
    z-index: 5;
    padding-top: 4vw;
    padding-bottom: 1vw;
}

.section-main-title {
    color: #1146a5;
    font-size: 32px;
}

.event-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-6px);
}

.event-img-box {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
    height: auto;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(17, 70, 165, 0.12) !important;
    transition: all 0.3s ease;
}

.event-item:hover .event-img-box {
    border-color: #1146a5;
    box-shadow: 0 12px 25px rgba(17, 70, 165, 0.25) !important;
}

.event-caption {
    color: #1146a5;
    font-size: 15px;
    font-weight: 700;
}

.modal-img-container {
    height: 280px;
}

.modal-backdrop {
    background-color: #000 !important;
    opacity: 0.5 !important;
}

.modal {
    z-index: 1055 !important;
}

@media (max-width: 767.98px) {
    .events-section {
        padding-top: 4vw;
        padding-bottom: 1.5vw;
    }
    .section-main-title {
        font-size: 24px;
        margin-bottom: 25px !important;
    }
    .event-img-box {
        max-width: 110px;
    }
    .event-caption {
        font-size: 13px;
    }
    .modal-img-container {
        height: 200px;
    }
}

/* ---------------------------------------------------------------------------
   8. PHẦN TIMELINE (KÈM HIỆU ỨNG SCROLL REVEAL BAY VÀO)
   --------------------------------------------------------------------------- */
.timeline-section {
    position: relative;
    z-index: 5;
    padding-top: 1vw;
    padding-bottom: 0.5vw;
    overflow: hidden;
}

/* Trạng thái ẩn ban đầu khi chưa lướt tới */
.timeline-section .timeline-main-title {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.timeline-section .timeline-col-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-section .timeline-col-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kích hoạt animation khi cuộn tới */
.timeline-section.animate-in .timeline-main-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.timeline-section.animate-in .timeline-col-left {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.timeline-section.animate-in .timeline-col-right {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.5s;
}

.timeline-main-title {
    color: #1146a5 !important;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px !important;
}

.timeline-col-left {
    margin-top: 10px;
}

.timeline-img-left {
    max-width: 340px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(17, 70, 165, 0.15));
}

.timeline-img-right {
    max-width: 560px;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(17, 70, 165, 0.15));
}

@media (max-width: 767.98px) {
    .timeline-section .timeline-col-left {
        transform: translateX(-40px);
    }
    .timeline-section .timeline-col-right {
        transform: translateX(40px);
    }
    .timeline-section {
        padding-top: 1.5vw;
        padding-bottom: 1vw;
    }
    .timeline-main-title {
        font-size: 26px;
    }
    .timeline-col-left {
        margin-top: 0;
    }
    .timeline-img-left {
        max-width: 220px;
        margin-bottom: 15px;
    }
    .timeline-img-right {
        max-width: 100%;
    }
}

/* ---------------------------------------------------------------------------
   9. PHẦN CHỌN BAN / GOOGLE FORM 
   --------------------------------------------------------------------------- */
.choose-dept-section {
    position: relative;
    z-index: 5;
    margin-top: -4vw;
    padding-top: 0vw;
    padding-bottom: 4vw;
}

.choose-title {
    color: #1146a5 !important;
    font-size: 28px;
    margin-bottom: 25px !important;
}

.btn-department {
    background-color: #1146a5 !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 50px !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(17, 70, 165, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-department:hover {
    background-color: #0d3580 !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(17, 70, 165, 0.35);
}

@media (max-width: 767.98px) {
    .choose-dept-section {
        margin-top: -6vw;
        padding-top: 0vw;
        padding-bottom: 5vw;
    }
    .choose-title {
        font-size: 20px;
        margin-bottom: 18px !important;
    }
    .choose-btn-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px !important;
        max-width: 320px;
        margin: 0 auto;
    }
    .btn-department {
        font-size: 14px;
        padding: 10px 12px;
        width: 100%;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .choose-btn-wrapper {
        max-width: 290px;
        gap: 10px !important;
    }
    .btn-department {
        font-size: 13px;
        padding: 9px 8px;
    }
}

/* ---------------------------------------------------------------------------
   10. PHẦN CHÂN TRANG (FOOTER)
   --------------------------------------------------------------------------- */
.footer-section {
    background-color: #0b2c6f;
    color: #ffffff;
    padding: 50px 0 30px 0;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 5;
}

.footer-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.4;
}

.footer-info p {
    font-size: 15px;
    margin-bottom: 10px;
    color: #e0e8ff;
}

.footer-info a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-info a:hover {
    color: #a0c4ff;
}

.footer-logo {
    max-width: 180px;
    width: 100%;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #ffffff;
    color: #0b2c6f;
    border-radius: 50%;
    font-size: 18px;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: #a0c4ff;
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .footer-section {
        padding: 35px 0 25px 0;
    }
    .footer-title {
        font-size: 18px;
    }
    .footer-info p {
        font-size: 13px;
        word-break: break-word;
    }
    .footer-logo {
        max-width: 130px;
    }
}