/* style.css */
:root {
    --primary-color: #046E14;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --link-color: #046E14;
    --link-hover: #03490d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    /*background-color: #f5f5f5;*/
}

/* Header Styles */
header {
    border-bottom: 3px solid var(--primary-color);
}

/* Navigation */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Date Display */
.hijri-date {
    font-family: 'Verdana', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* Sidebar Widgets */
.sidebar-widget .card {
    transition: transform 0.3s ease;
}

.sidebar-widget .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-widget ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #eee;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.sidebar-widget ul li a:hover {
    color: var(--link-hover);
    padding-left: 5px;
}

/* Quick Links */
.quick-links .card-body ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.quick-links .card-body ul li a:hover {
    color: var(--link-hover);
}

/* RSS Ticker */
.rss-ticker-container {
    min-height: 60px;
    overflow: hidden;
}

/* Links Grid */
.links-grid .card {
    transition: all 0.3s ease;
}

.links-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.links-grid .card-body ul li {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.links-grid .card-body ul li:last-child {
    border-bottom: none;
}

.links-grid .card-body ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: block;
}

.links-grid .card-body ul li a:hover {
    color: var(--link-hover);
    padding-left: 5px;
}

/* Footer */
footer {
    border-top: 3px solid var(--primary-color);
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--link-hover);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-item:last-child {
        border-bottom: none;
    }
    
    .links-grid .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .footer-links {
        font-size: 0.8rem;
    }
}

/* Mobile Menu Adjustments */
@media (max-width: 576px) {
    .quick-links .row > div {
        margin-bottom: 1rem;
    }
    
    .hijri-date {
        font-size: 0.8rem;
    }
}

/* Animation for hover effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.links-grid .card {
    animation: fadeIn 0.5s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--link-hover);
}

/* Print Styles */
@media print {
    .navbar, .sidebar-widget, footer {
        display: none !important;
    }
    
    .col-lg-8 {
        width: 100% !important;
    }
}


/* Additional custom styles */
        :root {
            --primary-green: #046E14;
            --light-green: #e8f5e9;
            --dark-green: #03490d;
        }
        
        /* Improved Navigation */
        .main-navbar {
            background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .nav-link {
            font-weight: 500;
            padding: 0.5rem 1rem !important;
            border-radius: 4px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            background-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }
        
        /* Mobile sidebar improvements */
        .mobile-sidebar-btn {
            border: 1px solid rgba(255,255,255,0.3);
            background: rgba(255,255,255,0.1);
        }
        
        .mobile-sidebar-btn:hover {
            background: rgba(255,255,255,0.2);
        }
        
        /* Offcanvas improvements */
        .offcanvas-start {
            width: 280px;
        }
        
        .offcanvas-body ul li {
            border-bottom: 1px solid #eee;
            padding: 0.5rem 0;
        }
        
        .offcanvas-body ul li:last-child {
            border-bottom: none;
        }
        
        .offcanvas-body ul li a {
            display: flex;
            align-items: center;
            padding: 0.5rem 0;
            color: #333;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .offcanvas-body ul li a:hover {
            color: var(--primary-green);
            padding-left: 5px;
        }
        
        /* Responsive fixes */
        @media (max-width: 991px) {
            .navbar-collapse {
                padding: 1rem;
                border-radius: 0 0 8px 8px;
                margin-top: 5px;
            }
            
            .navbar-nav {
                text-align: center;
            }
            
            .nav-item {
                margin: 0.25rem 0;
            }
        }
        
        /* Card improvements */
        .card {
            border: 1px solid #dee2e6;
            transition: all 0.3s ease;
        }
        
        .card:hover {
            box-shadow: 0 5px 20px rgba(0,0,0,0.08);
        }
        
        .card-header {
            background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
            border-bottom: none;
        }
        
        /* Quick links improvements */
        .quick-links ul li a {
            transition: all 0.3s ease;
        }
        
        .quick-links ul li a:hover {
            color: var(--primary-green) !important;
            padding-left: 5px;
        }
        
        /* Date display */
        .date-display {
            background: var(--light-green);
            border-bottom: 1px solid #d4edda;
        }
        
        /* Footer improvements */
        footer {
            background: #f8f9fa;
            border-top: 3px solid var(--primary-green);
        }