/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-red: #D32F2F;
    --gold: #FFD700;
}

html, body {
    overflow-x: hidden; /* Prevents side scrolling */
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

#header-container {
    width: 100%;
    display: block;
}

/* Bootstrap Fix */
.row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* =========================================
   2. HEADER & NAVBAR (UPDATED LOGIC)
   ========================================= */
/* Vertical Divider for Header */
.header-divider {
    width: 1px;
    height: 70px; /* Adjust height to match your logo */
    background-color: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
}

/* Ensure text aligns left cleanly */
.academy-name {
    text-align: left; 
    line-height: 1.2;
}
/* The Wrapper holds the Background Image for ALL pages */
.hero-wrapper {
    /* Main Header Background Image */
    background-image:url('../images/header.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; 
    width: 100%;
    z-index: 1000;
}

/* The Header itself sits inside the wrapper */
.main-header {
    position: relative; /* Changed from absolute to relative so it pushes content down */
    width: 100%;
    z-index: 1000;
}

/* Top Bar (Email/Phone area) */
.top-bar {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 10px 0;
}

.academy-name {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: white !important;
    margin-left: 10px;
    font-size: 1.2rem;
}

.logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 5px rgb(238, 236, 236));
}

/* --- Navigation Links (Static Header) --- */
.navbar-custom .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    text-transform: uppercase;
    padding: 10px 20px !important;
    transition: 0.3s;
    position: relative; /* For the red underline animation */
}

/* Hover & Active States */
.navbar-custom .nav-link:hover, 
.navbar-custom .nav-link.active {
    color: var(--primary-red) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Mobile Menu Toggler */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================
   3. STICKY SCROLL NAVBAR
   ========================================= */
.scroll-navbar {
    background-color: white;
    transform: translateY(-100%); /* Hidden initially */
    transition: transform 0.4s ease-in-out;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 2000;
}

/* When visible */
.scroll-navbar.active {
    transform: translateY(0);
}

/* Links in Sticky Navbar (Dark Text) */
.scroll-navbar .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 8px 10px !important;
    position: relative;
}

.scroll-navbar .nav-link:hover,
.scroll-navbar .nav-link.active {
    color: var(--primary-red) !important;
}

.scroll-navbar .academy-name {
    color: #333 !important; /* Dark text for sticky bar logo */
    font-size: 1rem;
}

/* --- ANIMATION: Red Underline for ALL Navbars --- */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 50%;
    background-color: #dc3545; /* Red */
    transition: all 0.3s ease-out;
    transform: translateX(-50%);
}

.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* =========================================
   4. HOME PAGE HERO SECTION (Below Header)
   ========================================= */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    z-index: 2;
    background: url('../images/banner1.webp') no-repeat center center;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; 
    padding-top: 20px;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    color: #f8f9fa;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn-hover-red:hover {
    color: red !important;
    background-color: white;
    border-color: white;
}

/* =========================================
   5. FLOATING IMAGES (Home Page)
   ========================================= */
