:root {
    --primary: #023960;
    --primary-dark: #0a58ca;
    --primary-light: #e8f1ff;
    --accent: #c89b2c;
    --accent-light: #e6c875;
    --muted: #6c757d;
    --light: #f8f9fa;
    --dark: #212529;
    --card-bg: #ffffff;
    --bg: #f4f6f8;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #1e4a8b 100%);
    --gradient-light: linear-gradient(135deg, #e8f1ff 0%, #ffffff 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ===== الأساسيات ===== */
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg);
    color: #222;
    line-height: 1.7;
    overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
}

/* certification-cycle- */
.certification-cycle-wrp h3 {
    padding: 10px 0;
    font-weight: 700;
    font-size: 25px;
    text-align: left;
    margin: 0;
}

.certification-cycle-wrp {
    background: #f5f5f5;
    padding: 10px 20px;
}

.year-box h5 {
    color: #000;
    font-weight: 600;
    padding: 8px;
    text-align: left;
    font-size: 19px;
    border: 1px solid #bdced7;
    display: inline-block;
    padding: 8px 25px;
    border-radius: 3px;
}

.year-box ul {
    margin: 0;
    padding-left: 17px;
    padding: 5px 30px;
}

.year-box .cycle-col .well {
    background: #fff;
    padding: 0;
    border: 1px solid #bdced7;
    height: 270px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    overflow: hidden;
}



.year-box .cycle-col h6 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: #26907a;
    padding: 10px;
    height: 38px;
    transition: all .75s ease-in-out;
    position: relative;
    background: #1c2f5d;
}

.year-box ul li {
    font-size: 12px;
    line-height: 18px;
    color: #222;
    font-weight: 700;
}

    .year-box ul li ol {
        padding-left: 20px;
    }

        .year-box ul li ol li {
            list-style-type: circle;
            font-size: 10px;
            line-height: 15px;
        }



.year-box .cycle-col .well:hover {
    cursor: pointer;
    -moz-box-shadow: 0 20px 40px 0 rgba(0, 0, 0, .19);
    -webkit-box-shadow: 0 20px 40px 0 rgba(0, 0, 0, .19);
    box-shadow: 0 20px 40px 0 rgba(0, 0, 0, .19);
    transition: all .75s ease-in-out;
    background: #fff;
}

.year-box {
    margin-bottom: 30px;
}

    .year-box .cycle-col.step-two h6 {
        background: #21386E;
    }


    .year-box .cycle-col.step-three h6 {
        background: #26407E;
    }

    .year-box .cycle-col.step-four h6 {
        background: #2A488D;
    }

    .year-box .cycle-col.step-five h6 {
        background: #2F509D;
    }

    .year-box .cycle-col.step-six h6 {
        background: #3458AD;
    }

    .year-box .cycle-col:hover .well h6 {
        height: 50px;
        transition: all .75s ease-in-out;
        position: relative;
        z-index: 10;
        padding-top: 18px;
    }

.box-wr--well h5 {
    font-size: 18px;
    text-align: center;
    font-weight: 600;
}

.bef-quality-assurance ul {
    padding: 0;
}

    .bef-quality-assurance ul li {
        list-style: none;
        margin-bottom: 50px;
    }

.box-wr--well img {
    width: 80px;
    margin: 0px auto 17px;
}

.box-wr--well {
    text-align: center;
}

.bef-quality-assurance {
    margin-top: 50px;
}
/* ===== الشريط العلوي ===== */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.navbar .nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: var(--transition);
    margin: 0 8px;
}

.navbar .nav-link:hover {
    color: var(--primary) !important;
}

.navbar-brand img {
    max-height: 60px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: 10px;
}

/* ===== قسم البطل ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), rgba(255, 255, 255, 0.0));
}

.hero-section {
    background: var(--gradient);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: 0
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
    z-index: 1
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 80px 0
}

.hero h1 {
    color: #fff;
    font-size: 2.4rem;
    margin-bottom: 12px;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35)
}

.hero p {
    color: #e9f1ff;
    margin-bottom: 18px;
    font-size: 1.05rem
}

.btn-cta {
    background: var(--primary);
    border-radius: 50px;
    padding: 12px 26px;
    font-weight: 700;
    border: none
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn-primary {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

.hero .btn-outline-light {
    margin-right: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

/* ===== دوائر ISO ===== */
.iso-map-container {
    position: absolute;
    bottom: 50px;
    right: 0;
    left: 0;
    text-align: center;
}

