/* ===== CSS RESET & VARIABLES ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --primary-color: #b30000;
    --secondary-color: #1A2F51;
    --accent-color: #d30007;
    --background-color: #f9f9f9;
    --text-color: #1A2F51;
    --white: #ffffff;
    --light-gray: #f0f0f0;
    --medium-gray: #e0e0e0;
    --dark-gray: #464646;
    --border-color: #ddd;
    /* Shadows */
    --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 5px 15px rgba(0, 0, 0, 0.2);
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.4s ease;
}


/* ===== BASE STYLES ===== */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===== LAYOUT COMPONENTS ===== */


/* Top Bar */

.top-bar {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.top-bar .marquee-content {
    animation: marquee 40s linear infinite;
    display: inline-block;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}


/* Navbar */

.navbar {
    background-color: var(--white);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.contact span {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}


/* Main Content */

main.container {
    padding: 20px;
    max-width: 960px;
    margin: auto;
    min-height: calc(100vh - 200px);
}


/* Footer */

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 10px 0;
}

.footer-content a {
    display: inline-block;
    margin: 15px 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-content a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-content img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.sub-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}


/* ===== TYPOGRAPHY ===== */

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 30px 0 15px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.intro h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.intro h4 {
    font-style: italic;
    margin-bottom: 10px;
    color: var(--dark-gray);
    font-weight: normal;
}

.intro .highlight {
    background: #ffe9e9;
    padding: 12px 15px;
    border-left: 5px solid var(--primary-color);
    margin-top: 15px;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
}

.chapter-summary ul {
    margin-left: 25px;
    margin-top: 15px;
    line-height: 1.8;
}

.chapter-summary li {
    margin-bottom: 8px;
}


/* ===== BUTTON COMPONENTS ===== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 0, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 6px;
    padding: 10px 20px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.practice-btn {
    padding: 14px 24px;
    background-color: var(--accent-color);
    border: none;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 0 15px rgba(224, 79, 79, 0.7);
    animation: blinker 1.5s linear infinite;
    transition: all var(--transition-fast);
}

.practice-btn:hover {
    box-shadow: 0 0 30px rgba(245, 185, 185, 0.8);
    background-color: var(--primary-color);
    transform: translateY(-2px);
    animation: none;
}

.practice-btn a {
    color: var(--white);
    text-decoration: none;
}

@keyframes blinker {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


/* ===== TAB COMPONENTS ===== */

.tab-group {
    margin-top: 30px;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    gap: 12px;
    margin-bottom: 25px;
}

.tab {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    font-size: 16px;
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

.tab:hover {
    background-color: rgba(179, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-panel.active {
    display: block;
}

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


/* ===== CONTENT SECTIONS ===== */

.practice-section,
.practice-class {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: var(--shadow-light);
}

.practice-section h3,
.practice-class h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--medium-gray);
}

.practice-content {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    margin-top: 15px;
}

.practice-content p {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.7;
}

.other-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #fdfdfd;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
}

.other-section h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 25px;
    margin-top: 10px;
    color: var(--primary-color);
    text-align: left;
}

.other-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.other-grid .box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.other-grid .box:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(179, 0, 0, 0.15);
    border-color: var(--primary-color);
}


/* Content spacing inside box */

.other-grid .box-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.other-grid .box-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0;
}

.other-grid .box-meta {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.other-grid .box-description {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.other-grid .box-action {
    margin-top: auto;
    padding-top: 16px;
}

.other-grid .box-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
}

.other-grid .box:hover .box-btn {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 0, 0, 0.3);
}


/* Responsive adjustments */

@media (max-width: 1024px) {
    .other-grid .box {
        padding: 28px 20px;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .other-grid .box {
        padding: 24px 20px;
        gap: 16px;
    }
    .other-grid .box-title {
        font-size: 1.2rem;
    }
    .other-grid .box-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .other-grid .box {
        padding: 20px 16px;
        gap: 14px;
    }
    .other-grid .box-title {
        font-size: 1.1rem;
    }
    .other-grid .box-meta {
        font-size: 0.85rem;
    }
}


/* ===== TABLE STYLES ===== */

.exam-table {
    margin: 20px auto;
    text-align: left;
    padding: 0 16px;
}

.exam-table h3 {
    margin-bottom: 15px;
    color: #2e2c2c;
    font-weight: bold;
    font-size: 1.3rem;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow-light);
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-family: "Segoe UI", sans-serif;
    margin: 0 auto;
    box-shadow: var(--shadow-light);
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background-color: #f8f8f8;
}

