/* ============================================
   M-PESA TRANSACTION LIMITS CSS
   Page-Specific Styles
   ============================================ */

/* ============================================
   1. HERO SECTION
   ============================================ */

.limits-hero-section {
    position: relative;
    background: linear-gradient(135deg, #004526 0%, #006837 100%);
    padding: 4rem 0 12rem;
    overflow: hidden;
    min-height: 700px;
}

.limits-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 168, 107, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.limits-hero-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.limits-hero-title {
    font-size: 3.3rem;
    font-weight: 900;
    color: #ffffff !important;
    margin: 0 0 0.85rem;
    line-height: 1.05;
    letter-spacing: -0.018em;
    text-transform: uppercase;
    display: inline-block;
    transform: rotate(-0.6deg) skewY(-1deg);
    text-shadow: none;
}

.limits-hero-subtitle-main {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.4rem 0 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.limits-hero-rotate {
    color: #f59e0b;
    font-weight: 700;
    display: inline-block;
    animation: limitsRotateFade 0.5s ease-in-out;
}

@keyframes limitsRotateFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.limits-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 900px;
    margin: 0 auto 0.25rem;
    line-height: 1.6;
}

.limits-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
}

.limits-hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   2. QUICK STATS CARDS
   ============================================ */

.limits-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.quick-stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 45, 25, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.quick-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(0, 45, 25, 0.3);
    border-color: #10b981;
}

.quick-stat-card--primary {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(255, 255, 255, 0.95));
    border-color: rgba(245, 158, 11, 0.4);
}

.quick-stat-card--primary .quick-stat-card__content h3,
.quick-stat-card--primary .quick-stat-card__value,
.quick-stat-card--primary .quick-stat-card__content p {
    color: #ffffff;
}

.quick-stat-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #004526 0%, #006837 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.quick-stat-card--primary .quick-stat-card__icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.quick-stat-card__icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.quick-stat-card__content h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.quick-stat-card__value {
    font-size: 2rem;
    font-weight: 900;
    color: #004526;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.quick-stat-card__content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ============================================
   3. LIMITS TABLES SECTION
   ============================================ */

.limits-tables-section {
    padding: 8rem 0 4rem;
    background: #f9fbf7;
}

.limits-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.limits-section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.limits-section-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.limits-table-container {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

.limits-table-container:last-child {
    margin-bottom: 0;
}

.limits-table-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.limits-table-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #004526 0%, #006837 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.limits-table-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.limits-table-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem;
}

.limits-table-title p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.limits-table-wrapper {
    overflow-x: auto;
}

.limits-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.limits-table thead {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.limits-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e5e7eb;
}

.limits-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.limits-table tbody tr:hover {
    background-color: rgba(249, 250, 251, 0.8);
}

.limits-table tbody tr:last-child {
    border-bottom: none;
}

.limits-table td {
    padding: 1.25rem 1rem;
    color: #374151;
}

.limits-table td strong {
    color: #1f2937;
    font-weight: 700;
}

.limit-value {
    color: #004526;
    font-weight: 700;
    font-size: 1.05rem;
}

/* ============================================
   4. ARTICLE CONTENT SECTION
   ============================================ */

.article-content-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    background-image:
        repeating-linear-gradient(transparent,
            transparent 31px,
            #e5e7eb 31px,
            #e5e7eb 32px);
    background-size: 100% 32px;
    background-position: 0 3rem;
}

.article-content::before {
    content: '';
    position: absolute;
    left: 3rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    opacity: 0.3;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #374151;
}

.article-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-body h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1.25rem;
}

.article-body h4 {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1f2937;
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.article-body strong {
    color: #1f2937;
    font-weight: 700;
}

/* ============================================
   5. FAQ SECTION
   ============================================ */

.limits-faq-section {
    padding: 4rem 0;
    background: #ffffff;
}

.limits-faq-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.limits-faq-heading h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.limits-faq-heading p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
}

.limits-faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.limits-faq-item {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.limits-faq-item:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.limits-faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.limits-faq-toggle:hover {
    background-color: rgba(249, 250, 251, 0.8);
}

.limits-faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
    padding-right: 1rem;
}

.limits-faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f59e0b;
    transition: transform 0.3s ease;
}

.limits-faq-toggle[aria-expanded="true"] .limits-faq-icon {
    transform: rotate(45deg);
}

.limits-faq-body {
    padding: 0 1.5rem 1.5rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
}

.limits-faq-body p {
    margin: 0;
}

.limits-faq-body strong {
    color: #1f2937;
    font-weight: 700;
}

/* ============================================
   6. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .limits-hero-section {
        padding: 3rem 0 10rem;
        min-height: auto;
    }

    .limits-hero-title {
        font-size: 2.25rem;
    }

    .limits-hero-subtitle-main {
        font-size: 1.25rem;
    }

    .limits-hero-subtitle {
        font-size: 0.95rem;
    }

    .limits-quick-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quick-stat-card {
        padding: 1.5rem;
    }

    .quick-stat-card__icon {
        width: 50px;
        height: 50px;
    }

    .quick-stat-card__icon i {
        font-size: 1.5rem;
    }

    .quick-stat-card__value {
        font-size: 1.75rem;
    }

    .limits-tables-section {
        padding: 6rem 0 3rem;
    }

    .limits-section-header h2 {
        font-size: 1.875rem;
    }

    .limits-table-container {
        padding: 1.5rem;
    }

    .limits-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .limits-table {
        font-size: 0.875rem;
    }

    .limits-table th,
    .limits-table td {
        padding: 0.875rem 0.5rem;
    }

    .article-content {
        padding: 2rem 1.5rem;
    }

    .article-content::before {
        left: 1.5rem;
    }

    .article-title {
        font-size: 1.875rem;
    }

    .article-body h3 {
        font-size: 1.5rem;
    }

    .limits-faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .limits-hero-section {
        padding: 2.5rem 0 8rem;
        min-height: auto;
    }

    .limits-hero-title {
        font-size: 1.875rem;
    }

    .limits-quick-stats {
        gap: 0.75rem;
    }

    .quick-stat-card {
        padding: 1.25rem;
    }

    .limits-table-container {
        padding: 1rem;
    }

    .limits-table-icon {
        width: 50px;
        height: 50px;
    }

    .limits-table-icon i {
        font-size: 1.5rem;
    }

    .limits-table-title h3 {
        font-size: 1.25rem;
    }

    .limits-table {
        font-size: 0.8rem;
    }

    .limits-table th,
    .limits-table td {
        padding: 0.75rem 0.375rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
        background-position: 0 1.5rem;
    }

    .article-content::before {
        left: 1rem;
    }
}
