/* ============================================
   TechForex - Theme-aware CSS
   Light mode: readable text, gold accent #B8860B
   Dark mode: gold #F0B90B, smooth 0.3s transitions
   ============================================ */

/* CSS Variables - Light (default) */
:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #6C757D;
    --heading-color: #0A1929;
    --primary: #F0B90B;
    --primary-light: #FFD700;
    --primary-dark: #B8860B;
    --primary-btn-text: #0A1929;
    --border-color: #E9ECEF;
    --card-bg: #FFFFFF;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.06);
    --hover-bg: #F1F3F5;
    --nav-link: #4A4A4A;
    --footer-bg: #F8F9FA;
    --footer-text: #4A4A4A;
    --page-hero-bg: linear-gradient(135deg, #0A1929 0%, #1A2A3A 100%);
    --transition-duration: 0.3s;
}

/* Dark theme */
html.dark {
    --bg-primary: #0A1929;
    --bg-secondary: #0F1E2F;
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --text-muted: #A0A0A0;
    --heading-color: #FFFFFF;
    --primary: #F0B90B;
    --primary-light: #FFD700;
    --primary-dark: #DAA520;
    --primary-btn-text: #0A1929;
    --border-color: #2A3A4A;
    --card-bg: #0F1E2F;
    --card-shadow: 0 4px 6px rgba(0,0,0,0.3);
    --hover-bg: #1A2A3A;
    --nav-link: #E0E0E0;
    --footer-bg: #0A1929;
    --footer-text: #E0E0E0;
    --page-hero-bg: linear-gradient(135deg, #0A1929 0%, #1A2A3A 100%);
}

/* Smooth theme transition */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color var(--transition-duration) ease,
                color var(--transition-duration) ease,
                border-color var(--transition-duration) ease,
                box-shadow var(--transition-duration) ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--heading-color);
}

h1 { font-size: 3.5rem; font-weight: 700; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.75rem; margin-bottom: 1rem; }

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

.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Site logo */
.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}
.site-logo:hover {
    opacity: 0.9;
}
@media (max-width: 768px) {
    .site-logo {
        max-height: 40px;
    }
}

/* Buttons - visible in both themes */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-duration) ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: 'Montserrat', sans-serif;
}

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

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

html:not(.dark) .btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #FFFFFF;
}

html:not(.dark) .btn-primary:hover {
    background-color: transparent;
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-lg { padding: 15px 40px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-duration), box-shadow var(--transition-duration), padding var(--transition-duration);
    padding: 20px 0;
}

.header.scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 10px 0;
}

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

.logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--heading-color);
}

.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        gap: 30px;
    }
}

.desktop-nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-duration);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

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

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
}

.theme-icon { display: inline-block; }

html.dark .theme-icon.moon-icon { display: none !important; }
html.dark .theme-icon.sun-icon { display: inline-block !important; }
html.light .theme-icon.sun-icon { display: none !important; }
html.light .theme-icon.moon-icon { display: inline-block !important; }

.mobile-menu-toggle {
    display: block;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle { display: none; }
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu.hidden { display: none; }

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.slides-container { position: relative; height: 100%; }

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #0A1929;
}

.slide.active { opacity: 1; z-index: 2; }

.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.slide-label {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.slide-heading {
    color: #FFFFFF;
    font-size: clamp(2rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-subtext {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-duration);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: var(--primary);
    color: #0A1929;
}

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-duration);
}

.dot.active {
    background: var(--primary);
    border-color: var(--primary);
    width: 30px;
    border-radius: 6px;
}

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

/* Page Hero Sections */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 80px;
    border-bottom: 3px solid var(--primary);
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,25,41,0.9) 0%, rgba(10,25,41,0.7) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 1rem;
    background: rgba(240,185,11,0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--primary);
}

.hero-title {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

html.light .page-hero::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
}

