/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --danger-color: #f5576c;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ===== Button Styles ===== */
.theme-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 16px;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.secondary-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--danger-color) 100%);
}

.secondary-btn:hover {
    box-shadow: 0 10px 20px rgba(245, 87, 108, 0.3);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== Header Styles ===== */
.header-area {
    background: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-area.sticky {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.header-top {
    background: var(--dark-color);
    padding: 10px 0;
    color: #fff;
    font-size: 14px;
}

.header-top-left ul,
.header-top-right ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.header-top-left ul li,
.header-top-right ul li {
    margin-right: 20px;
    display: flex;
    align-items: center;
}

.header-top-left ul li i,
.header-top-right ul li i {
    margin-right: 8px;
    color: var(--primary-color);
}

.header-top-right ul li a {
    color: #fff;
    transition: var(--transition);
}

.header-top-right ul li a:hover {
    color: var(--primary-color);
}

.header-bottom {
    padding: 15px 0;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.main-menu ul {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-menu ul li {
    position: relative;
    margin: 0 12px;
}

.main-menu ul li a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 0;
    display: block;
    transition: var(--transition);
}

.main-menu ul li a:hover,
.main-menu ul li.active a {
    color: var(--primary-color);
}

.main-menu ul li.dropdown > a {
    padding-right: 15px;
}

.main-menu ul li.dropdown > a i {
    font-size: 12px;
    margin-left: 5px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    border-bottom: 1px solid var(--border-color);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu li a {
    padding: 12px 20px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.submenu li a:hover {
    background: var(--primary-color);
    color: #fff;
    padding-left: 25px;
}

.header-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 25px;
    justify-content: space-between;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transition: var(--transition);
    z-index: 1001;
    padding: 20px;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu nav ul li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu nav ul li:last-child {
    border-bottom: none;
}

.mobile-menu nav ul li a {
    display: block;
    padding: 15px 0;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--light-color);
    display: none;
}

.mobile-menu .submenu.active {
    display: block;
}

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.page-banner h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.breadcrumb {
    background: transparent;
    justify-content: center;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.8);
}

/* ===== Section Spacing ===== */
.pt-100 { padding-top: 100px; }
.pb-100 { padding-bottom: 100px; }
.pt-80 { padding-top: 80px; }
.pb-80 { padding-bottom: 80px; }
.pt-70 { padding-top: 70px; }
.pb-70 { padding-bottom: 70px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--dark-color);
}

/* ===== Card Styles ===== */
.course-card, .ea-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

.course-card:hover, .ea-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.course-image, .ea-card-header {
    position: relative;
    overflow: hidden;
}

.course-image img, .ea-card-header img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img,
.ea-card:hover .ea-card-header img {
    transform: scale(1.1);
}

.course-level, .ea-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.course-level.beginner { background: var(--success-color); }
.course-level.intermediate { background: var(--warning-color); color: #000; }
.course-level.advanced { background: var(--danger-color); }

.ea-badge.low { background: var(--success-color); }
.ea-badge.medium { background: var(--warning-color); color: #000; }
.ea-badge.high { background: #fd7e14; }
.ea-badge.very-high { background: var(--danger-color); }

.course-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.course-content, .ea-card-body {
    padding: 25px;
}

.course-content h3, .ea-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.course-content h3 a, .ea-card-body h3 a {
    color: var(--dark-color);
    transition: var(--transition);
}

.course-content h3 a:hover, .ea-card-body h3 a:hover {
    color: var(--primary-color);
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.course-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.course-price {
    margin: 15px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    margin-right: 10px;
}

.course-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.course-btn {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.course-btn.primary {
    background: var(--primary-color);
    color: white;
}

.course-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.course-btn:hover {
    transform: translateY(-2px);
}

/* ===== EA Card Specific Styles ===== */
.ea-specs {
    margin: 15px 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.spec-value {
    color: var(--dark-color);
    font-weight: 600;
}

.ea-performance {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px;
    background: var(--light-color);
    border-radius: 8px;
}

.performance-item {
    text-align: center;
}

.performance-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.performance-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.performance-value.positive {
    color: var(--success-color);
}

.ea-min-deposit {
    text-align: center;
    margin: 15px 0;
    color: var(--text-muted);
}

.ea-card-footer {
    padding: 20px 25px;
    background: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.ea-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.ea-details-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.ea-details-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== Filter Styles ===== */
.filter-btn, .ea-filters .filter-btn {
    background: var(--light-color);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 5px 10px;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
}

.filter-btn.active, .ea-filters .filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn:hover, .ea-filters .filter-btn:hover {
    border-color: var(--primary-color);
}

/* ===== Feature Boxes ===== */
.feature-box, .benefit-card, .benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
}

.feature-box:hover, .benefit-card:hover, .benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon, .benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-box h4, .benefit-card h4, .benefit-item h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== Alert Styles ===== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* ===== Footer Styles ===== */
.footer-area {
    background: var(--dark-color);
    color: #fff;
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-text {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social ul {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social ul li a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #bdc3c7;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links ul li a i {
    margin-right: 8px;
    font-size: 12px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-contact-text span {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    border-top: 1px solid #34495e;
}

.copyright-text p {
    margin: 0;
    color: #bdc3c7;
    font-size: 14px;
}

.footer-bottom-links ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.footer-bottom-links ul li a {
    color: #bdc3c7;
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links ul li a:hover {
    color: var(--primary-color);
}

/* ===== Background Utilities ===== */
.bg-light {
    background-color: var(--light-color) !important;
}

.white-bg {
    background-color: #fff !important;
}

.gray-bg {
    background-color: #f8f9fa !important;
}

/* ===== Text Color Utilities ===== */
.primary-color { color: var(--primary-color) !important; }
.white-color { color: white !important; }
.gray-color { color: var(--text-muted) !important; }

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .main-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-top {
        display: none;
    }
    
    .page-banner {
        margin-top: 60px;
        padding: 80px 0 40px;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .course-actions {
        flex-direction: column;
    }
    
    .ea-performance {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom-links ul {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-contact ul li {
        justify-content: center;
    }
    
    .footer-title h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .pt-100 { padding-top: 80px; }
    .pb-100 { padding-bottom: 80px; }
    .pt-80 { padding-top: 60px; }
    .pb-80 { padding-bottom: 60px; }
}

@media (max-width: 576px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    .page-banner {
        padding: 60px 0 30px;
    }
    
    .page-banner h1 {
        font-size: 1.75rem;
    }
    
    .theme-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .course-content, .ea-card-body {
        padding: 20px;
    }
    
    .footer-top {
        padding: 60px 0 30px;
    }
}

/* ===== Utility Classes ===== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* ===== Animation Keyframes ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Print Styles ===== */
@media print {
    .header-area,
    .footer-area,
    .theme-btn {
        display: none !important;
    }
    
    body {
        padding: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}