/* ============================================
   ABOUT PAGE - RESPONSIVE STYLES
   للجوالات والتابلتات والأيبادات
   ============================================ */

/* ===== iPad Air / iPad Pro (عمودي) ===== */
@media screen and (min-width: 768px) and (max-width: 1024px) {

    .hero-section {
        width: 100% !important;
        min-height: 480px !important;
        max-height: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 60px 0;
    }

    .hero-bg {
        background-size: cover !important;
        background-position: center center !important;
        width: 100%;
    }

    .hero-bg::after {
        background: linear-gradient(90deg,
                rgba(255, 255, 255, .95) 0%,
                rgba(255, 255, 255, .85) 40%,
                rgba(255, 255, 255, .60) 70%,
                rgba(255, 255, 255, 0) 100%) !important;
    }

    .hero-content {
        margin-left: 30px !important;
        margin-top: 0 !important;
        max-width: 480px !important;
    }

    .hero-content h1 {
        font-size: 44px !important;
    }

    .hero-content p {
        font-size: 17px !important;
    }

    .vision-mission-section {
        margin-top: -40px !important;
    }

    .main-card {
        padding: 30px !important;
        gap: 24px !important;
    }

    .card-icon {
        width: 75px !important;
        height: 75px !important;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 100% !important;
        gap: 20px !important;
    }

    /* Achievements - صفين */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .stat-card {
        border-right: none !important;
        border-bottom: none !important;
        padding: 16px 12px !important;
    }

    .stat-card:nth-child(odd) {
        border-right: none !important;
    }

    .counter {
        font-size: 36px !important;
    }

    .stat-icon {
        width: 70px !important;
        height: 70px !important;
    }
}

/* ===== iPad Mini (عمودي) ===== */
@media screen and (min-width: 768px) and (max-width: 820px) {
    .hero-content {
        margin-left: 24px !important;
        max-width: 440px !important;
    }

    .hero-content h1 {
        font-size: 38px !important;
    }

    .hero-content p {
        font-size: 16px !important;
    }

    .main-card h2 {
        font-size: 24px !important;
    }

    .value-card {
        padding: 24px 18px !important;
    }
}

/* ===== iPad Air / iPad Pro (أفقي) ===== */
@media screen and (min-width: 1025px) and (max-width: 1280px) {
    .hero-section {
        width: 100% !important;
        min-height: 550px !important;
        max-height: none !important;
        height: auto !important;
    }

    .hero-bg {
        background-size: cover !important;
    }

    .hero-content {
        margin-left: 40px !important;
        margin-top: -40px !important;
        max-width: 460px !important;
    }
}

