/* ==========================================================================
   Founder Profile Page Styles - Al Bayan Academy
   Entity: Bilal Ahmed Madani (Founder)
   ========================================================================== */

/* Hero Founder Section */
.founder-hero {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #0d281a 0%, #153c29 50%, #0d2318 100%);
    color: #ffffff;
    overflow: hidden;
}

.founder-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(243, 184, 21, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.6;
}

.founder-hero_shape {
    position: absolute;
    right: -100px;
    top: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(29, 142, 90, 0.25) 0%, rgba(29, 142, 90, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.founder-hero_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(243, 184, 21, 0.12);
    border: 1px solid rgba(243, 184, 21, 0.35);
    color: #fde08b;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.founder-hero_badge .fa-certificate {
    color: #f3b815;
}

.founder-hero h1 {
    font-size: 46px;
    line-height: 1.2;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Lexend', sans-serif;
}

.founder-hero_subtitle {
    font-size: 22px;
    font-weight: 600;
    color: #f3b815;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.founder-hero_subtitle::after {
    content: '';
    display: inline-block;
    width: 50px;
    height: 2px;
    background: #f3b815;
}

.founder-hero_text {
    font-size: 17px;
    line-height: 1.75;
    color: #d6e8dc;
    margin-bottom: 35px;
    max-width: 620px;
}

.founder-hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.btn-founder-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f3b815 0%, #dfa50b 100%);
    color: #161515 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(243, 184, 21, 0.3);
    text-decoration: none;
}

.btn-founder-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(243, 184, 21, 0.4);
    background: linear-gradient(135deg, #ffd050 0%, #f3b815 100%);
    color: #000000 !important;
}

.btn-founder-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-founder-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Portrait Card in Hero */
.founder-card-frame {
    position: relative;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(243, 184, 21, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.founder-card-frame_inner {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #0f241a;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-card-frame_inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.founder-card-frame:hover .founder-card-frame_inner img {
    transform: scale(1.03);
}

.founder-card_overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 36, 26, 0.95) 80%);
    text-align: center;
}

.founder-card_tag {
    display: inline-block;
    background: #1D8E5A;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 6px;
}

.founder-card_name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Quick Facts / Entity Summary Card */
.founder-facts-section {
    position: relative;
    margin-top: -45px;
    z-index: 10;
    margin-bottom: 70px;
}

.founder-facts-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9f0ec;
    border-top: 4px solid #1D8E5A;
}

.facts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edf2ef;
    padding-bottom: 18px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.facts-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #161515;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.facts-header h3 .fa-id-card {
    color: #1D8E5A;
}

.facts-badge {
    background: #eaf6f0;
    color: #1D8E5A;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.fact-item {
    background: #fbfdfc;
    border: 1px solid #edf4f0;
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.25s ease;
}

.fact-item:hover {
    border-color: #1D8E5A;
    background: #ffffff;
    box-shadow: 0 6px 15px rgba(29, 142, 90, 0.06);
}

.fact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fact-value {
    font-size: 16px;
    font-weight: 700;
    color: #161515;
    margin: 0;
    word-break: break-word;
}

.fact-value a {
    color: #1D8E5A;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fact-value a:hover {
    color: #f3b815;
    text-decoration: underline;
}

/* Content Sections */
.founder-content-section {
    padding: 60px 0;
}

.founder-prose {
    font-size: 16px;
    line-height: 1.85;
    color: #4a5568;
}

.founder-prose p {
    margin-bottom: 20px;
}

.founder-prose strong {
    color: #161515;
}

.founder-highlight-box {
    background: #f4faf6;
    border-left: 4px solid #1D8E5A;
    border-radius: 0 12px 12px 0;
    padding: 24px 28px;
    margin: 30px 0;
    font-size: 17px;
    font-style: italic;
    color: #1b4d36;
}

.founder-highlight-box p {
    margin: 0;
}

.section-tag-gold {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #dfa50b;
    margin-bottom: 10px;
}

.section-heading-custom {
    font-size: 32px;
    font-weight: 800;
    color: #161515;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.section-heading-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #1D8E5A;
    border-radius: 2px;
}

.sec-centered .section-heading-custom::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Feature Pillars */
.pillar-card {
    background: #ffffff;
    border: 1px solid #e7ede9;
    border-radius: 12px;
    padding: 28px 24px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1D8E5A;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    border-color: #1D8E5A;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: #eaf6f0;
    color: #1D8E5A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.pillar-title {
    font-size: 18px;
    font-weight: 700;
    color: #161515;
    margin-bottom: 12px;
}

.pillar-text {
    font-size: 14.5px;
    line-height: 1.7;
    color: #5d6778;
    margin: 0;
}

/* Official Website Promo Section */
.founder-web-cta {
    background: linear-gradient(135deg, #153c29 0%, #0d281a 100%);
    border-radius: 20px;
    padding: 50px 45px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin: 40px 0 70px;
    box-shadow: 0 20px 40px rgba(13, 40, 26, 0.2);
}

.founder-web-cta::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(243, 184, 21, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.founder-web-cta h3 {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 14px;
}

.founder-web-cta p {
    font-size: 16px;
    line-height: 1.7;
    color: #d6e8dc;
    margin-bottom: 26px;
    max-width: 650px;
}

/* FAQ Accordion Styling */
.faq-container-custom {
    max-width: 880px;
    margin: 0 auto;
}

.faq-item-custom {
    background: #ffffff;
    border: 1px solid #e4eae6;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item-custom:hover {
    border-color: #1D8E5A;
}

.faq-question-custom {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: #161515;
    background: #ffffff;
    user-select: none;
    transition: background 0.2s ease;
}

.faq-question-custom:hover {
    background: #fbfdfc;
    color: #1D8E5A;
}

.faq-icon-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eaf6f0;
    color: #1D8E5A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item-custom.active .faq-icon-toggle {
    transform: rotate(180deg);
    background: #1D8E5A;
    color: #ffffff;
}

.faq-answer-custom {
    padding: 0 24px 22px 24px;
    font-size: 15.5px;
    line-height: 1.75;
    color: #4a5568;
    display: none;
    border-top: 1px solid #f0f4f1;
    padding-top: 16px;
}

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

/* Fix footer overlap and ensure clean section separation */
.main-footer {
    margin-top: 0 !important;
}

.founder-faq-section {
    padding-top: 20px !important;
    padding-bottom: 100px !important;
    margin-bottom: 0 !important;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .founder-hero {
        padding: 60px 0 70px;
        text-align: center;
    }
    .founder-hero_subtitle {
        justify-content: center;
    }
    .founder-hero_subtitle::after {
        display: none;
    }
    .founder-hero_text {
        margin: 0 auto 30px;
    }
    .founder-hero_actions {
        justify-content: center;
        margin-bottom: 40px;
    }
    .founder-facts-card {
        padding: 25px 20px;
    }
    .section-heading-custom {
        font-size: 26px;
    }
    .founder-faq-section {
        padding-bottom: 70px !important;
    }
}

@media (max-width: 767px) {
    .founder-hero h1 {
        font-size: 34px;
    }
    .founder-hero_subtitle {
        font-size: 18px;
    }
    .founder-web-cta {
        padding: 35px 25px;
        text-align: center;
    }
    .founder-web-cta p {
        margin-left: auto;
        margin-right: auto;
    }
}
