:root {
    --beige-light: #F2E2C4;
    --orange-primary: #F26E22;
    --orange-dark: #F25922;
    --gray-soft: #F2F2F2;
    --dark-charcoal: #262626;
}

/* 
================================
            header
================================

*/
/* Default size */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle,
.navbar-nav .dropdown-item,
.navbar-collapse .text-muted {
    font-size: 16px;
}

/* عندما يكون عرض الشاشة بين 997px و1286px يتم تصغير الخط */
@media (min-width: 997px) and (max-width: 1286px) {
    .navbar-nav .nav-link,
    .navbar-nav .dropdown-toggle,
    .navbar-nav .dropdown-item,
    .navbar-collapse .text-muted {
        font-size: 14px !important;
    }

    .navbar-brand img {
        width: 140px !important; /* تصغير إضافي بسيط للشعار */
    }

    /* تقليل الهوامش بين عناصر القائمة بشكل واضح */
    .navbar-nav {
        gap: 8px !important;
    }

    /* تقليل المسافة بين الروابط في الجزء الأيمن (login/register) */
    .navbar-collapse .d-flex.gap-3,
    .navbar-collapse .d-flex.gap-2 {
        gap: 4px !important;
    }

    /* تقليل padding الخاص بالروابط ليعطي مساحة إضافية */
    .navbar-nav .nav-link {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}

.navbar-toggler {
    background-color: transparent !important; 
    border: 2px solid #F26E22 !important; 
    box-shadow: none !important; 
}

/* نثبت شكل الزر الهامبرجر */
.navbar-toggler .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #F26E22; /* لون الخطوط */
    transition: all 0.3s ease-in-out;
}

/* لما يفتح المنيو ما يتغير شكل الزر */
.navbar-toggler.collapsed .bar,
.navbar-toggler .bar {
    background-color: #F26E22; /* خليها ثابتة نفس اللون */
}

/* مخصص لشكل الزر */
.styled-toggler {
    border: 2px solid #F26E22;
    border-radius: 12px;
    padding: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-orange {
    color: #F26E22;
}

.commitment-card {
    transition: all 0.3s ease;
}

.commitment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.commitment-card i {
    transition: color 0.3s;
}

.commitment-card:hover i {
    color: #d35400;
}


/* Header background */
.main-header {
    background-color: white;
}

/* Logo box */
.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--orange-primary);
}

/* Colored text spans */
.text-beige {
    color: var(--beige-light);
}
.text-golden {
    color: var(--golden-accent);
}

/* Active nav item */
.text-gold {
    color: var(--golden-accent) !important;
}

/* Button style */
.join-btn {
    background-color: var(--orange-dark);
    color: var(--white-color);
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
}

.join-btn:hover {
    opacity: 0.9;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.top-header-actions a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.styled-toggler {
    border: 2px solid var(--orange-dark);
    background-color: transparent;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 40px;
}

.styled-toggler .bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--orange-dark);
}

/* Hero Setion */
.hero-section {
    background-image: linear-gradient(90deg, var(--orange-primary), var(--orange-dark), var(--gray-soft), var(--dark-charcoal));
}

/* لون النص العلوي */
.text-golden {
    color: var(--orange-primary);
}

/* زر الذهبي */
.btn-golden {
    background-color: var(--beige-light);
    color: var(--dark-charcoal);
    border: none;
}

.btn-golden:hover {
    background-color: var(--beige-light);
}

/* فيديو */
.video-wrapper {
    position: relative;
}

.what-sets-nex h2{
    color: var(--orange-dark);
}

.count{
    background-color: var(--orange-primary);
    position: absolute; 
    inset: 0;
}

.custom-form-header {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--orange-primary); /* نفس لون الخط بالصورة */
}




.btn-orange-outline {
    background-color: transparent;
    color: #F26E22;
    border: 2px solid #F26E22;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
}

.btn-orange-outline:hover {
    background-color: #F26E22;
    color: #fff;
    border-color: #F26E22;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #F25922;
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-icon {
    flex-shrink: 0;
}
.timeline-content {
    border-radius: 20px;
}

/* paginition */
.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.pagination li a, .pagination li span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    text-decoration: none;
    color: #333;
    border: none;
    background: transparent;
    font-weight: 500;
}

.pagination li.active span {
    background-color: #1f2937; /* dark circle */
    color: #fff;
    font-weight: bold;
}

.pagination li a:hover {
    background-color: #e0e0e0;
}

.pagination .disabled span {
    color: #aaa;
}
.pagination ~ .text-sm.text-gray-700.leading-5 {
    display: none !important;
}

.custom-toggle-btn {
    color: #F26E22;
    border: 2px solid #F26E22;
    background-color: white;
    transition: 0.3s ease-in-out;
}

.custom-toggle-btn:hover {
    background-color: #F26E22;
    border: 2px solid #F26E22;
    color: white;
}


/* dashboard */



/* 
================================
            Admin
================================

*/

/* ✅ الهيدر */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.header .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .hamburger {
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
}

.header .right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* ✅ السايدبار */
#sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar .logo {
    text-align: center;
}

.sidebar .logo img {
    max-width: 100px;
    display: block;
    margin: 0 auto 10px;
}

.sidebar nav a {
    display: block;
    padding: 10px;
    color: var(--orange-dark);
    text-decoration: none;
    border-radius: 5px;
}

.sidebar nav a:hover {
    background: #f1f1f1;
}

/* ✅ المحتوى */
.main-content {
    margin-top: 70px;
    margin-left: 240px;
    padding: 30px;
    transition: margin-left 0.3s ease;
}
/*body{*/
/*    font-family: 'Calibri', 'Segoe UI';*/
/*}*/


/* ✅ عند إغلاق السايدبار */
body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
}

/* ✅ موبايل */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }
}

.contact-section {
    background: linear-gradient(to right, #F26E22 50%, #fff 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact-box {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 25px;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.contact-box h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}
.contact-form input,
.contact-form textarea {
background-color: #2b2b2b !important;
color: #fff !important;
border: 1px solid #444;
border-radius: 8px;
padding: 12px 15px;
font-size: 1rem;
width: 100%;
transition: border-color 0.3s, box-shadow 0.3s;
outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
background-color: #2b2b2b !important;
color: #fff !important;
border-color: #F26E22;
box-shadow: 0 0 8px rgba(242, 110, 34, 0.3);
}

.btn-orange {
    background-color: #F26E22;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
}

.btn-orange:hover {
    background-color: #c84f10;
}

.blog-section {
    background-color: #3c3e48; /* الرمادي الغامق */
}

.blog-section i {
    font-size: 1.2rem;
}

.category-btn {
    background-color: #F26E22;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background-color: #d3581c; /* درجة أدكن */
    color: #fff;
}

/* 
==================================

        pagination Event

==================================

*/

.custom-pagination .page-item {
    margin: 0 4px;
}

.custom-pagination .page-link {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 9px 0;
    color: #444;
    background-color: #f5f5f5;
    font-weight: bold;
    transition: all 0.3s ease;
}

.custom-pagination .page-link:hover {
    background-color: #F26E22;
    color: white;
}

.custom-pagination .page-item.active .page-link {
    background-color: #F26E22;
    color: white;
    pointer-events: none;
}

.custom-pagination .page-item.disabled .page-link {
    color: #aaa;
    background-color: #eee;
    cursor: default;
}