/*
Theme Name: TLA Academy Child Theme
Theme URI: https://tlaedu.com
Description: Theme tùy chỉnh cho Trạng Lường Academy - Dành những điều tốt nhất cho thế hệ mai sau
Author: Trạng Lường Academy
Author URI: https://tlaedu.com
Template: astra
Version: 1.0.0
Text Domain: tla-academy
*/

/* ===================================
   CUSTOM COLORS - TLA ACADEMY
   =================================== */

:root {
    --tla-primary: #FF8C42;      /* Cam chủ đạo */
    --tla-secondary: #FFB830;    /* Vàng */
    --tla-dark: #2C3E50;         /* Xanh đậm */
    --tla-light: #FFF8F0;        /* Kem nhạt */
    --tla-text: #333333;         /* Chữ chính */
}

/* ===================================
   HEADER CUSTOMIZATION
   =================================== */

.site-header {
    background: linear-gradient(135deg, var(--tla-primary) 0%, var(--tla-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-title a,
.site-description {
    color: white !important;
}

.custom-logo-link img {
    max-height: 80px;
    width: auto;
}

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

.main-navigation {
    background: transparent;
}

.main-navigation a {
    color: white !important;
    font-weight: 600;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: linear-gradient(135deg, var(--tla-primary) 0%, var(--tla-secondary) 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    background: var(--tla-secondary);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--tla-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===================================
   CARDS / BOXES
   =================================== */

.info-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.info-card h3 {
    color: var(--tla-primary);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.info-card .icon {
    font-size: 3em;
    color: var(--tla-secondary);
    margin-bottom: 20px;
}

/* ===================================
   COURSE GRID
   =================================== */

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.course-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.course-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.course-content {
    padding: 20px;
}

.course-content h4 {
    color: var(--tla-primary);
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* ===================================
   LEADERBOARD / BANG VANG
   =================================== */

.leaderboard-table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.leaderboard-table th {
    background: linear-gradient(135deg, var(--tla-primary) 0%, var(--tla-secondary) 100%);
    color: white;
    padding: 20px;
    text-align: left;
}

.leaderboard-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.leaderboard-table tr:hover {
    background: var(--tla-light);
}

.rank-1 {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.2em;
}

.rank-2 {
    color: #C0C0C0;
    font-weight: bold;
}

.rank-3 {
    color: #CD7F32;
    font-weight: bold;
}

/* ===================================
   FORMS
   =================================== */

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: var(--tla-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 140, 66, 0.2);
}

.wpcf7-form input[type="submit"] {
    background: var(--tla-primary);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: var(--tla-secondary);
    transform: translateY(-2px);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--tla-dark);
    color: white;
    padding: 50px 20px 20px;
}

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

.footer-widget h3 {
    color: var(--tla-secondary);
    margin-bottom: 20px;
}

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

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--tla-secondary);
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--tla-primary);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--tla-secondary);
    transform: scale(1.1);
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
}

/* ===================================
   DOCUMENT DOWNLOAD
   =================================== */

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

.document-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.document-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.document-item .doc-icon {
    font-size: 2em;
    color: var(--tla-primary);
    margin-right: 20px;
}

.document-item .download-btn {
    background: var(--tla-secondary);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.document-item .download-btn:hover {
    background: var(--tla-primary);
}

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

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2em;
    }
    
    .hero-section p {
        font-size: 1.2em;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .custom-logo-link img {
        max-height: 60px;
    }
}

/* ===================================
   ANIMATION
   =================================== */

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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

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

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

.section-title {
    color: var(--tla-primary);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--tla-secondary);
    border-radius: 2px;
}
