/*
Theme Name: HalaCare Theme
Theme URI: https://hala-care.com
Author: HalaCare Team
Author URI: https://hala-care.com
Description: Custom WordPress theme for HalaCare medical website with full RTL support
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: halacare
Tags: medical, health, rtl-language-support, responsive, custom-header
*/

:root{
  --primary:#0095d9;
  --dark:#006ba6;
  --text:#2C3E50;
  --gray:#6B7280;
  --success:#10b981;
  --gold:#FFD700;
  --emergency:#EF4444;
  --header-height:90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
  direction: rtl;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.15);
  height: 80px;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  transition: all 0.3s;
}

.site-logo:hover {
  transform: translateY(-2px);
}

.site-logo img {
  height: 70px;
  width: auto;
  transition: all 0.3s;
}

.site-header.scrolled .site-logo img {
  height: 60px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.logo-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-header.scrolled .logo-title {
  font-size: 1.65rem;
}

.logo-slogan {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.2;
}

.site-header.scrolled .logo-slogan {
  font-size: 0.85rem;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  transition: all 0.3s;
  position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  background: #f0f9ff;
  color: var(--primary);
  transform: translateY(-2px);
}

.lang-switcher {
  position: relative;
  cursor: pointer;
  z-index: 100;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.5rem;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s;
  cursor: pointer;
  min-width: 155px;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 149, 217, 0.15);
}

.lang-current:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 149, 217, 0.35);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.85rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s;
  z-index: 1001;
}

/* Breadcrumb */
.breadcrumb {
  background: #f9fafb;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  font-size: 0.95rem;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  color: var(--gray);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

.breadcrumb-item a:hover {
  color: var(--dark);
}

.breadcrumb-separator {
  color: #9CA3AF;
}

/* Main Content */
.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  min-height: 60vh;
}

.content-area {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 4rem;
}

.main-content {
  flex: 1;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.article-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 149, 217, 0.2);
}

.article-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-category {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.article-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.article-meta i {
  color: var(--primary);
}

.article-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.4;
}

.article-title a {
  color: var(--text);
}

.article-title a:hover {
  color: var(--primary);
}

.article-excerpt {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

.read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.read-more:hover {
  gap: 1rem;
}

/* Single Article */
.single-article {
  max-width: 900px;
  margin: 0 auto;
}

.single-article .article-header {
  margin-bottom: 3rem;
}

.single-article .article-title {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.single-article .article-meta {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e5e7eb;
}

.single-article .featured-image {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.single-article .featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-article .article-body {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
}

.single-article .article-body h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 3rem 0 1.5rem;
  color: var(--text);
}

.single-article .article-body h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
  color: var(--text);
}

.single-article .article-body p {
  margin-bottom: 1.5rem;
}

.single-article .article-body ul,
.single-article .article-body ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.single-article .article-body li {
  margin-bottom: 0.75rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  height: fit-content;
}

.widget {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text);
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 1rem;
}

.widget ul li a {
  color: var(--gray);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s;
}

.widget ul li a:hover {
  background: #f0f9ff;
  color: var(--primary);
  padding-right: 1rem;
}

.widget ul li i {
  color: var(--primary);
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: white;
  text-align: center;
}

.cta-widget .widget-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.cta-widget .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s;
}

.cta-widget .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: white;
  padding: 5rem 0 2.5rem;
}

.footer-widgets {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-widget h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget ul li {
  margin-bottom: 1rem;
}

.footer-widget ul li a {
  color: #9CA3AF;
  font-size: 1.05rem;
  transition: all 0.3s;
}

.footer-widget ul li a:hover {
  color: var(--primary);
  padding-right: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: #9CA3AF;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(0, 149, 217, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 2rem;
}

.social-link {
  width: 48px;
  height: 48px;
  background: rgba(0, 149, 217, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s;
  font-size: 1.1rem;
}

.social-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-5px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #9CA3AF;
  font-size: 0.95rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 30px;
  left: 30px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.3s;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.7);
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 6px 40px rgba(37, 211, 102, 0.8);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 2px solid #e5e7eb;
}

.pagination a,
.pagination span {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  transition: all 0.3s;
}

.pagination a {
  background: white;
  color: var(--text);
  border: 2px solid #e5e7eb;
}

.pagination a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-navigation {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .content-area {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 75px;
  }
  
  .site-header {
    height: 75px;
  }
  
  .site-logo img {
    height: 55px;
  }
  
  .logo-title {
    font-size: 1.5rem;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .single-article .article-title {
    font-size: 2rem;
  }
  
  .single-article .featured-image {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 1.5rem;
  }
  
  .site-main {
    padding: 2rem 1.5rem;
  }
  
  .logo-title {
    font-size: 1.3rem;
  }
  
  .logo-slogan {
    font-size: 0.8rem;
  }
}
