/* Base Styles */
:root {
    --primary-color: #0066cc;
    --secondary-color: #003366;
    --accent-color: #ff9900;
    --bg-light: #f5f8fa;
    --bg-dark: #0a192f;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #fff;
    --border-color: #ddd;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --border-radius: 6px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0.5rem auto 0;
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-course {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 15px;
}

.btn-course:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.btn-cta {
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 50px;
}

.btn-cta:hover {
    background-color: #e68a00;
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-cookie {
    padding: 8px 16px;
    margin: 0 5px;
    background-color: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-cookie:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Header Styles */
header {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-primary);
    font-weight: 600;
    padding: 8px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    position: absolute;
    bottom: 0;
    left: 0;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right, var(--bg-dark), #0d2b5a);
    color: var(--text-light);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* Market Ticker */
.market-ticker {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 0;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
}

.ticker-title {
    font-weight: 700;
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 20px;
}

.ticker-items {
    display: flex;
    gap: 30px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding-right: 30px;
}

.ticker-item span {
    font-weight: 600;
    margin: 0 5px;
}

.ticker-item.up {
    color: #4caf50;
}

.ticker-item.down {
    color: #f44336;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-secondary);
}

/* Courses Preview Section */
.courses-preview {
    padding: 80px 0;
    background-color: white;
}

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

.course-card {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.course-content {
    padding: 25px;
}

.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.course-rating {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.stars {
    display: flex;
}

.course-rating span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.course-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-light);
}

.testimonials .section-title {
    color: var(--text-light);
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial {
    flex: 0 0 auto;
    width: 600px;
    max-width: 100%;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Blog Preview Section */
.blog-preview {
    padding: 80px 0;
    background-color: var(--bg-light);
}

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

.blog-post {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-img img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.blog-post p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.read-more {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.read-more svg {
    transition: transform 0.3s ease;
}

.read-more:hover svg {
    transform: translateX(5px);
}

/* Calculator Section */
.calculator {
    padding: 80px 0;
    background-color: white;
}

.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-form {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.calculator-results {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.result-card {
    background: linear-gradient(145deg, #003366, #0066cc);
    color: var(--text-light);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.result-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.result-card p {
    font-size: 2rem;
    font-weight: 700;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(to right, var(--bg-dark), #0d2b5a);
    color: var(--text-light);
}

.cta .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.cta-content {
    flex: 1;
}

.cta-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cta-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 100%;
}

.cta h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer Styles */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 30px;
}

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

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
}

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

footer ul li a {
    color: var(--text-light);
    opacity: 0.8;
    transition: var(--transition);
}

footer ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact ul li svg {
    margin-top: 5px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    opacity: 0.8;
}

.footer-policy-links ul {
    display: flex;
    gap: 20px;
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 51, 102, 0.95);
    color: var(--text-light);
    z-index: 1000;
    display: none;
}

.cookie-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.cookie-content a {
    color: var(--text-light);
    text-decoration: underline;
    opacity: 0.8;
}

/* Current Time Display */
.current-time {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: var(--box-shadow);
    z-index: 99;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1, .cta h2 {
        font-size: 2.5rem;
    }
    
    .hero .container, .cta .container {
        flex-direction: column;
    }
    
    .testimonial {
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-policy-links ul {
        justify-content: center;
    }
    
    .current-time {
        display: none;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
}
