/* ====================================
   دكتور هوم - Custom CSS for Bootstrap
   تخصيصات إضافية للموقع
   ==================================== */

/* ====================================
   1. CUSTOM COLORS
   ==================================== */
:root {
    --primary-color: #157347;
    --primary-hover: #0f5a38;
    --secondary-color: #22c55e;
    --secondary-hover: #16a34a;
    --light-bg: #f5f7fb;
    --text-color: #333;
    --text-secondary: #64748b;
}

/* ====================================
   2. GLOBAL STYLES
   ==================================== */
body {
    font-family: 'Tajawal', Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 700;
}

h1 {
    color: var(--primary-color);
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Better Font Rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Arabic Text Optimization */
body, p, span, a, li {
    letter-spacing: 0.02em;
}

/* ====================================
   3. CUSTOM NAVBAR STYLES
   ==================================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ====================================
   4. BUTTONS
   ==================================== */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 600;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 115, 71, 0.3);
}

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: 'Tajawal', Arial, sans-serif;
    font-weight: 600;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ====================================
   5. CARD STYLES
   ==================================== */
.card {
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card:hover .card-icon-wrapper {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ====================================
   6. FLOATING BUTTONS
   ==================================== */
.position-fixed.bottom-0.start-0 {
    z-index: 1050;
}

.position-fixed.bottom-0.start-0:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* ====================================
   7. HERO SECTION & PAGE HEADERS
   ==================================== */
.hero-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.page-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-hero h1 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
}

/* ====================================
   8. FOOTER LINKS
   ==================================== */
.text-white-50:hover {
    color: var(--secondary-color) !important;
    text-decoration: none;
}

/* ====================================
   9. BREADCRUMB STYLES
   ==================================== */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "◀";
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ====================================
   10. RESPONSIVE UTILITIES & TYPOGRAPHY
   ==================================== */
.display-4, .display-6 {
    color: var(--primary-color);
    font-weight: 800;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .position-fixed.bottom-0.start-0 {
        margin: 0.75rem !important;
        padding: 0.6rem 0.8rem !important;
        font-size: 0.9rem;
    }
    
    .position-fixed.bottom-0.start-0 span {
        display: none !important;
    }
}

/* ====================================
   11. OFFCANVAS CUSTOM STYLES
   ==================================== */
.offcanvas-end {
    width: 300px !important;
}

.offcanvas-body .nav-link {
    transition: all 0.3s ease;
}

.offcanvas-body .nav-link:hover {
    background-color: rgba(21, 115, 71, 0.1);
    padding-right: 1rem;
}

/* ====================================
   12. ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ====================================
   13. TEXT UTILITIES
   ==================================== */
.text-success {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

/* ====================================
   14. SHADOW UTILITIES
   ==================================== */
.shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ====================================
   15. INTERNAL LINK BOXES
   ==================================== */
.internal-link-box {
    padding: 1.5rem 1.8rem;
    border-right: 5px solid var(--primary-color);
    margin: 2.5rem 0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
}

.internal-link-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(21, 115, 71, 0.15);
}

.internal-link-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.internal-link-box a:hover {
    border-bottom-color: var(--primary-color);
}

/* ====================================
   16. ALERT BOXES
   ==================================== */
.alert-box {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-right: 4px solid;
}

.alert-box.success {
    background: #d4edda;
    border-right-color: #28a745;
    color: #155724;
}

.alert-box.warning {
    background: #fff3cd;
    border-right-color: #ffc107;
    color: #856404;
}

.alert-box.info {
    background: #d1ecf1;
    border-right-color: #17a2b8;
    color: #0c5460;
}

.alert-box.danger {
    background: #f8d7da;
    border-right-color: #dc3545;
    color: #721c24;
}

/* ====================================
   17. TABLES
   ==================================== */
.article-table {
    width: 100%;
    margin: 1.5rem 0;
}

.article-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

.article-table td {
    padding: 1rem;
}

.article-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* ====================================
   18. CTA BOXES
   ==================================== */
.cta-box {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 2.5rem 0;
}

.cta-box h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 115, 71, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 115, 71, 0.3);
}

/* ====================================
   19. STEPS
   ==================================== */
.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    background: var(--primary-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.6rem;
}

/* ====================================
   20. CONTENT STYLES
   ==================================== */
.section {
    padding: 3rem 0;
}

.page-hero h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.content h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.content h2,
.content h3,
.content h4 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.content ul {
    margin: 1rem 0 1.5rem 0;
    padding-right: 2rem;
}

.content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