th,
td {
    padding: 14px 18px;
    border: 1px solid var(--medium-gray);
    text-align: center;
    vertical-align: middle;
}

th {
    font-weight: bold;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f5f5f5;
}


/* ===== FIXED ACTION BUTTONS ===== */


/* Call Button */

.call-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 24px;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(255, 39, 39, 0.6);
    z-index: 10000;
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: all var(--transition-fast);
}

.call-button:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 39, 39, 0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}


/* Zalo Chat */

.zalo-chat-btn {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 39, 39, 0.6);
    z-index: 9999;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.zalo-chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 39, 39, 0.7);
}

.zalo-chat-btn img {
    width: 24px;
    height: 24px;
}


/* Back to Top */


/* Back-to-top button */

.back-to-top a {
    text-decoration: none;
    color: #1A2F51;
    background-color: #ffffff;
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 100%
}

.back-to-top a:hover {
    background-color: #b30000;
    color: white;
    box-shadow: 0 4px 10px rgba(255, 39, 39, 0.3);
}

@media screen and (max-width: 768px) {
    .back-to-top a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media screen and (max-width: 576px) {
    .back-to-top a {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .back-to-top a {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}


/* ===== PRELOADER ===== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading {
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.loading .logo-img {
    width: 200px;
    height: auto;
    margin-bottom: 25px;
}

.loading p {
    font-size: 18px;
    color: var(--dark-gray);
    font-weight: 500;
    margin-bottom: 25px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #eee;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* ===== NAVIGATION MENU ===== */

.main-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px;
    padding: 16px;
    flex-wrap: wrap;
    border-radius: 16px;
    background-color: var(--light-gray);
    position: relative;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--primary-color);
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    transition: all var(--transition-fast);
}

.main-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border: #ffcbcd 1px solid;
    transform: translateY(-2px);
}


/* Dropdown Styles */

.dropdown .dropdown-toggle {
    position: relative;
    padding-right: 35px;
}

.dropdown .dropdown-toggle i.fa-chevron-down {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-fast);
    font-size: 12px;
}

.dropdown.active .dropdown-toggle i.fa-chevron-down {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid var(--light-gray);
    border-radius: 0;
    font-size: 14px;
    justify-content: flex-start;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
    transform: none;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}


/* Mobile Menu Toggle */

.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px 15px;
    color: var(--primary-color);
    font-size: 16px;
    background: none;
    border: 0.5px solid var(--primary-color);
    border-radius: 10px;
    margin-top: 20px;
}

.menu-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
}


/* Menu Overlay */

.menu-overlay {
    position: fixed;
    top: ;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
}

.menu-overlay.active {
    display: block;
}


/* Menu Close Button */

.menu-close {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #b30000;
    font-size: 30px;
    text-align: center;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    cursor: pointer;
    display: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.menu-close:hover {
    background: #990000;
}


/* Responsive Menu Styles */

@media (max-width: 768px) {
    .main-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100%;
        background: white;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    .main-menu.active {
        left: 0;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        padding: 10px;
        background: #f5f5f5;
        border-radius: 4px;
    }
}


/* ===== GALLERY & MEDIA ===== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.gallery a {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    display: block;
    aspect-ratio: 4/3;
    position: relative;
    transition: all var(--transition-fast);
}

.gallery a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

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

.gallery img:hover {
    transform: scale(1.05);
}

.text-gallery {
    text-align: center;
    color: var(--primary-color);
    margin: 30px auto;
    max-width: 800px;
}

.text-gallery p {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--dark-gray);
    font-style: italic;
    line-height: 1.6;
}


/* ===== CAROUSEL ===== */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 400px;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    width: 100%;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 20;
}

.carousel-btn {
    background: rgba(179, 0, 0, 0.7);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(179, 0, 0, 1);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 15;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}


/* ===== STATS SECTION ===== */

.stats-section {
    background: linear-gradient(135deg, var(--primary-color), #c0392b);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
    margin: 40px 0;
    border-radius: 12px;
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    text-align: center;
}

.stat-box h2 {
    font-size: 42px;
    color: var(--white);
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-box p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    opacity: 0.9;
}


/* ===== PARTNERS SECTION ===== */

.partners-section {
    background: var(--light-gray);
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
}

.partners-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.partners-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
}