/* ===== أجهزة لوحية صغيرة (Microsoft Surface Duo, Galaxy Fold) ===== */
@media screen and (min-width: 540px) and (max-width: 767px) {
    .hero-section {
        width: 100% !important;
        min-height: 420px !important;
        max-height: none !important;
        height: auto !important;
        padding: 40px 0;
    }

    .hero-bg {
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-bg::after {
        background: linear-gradient(90deg,
                rgba(255, 255, 255, .96) 0%,
                rgba(255, 255, 255, .90) 50%,
                rgba(255, 255, 255, .70) 100%) !important;
    }

    .hero-content {
        margin-left: 20px !important;
        margin-top: 0 !important;
        max-width: 380px !important;
    }

    .hero-content h1 {
        font-size: 32px !important;
    }

    .hero-content p {
        font-size: 15px !important;
        margin-top: 12px !important;
        line-height: 1.6 !important;
    }

    .vision-mission-section {
        margin-top: -30px !important;
    }

    .main-card {
        grid-template-columns: 70px 1fr !important;
        gap: 18px !important;
        padding: 24px !important;
    }

    .card-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .main-card h2 {
        font-size: 22px !important;
    }

    /* Achievements - صفين مع تصغير */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .stat-card {
        padding: 12px 8px !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    .stat-icon {
        width: 55px !important;
        height: 55px !important;
        margin-bottom: 8px !important;
    }

    .counter {
        font-size: 28px !important;
        margin-bottom: 5px !important;
    }

    .stat-card p {
        font-size: 12px !important;
    }
}

/* ===== جوالات كبيرة (iPhone 14/15 Plus, Samsung S23 Ultra) ===== */
@media screen and (min-width: 376px) and (max-width: 480px) {
    .container {
        width: min(100% - 24px, 1120px) !important;
    }

    .hero-section {
        min-height: 380px !important;
        padding: 30px 0;
    }

    .hero-bg {
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-bg::after {
        background: linear-gradient(90deg,
                rgba(255, 255, 255, .97) 0%,
                rgba(255, 255, 255, .92) 60%,
                rgba(255, 255, 255, .80) 100%) !important;
    }

    .hero-content {
        margin-left: 16px !important;
        max-width: 320px !important;
    }

    .hero-content h1 {
        font-size: 28px !important;
    }

    .hero-content p {
        font-size: 14px !important;
    }

    .eyebrow {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    .eyebrow::before {
        width: 24px !important;
    }

    .vision-mission-section {
        margin-top: -20px !important;
    }

    .main-card {
        padding: 20px !important;
    }

    .section-title h2 {
        font-size: 28px !important;
    }

    .value-card {
        min-height: auto !important;
        padding: 24px 18px !important;
    }

    .value-icon {
        width: 60px !important;
        height: 60px !important;
    }

    .team-card {
        padding: 18px !important;
    }

    .team-photo {
        width: 80px !important;
        height: 80px !important;
    }

    /* Achievements - صفين مع تصغير مناسب */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .stat-card {
        padding: 12px 6px !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    .stat-icon {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 6px !important;
    }

    .counter {
        font-size: 26px !important;
        margin-bottom: 4px !important;
    }

    .stat-card p {
        font-size: 11px !important;
        font-weight: 700 !important;
    }
}

/* ===== جوالات صغيرة (iPhone SE, Galaxy S22) ===== */
@media screen and (max-width: 375px) {
    .container {
        width: min(100% - 20px, 1120px) !important;
    }

    .hero-section {
        min-height: 350px !important;
        padding: 25px 0;
    }

    .hero-bg {
        background-size: cover !important;
        background-position: center center !important;
    }

    .hero-bg::after {
        background: linear-gradient(90deg,
                rgba(255, 255, 255, .98) 0%,
                rgba(255, 255, 255, .95) 70%,
                rgba(255, 255, 255, .85) 100%) !important;
    }

    .hero-content {
        margin-left: 12px !important;
        max-width: 280px !important;
    }

    .hero-content h1 {
        font-size: 24px !important;
        letter-spacing: -0.5px !important;
    }

    .hero-content p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    .eyebrow {
        font-size: 10px !important;
        gap: 8px !important;
    }

    .main-card {
        padding: 18px !important;
    }

    .main-card h2 {
        font-size: 20px !important;
    }

    .card-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .section-title h2 {
        font-size: 26px !important;
    }

    .section-title p {
        font-size: 14px !important;
    }

    .value-card h3 {
        font-size: 16px !important;
    }

    .value-card p {
        font-size: 13px !important;
    }

    .team-info h3 {
        font-size: 16px !important;
    }

    .team-info p {
        font-size: 12px !important;
    }

    /* Achievements - صفين مع تصغير */
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .stat-card {
        padding: 10px 4px !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    .stat-icon {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 5px !important;
    }

    .counter {
        font-size: 22px !important;
        margin-bottom: 3px !important;
    }

    .stat-card p {
        font-size: 10px !important;
        font-weight: 700 !important;
    }
}

/* ===== تحسينات إضافية لجميع الأجهزة اللوحية والجوالات ===== */

/* تحسين اللمس - تكبير الأزرار */
@media (max-width: 1024px) {
    .social-links a {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    /* منع hover على أجهزة اللمس */
    .value-card:hover {
        transform: none !important;
    }

    /* تحسين التمرير */
    body {
        overflow-x: hidden !important;
    }

    /* تحسين الصور */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* تحسين هوامش الأقسام */
    .values-section,
    .team-section,
    .achievements-section {
        padding-top: 50px !important;
    }

    .achievements-section {
        padding-bottom: 50px !important;
    }

    /* تحسين stats-panel */
    .stats-panel {
        padding: 20px 16px !important;
    }
}

/* ===== تحسينات خاصة لأجهزة iOS (iPad/iPhone) ===== */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        background-attachment: scroll !important;
    }

    input,
    button,
    a {
        cursor: pointer;
    }
}

/* ===== للشاشات الصغيرة جداً ===== */
@media (max-width: 280px) {
    .hero-content h1 {
        font-size: 20px !important;
    }

    .hero-content p {
        font-size: 11px !important;
    }

    .main-card h2 {
        font-size: 18px !important;
    }

    /* Achievements - صف واحد للشاشات الصغيرة جداً */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}