/* Global Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #2e59d9;
    --dark-color: #2c3e50;
    --light-color: #f8f9fc;
    --success-color: #1cc88a;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    position: relative;
    background-color: var(--light-color);
    padding-top: 130px;
}

/* Trading Graph Background */
.trading-graph-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(248, 249, 252, 0.98) 0%, rgba(248, 249, 252, 0.99) 100%);
}

.trading-graph-bg canvas {
    width: 100%;
    height: 100%;
    filter: blur(0.3px);
}

/* Adjust content sections for better visibility */
.navbar, 
.page-header,
.mission-vision .content-card,
.feature-card,
.team-card,
.achievement-card,
.faq-category,
.course-card,
.content-section,
.sidebar-section .card {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 991.98px) {
    .navbar-toggler {
        display: block !important; /* Ensure toggler is always visible on mobile */
    }

    .navbar-collapse {
        position: absolute; /* Position relative to its nearest positioned ancestor (navbar) */
        top: 100%; /* Position right below the navbar brand/toggler */
        left: 0;
        width: 100%;
        background-color: var(--light-color); /* Ensure it has a background */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1045; /* Ensure it's above page content */
    }
    
    .navbar-collapse.show {
        /* Removed explicit display, visibility, opacity to rely on Bootstrap's transitions */
        max-height: none !important; /* Ensure it expands fully */
        overflow-y: auto !important; /* Allow scrolling if content is long */
    }
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.mobile-nav a {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
}

.mobile-nav i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.mobile-nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: url('../uploads/bg.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: #f8f9fa;
    font-size: 1.2rem;
}

/* Interactive Chart Styles */
.interactive-chart-container {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    height: 400px;
    overflow: hidden;
}

.interactive-chart-container canvas {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.chart-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.price-change {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.price-change.positive {
    background: rgba(28, 200, 138, 0.1);
    color: var(--success-color);
}

.price-change.negative {
    background: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

.time-info {
    font-size: 0.9rem;
    color: #666;
}

/* Stats Items */
.stats-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stats-item p {
    font-size: 0.9rem;
}

/* Course Cards */
.course-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #007bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.course-content {
    padding: 1.5rem;
}

.course-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* Course Meta Information */
.course-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.course-meta span {
    font-size: 0.9rem;
    color: #666;
}

.course-meta i {
    margin-right: 0.3rem;
    color: var(--primary-color);
}

/* Course Filters */
.course-filters {
    margin-bottom: 2rem;
}

.course-filters .btn {
    margin: 0.5rem;
    transition: var(--transition);
}

.course-filters .btn.active {
    background-color: var(--primary-color);
    color: white;
}

.course-filters .btn:hover {
    transform: translateY(-2px);
}

/* Course Detail Page */
.course-header {
    background-color: var(--light-color);
    padding: 5rem 0;
    margin-top: 76px;
}

.course-meta-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.course-meta-info span {
    font-size: 1.1rem;
    color: #666;
}

.course-meta-info i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.course-price-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.course-price-card .price {
    color: var(--primary-color);
}

/* Course Content */
.content-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    color: var(--dark-color);
    font-weight: 600;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid #eee;
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #eee;
}

.accordion-body {
    padding: 1.25rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

/* Review Cards */
.review-card {
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.review-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Sidebar Cards */
.sidebar-section .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.sidebar-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-section .card-title {
    color: var(--dark-color);
    font-weight: 600;
}

.sidebar-section li {
    margin-bottom: 1rem;
}

.sidebar-section i {
    width: 20px;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    color: var(--primary-color);
}

/* Page Header */
.page-header {
    background-color: var(--light-color);
    padding: 5rem 0;
    margin-top: 76px;
}

.page-header h1 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.page-header p {
    color: #666;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

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

.footer i {
    margin-right: 0.5rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: none;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
    }

    .interactive-chart-container {
        height: 300px;
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .course-meta-info {
        flex-wrap: wrap;
    }

    .course-meta-info span {
        margin-bottom: 0.5rem;
    }

    .mobile-nav a.active {
        color: var(--primary-color);
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .interactive-chart-container {
        height: 250px;
    }

    .course-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }

    .course-filters .btn {
        margin: 0.25rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .sidebar-section {
        margin-top: 2rem;
    }
}

/* Utility Classes */
.py-5 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

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

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* FAQs Page Styles */
.faqs-section {
    background-color: #f8f9fa;
}

.faq-category {
    background: #fff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.faq-category h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    color: #2c3e50;
    padding: 1.25rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: #3498db;
    background-color: #f8f9fa;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.accordion-button::after {
    background-size: 1rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

.accordion-body {
    padding: 1.25rem;
    color: #6c757d;
    line-height: 1.6;
}

/* FAQ Animation */
.accordion-button,
.accordion-body {
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-category {
        padding: 1.5rem;
    }

    .faq-category h2 {
        font-size: 1.5rem;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* About Us Page Styles */
.mission-vision .content-card {
    transition: var(--transition);
}

.mission-vision .content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.team-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 5px solid rgba(78, 115, 223, 0.1);
}

.team-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--dark-color);
}

.team-card .text-muted {
    font-size: 0.9rem;
}

.social-links a {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Achievement Cards */
.achievement-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.achievement-card p {
    color: var(--dark-color);
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .team-card {
        padding: 1.5rem;
    }

    .team-card img {
        width: 120px;
        height: 120px;
    }

    .achievement-card h3 {
        font-size: 2rem;
    }
}

.team-card img.rounded-circle {
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    object-fit: cover;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px auto;
    display: block;
    background: #f8f9fa;
} 