/*
Theme Name: Hướng Nhân Theme
Description: Theme chuyên dụng cho trung tâm toán học Hướng Nhân với thiết kế hiện đại và tối ưu cho giáo dục
Author: Hướng Nhân Team
Version: 1.0.0
Text Domain: huongnhan-theme
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Baloo 2', sans-serif;
    line-height: 1.6;
    color: #133020;
    background-color: #F8EDD9;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
a {
    text-decoration: none;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: rgba(248, 237, 217, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    height: auto;
    min-height: 70px;
}

.header:not([style*="--header-height"]) {
    --header-height: 70px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #133020;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #133020;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #327039;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #327039;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button.primary {
    background-color: #DD5C36;
    color: white;
}

.cta-button.primary:hover {
    background-color: #c54a2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(221, 92, 54, 0.3);
}

.cta-button.secondary {
    background-color: #F0BE49;
    color: #133020;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.cta-button.secondary:hover {
    background-color: #DD5C36;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 92, 54, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: #133020;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: calc(100vh - var(--header-height, 70px));
    min-height: calc(100vh - var(--header-height, 70px));
    max-height: calc(100vh - var(--header-height, 70px));
    position: relative;
    margin-top: var(--header-height, 70px);
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Adjust for admin bar */
body.admin-bar .hero {
    height: calc(100vh - var(--header-height, 70px) - 32px);
    min-height: calc(100vh - var(--header-height, 70px) - 32px);
    max-height: calc(100vh - var(--header-height, 70px) - 32px);
    margin-top: calc(var(--header-height, 70px) + 32px);
}

@media screen and (max-width: 782px) {
    body.admin-bar .hero {
        height: calc(100vh - var(--header-height, 70px) - 46px);
        min-height: calc(100vh - var(--header-height, 70px) - 46px);
        max-height: calc(100vh - var(--header-height, 70px) - 46px);
        margin-top: calc(var(--header-height, 70px) + 46px);
    }
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-carousel .hero-prev,
.hero-carousel .hero-next,
.hero-carousel .hero-dots {
    position: absolute;
    z-index: 100;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 48, 32, 0.8), rgba(50, 112, 57, 0.6));
    z-index: 2;
    pointer-events: none;
}