.floating-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float-img {
    position: absolute;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.img-main {
    width: 280px;
    height: 350px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.img-sub-1 {
    width: 180px;
    height: 180px;
    top: 20px;
    right: 0px;
    z-index: 1;
    animation: float 5s ease-in-out infinite;
    animation-delay: 1s;
}

.img-sub-2 {
    width: 160px;
    height: 160px;
    bottom: 40px;
    left: -20px;
    z-index: 3;
    animation: float 7s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 991px) {
    .academy-name { font-size: 0.9rem; }
    .hero-title { font-size: 2.5rem; }
    .floating-container { display: none; }
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-section {
    padding: 30px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.about-watermark {
    position: absolute;
    top: -50px;
    right: -50px;
    font-size: 20rem;
    color: rgba(0,0,0,0.03);
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    pointer-events: none;
}

.about-img-wrapper {
    position: relative;
    z-index: 2;
}

.main-about-img {
    border-radius: 20px 0 20px 0;
    box-shadow: 20px 20px 0px rgba(211, 47, 47, 0.1);
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-about-img:hover {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -20px;
    background: var(--primary-red);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 10px 30px rgba(211, 47, 47, 0.4);
    border: 2px solid white;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.experience-badge h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.experience-badge span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.about-text {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #333;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 215, 0, 0.2);
    color: #b8860b;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .about-img-wrapper { margin-bottom: 60px; }
    .experience-badge { left: 0; right: 0; margin: auto; width: fit-content; bottom: -40px;}
}

/* =========================================
   7. COURSES SECTION
   ========================================= */
.courses-section {
    padding: 10px 0;
    background-color: #f8f9fa;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.course-card {
    background: white;
    overflow: hidden;
    border: none;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15);
}

.course-img-wrapper {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-img {
    transform: scale(1.1);
}

.category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gold);
    color: #333;
    font-weight: 700;
    padding: 5px 15px;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.course-body {
    padding: 10px;
    flex-grow: 1;
}

.course-title {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #222;
}

.course-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.course-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.meta-item i {
    color: var(--primary-red);
    margin-right: 5px;
}

.course-footer {
    padding: 5px 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-link-custom {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.btn-link-custom:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* =========================================
   8. ADVANTAGE SECTION
   ========================================= */
.advantage-section {
    padding: 20px 0;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.advantage-img-container {
    position: relative;
    padding-right: 30px;
}

.advantage-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.decoration-line {
    position: absolute;
    top: 40px;
    right: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-red);
    z-index: 0;
    transform: translate(20px, 20px);
    pointer-events: none;
}

.advantage-content {
    padding-left: 40px;
}

.sub-header {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
}

.header {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 30px;
    line-height: 1.2;
}

.advantage-list {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.icon-box {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background-color: #fff4f4;
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: 0.3s;
}

.advantage-item:hover .icon-box {
    background-color: var(--primary-red);
    color: white;
    transform: scale(1.1);
}

.item-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.item-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.stats-row {
    display: flex;
    gap: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.stat-minimal h5 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    font-family: 'Noto Serif SC', serif;
    line-height: 1;
}

.stat-minimal span {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@media (max-width: 991px) {
    .advantage-content { padding-left: 0; margin-top: 50px; }
    .advantage-img { height: 400px; }
    .decoration-line { display: none; }
}

/* =========================================
   9. CONTACT & FOOTER
   ========================================= */
.contact-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.info-box {
    background: white;
    padding: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    background: rgba(211, 47, 47, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}
.info-content p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}
/* Contact Link Styles */
.contact-link {
    color: #666; 
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: #D32F2F !important;
    text-decoration: none;
}
.contact-card {
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Make inputs shorter and cleaner */
.compact-form .form-floating > .form-control,
.compact-form .form-floating > .form-select {
    height: 58px;
    min-height: 50px;
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
}

.compact-form .form-floating > label {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: #888;
}

.compact-form .form-control:focus,
.compact-form .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
    background-color: #fff;
}

.compact-form textarea.form-control {
    height: auto !important; 
    min-height: 120px;
}
.main-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 0 30px 0;
    font-size: 0.9rem;
}

.footer-logo-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: block;
}

.footer-desc {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 30px;
}

.footer-heading {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: #666;
}
/* Sharp Input Styles for Modal */
.modal-content .form-control, 
.modal-content .form-select {
    border-radius: 0 !important; /* Forces square edges */
    border: 1px solid #ccc;
    padding: 8px 12px; /* Compact padding */
    font-size: 0.95rem;
}

.modal-content .form-control:focus, 
.modal-content .form-select:focus {
    box-shadow: none; /* Removes the blue glow */
    border-color: #333; /* Dark border on click */
    background-color: #fafafa;
}

/* --- Partner Page Table View Styles --- */

/* 1. Top Green Tabs */
.partner-tabs {
    border-bottom: 1px solid #ddd;
}
.partner-tabs .nav-link {
    border-radius: 0;
    font-weight: 600;
    padding: 15px;
    color: #555;
    background: #fff;
    border: 1px solid #eee;
    margin-right: -1px; /* Connects buttons */
}
.partner-tabs .nav-link.active {
    background-color: #D32F2F; /* Exact Green from image */
    color: white;
    border-color: #D32F2F;
}

/* 2. Text Sections */
.partner-section-title {
    color: #2962FF; /* Blue title text */
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}
.partner-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 3. Search Bar Area */
.search-container {
    background-color: #f9f9f9;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.btn-search-custom {
    background-color: #0056b3; /* Dark Blue */
    color: white;
    border-radius: 0;
    font-weight: 500;
}

/* 4. The Data Table */
.partner-table-container {
    border-top: 2px solid #555; /* Dark top line */
}
.partner-table th {
    background-color: #fcfcfc;
    color: #333;
    font-weight: 700;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
}
.partner-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    vertical-align: middle;
}
.partner-table tr:hover {
    background-color: #f9f9f9;
}

/* 5. Pagination */
.pagination-custom .page-link {
    color: #666;
    border-radius: 0;
    margin: 0 2px;
    border: 1px solid #ddd;
}
.pagination-custom .page-item.active .page-link {
    background-color: #666;
    border-color: #666;
    color: white;
}

/* =========================================
   HOME POPUP MODAL
   ========================================= */
.jilin-modal-dialog {
    --bs-modal-width: 250px;
    max-width: 250px;
    align-items: center;
    border-radius: 0;
}

.jilin-modal-header {
    background-color: #dc3545 !important;
}