/*
Theme Name: TTrades
Description: A modern trading education theme inspired by TTrades.com design. Clean, professional layout with blue accents perfect for trading and financial websites.
Version: 1.0.0
Author: TTrades Theme
Author URI: https://ttrades.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ttrades
Tags: trading, finance, business, clean, modern, responsive, blue
*/

/* ========================================
   RESET & BASE STYLES
======================================== */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: #666666;
}

a {
    color: #7B9CDB;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6A8CD1;
}

/* ========================================
   YOUTUBE BANNER
======================================== */

.youtube-banner {
    background-color: #7B9CDB;
    color: #ffffff;
    padding: 12px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
}

.youtube-banner a {
    color: #ffffff;
    text-decoration: underline;
}

.youtube-banner a:hover {
    text-decoration: none;
}

/* ========================================
   HEADER
======================================== */

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #333333;
    text-decoration: none;
}

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

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #7B9CDB;
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333333;
    cursor: pointer;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    background-color: #f8f9fa;
    padding: 80px 0;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-image {
    margin-bottom: 40px;
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #7B9CDB;
}

.hero-description {
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #7B9CDB;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(123, 156, 219, 0.3);
}

.btn-primary:hover {
    background-color: #6A8CD1;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 156, 219, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #7B9CDB;
    border: 2px solid #7B9CDB;
}

.btn-secondary:hover {
    background-color: #7B9CDB;
    color: #ffffff;
}

/* ========================================
   SERVICES SECTION
======================================== */

.services-section {
    background-color: #ffffff;
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
}

.service-icon {
    margin-bottom: 30px;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

/* ========================================
   NEWSLETTER SECTION
======================================== */

.newsletter-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.newsletter-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
}

.newsletter-arrow {
    font-size: 20px;
    color: #333333;
}

.newsletter-button {
    flex-shrink: 0;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #e6e6e6;
    padding: 60px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

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

.social-icon {
    font-size: 20px;
    color: #333333;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #7B9CDB;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-links a {
    font-size: 14px;
    color: #333333;
    text-decoration: none;
}

.footer-links a:hover {
    color: #7B9CDB;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-top: 1px solid #e6e6e6;
        padding: 20px;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-left {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .services-section,
    .newsletter-section,
    .site-footer {
        padding: 60px 0;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   ACCESSIBILITY
======================================== */

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
    border: 0;
    overflow: hidden;
    padding: 0;
    width: 1px;
    height: 1px;
}

:focus-visible {
    outline: 2px solid #7B9CDB;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999999;
    padding: 8px 16px;
    background: #7B9CDB;
    color: #ffffff;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}