.partners-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff9900);
    border-radius: 2px;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 180px;
    margin: 30px 0;
}

.marquee-track {
    position: absolute;
    display: flex;
    animation: marquee 30s linear infinite;
    height: 100%;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-fast);
    padding: 15px;
    flex-shrink: 0;
}

.partner-logo:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--primary-color);
}

.partner-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.1);
}


/* ===== RESPONSIVE DESIGN ===== */


/* Tablet Devices */

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    .main-menu {
        gap: 8px;
    }
    .main-menu a {
        padding: 8px 14px;
        font-size: 15px;
    }
    .stats-container {
        gap: 40px;
    }
    .stat-box h2 {
        font-size: 36px;
    }
}


/* Mobile Devices */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    /* Navigation */
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .menu-toggle {
        display: block;
        margin-left: auto;
    }
    .contact {
        display: none;
    }
    .main-menu {
        flex-direction: column;
        align-items: stretch;
        display: none;
        gap: 0;
        margin: 0;
        border-radius: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-medium);
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        padding: 60px 0 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .main-menu.active {
        display: flex;
        transform: translateX(0);
    }
    .menu-close {
        display: block;
    }
    .main-menu li {
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }
    .main-menu li:last-child {
        border-bottom: none;
    }
    .main-menu a {
        padding: 15px 20px;
        border-radius: 0;
        justify-content: space-between;
    }
    .dropdown-menu {
        position: static;
        display: none;
        background-color: #f9f9f9;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        margin-top: 0;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
    /* Layout Adjustments */
    .tab-list {
        flex-direction: column;
        align-items: stretch;
    }
    .tab {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    .other-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .other-section h3 {
        font-size: 22px;
        text-align: center;
    }
    /* Stats */
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
    .stat-box h2 {
        font-size: 32px;
    }
    /* Fixed Buttons */
    .call-button,
    .zalo-chat-btn {
        bottom: 15px;
        right: 15px;
    }
    .zalo-chat-btn {
        bottom: 85px;
        padding: 10px 15px;
        font-size: 14px;
    }
    .call-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
        line-height: 50px;
    }
    .back-to-top {
        bottom: 15px;
        left: 15px;
    }
    .back-to-top a {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    /* Content */
    .practice-section,
    .practice-class {
        padding: 20px;
    }
    .practice-content {
        padding: 20px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    /* Footer */
    footer {
        padding: 30px 15px;
    }
    .footer-content a {
        margin: 8px 6px;
        padding: 8px 12px;
        font-size: 14px;
    }
}


/* Small Mobile Devices */

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .logo-img {
        height: 50px;
    }
    .intro h1 {
        font-size: 20px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .practice-btn {
        padding: 12px;
        font-size: 15px;
    }
    .tab {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 100px;
    }
    .other-grid .box {
        padding: 20px;
    }
    .stats-section {
        padding: 40px 0;
    }
    .stat-box h2 {
        font-size: 28px;
    }
    .stat-box p {
        font-size: 14px;
    }
    /* Tables */
    th,
    td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .table-wrapper {
        padding: 10px;
    }
    /* Carousel */
    .carousel {
        height: 250px;
    }
    .carousel-caption {
        font-size: 0.9rem;
        padding: 15px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .carousel-indicators {
        bottom: 50px;
    }
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}


/* ===== UTILITY CLASSES ===== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.p-0 {
    padding: 0;
}

.p-1 {
    padding: 10px;
}

.p-2 {
    padding: 20px;
}

.p-3 {
    padding: 30px;
}

.p-4 {
    padding: 40px;
}

.d-flex {
    display: flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.d-inline {
    display: inline;
}

.d-inline-block {
    display: inline-block;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: flex-start;
}

.align-end {
    align-items: flex-end;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}


/* Hide on mobile */

.mobile-hidden {
    display: block;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
}


/* Show only on mobile */

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}


/* ===== PRINT STYLES ===== */

@media print {
    .call-button,
    .zalo-chat-btn,
    .back-to-top,
    .navbar,
    .top-bar,
    footer {
        display: none !important;
    }
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    a {
        color: black;
        text-decoration: underline;
    }
}


/* Guide Button Image */

.guide-button-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.guide-button-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.5);
    animation: blink 2s infinite, rotate-slow 20s linear infinite;
    transition: transform 0.3s ease;
}

