/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: #999;
    font-weight: 300;
}

.breadcrumb-list a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.breadcrumb-list a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-list li:last-child span {
    color: #666;
    font-size: 14px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
    z-index: 1000;
    overflow: visible;
}

.language-btn {
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.language-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.language-btn i.fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector:hover .language-btn i.fa-chevron-down {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 10000;
    display: none !important;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.language-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

.language-dropdown a,
.language-dropdown .language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10001;
    position: relative;
}

.language-dropdown .language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10001;
    position: relative;
}

.language-dropdown a:last-child,
.language-dropdown .language-option:last-child {
    border-bottom: none;
}

.language-dropdown a:hover,
.language-dropdown .language-option:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.language-dropdown .language-option:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.language-dropdown a.active,
.language-dropdown .language-option.active {
    background-color: #007bff;
    color: #fff;
}

.language-dropdown .flag {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Navigation dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown .dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    max-width: 300px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    padding: 10px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.nav-dropdown .dropdown-menu.show {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown .dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    border-bottom: 1px solid #f1f3f4;
}

.nav-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.nav-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
    padding-left: 25px;
}

/* Broker dropdown item with logo */
.nav-dropdown .broker-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
}

.nav-dropdown .broker-dropdown-item:hover {
    padding-left: 25px;
}

.nav-dropdown .broker-logo-small {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.nav-dropdown .broker-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    background: #fff;
    border-radius: 4px;
}

.nav-dropdown .broker-logo-small i {
    font-size: 16px;
    color: #007bff;
}

.nav-dropdown .broker-dropdown-item:hover .broker-logo-small {
    background: #e9ecef;
    border-color: #007bff;
}

.nav-dropdown .broker-dropdown-item:hover .broker-logo-small i {
    color: #0056b3;
}

