/* Custom Styles for Thay Truong Website */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* Typography */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.8;
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}
.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.nav-link {
    font-weight: 500;
    padding: 0.8rem 1rem !important;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--primary-color) !important;
}
.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.9;
}
.hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}
.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}
.hero-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.card-title {
    font-weight: 600;
    color: #2d3748;
}
.card-text {
    color: #4a5568;
}

/* Course Cards */
.course-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}
.course-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.course-card .duration {
    color: var(--secondary-color);
}

/* Achievement Cards */
.achievement-card {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.achievement-card:hover {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.achievement-card .trophy-icon {
    font-size: 2rem;
    color: var(--warning-color);
}
.achievement-card .level-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}
.level-province { background: #28a745; color: white; }
.level-national { background: #dc3545; color: white; }
.level-international { background: #6f42c1; color: white; }

/* About Section */
.about-section {
    padding: 60px 0;
}
.about-image {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.achievement-highlight {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
}

/* Contact Section */
.contact-info-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}
.contact-info-card:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-info-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}
.btn-outline-light:hover {
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .card-img-top {
        height: 150px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Testimonial Carousel */
.testimonial-card {
    padding: 2rem;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
.testimonial-card .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Blog Cards */
.blog-card .date {
    font-size: 0.85rem;
    color: var(--secondary-color);
}
.blog-card .category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: #e9ecef;
    border-radius: 20px;
    color: var(--secondary-color);
}

/* Footer */
footer a:hover {
    color: white !important;
}
.social-links a {
    transition: all 0.3s ease;
}
.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Toast Messages */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}