/*
Theme Name: Application Theme - Dr. Fatma
Theme URI: https://drfatmaelzahraa.com/
Author: Expert Developer
Description: Modern Full Site Editing (FSE) Block Theme built directly from code.html for "Application not Theorizing" Program.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: application-theme
Tags: full-site-editing, rtl-language-support, custom-colors, custom-typography
*/

/* المتغيرات والتنسيقات الشاملة المستخرجة من الهوية البصرية */
:root {
    --primary-color: #112240;
    --secondary-color: #334155;
    --accent-color: #C5A880;
    --bg-light: #F8FAFC;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --danger-color: #DC2626;
    --success-color: #16A34A;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

#scrollProgress {
    position: fixed;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to left, var(--accent-color), #1a3668);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 55px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 15px;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.btn-cta {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-white);
    text-decoration: none;
    padding: 16px 40px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(197, 168, 128, 0.4);
    text-align: center;
}

.btn-cta:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(17, 34, 64, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7);
    }

    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 15px rgba(197, 168, 128, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 168, 128, 0);
    }
}

.pulse-btn {
    animation: pulse 2.5s infinite ease-in-out;
}

.hero-section {
    background: linear-gradient(135deg, #112240 0%, #1a3668 100%);
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    color: var(--bg-white);
    padding: 40px 0 75px 0;
    position: relative;
}

.hero-section h1 {
    color: var(--accent-color);
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.hero-section h2.hero-sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.5;
    color: #112240;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 6px;
    display: inline-block;
}

.hero-section p.hero-lead-text {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 35px;
    color: #112240 !important;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.7;
}

.logo-area {
    text-align: center;
    margin-bottom: 45px;
}

.logo-img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-content .badge {
    background-color: rgba(197, 168, 128, 0.2);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.hero-media-container {
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    background: #000;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.problems-section {
    background-color: var(--bg-light);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.problem-card {
    background-color: var(--bg-white);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 4px solid var(--secondary-color);
    opacity: 0;
}

.problem-card.animated {
    opacity: 1;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(17, 34, 64, 0.08);
    border-right-color: var(--accent-color);
}

.problem-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.problem-card:hover .problem-icon {
    transform: scale(1.15) rotate(-5deg);
}

.problem-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.callout-box {
    background: linear-gradient(135deg, #FFFDF5 0%, #FFF9E6 100%);
    border-right: 5px solid var(--accent-color);
    border-left: 1px solid rgba(197, 168, 128, 0.2);
    border-top: 1px solid rgba(197, 168, 128, 0.2);
    border-bottom: 1px solid rgba(197, 168, 128, 0.2);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    font-size: 1.15rem;
    color: #45341d;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.callout-box i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 4px;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.doc-image-wrapper {
    text-align: center;
    position: relative;
}

.doc-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(17, 34, 64, 0.15);
    border: 4px solid var(--bg-light);
    transition: transform 0.4s ease;
}

.doc-image:hover {
    transform: scale(1.02);
}

.diff-box {
    background-color: var(--bg-light);
    border-radius: 20px;
    padding: 45px;
    border: 1px solid #CBD5E1;
}

.diff-box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.diff-box p {
    font-weight: 500;
    color: var(--text-dark);
}

.diff-box .principle {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed #94A3B8;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    position: relative;
    border: 1px solid #CBD5E1;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.timeline-num {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(17, 34, 64, 0.2);
}

.timeline-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    padding-right: 15px;
}

.timeline-item p {
    padding-right: 15px;
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-divider {
    text-align: center;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 15px 0;
    opacity: 0.9;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.comp-column {
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.4s ease;
}

.comp-column:hover {
    transform: translateY(-5px);
}

.comp-column.negative {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
}

.comp-column.positive {
    background-color: #F0FDF4;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(197, 168, 128, 0.1);
}

.comp-column h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.comp-list {
    list-style: none;
}

.comp-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.negative .comp-list li i {
    color: var(--danger-color);
}

.positive .comp-list li i {
    color: var(--success-color);
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.audience-box {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    border: 1px solid #E2E8F0;
}

.audience-box h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.audience-box.yes h3 {
    color: #15803d;
}

.audience-box.no h3 {
    color: #b91c1c;
}

.audience-list {
    list-style: none;
}

.audience-list li {
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-dark);
}

.audience-list li i {
    margin-top: 6px;
    font-size: 0.95rem;
}

.yes .audience-list li i {
    color: var(--success-color);
}

.no .audience-list li i {
    color: var(--danger-color);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.support-card {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid #CBD5E1;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background-color: var(--bg-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.support-card p {
    font-weight: 500;
    color: var(--text-dark);
}

.support-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.support-card:hover .support-icon {
    transform: scale(1.1) cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.final-section {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6fa 100%);
    border-top: 1px solid #E2E8F0;
    text-align: center;
    padding: 75px 0;
}

.final-section h2.final-title {
    color: #112240 !important;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.final-section .subtext-blue {
    font-size: 1.35rem;
    color: #112240 !important;
    margin-bottom: 40px;
    font-weight: 600;
}

.notice-box {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    padding: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #991B1B;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 34, 64, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--bg-white);
    width: 90%;
    max-width: 550px;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: right;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--danger-color);
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    color: var(--primary-color);
}

.modal-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 25px;
    padding: 10px;
    background-color: var(--bg-light);
    border-radius: 8px;
    border: 1px solid #CBD5E1;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.checkbox-container input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    margin-top: 3px;
    cursor: pointer;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    font-size: 1.15rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background-color: #CBD5E1;
    color: #64748B;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

.modal-btn.enabled {
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.3);
}

.modal-btn.enabled:hover {
    background-color: var(--primary-color);
}

@media (max-width: 992px) {

    .hero-grid,
    .diff-grid,
    .comparison-grid,
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-section,
    .diff-grid {
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.6rem;
    }

    .doc-image {
        max-width: 320px;
    }

    .section-title::after {
        margin: 12px auto 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 45px 0;
    }

    .support-grid {
        grid-template-columns: 1fr;
    }

    .final-section h2.final-title {
        font-size: 2.2rem;
    }

    .logo-img {
        max-height: 65px;
    }
}