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

:root {
    --primary-color: #1a365d; /* Deep navy */
    --secondary-color: #2c5282; /* Medium blue */
    --accent-color: #3182ce; /* Bright blue */
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --light-bg: #f7fafc;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

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

.hero .subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #2b6cb0;
    border-color: #2b6cb0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background-color: var(--white);
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

/* Grid Layouts */
.grid-2,
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


/* Cards */
.card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* What Is Not Section */
.negative-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--danger-color);
    box-shadow: var(--shadow);
}

.negative-item .icon {
    color: var(--danger-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.step {
    display: flex;
    gap: 20px;
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    align-items: flex-start;
}

.step-number {
    background-color: var(--accent-color);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Highlight Box */
.highlight-box {
    background-color: #ebf8ff;
    border-left: 4px solid var(--accent-color);
    padding: 20px;
    margin-top: 30px;
    border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Confidence Section */
.confidence-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.confidence-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 1.5rem;
}

.confidence-note {
    text-align: center;
    margin-top: 30px;
    font-style: italic;
    color: var(--text-dark);
}

/* FAQ Preview */
.faq-preview {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.faq-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
}

/* Typography */
code {
    background-color: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .confidence-content {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
}

/* Diagram Styles */
.diagram-container {
    overflow-x: auto;
    margin: 20px 0;
}

.diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 600px;
    padding: 20px;
}

.diagram-box {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.diagram-box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
}

.diagram-box ul {
    list-style: none;
    padding: 0;
}

.diagram-box li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.diagram-box li:last-child {
    border-bottom: none;
}

.diagram-box.education {
    border-color: var(--accent-color);
}

.diagram-box.exchange {
    border-color: var(--secondary-color);
}

.diagram-box.user {
    border-color: var(--success-color);
}

.diagram-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.arrow-down::after {
    content: "↓";
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.arrow-up::before {
    content: "↑";
    display: block;
    font-size: 1.5rem;
    color: var(--success-color);
}

.arrow-right::after {
    content: "→";
    display: block;
    font-size: 1.5rem;
    color: var(--warning-color);
}

/* Light background section */
.light-bg {
    background-color: var(--light-bg);
}

/* Subtitle */
.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Disclaimer List */
.disclaimer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disclaimer-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.disclaimer-list li::before {
    content: "•";
    color: var(--danger-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Disclaimer List */
.disclaimer-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disclaimer-list li {
    position: relative;
    padding-left: 30px;
    line-height: 1.6;
}

.disclaimer-list li::before {
    content: "•";
    color: var(--danger-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Form Styles */
.contact-form-container {
    max-width: 600px;
    margin: 30px auto;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

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

.form-actions {
    text-align: center;
    margin-top: 10px;
}

.quick-links .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Thank You Page */
.thank-you-section {
    text-align: center;
    padding: 80px 0;
}

.thank-you-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.thank-you-message {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.thank-you-message h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.thank-you-message p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.return-home {
    margin-top: 30px;
}

/* Form Placeholder Styling - improved contrast */
::placeholder {
    color: var(--text-dark);
    opacity: 0.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: var(--text-dark);
    opacity: 0.6;
}


/* Form Placeholder Styling - improved contrast */
::placeholder {
    color: var(--text-dark);
    opacity: 0.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: var(--text-dark);
    opacity: 0.6;
}

/* Ensure hero subtitles remain white on dark background */
.hero .subtitle {
    color: var(--white);
}



/* CTA section: match site theme - light background, dark text */
.section.cta-section {
    text-align: center;
    background-color: var(--white) !important;
    color: var(--text-dark) !important;
}

.section.cta-section h2 {
    color: var(--primary-color) !important; /* #1A365D */
}

.section.cta-section p {
    color: var(--text-dark) !important; /* #2d3748 */
}

.section.cta-section .btn {
    margin-top: 20px;
}

/* Center top h2 on secondary pages */
.section.light-bg > .container > h2 {
    text-align: center;
}

/* Center top h1 on secondary pages */
.section > .container > h1 {
    text-align: center;
}

/* Mode toggle buttons */
.mode-toggle {
    text-align: center;
    margin: 30px 0 20px;
}
.mode-btn {
    padding: 12px 24px;
    margin: 0 10px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 600;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.mode-btn:hover {
    background: #f0f4ff;
}
.mode-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Video Card Number Badge */
.card {
    position: relative;
}

.card-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 36px;
    height: 36px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}
