﻿/* =========================================================
   📘 About Madina Styles
   (نقل من <style> الداخلي إلى ملف CSS خارجي)
   ========================================================= */

/* ✅ مساعد وصول */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ✅ القواعد العامة */
section {
    background-color: #fff;
}

section h1,
section h2,
section h3,
section h4,
section h5,
section h6,
section p,
section span,
section img {
    margin: 0;
    color: #161616;
}

/* ✅ الفيديو */
.video {
    height: 563px;
    width: 100%;
}

.video video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ✅ استجابة للجوال */
@media (max-width: 768px) {
    .video {
        height: auto !important;
    }
}

/* ✅ محتوى البطاقات */
.content-card h3 {
    font-size: 1.875rem;
}

.content-card p {
    font-size: 1.3175rem;
    line-height: 2;
    margin: 0;
}

.content-card p span {
    font-size: 1em;
}

.content-card p span:first-of-type {
    font-weight: 700;
    color: #007366;
}

.content-card .titles p {
    font-size: 1.3125rem;
}

/* ✅ استجابة إضافية */
@media (max-width: 992px) {
    .sec2 .row {
        flex-direction: column-reverse;
    }
}

/* ✅ تبويبات */
.tab-pane {
    margin-top: 1em;
    display: none;
}

.tab-pane.show {
    display: block;
}

.tab-pane > ol > li,
.tab-pane > p {
    font-weight: 520;
    margin-bottom: 1em;
}

/* ✅ البطاقات */
.card {
    border-radius: .5rem;
    font-size: .8rem;
}

.card .card-title {
    margin: 1em 0;
    font-size: 1.4em;
    font-weight: 700;
}

.card .card-title a {
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
}

.about-madina img {
    height: 250px;
    border-radius: .5em;
}

.btns a {
    padding: .5rem;
}

/* ✅ تقدم البطاقة */
.card-progress {
    padding: .5em 1em;
    border: 1px solid #D2D6DB;
    border-radius: .5em;
    margin-bottom: 1em;
}

.card-progress .img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.card-progress .img img {
    object-fit: cover;
}

.card-progress h6 {
    font-size: 1em;
}

/* ✅ البوكس الرئيسي */
.box {
    position: relative;
    background-image: url('/images/aboutmadina/bg-box.png');
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    border-radius: 1em;
    overflow: hidden;
}

.box h2,
.box span {
    margin: 0;
    color: #fff;
}

.box .box-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(#1C042C80, #1C042C80);
}

.box .box-content {
    position: relative;
    z-index: 2;
}

/* ✅ استجابة للجوال */
@media screen and (max-width: 512px) {
    .sec1,
    .sec2,
    .sec3,
    .box {
        margin-top: 1em;
    }

    h3 {
        margin-top: 1em !important;
    }

    .box h2 {
        font-size: 1.5em;
    }
}

/* ✅ أنيميشن النصوص */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animatedTitles {
    opacity: 0;
    animation: fadeSlideIn 1.5s ease-out forwards;
}

/* ✅ حدود */
.br-25px {
    border-radius: 25px;
}

/* ✅ تبويبات إضافية */
.rp-tabs h3 {
    font-size: 1.875rem;
}
.card {
    border: 1px solid #d2d6db !important;
    border-radius: 0.9rem !important;
    padding: 0 !important;
}