.nav-dropdown .broker-name-text {
    flex: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-dropdown .dropdown-divider {
    height: 1px;
    margin: 8px 0;
    background: #e9ecef;
    overflow: hidden;
}

/* Language selector in navigation */
.nav-menu .language-selector {
    position: relative;
    display: inline-block;
    z-index: 1000;
    overflow: visible;
}

.nav-menu .language-selector .language-btn {
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-menu .language-selector .language-btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #007bff;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo i {
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: #007bff;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    pointer-events: auto;
    z-index: 1;
    position: relative;
    transform: scale(1);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #007bff;
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: white;
}

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

.trading-chart {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trading-chart i {
    font-size: 4rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Sections */
section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Brokers Section */
.brokers-section {
    background: #f8f9fa;
}

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

.broker-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e1e5e9;
}

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

.broker-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.broker-logo {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.5rem;
    color: #007bff;
}

.broker-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.broker-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-size: 0.9rem;
}

.broker-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.broker-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.broker-actions {
    display: flex;
    gap: 10px;
}

/* Why Choose Us */
.why-choose-us {
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    background: white;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    animation: pulse 2s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
    background: #f8f9fa;
}

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

.review-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #007bff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    opacity: 0;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }
.review-card:nth-child(4) { animation-delay: 0.4s; }
.review-card:nth-child(5) { animation-delay: 0.5s; }
.review-card:nth-child(6) { animation-delay: 0.6s; }
.review-card:nth-child(n+7) { animation-delay: 0.7s; }

.review-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 35px rgba(0, 123, 255, 0.2);
    border-left-width: 6px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.user-info p {
    font-size: 0.8rem;
    color: #666;
}

.review-rating {
    display: flex;
    gap: 2px;
    color: #ffc107;
}

.review-content h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.review-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.helpful-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.helpful-btn:hover {
    color: #007bff;
}

/* About Section */
.about-section {
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.stat p {
    color: #666;
    font-weight: 500;
}

.about-visual {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #007bff;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

/* Text Center */
.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-toggle {
        width: 100%;
        padding: 15px 20px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 12px 40px;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-menu .language-selector {
        width: 100%;
        margin-top: auto; /* Push to bottom */
        padding: 15px 20px;
        border-top: 2px solid #e9ecef;
        display: block !important;
        order: 999; /* Ensure it appears at the bottom */
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        flex-shrink: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu .language-selector .language-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 16px;
    }

    .language-btn:hover {
        background: #e9ecef;
    }

    .language-dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #fff;
        margin-top: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    .language-selector.active .language-dropdown {
        display: block;
    }

    .language-option {
        padding: 12px 16px;
        border-bottom: 1px solid #e9ecef;
        cursor: pointer;
        transition: background 0.2s;
    }

    .language-option:last-child {
        border-bottom: none;
    }

    .language-option:hover {
        background: #f8f9fa;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brokers-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile table scrolling */
    .comparison-table,
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table thead,
    table thead {
        display: table-header-group;
    }

    .comparison-table tbody,
    table tbody {
        display: table-row-group;
    }

    .comparison-table th,
    .comparison-table td,
    table th,
    table td {
        min-width: 120px;
        padding: 10px 8px;
        font-size: 14px;
    }

    /* Mobile breadcrumb */
    .breadcrumb-nav {
        padding: 10px 0;
    }

    .breadcrumb-list {
        font-size: 12px;
    }

    /* Mobile hero sections */
    .category-hero {
        padding: 80px 0 50px;
    }

    .category-hero h1 {
        font-size: 2rem;
    }

    .category-hero p {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Mobile content sections */
    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    /* Mobile grid adjustments */
    .content-grid,
    .pairs-grid,
    .markets-grid,
    .strategies-grid,
    .brokers-grid,
    .analysis-grid,
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile cards */
    .content-card,
    .strategy-card,
    .broker-card,
    .analysis-card,
    .tip-card {
        padding: 25px 20px;
    }

    /* Mobile buttons */
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn:last-child {
        margin-bottom: 0;
    }

    /* Mobile forms */
    .contact-form {
        padding: 20px;
    }

    /* Mobile footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0 40px;
    }

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

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

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 100%;
    }

    .broker-card,
    .review-card,
    .contact-form {
        padding: 20px;
    }

    .comparison-table th,
    .comparison-table td,
    table th,
    table td {
        padding: 8px 6px;
        font-size: 12px;
        min-width: 100px;
    }

    .breadcrumb-list {
        font-size: 11px;
    }

    .nav-logo h2 {
        font-size: 1.2rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }
}

/* Reviews Section */
.reviews {
    background: #f8f9fa;
    padding: 80px 0;
}

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

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.user-info h4 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.user-info p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-rating .fas.fa-star {
    color: #ffc107;
}

.review-rating .far.fa-star {
    color: #ddd;
}

.rating-number {
    font-weight: 600;
    color: #333;
}

.review-content {
    margin-bottom: 20px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.review-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.review-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.review-pros, .review-cons {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.review-pros h4 {
    color: #28a745;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.review-cons h4 {
    color: #dc3545;
    margin: 0 0 10px 0;
    font-size: 14px;
}

.review-pros ul, .review-cons ul {
    margin: 0;
    padding-left: 20px;
}

.review-pros li, .review-cons li {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.review-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.experience, .duration {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
}

.verified {
    background: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-actions {
    display: flex;
    gap: 10px;
}

.helpful-btn, .not-helpful-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.helpful-btn:hover {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.not-helpful-btn:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.reviews-actions {
    text-align: center;
    margin-top: 40px;
}

/* Guides Section */
.guides-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.guide-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

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

.guide-card i {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.guide-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.guide-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(n+6) { animation-delay: 0.6s; }

.faq-item:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
    transform: translateX(5px);
    border-color: #007bff;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
    padding-left: 30px;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: #007bff;
}

.faq-question i {
    color: #007bff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        position: relative;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 0;
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #e9ecef;
        flex-shrink: 0;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .dropdown-toggle {
        width: 100%;
        padding: 15px 20px;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-dropdown .dropdown-item {
        padding: 12px 40px;
        border-bottom: 1px solid #e9ecef;
    }

    .nav-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-menu .language-selector {
        width: 100%;
        margin-top: auto; /* Push to bottom */
        padding: 15px 20px;
        border-top: 2px solid #e9ecef;
        display: block !important;
        order: 999; /* Ensure it appears at the bottom */
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 10;
        flex-shrink: 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu .language-selector .language-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        font-size: 16px;
    }

    .nav-menu .language-selector .language-btn:hover {
        background: #e9ecef;
    }

    .language-dropdown {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border: none;
        background: #fff;
        margin-top: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    .language-selector.active .language-dropdown {
        display: block;
    }

    .language-option {
        padding: 12px 16px;
        border-bottom: 1px solid #e9ecef;
        cursor: pointer;
        transition: background 0.2s;
    }

    .language-option:last-child {
        border-bottom: none;
    }

    .language-option:hover {
        background: #f8f9fa;
    }

    /* Mobile table scrolling */
    .comparison-table,
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table thead,
    table thead {
        display: table-header-group;
    }

    .comparison-table tbody,
    table tbody {
        display: table-row-group;
    }

    .comparison-table th,
    .comparison-table td,
    table th,
    table td {
        min-width: 120px;
        padding: 10px 8px;
        font-size: 14px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

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

    .features-grid {
        grid-template-columns: 1fr;
    }

    .broker-card {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
