/**
 * Dynamic Stylesheet using CSS Variables
 * This file handles all dynamic colors from appearance settings
 */

:root {
    --primary-color: #020085;
    --secondary-color: #ff9a00;
    --top-header-bg-color: #0c2340;
    --top-header-text-color: #FFFFFF;
    --main-header-bg-color: #FFFFFF;
    --main-header-text-color: #000000;
    --footer-bg-color: #0c2340;
    --footer-text-color: #FFFFFF;
    --header-padding: 15px;
    --slider-height: 400px;
}

/* Hero Section Styles */
.hero-section {
    background-color: var(--primary-color) !important;
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slide {
    min-height: var(--slider-height);
    position: relative;
}

.hero-slide img {
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-slide .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    color: white;
}

.hero-slide h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-slide p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Carousel Navigation */
.hero-carousel .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-carousel .owl-nav button {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    transition: all 0.3s ease !important;
    margin: 0 10px !important;
}

.hero-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.hero-carousel .owl-nav button.owl-prev {
    position: absolute;
    left: 20px;
}

.hero-carousel .owl-nav button.owl-next {
    position: absolute;
    right: 20px;
}

/* Carousel Dots */
.hero-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-carousel .owl-dots .owl-dot {
    background: rgba(255, 255, 255, 0.5) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}

.hero-carousel .owl-dots .owl-dot.active {
    background: white !important;
    transform: scale(1.2);
}

/* Buffer Loader Styles */
.buffer-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.buffer-loader.hidden {
    display: none !important;
}

.buffer-loader .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-right: 4px solid #2ecc71;
    border-bottom: 4px solid #e74c3c;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.buffer-loader .buffer-text {
    margin-top: 20px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
    letter-spacing: 2px;
}

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

/* Hide on load complete */
body.loaded .buffer-loader {
    display: none !important;
}

/* Info Cards Section */
.info-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-top: 4px solid var(--primary-color);
    text-align: center;
}

.info-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.info-card p {
    margin: 10px 0 0;
    color: #666;
    font-weight: 500;
}

/* Header Styles */
.top-header {
    background-color: var(--top-header-bg-color);
    color: var(--top-header-text-color);
}

.top-header a {
    color: var(--top-header-text-color);
    text-decoration: none;
}

.top-header a:hover {
    opacity: 0.8;
}

.main-header {
    background-color: var(--main-header-bg-color);
    color: var(--main-header-text-color);
    padding: var(--header-padding);
}

/* Footer Styles */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
}

.footer a {
    color: var(--footer-text-color);
}

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

.section-organization {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0;
}

.section-organization h2,
.section-organization p,
.section-organization .info-card p,
.section-organization .info-card h3 {
    color: white;
}

.section-organization .info-card {
    background: rgba(255, 255, 255, 0.1);
}

.section-join-community {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.section-join-community p,
.section-join-community h2 {
    color: white;
}

.section-join-community .btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    color: white;
}

/* Primary Button */
.btn-primary,
.primary-button {
    background-color: var(--primary-color);
    border: none;
    color: white;
}

.btn-primary:hover,
.primary-button:hover {
    opacity: 0.9;
    color: white;
}

/* Secondary Button */
.btn-secondary,
.secondary-button {
    background-color: var(--secondary-color);
    border: none;
    color: white;
}

.btn-secondary:hover,
.secondary-button:hover {
    opacity: 0.9;
    color: white;
}

/* Text Color Utilities */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* Border Colors */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

/* Link Styles */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Accent element */
.accent-primary {
    background-color: var(--primary-color);
}

.accent-secondary {
    background-color: var(--secondary-color);
}

/* Team Section */
.team .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Footer Stats */
.footer-stats {
    background: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.footer-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.footer-stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.footer-stat h6 {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
}

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

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

.footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
}

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

.footer ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer ul li a {
    display: inline-flex;
    align-items: center;
}

.footer ul li i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: var(--secondary-color) !important;
}
.second_header {
    margin-top: 10px !important;
}

.second_header > .cover {
    margin-top: 0px !important;
}

/* Navigation and Header Styles */
.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    background: white;
    padding: 5px 0 !important;
    border-bottom: 2px solid #f0f0f0;
}

.header-content h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 5px 0;
}

.header-content h2 {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.header-content p {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.btn_language {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.btn_language:hover {
    background: #e9ecef;
    color: var(--primary-color) !important;
}

.btn_exam .btn {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn_exam .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.header-menu,
.frontend_main_header {
    background-color: var(--main-header-bg-color) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-menu .nav li a {
    color: var(--main-header-text-color) !important;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.header-menu .nav li a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--main-header-text-color) !important;
    transform: translateY(-2px);
}

.header-menu .nav li .dropdown {
    background: var(--main-header-bg-color) !important;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
}

.header-menu .nav li .dropdown li a {
    color: var(--main-header-text-color) !important;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.header-menu .nav li .dropdown li a:hover {
    background: #f8f9fa !important;
    color: var(--secondary-color) !important;
}

.menu-scroll-btn {
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1) !important;
    border: none;
    color: white;
    padding: 0 10px;
    z-index: 10;
    cursor: pointer;
}

.menu-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.mobile-menu ul > li > ul {
    margin: 0;
    padding: 0;
}

.mobile-menu li a {
    color: #000 !important;
}

@media (max-width: 768px) {
    .header-content h1 {
        font-size: 1rem;
    }

    .header-content h2 {
        display: none;
    }

    .header-menu .nav li {
        margin: 0 2px;
    }

    .header-menu .nav li a {
        padding: 5px 8px;
        font-size: 0.8rem;
    }

    .navbar-collapse {
        padding: 5px 30px !important;
    }

    .menu-scroll-btn {
        padding: 0 8px;
    }

    #headerRightContent {
        display: none;
    }

    .hero-slide h1 {
        font-size: 1.8rem;
    }

    .info-card h3 {
        font-size: 1.3rem;
    }

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

    .right_div {
        margin: 0 auto;
        margin-top: 30px;
    }

    .footer h3 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer ul li {
        font-size: 0.9rem;
    }
}