.circle-ISO {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #2a3b53;
    color: #fff;
    text-align: center;
    line-height: 95px;
    font-size: 12px;
    font-weight: bold;
    animation: orbit 20s linear infinite, pulse 2s infinite;
}

.iso1 {
    top: 0;
    left: 50%;
    transform-origin: -200px 200px;
}

.iso2 {
    top: 20%;
    right: 0;
    transform-origin: -200px -200px;
}

.iso3 {
    bottom: 20%;
    right: 0;
    transform-origin: 200px -200px;
}

.iso4 {
    bottom: 0;
    left: 50%;
    transform-origin: 200px 200px;
}

.iso5 {
    top: 20%;
    left: 0;
    transform-origin: 200px -200px;
}

.iso-6 {
    top: 0;
    left: 50%;
    transform-origin: -200px 200px;
}

.circle-ISO.iso-6 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes orbit {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px #1b74a8; }
    50% { box-shadow: 0 0 30px #1b74a8; }
    100% { box-shadow: 0 0 10px #1b74a8; }
}

/* ===== قسم الخدمات ===== */
.services-section {
    padding: 25px 0;
    background-color: var(--light);
}

.services-section .section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

.services-section .section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 15px;
}

.services-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.services-section .section-title p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--primary);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-icon img {
    max-width: 40px;
    filter: brightness(0) invert(1);
}

.service-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== البطاقات الحديثة ===== */
.card-modern {
    border-radius: 14px;
    padding: 26px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.04);
    border: 1px solid rgba(13, 110, 253, 0.04)
}

.tier-card-modern {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e9ecef;
    height: 100%;
}

.tier-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tier-card-modern img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.tier-card-modern h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* ===== قسم من نحن ===== */
.about-section {
    padding: 80px 15px;
    background-color: #fff;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-section .btn-primary {
    margin-top: 20px;
    border-radius: 50px;
    padding: 12px 30px;
}

.about-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(13, 110, 253, 0.05);
    margin-bottom: 50px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.about-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.about-card p {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 25px;
}

.about-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
}

.highlight-box {
    background: rgba(13, 110, 253, 0.05);
    border-right: 4px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0px;
    height: 100%;
    background: var(--primary);
}

