/* ==========================================================================
   GLOBAL STRUCTURE FOR MADRASHA PAGE
   ========================================================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

/* ==========================================================================
   1. HERO / OVERVIEW SECTION
   ========================================================================== */
.m-hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    background: #F2F9FF; /* Light blue matching figma */
    border-bottom: 1px solid var(--border-subtle);
    padding: 64px 0;
}

.m-hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.m-hero-content {
    flex: 1;
    max-width: 550px;
}

.m-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-high);
}

.m-hero-content p {
    font-size: 1.15rem;
    color: var(--text-med);
    margin-bottom: 40px;
    line-height: 1.6;
}

.m-hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: var(--rad-sm);
}

.m-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.m-badge {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-high);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    gap: 8px;
}

.m-badge i {
    color: var(--brand-main);
}

.m-hero-image {
    flex: 1.2;
    display: flex;
    justify-content: flex-end;
}

.m-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. FEATURES SECTION
   ========================================================================== */
.m-features {
    padding: 80px 0;
}

.m-features .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.m-features h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-high);
}

.m-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.m-feature-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-md);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: var(--trans-swift);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.m-feature-card:not(.disabled):hover {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.m-feature-card .icon {
    width: 64px;
    height: 64px;
    background: var(--brand-light);
    color: var(--brand-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.m-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-high);
}

.m-feature-card.disabled {
    background: var(--bg-surface);
    opacity: 0.7;
}

.m-feature-card.disabled .icon {
    background: var(--border-subtle);
    color: var(--text-med);
}

.coming-soon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #F1F5F9;
    color: var(--text-med);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   3. BOTTOM SPLIT SECTION (Why Us & Demo Form)
   ========================================================================== */
.m-bottom {
    padding: 80px 0;
    background: #FFFFFF;
}

.m-bottom-layout {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.m-why-us {
    flex: 1;
}

.m-why-us h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 32px;
}

.m-checklist {
    list-style: none;
    margin-bottom: 48px;
}

.m-checklist li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 1.15rem;
    color: var(--text-high);
    font-weight: 500;
}

.m-checklist li i {
    color: #10B981; /* Green check */
    font-size: 1.5rem;
}

.m-demo-preview {
    background: var(--brand-main);
    color: #FFFFFF;
    padding: 32px;
    border-radius: var(--rad-md);
}

.m-demo-preview h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.m-demo-preview p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.m-form-container {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
}

.m-form-container h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 32px;
    text-align: center;
}

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

.m-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-high);
}

.m-form label .required {
    color: #EF4444;
}

.m-form input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--rad-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #F8FAFC;
    transition: var(--trans-swift);
}

.m-form input:focus {
    outline: none;
    border-color: var(--brand-main);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px var(--brand-light);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 16px;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 992px) {
    .m-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .m-hero {
        padding: 40px 0;
    }
    
    .m-hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .m-hero-content {
        max-width: 100%;
    }
    
    .m-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .m-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .m-hero-badges {
        justify-content: center;
    }
    
    .m-bottom-layout {
        flex-direction: column;
    }
    
    .m-form-container {
        padding: 32px 24px;
    }
}