.hero .container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.hero-content {
    position: relative !important;
    z-index: 11 !important;
    text-align: center !important;
    color: white !important;
    max-width: 800px !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 2rem 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure hero title, subtitle and button are centered */
.hero-content .hero-title,
.hero-content .hero-subtitle,
.hero-content .cta-button {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
    max-width: 100% !important;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hero Carousel Controls */
.hero-prev,
.hero-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    color: white !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-prev {
    left: 20px !important;
    right: auto !important;
    margin-left: 0 !important;
}

.hero-next {
    right: 20px !important;
    left: auto !important;
    margin-right: 0 !important;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-dots {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px;
    z-index: 100 !important;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin: 0 !important;
    list-style: none;
    justify-content: center;
    align-items: center;
    width: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.hero-dot.active {
    background: white;
    border-color: white;
}

.hero-dot:hover {
    transform: scale(1.3);
    background: rgba(255, 255, 255, 0.5);
}

/* New Carousel Navigation (matching file mẫu) */
.hero-carousel-nav {
    position: absolute !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
    pointer-events: none;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 20px;
}

.hero-carousel-nav .carousel-prev,
.hero-carousel-nav .carousel-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    z-index: 100 !important;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: all;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-carousel-nav .carousel-prev:hover,
.hero-carousel-nav .carousel-next:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* New Carousel Indicators (matching file mẫu) */
.hero-carousel-indicators {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 100 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-carousel-indicators .carousel-indicator {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

.hero-carousel-indicators .carousel-indicator.active {
    background: white !important;
    width: 24px !important;
    border-radius: 5px !important;
}

.hero-carousel-indicators .carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2) !important;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 3rem;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(19, 48, 32, 0.15);
    border-color: #327039;
}

.benefit-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 1rem;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, #327039, #133020);
    color: white;
}

.stats .section-title {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #DD5C36;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Programs Section */
.programs {
    padding: 5rem 0;
    background-color: #F8EDD9;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.program-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(19, 48, 32, 0.15);
}

.program-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.program-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 1rem;
}

.program-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.program-btn {
    background-color: #327039;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-btn:hover {
    background-color: #2a5f31;
    transform: translateY(-2px);
}

.programs-cta {
    text-align: center;
    margin-top: 3rem;
}

.programs-cta .cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Achievements Section */
.achievements {
    padding: 5rem 0;
    background-color: white;
}

.achievements-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.student-highlights h3,
.competition-logos h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 2rem;
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.student-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(19, 48, 32, 0.1);
    transition: all 0.3s ease;
}

.student-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(19, 48, 32, 0.15);
}

.student-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.student-info {
    padding: 1rem;
}

.student-info h4 {
    font-weight: 700;
    color: #133020;
    margin-bottom: 0.5rem;
}

.student-info p {
    color: #327039;
    font-weight: 600;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.comp-logo {
    background: #F8EDD9;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.comp-logo:hover {
    background: #327039;
    color: white;
    transform: scale(1.05);
}

.logo-placeholder {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Schedule & Test Section */
.schedule-test {
    padding: 5rem 0;
    background: linear-gradient(135deg, #F0BE49, #F8EDD9);
}

.schedule-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.schedule-block h3,
.test-block h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 1.5rem;
}

.calendar-widget {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.1);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    text-align: center;
}

.calendar-header h4 {
    font-weight: 700;
    color: #133020;
    flex: 1;
    margin: 0;
}

.calendar-nav-btn {
    background: #327039;
    color: white;
    border: none;
    border-radius: 8px;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
    line-height: 1;
}

.calendar-nav-btn:hover:not(:disabled) {
    background: #2a5f31;
    transform: scale(1.1);
}

.calendar-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.calendar-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-header {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.25rem;
}

.day.available {
    background-color: #327039;
    color: white;
    font-weight: 600;
}

.day.available:hover {
    background-color: #2a5f31;
    transform: scale(1.1);
}

/* Schedule Detail Dialog */
.schedule-detail-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.schedule-detail-dialog.active {
    display: flex;
}

.schedule-detail-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.schedule-detail-close:hover {
    color: #133020;
}

.schedule-detail-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 1rem;
    margin-top: 0;
}

.schedule-date {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.schedule-detail-item {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.schedule-detail-item strong {
    color: #133020;
    margin-right: 0.5rem;
}

.schedule-detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.schedule-detail-actions .cta-button {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

/* Schedule tabs */
.schedule-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: #327039 #f5f5f5;
}

.schedule-tabs::-webkit-scrollbar {
    height: 6px;
}

.schedule-tabs::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.schedule-tabs::-webkit-scrollbar-thumb {
    background: #327039;
    border-radius: 3px;
}

.schedule-tabs::-webkit-scrollbar-thumb:hover {
    background: #2a5f31;
}

.schedule-tab {
    background: #f5f5f5;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: fit-content;
}

.schedule-tab:hover {
    background: #e0e0e0;
}

.schedule-tab.active {
    background: #327039;
    color: white;
}

.schedule-tab-contents {
    min-height: 100px;
}

.schedule-tab-content {
    display: none;
}

.schedule-tab-content.active {
    display: block;
}

/* Day count indicator */
.day-number {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.day-count {
    font-size: 0.65rem;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.95;
    line-height: 1;
    white-space: nowrap;
}

.day.available .day-count {
    display: block;
}

.test-block {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.1);
}

.test-block p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Registration Section */
.registration {
    padding: 5rem 0;
    background-color: white;
}

.registration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.registration-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #133020;
    margin-bottom: 1.5rem;
}

.registration-info p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 0.5rem 0;
    color: #327039;
    font-weight: 600;
}

.registration-form {
    background: #F8EDD9;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #133020;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #327039;
    box-shadow: 0 0 0 3px rgba(50, 112, 57, 0.1);
}

.submit-btn {
    width: 100%;
    background-color: #DD5C36;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 25px;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    background-color: #c54a2c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 92, 54, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
}

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

/* Footer */
.footer {
    background-color: #133020;
    color: white;
    padding: 3rem 0 1rem;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    clear: both;
    position: relative;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content > .footer-section:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section:first-child p {
    text-align: center;
    margin: 0 auto;
}

.footer-logo img,
.footer-logo svg {
    flex-shrink: 0;
    display: block;
}

.footer-logo-img {
    max-width: 150px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    background-color: rgba(248, 237, 217, 0.95);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo-svg-wrapper {
    max-width: 150px;
    max-height: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(248, 237, 217, 0.95);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo-svg-wrapper svg {
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 100px;
}

.footer-logo-default {
    width: 64px;
    height: 64px;
    background-color: rgba(248, 237, 217, 0.95);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #F0BE49;
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #327039;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-link:hover {
    background-color: #F0BE49;
    color: #133020;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #327039;
    opacity: 0.7;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Ensure no spacing after footer */
.footer + *,
body > footer:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any default spacing from WordPress */
body:after,
html:after {
    content: none;
    display: none;
}

/* Ensure footer is the last element with no spacing */
body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 2rem;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.success-modal {
    max-width: 400px;
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #133020;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-content {
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #327039;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav {
        display: none;
    }

    .cta-button.primary {
        display: none;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .hero-content {
        padding: 1rem 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    /* Override container padding for hero carousel */
    .hero-carousel .container {
        padding: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-prev {
        left: 10px;
    }

    .hero-next {
        right: 10px;
    }

    .hero-dots {
        bottom: 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .achievements-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .schedule-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .registration-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .student-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Override container padding for hero carousel */
    .hero-carousel .container {
        padding: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding: 0.75rem 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .hero-prev,
    .hero-next {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }

    .modal-content {
        padding: 1.5rem;
    }
}

/* Smooth Scrolling - already defined above */

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 1rem;
}
.logo img {
    height: var(--logo-height, 70px);
    width: var(--logo-width, 150px);
    object-fit: contain;
}

.logo svg {
    width: var(--logo-svg-size, 60px);
    height: var(--logo-svg-size, 60px);
}

/* Course Template Styles */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(19, 48, 32, 0.9), rgba(50, 112, 57, 0.7)),
                url('https://images.pexels.com/photos/5212317/pexels-photo-5212317.jpeg?auto=compress&cs=tinysrgb&w=1920&h=1080&fit=crop');
    background-size: cover;
    background-position: center;
}

.course-intro {
    padding: 5rem 0;
    background: white;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.objectives {
    padding: 5rem 0;
    background: #f8f8f8;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.objective-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(19, 48, 32, 0.1);
    transition: all 0.3s ease;
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(19, 48, 32, 0.15);
}

.objective-icon {
    margin-bottom: 1.5rem;
}

.objective-card h3 {
    color: #133020;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.objective-card p {
    color: #666;
    line-height: 1.6;
}

.program-timeline {
    padding: 5rem 0;
    background: white;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #327039;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #327039;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #327039;
}

.timeline-content {
    margin-left: 80px;
}

.timeline-card {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #327039;
}

.timeline-card h3 {
    color: #133020;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.timeline-card li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #327039;
    font-weight: bold;
}

.timeline-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-badge {
    background: #327039;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.key-benefits {
    padding: 5rem 0;
    background: #f8f8f8;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-icon {
    flex-shrink: 0;
}

.benefit-text h3 {
    color: #133020;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit-text p {
    color: #666;
    line-height: 1.6;
}

.benefits-visual {
    position: relative;
}

.benefit-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(19, 48, 32, 0.15);
}

.stats-overlay {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}

.stats-overlay .stat-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stats-overlay .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #327039;
}

.stats-overlay .stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}

.teachers-methods {
    padding: 5rem 0;
    background: white;
}

.teachers-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.teacher-card {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.teacher-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
}

.teacher-details h3 {
    color: #133020;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-title {
    color: #327039;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.teacher-exp {
    color: #666;
    margin-bottom: 1rem;
}

.teacher-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.achievement-badge {
    background: #327039;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.methods-info h3 {
    color: #133020;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.method-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.method-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.method-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(240, 190, 73, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-text h4 {
    color: #133020;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.method-text p {
    color: #666;
    line-height: 1.6;
}

/* Fix sticky sidebar - Override WordPress body overflow */
/* This is critical for sticky positioning to work */
/* Override with highest specificity to beat WordPress core and admin bar styles */
html body.wp-singular,
html body.page-template,
html body.page-template-page-tai-lieu-php,
html body.page.page-id-37,
html body.single,
html body.single-post,
html body.logged-in.wp-singular,
html body.admin-bar.wp-singular,
html body.logged-in.admin-bar.wp-singular {
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Ensure layout containers don't block sticky */
.archive-layout,
.single-layout {
    overflow: visible !important;
}

.archive-main,
.single-main {
    overflow: visible !important;
}