html.light .hero-title {
    color: #0A1929;
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

html.light .hero-subtitle {
    color: #1A1A1A;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 60px;
        margin-top: 60px;
        background-attachment: scroll;
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}

/* Legacy page-title/page-subtitle (kept for compatibility) */
.page-hero-inner { padding: 160px 0 60px; }
.page-title {
    color: #FFFFFF;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}
.page-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
}

/* Section content */
.section-content { background-color: var(--bg-primary); }
.section-alt { background-color: var(--bg-secondary); }

.section-label {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-heading {
    color: var(--heading-color);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.text-body {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Grids */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-2-cols { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .highlights-grid.three-cols { grid-template-columns: repeat(3, 1fr); }
    .highlights-grid { grid-template-columns: repeat(3, 1fr); }
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-value {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

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

html.dark .card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.feature-card { padding: 24px; }

.card-num {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.card-title {
    color: var(--heading-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.link-primary {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-duration);
}

.link-primary:hover { color: var(--primary-dark); }
html.dark .link-primary:hover { color: var(--primary-light); }

.step-card { text-align: center; }

.image-card {
    padding: 0;
    overflow: hidden;
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.blockquote {
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    background-color: var(--hover-bg);
    color: var(--text-primary);
    font-style: italic;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* About page image grid */
.about-images { position: relative; padding: 20px; }
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}
.image-grid img:hover { transform: scale(1.02); }
.img-main { grid-column: span 2; }
.img-accent { position: relative; }
.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--primary);
    color: #0A1929;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* Results */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Results Page - Portrait Optimized Grid */
.portrait-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.portrait-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.portrait-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

html.dark .portrait-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.result-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #1A1A1A;
}
.result-image-wrapper.has-image {
    cursor: pointer;
}

html.light .result-image-wrapper {
    background: #F0F0F0;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s;
    background: #0A1929;
}

html.light .portrait-image {
    background: #E8E8E8;
}

.portrait-card:hover .portrait-image {
    transform: scale(1.02);
}

.result-badge.profit-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #0A1929;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.result-card {
    padding: 0;
    overflow: hidden;
}

.result-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary);
}

.result-image-placeholder {
    background: var(--bg-secondary);
    border-bottom: 3px solid var(--primary);
}

.result-image-placeholder.portrait-image {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.result-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portrait-card .result-info {
    padding: 20px;
}

.result-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--heading-color);
    line-height: 1.3;
}

.result-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.result-date, .result-pair {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
}

.meta-icon {
    color: var(--primary);
    opacity: 0.8;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .portrait-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    .portrait-card .result-info { padding: 15px; }
    .portrait-card .result-title { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .portrait-grid { grid-template-columns: 1fr; }
    .result-image-wrapper { aspect-ratio: 3/4; }
}

.result-date {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 5px;
}

.result-title {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-profit {
    color: #10B981;
    font-weight: 600;
    font-size: 1.25rem;
}

.results-empty { padding: 3rem 0; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.lightbox-close:hover {
    color: var(--primary);
}
.lightbox-caption {
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
}

/* Horizontal Card Layout */
.horizontal-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px 0;
}

.horizontal-card {
    display: flex;
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    min-height: 220px;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

html.dark .horizontal-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.result-image-column {
    flex: 0 0 200px;
    position: relative;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.result-image-column.has-image {
    cursor: pointer;
}

.horizontal-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.horizontal-image {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.image-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: #0A1929;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2;
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2A3A4A 0%, #1A2A3A 100%);
    color: var(--text-muted);
    gap: 10px;
}

.no-image-placeholder svg {
    opacity: 0.5;
}

.result-content-column {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.horizontal-card .result-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--heading-color);
    line-height: 1.3;
}

.horizontal-card .result-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.result-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.metadata-item.profit {
    color: #10B981;
    font-weight: 600;
}

.metadata-icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.metadata-text {
    line-height: 1.4;
}

.result-tags {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary);
    color: #0A1929;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

html.light .no-image-placeholder {
    background: linear-gradient(135deg, #E0E0E0 0%, #D0D0D0 100%);
}

@media (max-width: 768px) {
    .horizontal-card {
        flex-direction: column;
        min-height: auto;
    }

    .result-image-column {
        flex: 0 0 auto;
        width: 100%;
        min-height: 200px;
    }

    .horizontal-wrapper {
        min-height: 200px;
    }

    .horizontal-image {
        min-height: 200px;
    }

    .no-image-placeholder {
        min-height: 200px;
    }

    .result-content-column {
        padding: 20px;
    }

    .result-metadata {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .result-metadata {
        grid-template-columns: 1fr;
    }

    .horizontal-card .result-title {
        font-size: 1.2rem;
    }
}

/* Masonry 2-Column Layout */
.results-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.masonry-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.masonry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

html.dark .masonry-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.masonry-item.featured .masonry-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(240,185,11,0.05) 100%);
}

.masonry-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: #1A1A1A;
}

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

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

.image-profit-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #0A1929;
    padding: 6px 12px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.image-profit-badge .profit-value {
    color: #0A1929;
    font-weight: 800;
}

.image-zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.masonry-image-wrapper:hover .image-zoom-icon {
    opacity: 1;
}

.masonry-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masonry-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--heading-color);
    line-height: 1.4;
}

.masonry-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.masonry-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.masonry-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.masonry-stats .stat-item.profit {
    color: #10B981;
    font-weight: 600;
}

.masonry-stats .stat-icon {
    font-size: 1rem;
    opacity: 0.8;
}

.masonry-tag {
    margin-bottom: 15px;
}

.trade-type-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.read-more-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: gap 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover {
    gap: 10px;
}

.masonry-item.no-image .masonry-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(240,185,11,0.02) 100%);
}

@media (max-width: 768px) {
    .results-masonry {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }
    .masonry-item.featured {
        grid-column: auto;
    }
    .masonry-title {
        font-size: 1.2rem;
    }
}

@media (min-width: 1200px) {
    .results-masonry {
        gap: 30px;
    }
}

.masonry-item {
    animation: masonryFadeInUp 0.6s ease forwards;
    opacity: 0;
}

.masonry-item:nth-child(odd) {
    animation-delay: 0.1s;
}

.masonry-item:nth-child(even) {
    animation-delay: 0.2s;
}

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

/* Enhanced Lightbox */
.enhanced-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.enhanced-lightbox.active {
    display: flex;
}

.enhanced-lightbox .lightbox-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enhanced-lightbox .lightbox-image-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
}

