/* ============================================
   TCM English Landing Page CSS
   Colors: Yellow #FDB913, Red #FF0000, Blue #0066CC
   ============================================ */

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

:root {
    --primary-yellow: #FDB913;
    --primary-red: #FF0000;
    --primary-blue: #0066CC;
    --dark: #333333;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    font-size: 36px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-yellow);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--primary-yellow);
    color: var(--white);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-red), #FF3333);
    color: var(--white);
    font-size: 18px;
    padding: 16px;
}

.btn-large {
    font-size: 20px;
    padding: 18px 40px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo-icon {
    display: flex;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hotline {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.hotline i {
    font-size: 20px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF3CC 50%, #FFEB99 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.badge {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    color: var(--dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--primary-red);
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 30px;
}

.offer-box {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.offer-badge {
    background: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.offer-list {
    list-style: none;
    margin-bottom: 25px;
}

.offer-list li {
    padding: 12px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-list i {
    color: var(--primary-yellow);
    font-size: 20px;
}

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

.countdown-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    background: var(--primary-red);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    min-width: 70px;
}

.countdown-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.countdown-label-small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.countdown.small .countdown-item {
    min-width: 60px;
    padding: 10px;
}

.countdown.small .countdown-value {
    font-size: 24px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-icon {
    font-size: 32px;
}

.stat-text strong {
    display: block;
    font-size: 20px;
    color: var(--primary-red);
}

.stat-text span {
    font-size: 14px;
    color: var(--gray);
}

/* Form Card */
.form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(253, 185, 19, 0.3);
    border: 3px solid var(--primary-yellow);
}

.form-title {
    font-size: 24px;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.required {
    color: var(--primary-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(253, 185, 19, 0.1);
}

.privacy-note {
    text-align: center;
    font-size: 13px;
    color: var(--gray);
    margin-top: 15px;
}

.privacy-note i {
    color: var(--primary-yellow);
}

/* Social Proof Section */
.social-proof {
    padding: 40px 0;
    background: var(--white);
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.proof-item {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.proof-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.proof-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.proof-item h3 {
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.proof-item p {
    color: var(--gray);
    font-size: 16px;
}

/* Teaching Pillars */
.teaching-pillars {
    padding: 80px 0;
    background: var(--light-gray);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.pillar-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pillar-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.pillar-name {
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 15px;
}

.pillar-desc {
    color: var(--gray);
    line-height: 1.6;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--white);
}

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

.benefit-card {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    background: linear-gradient(135deg, #FFF9E6, #FFFFFF);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.benefit-card h3 {
    font-size: 20px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--gray);
    font-size: 15px;
}

/* Programs Section */
.programs {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.program-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.program-card.featured {
    border: 3px solid var(--primary-yellow);
}

.program-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.program-icon {
    font-size: 56px;
    text-align: center;
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 24px;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 25px;
}

.program-features {
    list-style: none;
    margin-bottom: 25px;
}

.program-features li {
    padding: 10px 0;
    font-size: 15px;
    color: var(--gray);
}

.program-card .btn {
    width: 100%;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: var(--white);
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.video-placeholder {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #FFF9E6, #FFE5B3);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #CC0000;
}

.video-placeholder p {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--dark);
    font-size: 18px;
    font-weight: 600;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.rating {
    color: var(--primary-yellow);
    font-size: 20px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--dark);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.author-info strong {
    display: block;
    color: var(--dark);
    margin-bottom: 3px;
}

.author-info span {
    font-size: 13px;
    color: var(--gray);
}

/* Facilities */
.facilities {
    padding: 80px 0;
    background: var(--white);
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.facility-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
}

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

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

.facility-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: var(--white);
}

.facility-overlay h3 {
    font-size: 18px;
}

.campus-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.campus-card {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #FFF9E6, #FFE5B3);
    border-radius: 15px;
}

.campus-card i {
    font-size: 48px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.campus-card h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 10px;
}

.campus-card p {
    color: var(--gray);
}

/* Final CTA */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-yellow), #FFCC33);
    text-align: center;
}

.cta-content h2 {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 15px;
}

.cta-content > p {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 40px;
}

.cta-countdown {
    margin-bottom: 40px;
}

.cta-countdown > p {
    font-size: 18px;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-contact {
    margin-top: 30px;
}

.cta-contact p {
    font-size: 18px;
    color: var(--white);
}

.phone-link {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    font-size: 24px;
}

.phone-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-tagline {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-philosophy {
    color: var(--primary-yellow);
    font-size: 18px;
}

.footer-col h4 {
    color: var(--primary-yellow);
    margin-bottom: 20px;
}

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

.footer-links li {
    padding: 8px 0;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-yellow);
}

.footer-links i {
    margin-right: 8px;
    color: var(--primary-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

/* Zalo icon custom */
.fa-zalo::before {
    content: "Z";
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-style: normal;
}

.footer-map {
    margin-bottom: 30px;
}

.footer-map iframe {
    border-radius: 15px;
    display: block;
}

.footer-map .btn {
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #999;
}

.footer-bottom a {
    color: #999;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--primary-yellow);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.phone-btn {
    background: var(--primary-red);
}

.zalo-btn {
    background: #0068FF;
}

.messenger-btn {
    background: #006AFF;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-yellow);
    border: none;
    border-radius: 50%;
    color: var(--dark);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-5px);
}

/* Exit Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.exit-popup.show {
    display: flex;
}

.exit-popup-content {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--gray);
}

.exit-popup-content h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.exit-popup-content h3 {
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.exit-popup-content p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 25px;
}

.exit-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--primary-yellow);
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .pillars-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .social-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .header-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
    }
    
    .social-proof-grid,
    .facilities-grid,
    .footer-content,
    .campus-info {
        grid-template-columns: 1fr;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .form-card {
        padding: 25px;
    }
    
    .footer-map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .hotline span {
        display: none;
    }
    
    .offer-box {
        padding: 20px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 8px;
    }
    
    .countdown-value {
        font-size: 20px;
    }
    
    .exit-popup-content {
        padding: 30px 20px;
    }
}
