/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Cairo', sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; direction: rtl; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header Styles */ .header { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; } .header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } .logo h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.2rem; color: #ecf0f1; } .logo p { font-size: 0.9rem; color: #bdc3c7; font-weight: 300; } /* Navigation Styles */ .main-nav { position: relative; } .nav-menu { display: flex; list-style: none; gap: 0; } .nav-item { position: relative; } .nav-link { display: block; padding: 1rem 1.5rem; color: white; text-decoration: none; font-weight: 500; transition: all 0.3s ease; border-radius: 5px; white-space: nowrap; } .nav-link:hover { background-color: rgba(255,255,255,0.1); color: #3498db; } .nav-link i { margin-right: 0.5rem; font-size: 0.8rem; } /* Dropdown Styles */ .dropdown-menu { position: absolute; top: 100%; right: 0; background: white; min-width: 220px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; z-index: 1000; list-style: none; padding: 0.5rem 0; } .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); } .dropdown-menu li { position: relative; } .dropdown-menu a { display: block; padding: 0.8rem 1.5rem; color: #2c3e50; text-decoration: none; transition: all 0.3s ease; border-radius: 0; } .dropdown-menu a:hover { background-color: #f8f9fa; color: #3498db; padding-right: 2rem; } /* Submenu Styles */ .dropdown-submenu { position: relative; } .submenu { position: absolute; top: 0; right: 100%; background: white; min-width: 200px; box-shadow: 0 8px 25px rgba(0,0,0,0.15); border-radius: 8px; opacity: 0; visibility: hidden; transform: translateX(10px); transition: all 0.3s ease; list-style: none; padding: 0.5rem 0; } .dropdown-submenu:hover .submenu { opacity: 1; visibility: visible; transform: translateX(0); } .dropdown-submenu > a i { float: left; margin-left: 0.5rem; margin-right: 0; } /* Slider Styles */ .slider-section { margin-bottom: 2rem; } .slider-container { position: relative; max-width: 100%; margin: 0 auto; overflow: hidden; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); } .slider { position: relative; width: 100%; height: 400px; } .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; cursor: pointer; } .slide.active { opacity: 1; } .slide img { width: 100%; height: 100%; object-fit: cover; } .slide-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 2rem; text-align: center; } .slide-content h3 { font-size: 1.8rem; margin-bottom: 0.5rem; font-weight: 600; } .slide-content p { font-size: 1rem; opacity: 0.9; } .slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(44, 62, 80, 0.8); color: white; border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; z-index: 10; } .slider-btn:hover { background: rgba(44, 62, 80, 1); transform: translateY(-50%) scale(1.1); } .prev-btn { right: 20px; } .next-btn { left: 20px; } .slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; } .dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; } .dot.active, .dot:hover { background: white; transform: scale(1.2); } /* Main Content Styles */ .main-content { padding: 2rem 0; } .content-wrapper { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; } .main-column { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } /* Post Styles */ .post { padding: 2rem; border-bottom: 1px solid #eee; } .post:last-child { border-bottom: none; } .post-header { margin-bottom: 1.5rem; } .post-header h2 { color: #2c3e50; font-size: 1.8rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; } .post-meta { display: flex; gap: 1rem; color: #7f8c8d; font-size: 0.9rem; } .post-meta span { display: flex; align-items: center; gap: 0.3rem; } .post-content { color: #555; line-height: 1.8; } .post-content h3 { color: #2c3e50; font-size: 1.3rem; margin: 1.5rem 0 1rem 0; font-weight: 600; } .post-content p { margin-bottom: 1rem; } .post-content ul { margin: 1rem 0; padding-right: 1.5rem; } .post-content li { margin-bottom: 0.5rem; color: #555; } /* Achievement Grid */ .achievement-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; } .achievement-card { background: #f8f9fa; padding: 1.5rem; border-radius: 10px; text-align: center; transition: all 0.3s ease; border: 2px solid transparent; } .achievement-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: #3498db; } .achievement-card i { font-size: 2.5rem; color: #3498db; margin-bottom: 1rem; } .achievement-card h4 { color: #2c3e50; font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 600; } .achievement-card p { color: #7f8c8d; font-size: 0.9rem; } /* Sidebar Styles */ .sidebar { display: flex; flex-direction: column; gap: 1.5rem; } .widget { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .widget-title { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 1rem 1.5rem; margin: 0; font-size: 1.1rem; font-weight: 600; } /* Profile Card */ .profile-card { padding: 1.5rem; text-align: center; } .profile-image { width: 100px; height: 100px; border-radius: 50%; margin-bottom: 1rem; border: 4px solid #3498db; } .profile-card h4 { color: #2c3e50; font-size: 1.2rem; margin-bottom: 0.5rem; font-weight: 600; } .profile-card p { color: #7f8c8d; font-size: 0.9rem; margin-bottom: 1rem; } .social-links { display: flex; justify-content: center; gap: 0.5rem; } .social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #3498db; color: white; border-radius: 50%; text-decoration: none; transition: all 0.3s ease; } .social-link:hover { background: #2980b9; transform: translateY(-2px); } /* Stats */ .stats { padding: 1.5rem; } .stat-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid #eee; } .stat-item:last-child { border-bottom: none; } .stat-item i { font-size: 1.5rem; color: #3498db; width: 30px; } .stat-info { display: flex; flex-direction: column; } .stat-number { font-size: 1.5rem; font-weight: 700; color: #2c3e50; } .stat-label { font-size: 0.9rem; color: #7f8c8d; } /* Recent Posts */ .recent-posts { padding: 1.5rem; } .recent-post { padding: 1rem 0; border-bottom: 1px solid #eee; } .recent-post:last-child { border-bottom: none; } .recent-post h4 { margin-bottom: 0.5rem; } .recent-post h4 a { color: #2c3e50; text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.3s ease; } .recent-post h4 a:hover { color: #3498db; } .post-date { color: #7f8c8d; font-size: 0.8rem; } /* Categories */ .categories { padding: 1.5rem; list-style: none; } .categories li { border-bottom: 1px solid #eee; } .categories li:last-child { border-bottom: none; } .categories a { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; color: #2c3e50; text-decoration: none; transition: all 0.3s ease; } .categories a:hover { color: #3498db; padding-right: 0.5rem; } .categories span { background: #3498db; color: white; padding: 0.2rem 0.5rem; border-radius: 12px; font-size: 0.8rem; } /* Footer Styles */ .footer { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 3rem 0 1rem; margin-top: 3rem; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .footer-section h3 { color: #ecf0f1; font-size: 1.2rem; margin-bottom: 1rem; font-weight: 600; } .footer-section p { color: #bdc3c7; line-height: 1.6; margin-bottom: 1rem; } .footer-section ul { list-style: none; } .footer-section ul li { margin-bottom: 0.5rem; } .footer-section ul li a { color: #bdc3c7; text-decoration: none; transition: color 0.3s ease; } .footer-section ul li a:hover { color: #3498db; } .contact-info p { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; } .contact-info i { color: #3498db; width: 20px; } .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #34495e; color: #bdc3c7; } /* Responsive Design */ @media (max-width: 768px) { .header .container { flex-direction: column; gap: 1rem; } .nav-menu { flex-direction: column; width: 100%; } .nav-item { width: 100%; } .nav-link { text-align: center; padding: 0.8rem; } .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.1); margin-top: 0.5rem; } .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,0.05); margin-top: 0.5rem; } .content-wrapper { grid-template-columns: 1fr; gap: 1rem; } .slider { height: 250px; } .slide-content { padding: 1rem; } .slide-content h3 { font-size: 1.3rem; } .achievement-grid { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr; text-align: center; } } @media (max-width: 480px) { .container { padding: 0 15px; } .logo h1 { font-size: 1.4rem; } .post { padding: 1.5rem; } .post-header h2 { font-size: 1.5rem; } .slider { height: 200px; } .slider-btn { width: 40px; height: 40px; font-size: 1rem; } .prev-btn { right: 10px; } .next-btn { left: 10px; } } /* Smooth Scrolling */ html { scroll-behavior: smooth; } /* Custom Scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; } ::-webkit-scrollbar-thumb { background: #3498db; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #2980b9; } /* Animation Classes */ .fade-in { animation: fadeIn 0.5s ease-in; } @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Print Styles */ @media print { .header, .slider-section, .sidebar, .footer { display: none; } .main-column { box-shadow: none; border: 1px solid #ddd; } .content-wrapper { grid-template-columns: 1fr; } }