/* Compliance Guidance Page Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    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.1rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2563eb;
}

.nav-brand i {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* Compliance Hero Section */
.compliance-hero {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 120px 0 80px;
    text-align: center;
}

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



.hero-title {
    font-size: 3rem;
    color: #1e40af;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #64748b;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.compliance-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Compliance Overview */
.compliance-overview {
    padding: 80px 0;
    background: #ffffff;
}

.compliance-framework {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.framework-item {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.framework-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.framework-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.framework-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.framework-item h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.framework-item ul {
    list-style: none;
}

.framework-item li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
}

.framework-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.framework-item li:last-child {
    border-bottom: none;
}

/* Regulations Section */
.regulations-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.regulations-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.regulation-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.regulation-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.regulation-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.regulation-header:hover {
    background: rgba(37, 99, 235, 0.02);
}

.regulation-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.regulation-info {
    flex: 1;
}

.regulation-info h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.regulation-info p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
}

.expand-btn:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.expand-btn.expanded {
    transform: rotate(180deg);
    color: #2563eb;
}

.regulation-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(37, 99, 235, 0.02);
}

.regulation-content.expanded {
    max-height: 2000px;
    padding: 0 2rem 2rem 2rem;
}

.regulation-details h4 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Requirement Grid */
.requirement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.requirement-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.requirement-card h5 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: 0.25rem 0;
    color: #475569;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.requirement-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* Meta Requirements */
.meta-requirements {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.meta-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.meta-section h5 {
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.setting-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 0.9rem;
}

.setting-label {
    font-weight: 600;
    color: #374151;
}

.setting-value {
    color: #2563eb;
    font-weight: 500;
}

.verification-list {
    list-style: none;
}

.verification-list li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.verification-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f0fdf4;
    border-radius: 6px;
    font-size: 0.9rem;
}

.check-item i {
    color: #10b981;
}

/* Strategy Pillars */
.strategy-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pillar-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.pillar-card h5 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.pillar-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pillar-card ul {
    list-style: none;
}

.pillar-card li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.pillar-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* FINRA Rules */
.finra-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rule-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.rule-section h5 {
    color: #1e40af;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

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

.rule-section li {
    padding: 0.5rem 0;
    color: #475569;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.rule-section li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: #2563eb;
}

/* Guidelines Section */
.guidelines-section {
    padding: 80px 0;
    background: #ffffff;
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.guideline-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.guideline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    border-color: #2563eb;
}

.guideline-header {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guideline-header i {
    font-size: 1.5rem;
}

.guideline-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.guideline-content {
    padding: 2rem;
}

.guideline-content h4 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.guideline-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.guideline-content li {
    padding: 0.5rem 0;
    color: #475569;
    font-size: 0.95rem;
}

.guideline-content strong {
    color: #1e40af;
}

.avoid-list, .recommend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.avoid-item {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #fecaca;
}

.recommend-item {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #bbf7d0;
}

.principle-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.principle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.principle-item i {
    color: #2563eb;
}

.record-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    color: #475569;
    font-size: 0.9rem;
}

.record-item i {
    color: #f59e0b;
}

/* Compliance Support */
.compliance-support {
    padding: 80px 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.support-content {
    text-align: center;
}

.support-header {
    margin-bottom: 3rem;
}

.support-header i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.support-header h2 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.support-header p {
    color: #64748b;
    font-size: 1.125rem;
}

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

.support-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.support-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
}

.support-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.support-item h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.support-item p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.support-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Footer */
.footer {
    background: #1e293b;
    color: #cbd5e1;
    padding: 60px 0 30px;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 1.5rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

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

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cbd5e1;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #2563eb;
}

.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .compliance-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .compliance-framework {
        grid-template-columns: 1fr;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .regulation-header {
        padding: 1.5rem;
    }
    
    .regulation-content.expanded {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .compliance-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    

    
    .framework-item,
    .guideline-card {
        padding: 1.5rem;
    }
    
    .requirement-grid {
        grid-template-columns: 1fr;
    }
    
    .strategy-pillars {
        grid-template-columns: 1fr;
    }
    
    .finra-rules {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

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

.framework-item,
.guideline-card,
.support-item {
    animation: fadeInUp 0.6s ease forwards;
}

.framework-item:nth-child(2) { animation-delay: 0.1s; }
.framework-item:nth-child(3) { animation-delay: 0.2s; }

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

.support-item:nth-child(2) { animation-delay: 0.1s; }
.support-item:nth-child(3) { animation-delay: 0.2s; }