.guide-button-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.guide-button-image:hover {
    animation: none;
    transform: scale(1.05);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
    75% {
        opacity: 0.5;
    }
}

@keyframes rotate-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .guide-button-container {
        right: 12px;
    }
    .guide-button-image {
        width: 120px;
        height: 120px;
        animation: blink 1.5s infinite, rotate-slow 15s linear infinite;
    }
}

@media (max-width: 480px) {
    .guide-button-image {
        width: 100px;
        height: 100px;
    }
}


/* Thêm style cho nút điều khiển âm thanh */

.music-controls {
    position: fixed;
    bottom: 160px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.music-toggle {
    width: 50px;
    height: 50px;
    background-color: #b30000;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(224, 71, 71, 0.5);
    transition: all 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
    background-color: #d30007;
}

.music-toggle i {
    font-size: 24px;
}

.playlist-container {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    width: 200px;
    transition: all 0.4s ease;
    transform-origin: top right;
    visibility: hidden;
    transform: translateY(10px);
}

.playlist-container.show {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.playlist-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #b30000;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.song-item {
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.song-item:hover {
    background-color: #f8f8f8;
}

.song-item.active {
    background-color: #ffe9e9;
    color: #b30000;
    font-weight: bold;
}

.song-item i {
    margin-right: 10px;
    font-size: 14px;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #b30000;
    width: 0%;
    transition: width 0.1s linear;
}


/* Animation cho nút nhạc khi đang phát */

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.music-playing {
    animation: pulse 1.5s infinite;
}

.music-controls .fa-music {
    margin-right: 8px;
}

.loading-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(179, 0, 0, 0.3);
    border-top: 2px solid #b30000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Additional styles for giaidap.html */

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.video-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b30000;
    font-size: 48px;
}

.video-info {
    padding: 15px;
    text-align: center;
}

.video-info h3 {
    margin: 0 0 10px;
    color: #1A2F51;
}

.watch-btn {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s;
}

.watch-btn:hover {
    background-color: #d30007;
}


/* Popup */

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.popup-content p {
    margin: 0 0 20px;
    color: #333;
    font-size: 16px;
}

.popup h2 {
    color: #b30000;
    margin-bottom: 20px;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.popup button {
    background: #b30000;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

.popup button:hover {
    background: #d30007;
}

.support-section {
    margin-top: 50px;
    padding: 30px;
    background-color: #fdfdfd;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(66, 66, 66, 0.1);
}

.support-section h2 {
    text-align: center;
    color: #b30000;
    margin-bottom: 20px;
}

.support-section p {
    text-align: center;
    color: #1A2F51;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 20px;
}

.support-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 24px auto;
}

.support-form input,
.support-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.support-form textarea {
    height: 150px;
    resize: vertical;
}

.support-form button {
    background: #b30000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.support-form button:hover {
    background: #d30007;
}


/* Responsive */

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}


/* Video Popup Styles */


/* Video Modal - Wide & Responsive */

.video-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal-content {
    position: relative;
    background: #fff;
    border-radius: 10px;
    max-width: 960px;
    width: 100%;
    padding: 0;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.video-modal-content iframe {
    width: 100%;
    height: 540px;
    padding: 20px;
    /* mặc định trên desktop */
    display: block;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 26px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 32px;
    cursor: pointer;
    z-index: 10;
}

.video-modal-close:hover {
    background: #b30000;
    box-shadow: 0 0 10px rgba(179, 0, 0, 0.5);
    color: #fff;
}


/* Tablet */

@media (max-width: 992px) {
    .video-modal-content iframe {
        height: 400px;
    }
}


/* Mobile */

@media (max-width: 600px) {
    .video-modal-content {
        max-width: 100%;
    }
    .video-modal-content iframe {
        height: 240px;
    }
    .video-modal-close {
        font-size: 22px;
        width: 28px;
        height: 28px;
        line-height: 28px;
    }
}


/* Guide Button Image */

.guide-button-container {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.guide-button-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(179, 0, 0, 0.5);
    animation: blink 2s infinite, rotate-slow 20s linear infinite;
    transition: transform 0.3s ease;
}

.guide-button-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.guide-button-image:hover {
    animation: none;
    transform: scale(1.05);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
    75% {
        opacity: 0.5;
    }
}

@keyframes rotate-slow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .guide-button-container {
        right: 12px;
    }
    .guide-button-image {
        width: 120px;
        height: 120px;
        animation: blink 1.5s infinite, rotate-slow 15s linear infinite;
    }
}

@media (max-width: 480px) {
    .guide-button-image {
        width: 100px;
        height: 100px;
    }
}


/*Page giaidap.html* - Css form bảng*/


/* CSS đã sửa cho bảng */

.table-from {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 1.1rem;
    min-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    background: white;
    overflow: hidden;
}


/* Header bảng */

.table-from thead tr {
    background: linear-gradient(135deg, #c0392b, #b30000);
    color: #ffffff;
    text-align: left;
}

.table-from th,
.table-from td {
    padding: 18px 25px;
    border-bottom: 1px solid #f3f5f8;
}


/* Body bảng */

.table-from tbody tr {
    transition: all 0.2s ease;
}

.table-from tbody tr:nth-of-type(even) {
    background-color: #f9fafc;
}

.table-from tbody tr:hover {
    background-color: #f9fafc;
}

.table-from tbody tr:last-child {
    border-bottom: none;
}

.table-from tbody tr:last-child td {
    border-bottom: none;
}


/* Responsive cho mobile */

@media (max-width: 768px) {
    .table-from {
        min-width: unset;
    }
    .table-from thead {
        display: none;
    }
    .table-from tr {
        display: block;
        margin-bottom: 30px;
        border: 1px solid #eef0f3;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }
    .table-from td {
        display: block;
        text-align: right;
        padding: 15px 15px 15px 50%;
        position: relative;
        border-bottom: 1px solid #eaeef5;
    }
    .table-from td:last-child {
        border-bottom: none;
    }
    .table-from td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-weight: bold;
        color: #b30000;
        width: calc(50% - 15px);
        text-align: left;
        font-size: 1rem;
    }
}


/* Fix cho màn hình nhỏ hơn 480px */

@media (max-width: 480px) {
    .table-from td {
        padding-left: 45%;
    }
    .table-from td::before {
        width: calc(45% - 15px);
    }
}


/* PDF Fullscreen Responsive */


/* PDF Section */

.pdf-header {
    text-align: center;
    padding: 30px 0 20px;
}

.pdf-header h1 {
    font-size: 32px;
    color: #b30000;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.pdf-header p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}


/* PDF Viewer */

.pdf-viewer-container {
    width: 100%;
    background-color: #eeebeb;
    padding: 10px;
    border-radius: 12px;
    border: #e1e3e4 2px solid;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: baseline;
    max-height: 76vh;
}

.pdf-viewer-container canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}


/* Control Buttons */

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}

.control-btn {
    background: #ffffff;
    color: #b30000;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(80, 80, 80, 0.2);
}

.control-btn:hover {
    background: #b30000;
    color: white;
    transform: translateY(-2px);
}

.control-btn:disabled {
    background: #e7e7e7;
    color: #666;
    border: none;
    cursor: not-allowed;
    transform: none;
}

.fullscreen-btn {
    background: var(--secondary-color);
    border-radius: 30px;
    padding: 10px 22px;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.fullscreen-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.page-info {
    font-size: 18px;
    font-weight: 600;
    color: #1A2F51;
    padding: 8px 8px;
    min-width: 90px;
    text-align: center;
}


/* Responsive */

@media (max-width: 1024px) {
    .pdf-header h1 {
        font-size: 24px;
        color: #b30000;
        text-align: center;
    }
    .pdf-header p {
        font-size: 16px;
        max-width: 90%;
        font-weight: 500;
        font-style: italic;
        text-align: left;
    }
    .fullscreen-btn {
        font-size: 14px;
        padding: 8px 18px;
    }
}

.fullscreen-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.fullscreen-controls button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
}

.fullscreen-controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .pdf-viewer-container {
        padding: 10px;
        max-height: 60vh;
    }
    .control-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
    .fullscreen-btn {
        font-size: 14px;
        padding: 6px 14px;
    }
    .page-info {
        font-size: 15px;
        min-width: 80px;
    }
    .fullscreen-controls {
        flex-direction: row !important;
        bottom: 20px;
        top: auto;
        left: 0;
        right: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pdf-controls {
        gap: 8px;
    }
    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 14px;
        gap: 16px;
    }
    .fullscreen-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    .page-info {
        font-size: 14px;
    }
}