/* 
   ========================================
   BLOCKS & COMPONENTS
   Cards, Tables, Process Steps, Accordions, CTA, etc.
   ======================================== 
*/

/* Hero Section (Visa Variant) */
.visa-hero {
    background: linear-gradient(135deg, rgb(25, 25, 25) 0%, rgb(71, 71, 71) 100%);
    padding: 140px 20px;
    text-align: center;
    color: rgb(255, 255, 255);
    position: relative;
    overflow: hidden;
}

.visa-hero h1 {
    color: #ffffff;
    font-size: 3.5rem; /* 56px */
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    line-height: 1.2;
}

.visa-hero p {
    font-size: 1.375rem; /* 22px */
    font-family: 'Raleway', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Intro Section */
.intro-section {
    background: rgb(255, 255, 255);
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-section p {
    font-size: 1.1875rem; /* 19px */
    line-height: 1.8;
    color: rgb(71, 71, 71);
    font-family: 'Raleway', sans-serif;
    margin-bottom: 1.25rem;
}

/* Section Containers */
.white-section {
    background: rgb(255, 255, 255);
    padding: 6rem 1rem;
}

.gray-section {
    background: rgb(248, 249, 250);
    padding: 6rem 1rem;
}

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

.section-header {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: rgb(25, 25, 25);
    margin: 0 0 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Grid & Components */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2.5rem auto;
    max-width: 1200px;
}

.card {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 0 !important;
}

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

.card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::after {
    opacity: 0.18;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: rgb(25, 25, 25);
    font-size: 1.375rem; /* 22px */
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.card p {
    font-size: 1rem;
    color: rgb(71, 71, 71);
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Card Lists */
.card ul,
.content-container ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.card ul li,
.content-container ul li {
    padding: 5px 0 5px 25px;
    position: relative;
    font-size: 1rem;
    color: rgb(71, 71, 71);
    font-family: 'Raleway', sans-serif;
}

.card ul li:before,
.content-container ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(230, 0, 0); /* Brand Red */
    font-weight: bold;
}

/* Special Card Variants */
.card.visa {
    background: linear-gradient(135deg, rgb(248, 249, 250) 0%, rgb(255, 255, 255) 100%);
    border-left: 4px solid rgb(230, 0, 0);
}

.card.highlight {
    background: rgb(248, 249, 250);
    border: 2px solid rgb(230, 0, 0);
}

/* Comparison Table */
.comparison-table {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 20px;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(255, 255, 255);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
    background: rgb(25, 25, 25);
    color: rgb(255, 255, 255);
    padding: 1.25rem;
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 1rem;
}

.comparison-table td {
    padding: 1.25rem;
    border-bottom: 1px solid rgb(248, 249, 250);
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    color: rgb(71, 71, 71);
}

.comparison-table tr:hover {
    background: rgb(248, 249, 250);
}

/* Process Steps */
.process-steps {
    counter-reset: step-counter;
    margin: 2.5rem 0;
}

.process-step {
    background: rgb(255, 255, 255);
    border-radius: 16px;
    padding: 3rem 3rem 3rem 6rem; /* Left padding for number */
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    border-left: 3px solid rgb(230, 0, 0);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.process-step:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 30px;
    width: 50px;
    height: 50px;
    background: rgb(230, 0, 0);
    color: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.375rem;
    font-family: 'Raleway', sans-serif;
}

.process-step h3 {
    margin-top: 0;
    font-size: 1.375rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: rgb(25, 25, 25);
    margin-bottom: 0.75rem;
}

/* FAQ Accordion */
.accordion {
    margin: 2.5rem auto;
    max-width: 1200px;
}

.accordion-item {
    background: rgb(255, 255, 255);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid rgb(209, 209, 209);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgb(230, 0, 0);
}

.accordion-header {
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    background: rgb(248, 249, 250);
    font-size: 1.125rem;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    color: rgb(25, 25, 25);
    transition: all 0.3s ease;
    position: relative;
    padding-right: 3.5rem; /* Space for arrow */
}

.accordion-header:hover {
    background: rgb(230, 0, 0);
    color: rgb(255, 255, 255);
}

.accordion-header::after {
    content: "›";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    font-size: 1.5rem;
    transition: 0.3s ease;
}

.accordion-item.accordion-active .accordion-header::after {
    transform: translateY(-50%) rotate(90deg);
}

.accordion-content {
    padding: 1.5rem;
    display: none;
    font-family: 'Raleway', sans-serif;
    color: rgb(71, 71, 71);
    line-height: 1.6;
    background: #fff;
}

.accordion-item.accordion-active .accordion-content {
    display: block !important;
}

/* CTA Box */
.cta-box {
    background: rgb(0, 0, 0);
    padding: 5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    color: rgb(255, 255, 255);
    margin: 4rem auto !important; /* Force gap */
    max-width: 1200px;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.cta-box p {
    font-size: 1.25rem;
    font-family: 'Raleway', sans-serif;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-box a {
    display: inline-block;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    padding: 1.25rem 3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease-in-out;
}

.cta-box a:hover {
    background: rgb(230, 0, 0);
    color: rgb(255, 255, 255);
    transform: scale(1.05);
}

/* Info Box */
.info-box {
    background: rgb(248, 249, 250);
    border-left: 4px solid rgb(230, 0, 0);
    padding: 1.5rem 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    border-radius: 8px;
}

/* Mobile Responsive Styles for Cards and Process Steps */

/* Card list styling - fix bullet point alignment */
.card-grid .card ul,
.white-section .card ul,
.gray-section .card ul {
    list-style: none !important;
    padding-left: 0 !important;
}

.card-grid .card ul li,
.white-section .card ul li,
.gray-section .card ul li {
    padding: 5px 0 !important;
    position: relative !important;
    padding-left: 15px !important;
}

.card-grid .card ul li:before,
.white-section .card ul li:before,
.gray-section .card ul li:before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    color: rgb(230, 0, 0) !important;
    font-weight: bold !important;
}

/* Overrides for gray and white sections to reduce padding globally */
.gray-section,
.white-section {
    padding: 3rem 20px !important;
}

@media (max-width: 768px) {
    .gray-section,
    .white-section {
        padding: 2rem 10px !important;
    }

    .card {
        padding: 15px !important;
        margin-bottom: 15px;
        margin-top: 0 !important;
        animation: fadeIn 0.8s ease-out forwards;
    }
    
    .process-step {
        padding: 15px 15px 15px 55px !important;
        margin-bottom: 15px;
    }
    
    .process-step::before {
        left: 10px !important;
        top: 15px !important;
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }
    
    .contact-info {
        padding: 30px 15px !important;
        margin: 15px 0 !important;
    }
    
    .contact-info h3 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .contact-info p {
        font-size: 16px !important;
        margin-bottom: 20px !important;
        line-height: 1.6 !important;
    }
    
    /* Mobile card list styling - further reduced padding */
    .card ul li {
        padding-left: 30px !important;
    }
    
    .card h3,
    .process-step h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .card p,
    .process-step p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .card:hover,
    .process-step:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    /* Responsive Table - Card View */
    table.comparison-table,
    .comparison-table table {
        border: 0;
        box-shadow: none;
        background: transparent;
        display: block !important;
    }

    table.comparison-table thead,
    .comparison-table table thead {
        display: none !important;
    }

    table.comparison-table tbody, 
    table.comparison-table tr, 
    table.comparison-table td,
    .comparison-table table tbody, 
    .comparison-table table tr, 
    .comparison-table table td {
        display: block !important;
        width: 100%;
    }

    table.comparison-table tr,
    .comparison-table table tr {
        margin-bottom: 25px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }

    table.comparison-table td,
    .comparison-table table td {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 50px;
    }

    table.comparison-table td::before,
    .comparison-table table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: rgb(25, 25, 25);
        text-align: left;
        flex: 1;
        margin-right: 15px;
        font-size: 15px;
        position: static;
        width: auto;
    }
}