.enhanced-lightbox .lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.enhanced-lightbox .lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1rem;
}

.enhanced-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(240,185,11,0.2);
    border: 1px solid var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.enhanced-lightbox .lightbox-nav:hover {
    background: var(--primary);
    color: #0A1929;
}

.enhanced-lightbox .lightbox-nav.prev { left: 20px; }
.enhanced-lightbox .lightbox-nav.next { right: 20px; }

.enhanced-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    z-index: 10001;
}

.enhanced-lightbox .lightbox-close:hover {
    color: var(--primary);
}

.enhanced-lightbox .lightbox-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Contact */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-cards { grid-template-columns: repeat(3, 1fr); }
}

.contact-main {
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 0.25rem;
}

.contact-form-wrap { margin: 0 auto; }

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .contact-form .form-row { grid-template-columns: 1fr; }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    color: var(--heading-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color var(--transition-duration);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #047857;
    border: 1px solid #10B981;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #B91C1C;
    border: 1px solid #EF4444;
}

html.dark .alert-success { color: #6EE7B7; }
html.dark .alert-error { color: #FCA5A5; }

/* Connect steps */
.steps-connect { display: flex; flex-direction: column; gap: 1.5rem; }

.step-connect-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .step-connect-item { flex-direction: row; align-items: flex-start; }
}

.step-icon-wrap { flex-shrink: 0; }

.disclaimer-card {
    background: var(--hover-bg);
    border-color: var(--primary);
    border-width: 1px;
}

.disclaimer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Academy */
.academy-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.academy-sidebar-wrap { margin-top: 2rem; }
.academy-sidebar {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.academy-sidebar-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}
.academy-sidebar-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin: 0 0 1rem 0;
}

.academy-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.academy-item .card-num { flex-shrink: 0; }

.max-w-3xl { max-width: 36rem; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 48rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.p-4 { padding: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px;
    margin-top: 60px;
    transition: background-color var(--transition-duration), color var(--transition-duration);
}

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

.footer h3, .footer h4 {
    color: var(--heading-color);
    margin-bottom: 20px;
}

.footer-logo {
    max-height: 40px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s;
}
.footer-logo:hover {
    opacity: 0.9;
}

.footer ul { list-style: none; }

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .slide-heading { font-size: 2rem; }
    .slide-subtext { font-size: 1rem; }
    .slider-nav { width: 40px; height: 40px; font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
