/*
Theme Name:   Success Training
Theme URI:    https://successtraining.vn
Description:  Premium WordPress theme for Success Training - Education & Corporate Training
Author:       Success Training Team
Author URI:   https://successtraining.vn
Template:     flatsome
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  success-training
Tags:         education, training, coaching, business, corporate, responsive, custom-menu
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* ==========================================================================
   CUSTOM STYLES FOR SUCCESS TRAINING
   ========================================================================== */

:root {
    --primary-color: #19315b;
    --secondary-color: #ca1e4b;
    --success-color: #81d742;
    --alert-color: #ca1e4b;
    --text-color: #4f4f4f;
    --bg-light: #f1f1f1;
    --bg-dark: #0a4d82;
    --bg-blue-light: #e7f3fc;
}

/* Typography */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, ul, button, input {
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

/* Header Customization */
.header-top {
    background-color: #d2d2d2 !important;
    min-height: 50px;
    position: relative;
    z-index: 1000 !important;
}

.header-main {
    height: 90px;
    background-color: #084e82;
    position: relative;
    z-index: 1000 !important;
}

.header-wrapper,
.header {
    position: relative;
    z-index: 1000 !important;
}

#logo img {
    max-height: 90px;
}

.header-main .nav > li > a {
    line-height: 16px;
}

/* Menu CTA */
.menu-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-cta img {
    width: 40px;
    height: 40px;
}

.menu-cta .group-cta {
    display: flex;
    flex-direction: column;
}

.menu-cta .group-cta a {
    font-weight: 600;
    color: var(--primary-color);
}

/* Section Styles */
.section {
    position: relative;
    overflow: visible;
    z-index: 1;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
}

/* Main Content */
#main {
    position: relative;
    z-index: 1;
}

/* Home Count Section */
.home_count {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 60px 0;
}

.home_count h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.home_count h4 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    margin: 10px 0;
}

.home_count h5 {
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
}

/* Logo Slider */
.slider_logo .gallery-col {
    padding: 15px;
}

.slider_logo .box-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.slider_logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.slider_logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Know Site Custom */
.know-site-custom {
    margin-top: -100px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 50;
}

.know-site-custom .col-inner {
    cursor: pointer;
}

.know-site-custom .icon-box-center {
    transition: all 0.3s ease-in-out;
    padding: 24px 0;
}

.know-site-custom .icon-box-center:hover {
    background-color: #f9f5f5;
    transform: translateY(-5px);
}

/* Course List */
.course_list .tab-panels {
    margin-top: 30px;
}

/* Feedback Slider */
.feedback-slider .flickity-page-dots {
    bottom: -40px;
}

/* Home About */
.home_about {
    padding: 80px 0;
}

/* Home Why Section */
.home_why {
    background-color: var(--bg-blue-light);
    padding: 80px 0;
}

/* Contact Section */
.home_contact {
    padding: 60px 0;
}

/* FAQ Section */
.home_qa {
    padding: 60px 0;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-title {
    padding: 20px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.accordion-title:hover {
    background: #f5f5f5;
}

.accordion-inner {
    padding: 20px;
    background: #fafafa;
}

/* News Section */
.home_news {
    padding: 60px 0;
}

.blog-posts .post-title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 3em;
    line-height: 1.5;
}

/* Register Section */
.home_register {
    background-size: cover;
    background-position: center;
    padding: 60px 40px;
    border-radius: 12px;
}

/* Footer */
.all_footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.all_footer a {
    color: #fff;
}

.all_footer a:hover {
    color: var(--secondary-color);
}

/* Buttons */
.button.primary {
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 99px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.button.primary:hover {
    background-color: #a01838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(202, 30, 75, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animate="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out;
}

[data-animate="fadeInLeft"] {
    animation: fadeInLeft 0.8s ease-out;
}

[data-animate="fadeInRight"] {
    animation: fadeInRight 0.8s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        height: 70px;
    }
    
    #logo img {
        max-height: 70px;
    }
    
    .know-site-custom {
        margin-top: 0;
    }
    
    .home_count h4 {
        font-size: 2rem;
    }
}

/* UX Builder Compatibility */
.ux-builder-active .section {
    min-height: 100px;
}

/* Loading States */
.bg-loaded {
    opacity: 1;
    transition: opacity 1s;
}

.loading-spin {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
