/**
 * Common Styles for Static/Landing Pages
 * Used across consultation, constitution, jurisprudence, case-laws, and other static pages
 */

/* ============================================
   Typography & Base Styles
   ============================================ */
.static-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #111827;
    font-size: 16px;
    background: #F8FAFC;
}

.static-page h1, .static-page h2, .static-page h3, .static-page h4, .static-page h5, .static-page h6 {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

/* ============================================
   Hero Sections
   ============================================ */
.hero-section,
.constitution-hero,
.case-laws-hero {
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

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

/* ============================================
   Sidebar Navigation
   ============================================ */
.static-sidebar,
.constitution-sidebar,
.case-laws-sidebar {
    border-radius: 12px;
    overflow: hidden;
}

.static-sidebar .nav-link-item,
.constitution-sidebar .nav-link-item,
.case-laws-sidebar .nav-link-item {
    padding: 0.875rem 1.25rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.static-sidebar .nav-link-item:hover,
.constitution-sidebar .nav-link-item:hover,
.case-laws-sidebar .nav-link-item:hover {
    background-color: #f7fafc;
    color: #667eea;
    padding-left: 1.5rem;
}

.static-sidebar .nav-link-item i,
.constitution-sidebar .nav-link-item i,
.case-laws-sidebar .nav-link-item i {
    width: 20px;
    text-align: center;
}

.static-sidebar .nav-link-item.active,
.constitution-sidebar .nav-link-item.active,
.case-laws-sidebar .nav-link-item.active {
    background-color: #edf2f7;
    color: #667eea;
    font-weight: 600;
}

/* ============================================
   Cards
   ============================================ */
.static-card,
.constitution-card,
.case-laws-card,
.professional-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.static-card:hover,
.constitution-card:hover,
.case-laws-card:hover,
.professional-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.card-header-gradient {
    height: 4px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.static-card:hover .section-icon,
.constitution-card:hover .section-icon {
    transform: scale(1.05);
}

/* ============================================
   Tables
   ============================================ */
.static-table,
.constitution-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
}

.static-table thead tr,
.constitution-table thead tr {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.static-table thead th,
.constitution-table thead th {
    padding: 1rem;
    font-weight: 600;
    border: none;
}

.static-table tbody tr,
.constitution-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.static-table tbody tr:hover,
.constitution-table tbody tr:hover {
    background-color: #edf2f7 !important;
}

.static-table tbody td,
.constitution-table tbody td {
    padding: 1rem;
}

/* ============================================
   Section Badges & Titles
   ============================================ */
.section-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.section-title {
    font-size: 2rem;
    color: #1a202c;
    letter-spacing: -0.5px;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Content Cards & Items
   ============================================ */
.right-card,
.case-item {
    transition: all 0.3s ease;
}

.right-card:hover,
.case-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.content-text {
    line-height: 1.8;
    font-size: 1rem;
    color: #4a5568;
}

/* ============================================
   Preamble & Special Boxes
   ============================================ */
.preamble-box {
    position: relative;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 5px solid #667eea;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem;
    border-radius: 8px;
}

/* ============================================
   Learning Cards (for learning pages)
   ============================================ */
.learning-card {
    border-radius: 16px;
    overflow: hidden;
}

.learning-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

.learning-icon {
    transition: transform 0.3s ease;
}

.learning-card:hover .learning-icon {
    transform: scale(1.1) rotate(5deg);
}

.learning-icon-wrapper {
    flex-shrink: 0;
}

.learning-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.learning-icon i,
.learning-icon div {
    font-size: 24px;
}

.explore-link {
    transition: all 0.3s ease;
}

.professional-card:hover .explore-link {
    transform: translateX(4px);
}

/* ============================================
   Benefit Cards
   ============================================ */
.benefit-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.benefit-icon-wrapper {
    display: inline-block;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.benefit-icon i {
    font-size: 36px;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.05) rotate(-5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Empty States
   ============================================ */
.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon i {
    font-size: 64px;
    color: #cbd5e0;
}

/* ============================================
   Audience Badges (Hero)
   ============================================ */
.audience-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.audience-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .static-sidebar,
    .constitution-sidebar,
    .case-laws-sidebar {
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin: 0.5rem 0 !important;
    }
    
    .static-card,
    .constitution-card,
    .case-laws-card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .audience-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 8px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .static-sidebar,
    .constitution-sidebar,
    .case-laws-sidebar {
        display: none;
    }
    
    .static-card,
    .constitution-card,
    .case-laws-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}

/* ============================================
   Consultation Page Specific Styles
   ============================================ */
.hero-consultation {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
}

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

.hero-consultation h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
    color: white;
}

.hero-consultation .subheading {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.6;
    color: white;
}

.price-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 32px 48px;
    border-radius: 16px;
    display: inline-block;
    margin: 32px 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-original {
    font-size: 24px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 16px;
    font-weight: 500;
}

.price-current {
    font-size: 56px;
    font-weight: 700;
    color: #FACC15;
}

.price-badge {
    display: inline-block;
    background: #FACC15;
    color: #111827;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

.cta-button-primary {
    display: inline-block;
    background: #FACC15;
    color: #111827;
    padding: 20px 48px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    margin: 24px 0;
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(250, 204, 21, 0.4);
    border: none;
}

.cta-button-primary:hover {
    background: #EAB308;
    color: #111827;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(250, 204, 21, 0.5);
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    font-size: 16px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 500;
}

.trust-item i {
    font-size: 24px;
    color: #FACC15;
}

.section {
    padding: 80px 20px;
}

.who-for-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.who-for-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.2s ease;
}

.who-for-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.who-for-card i {
    font-size: 56px;
    color: #4F46E5;
    margin-bottom: 24px;
    display: block;
    width: 100%;
    text-align: center;
}

.who-for-card i.mdi::before {
    font-size: 56px;
    line-height: 1;
}

.who-for-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #111827;
}

.who-for-card p {
    color: #6B7280;
    font-size: 16px;
    line-height: 1.6;
}

.how-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

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

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
}

.step-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111827;
}

.step-card p {
    color: #6B7280;
    font-size: 16px;
    line-height: 1.6;
}

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

.why-item {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.why-item i {
    font-size: 40px;
    color: #10B981;
    margin-bottom: 16px;
    display: block;
    width: 100%;
    text-align: left;
}

.why-item i.mdi::before {
    font-size: 40px;
    line-height: 1;
}

.why-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #111827;
}

.why-item p {
    color: #6B7280;
    font-size: 16px;
    line-height: 1.6;
}

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

.faq-item {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #4F46E5;
}

.faq-item.active {
    border-color: #4F46E5;
}

.faq-question {
    padding: 24px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
}

.faq-item.active .faq-question {
    color: #4F46E5;
}

.faq-answer {
    padding: 0 24px 24px;
    color: #6B7280;
    display: none;
    line-height: 1.6;
    font-size: 16px;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-toggle {
    font-size: 24px;
    color: #4F46E5;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.final-cta {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.final-cta h2 {
    font-size: 40px;
    margin-bottom: 24px;
    font-weight: 700;
    color: white;
}

.final-cta p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.booking-form-container {
    max-width: 700px;
    margin: 48px auto 0;
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

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

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

.form-group label {
    display: block;
    color: #111827;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
    color: #111827;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.form-submit-btn {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
}

.form-note {
    margin-top: 20px;
    font-size: 14px;
    color: #6B7280;
    text-align: center;
    line-height: 1.6;
}

.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-sticky-cta .cta-button-primary {
    width: 100%;
    margin: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-consultation {
        min-height: 85vh;
        padding: 60px 20px;
    }
    
    .hero-consultation h1 {
        font-size: 32px;
    }
    
    .hero-consultation .subheading {
        font-size: 18px;
    }
    
    .price-box {
        padding: 24px 32px;
    }
    
    .price-current {
        font-size: 40px;
    }
    
    .cta-button-primary {
        width: 100%;
        padding: 18px 32px;
        font-size: 16px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 16px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .who-for-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .how-works-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .booking-form-container {
        padding: 32px 24px;
    }
    
    .final-cta h2 {
        font-size: 28px;
    }
    
    .final-cta p {
        font-size: 18px;
    }
    
    .mobile-sticky-cta {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

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

.static-card,
.constitution-card,
.professional-card {
    animation: fadeInUp 0.6s ease-out;
}