/* ===== قسم الإحصائيات ===== */
.stats-section {
    padding: 100px 0;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,160L48,170.7C96,181,192,203,288,213.3C384,224,480,224,576,197.3C672,171,768,117,864,117.3C960,117,1056,171,1152,170.7C1248,171,1344,117,1392,90.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.stat-item {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* ===== قسم المنظمات المعتمدة ===== */
.logos-wrapper {
    flex: 1 1 320px;
    position: relative;
    overflow: hidden;
    padding: 12px;
}

.logos-row {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 25px;
}

.logo-card {
    flex: 0 0 160px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.logo-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.logo-card img {
    width: 100%;
    height: 70px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.row-1 {
    animation: scroll-left 5s linear infinite;
}

.row-2 {
    animation: scroll-right 5s linear infinite;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    width: 180px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.fade-left {
    left: 0;
    background: linear-gradient(to right, #f8f9fc 85%, rgba(248, 249, 252, 0));
}

.fade-right {
    right: 0;
    background: linear-gradient(to left, #f8f9fc 85%, rgba(248, 249, 252, 0));
}

/* ===== قسم الأقسام ===== */
.departments-section {
    padding: 60px 0;
    background-color: var(--light);
    position: relative;
}

.departments-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.8" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.department-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--primary);
    position: relative;
    z-index: 1;
}

.department-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.department-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.department-card:hover .department-icon {
    transform: scale(1.1);
}

.department-icon i {
    font-size: 2rem;
    color: white;
}

.department-card h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.department-card p {
    color: var(--muted);
    margin-bottom: 20px;
}

/* ===== قسم القيم ===== */
.values-section {
    padding: 80px 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.value-item:hover {
    background-color: var(--primary-light);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.value-item:hover .value-icon {
    background: var(--primary);
}

.value-item:hover .value-icon i {
    color: white;
}

.value-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.value-content h4 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.value-content p {
    color: var(--muted);
    margin: 0;
}

/* ===== الشريط الجانبي ===== */
.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-md);
    margin-bottom: 50px;
    border-top: 4px solid var(--accent);
    transition: var(--transition);
    
    /* ✅ إضافة الثبات أثناء التمرير */
    position: sticky;
    top: 120px; /* المسافة من أعلى الصفحة عند الثبات */
    z-index: 10; /* لتظل فوق العناصر الأخرى */
}


.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.sidebar-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.sidebar-list a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 0 8px 8px 0;
    z-index: -1;
}

.sidebar-list a:hover::before,
.sidebar-list a.active::before {
    width: 100%;
}

.sidebar-list a:hover,
.sidebar-list a.active {
    color: white;
}

.sidebar-list .icon {
    width: 30px;
    margin-left: 10px;
    display: flex;
    justify-content: center;
}

/* ===== قسم اتصل بنا ===== */
.contact-info {
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(13, 110, 253, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon:hover {
    background: rgba(13, 110, 253, 0.15);
    transform: scale(1.05);
}

.contact-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.contact-details {
    flex: 1;
}

.contact-details h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.contact-details p {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== التذييل ===== */
footer {
    background-color: #002147;
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

footer a {
    color: #aad4ff;
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
}

.social a {
    display: inline-block;
    margin: 0 8px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== محمل الصفحة ===== */
.fullpage-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.fullpage-loader--invisible {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

/* ===== IAF Fixed ===== */
.leftfixed {
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    left: 20px;
}

.leftfixedinner {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ===== الأزرار ===== */
.btn {
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
}

.btn-view-all {
    padding: 12px 40px;
    font-size: 1.1rem;
}

/* ===== التنقل ===== */
.breadcrumb-section {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    margin-top: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s ease 0.4s both;
}

.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: white;
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.0rem;
}

/* ===== العناوين العامة ===== */
.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-block;
    margin-bottom: 20px;
}

.section-title h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

.content-section {
    padding-top: 60px;
}

    /* تنسيقات القيم */
    .values-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .value-card {
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        padding: 25px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: flex-start;
        border-right: 4px solid #2c5aa0;
    }
    
    .value-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .value-icon {
        background: #f8f9fa;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 15px;
        flex-shrink: 0;
    }
    
    .value-icon i {
        font-size: 24px;
        color: #2c5aa0;
    }
    
    .value-content {
        flex: 1;
    }
    
    .value-content h4 {
        color: #2c5aa0;
        margin-bottom: 10px;
        font-size: 18px;
        font-weight: 600;
    }
    
    .value-content p {
        color: #555;
        line-height: 1.6;
        margin: 0;
        font-size: 14px;
    }
    
/* ===== الرسوم المتحركة ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 1s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== الاستجابة للشاشات المختلفة ===== */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .accredited-container {
        flex-direction: column;
        text-align: center;
    }

    .logos-wrapper {
        width: 100%;
    }

    .fade-left,
    .fade-right {
        width: 80px;
    }

    .accredited-text h2 {
        font-size: 22px;
    }

    .logo-card {
        flex: 0 0 130px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .about-card {
        padding: 30px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .content-section, .departments-section, .values-section, .stats-section {
        padding: 70px 0;
    }
    
    .value-item {
        margin-bottom: 25px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .circle-ISO {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 0.7rem;
        margin: 0 5px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .about-card {
        padding: 25px 20px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

    /* التجاوب مع الشاشات الصغيرة */
    @media (max-width: 768px) {
        .values-grid {
            grid-template-columns: 1fr;
        }
        
        .value-card {
            flex-direction: column;
            text-align: center;
        }
        
        .value-icon {
            margin-left: 0;
            margin-bottom: 15px;
        }
    
    }
/* تصميم الكروت الجديد */
.servc-box {
    margin-bottom: 25px;
}

.servc-box .card {
    overflow: hidden;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
    background: #fff;
    position: relative;
}

.servc-box .card-image {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.servc-box .card-img-top {
    width: 100%;
    height: 200px; /* تم تقليص الارتفاع */
    object-fit: cover;
    transition: all 0.6s ease;
}

/* الدمج مع الخصائص الجديدة */
.servc-box .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px;
    height: 80px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%);
    transition: all 0.5s ease;
    border-radius: 0 0 12px 12px;
}

.servc-box .card-title {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

/* تأثير الهوفر */
.servc-box:hover .card-img-top {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.servc-box:hover .card {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.servc-box:hover .card-body {
    height: 100%;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 100%)
}

/* الروابط */
.servc-box a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* تحسين للموبايل */
@media (max-width: 768px) {
    .servc-box .card-img-top {
        height: 160px;
    }
    .servc-box .card-body {
        height: 70px;
        padding: 10px;
    }
}
.cert-logo {
    text-align: center; /* لتوسيط العنصر بالكامل */
    margin-top: 20px;
}

.cert-logo img {
    width: 55%;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
}

.cert-logo img:hover {
    transform: scale(1.05);
}
