/* 
 * الملف الرئيسي للأنماط المخصصة
 * حضانة السنافر
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
    --theme-default: #7366ff;
    --theme-secondary: #f73164;
    --body-font-color: #2c323f;
    --light-background: #f4f4f4;
    --white: #ffffff;
    --light-gray: #efefef;
    --dark-gray: #2c323f;
    --border-color: #efefef;
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #1a535c;
    --light-color: #f7fff7;
    --border-radius: 1rem;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* أساسيات */
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-background);
    color: var(--body-font-color);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* تصحيح مشكلة المحاذاة للمحتوى الرئيسي */
.main-content {
    width: 100%;
    padding: 0;
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--theme-default);
}

a:hover {
    color: #6557eb;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.btn-primary {
    background-color: var(--theme-default);
    border-color: var(--theme-default);
}

.btn-primary:hover {
    background-color: #6557eb;
    border-color: #6557eb;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
}

/* تنسيقات القائمة */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 60px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
}

/* قسم البطل (Hero) */
.hero-section {
    position: relative;
    min-height: 500px;
    background-color: var(--light-color);
    overflow: hidden;
    padding: 4rem 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.hero-description {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* بطاقات المميزات */
.feature-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(255, 107, 107, 0.1);
    z-index: 0;
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.feature-card .title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature-card p {
    position: relative;
    z-index: 1;
}

/* قسم الأقسام */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 1rem auto 0;
}

/* قسم معرض الصور */
.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    position: relative;
    height: 250px;
}

.gallery-item img {
    transition: all 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 83, 92, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay-content {
    color: white;
    text-align: center;
    padding: 1rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

/* نموذج الاتصال */
.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info-item {
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* التذييل */
.footer {
    background-color: var(--dark-color);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(78, 205, 196, 0.1);
    z-index: 0;
}

.footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    margin-top: 0.8rem;
}

.footer-links a {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    transform: translateX(-5px);
    color: var(--secondary-color) !important;
}

.copyright {
    background-color: var(--primary-color);
}

/* تنسيقات الاستجابة */
@media (max-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* تنسيقات خاصة بصفحة التسجيل */
.registration-section {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.registration-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.registration-item h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.registration-item ul {
    padding-right: 1.5rem;
}

.registration-item ul li {
    margin-bottom: 0.5rem;
}

/* تنسيقات خاصة بصفحة حول الحضانة */
.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-content h3 {
    margin-bottom: 1.5rem;
    position: relative;
}

.about-content h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 0.8rem;
}

.about-feature {
    margin-bottom: 1rem;
}

.about-feature i {
    color: var(--primary-color);
    margin-left: 0.5rem;
}

/* تنسيقات صفحة النشاطات */
.activity-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.activity-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.activity-card .content {
    padding: 1.5rem;
}

.activity-card .title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* رسوم متحركة عامة */
.animated-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animated-element.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* تأثيرات للعناصر المرئية للأطفال */
.bubble {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(78, 205, 196, 0.2);
    animation: bubble-float 6s ease-in-out infinite;
}

.bubble:nth-child(odd) {
    background-color: rgba(255, 107, 107, 0.2);
}

@keyframes bubble-float {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(15px, -15px) scale(1.05);
    }
    66% {
        transform: translate(-15px, 15px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* إضافات خاصة للتأثيرات البصرية */
.decorative-image {
    position: absolute;
    opacity: 0.15;
    z-index: 0;
}

.balloon {
    position: absolute;
    animation: balloon-float 10s ease-in-out infinite;
}

@keyframes balloon-float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* تنسيقات السلايدر */
.carousel-item img {
    width: 90% !important; /* تصغير الصور بنسبة 10% */
    margin: 0 auto;
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-caption {
    text-align: center;
    bottom: 20%;
    right: 5%;
    left: 5%;
}

.carousel-caption h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.carousel-caption .bg-dark.bg-opacity-50 {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* قسم الإحصائيات */
.stats-section {
    padding: 5rem 0;
    background-image: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.1) 35%, transparent 35%, transparent);
    background-size: 4px 4px;
    opacity: 0.2;
    z-index: 1;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.stat-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.stat-card .number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1;
}

.stat-card h4 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0;
}

/* ======= هيكل الصفحة الرئيسي ======= */
html[dir="rtl"] body {
    text-align: right;
    background-color: var(--light-background);
}

.page-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.page-body-wrapper {
    width: 100%;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    display: flex;
    flex-direction: row-reverse;
}




/* ======= المحتوى الرئيسي ======= */
.page-body {
    flex-grow: 1;
    width: calc(100% );
    min-height: calc(100vh - 60px);
    background-color: var(--light-background);
    padding: 15px;
    transition: all 0.3s ease;
}

/* ======= الهيدر ======= */
.page-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: var(--white);
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 15px;
}

.header-logo-wrapper {
    display: flex;
    align-items: center;
}

.search-wrapper {
    max-width: 300px;
    position: relative;
}

.search-wrapper input {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px 15px 8px 35px;
    width: 100%;
}

.search-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-right {
    margin-right: auto;
}

.nav-menus {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.nav-menus li {
    margin-right: 15px;
    position: relative;
}

.notification {
    position: relative;
}

.notification .badge {
    position: absolute;
    top: -5px;
    left: -5px;
    font-size: 10px;
    padding: 2px 5px;
}

.profile-media {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.profile-media img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-left: 10px;
}

/* ======= عنوان الصفحة ======= */
.page-title {
    padding: 15px 0;
    margin-bottom: 15px;
}

.page-title h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--body-font-color);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--body-font-color);
}

.breadcrumb-item.active {
    color: var(--theme-default);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--body-font-color);
    content: "/";
    float: right;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* ======= البطاقات ======= */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: var(--white);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: transparent;
}

.card-header h5 {
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* ======= الأزرار ======= */
.btn {
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.menu-toggle {
    display: none;
}

/* ======= التنسيق المتجاوب ======= */
@media (max-width: 991.98px) {
    

    
    .page-body {
        width: 100%;
    }
    
    .menu-toggle {
        display: inline-block;
    }
}




/* ======= الأقسام ======= */
.container-fluid {
    padding: 15px;
    width: 100%;
} 