/*
Theme Name: SmartEyada RTL Theme
Theme URI: https://smarteyada.com
Author: SmartEyada Team
Author URI: https://smarteyada.com
Description: Arabic RTL WordPress theme for SmartEyada clinic management system. Fully right-to-left with Cairo font support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smarteyada
Tags: rtl, arabic, one-column, two-columns, right-to-left, custom-menu, featured-images, theme-options, translation-ready

SmartEyada Theme, (C) 2026 SmartEyada
SmartEyada Theme is distributed under the terms of the GNU GPL v2 or later.
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

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

body{
  font-family:'Cairo',sans-serif;
  background:#f8fafc;
  color:#1e293b;
  line-height:1.8;
}

.container{
  max-width:1100px;
  margin:auto;
  padding:0 24px;
}

/* Header */
header{
  background:linear-gradient(135deg,#ffffff,#ffffff);
  color:#000000;
  padding:20px 0;
  position:sticky;
  top:0;
  z-index:100;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:22px;
  font-weight:800;
  text-decoration:none;
  color:#000000;
}

.logo img{
  width:42px;
  height:42px;
  border-radius:10px;
}

.site-title{
  font-size:22px;
  font-weight:800;
  margin:0;
}

.site-title a{
  text-decoration:none;
  color:inherit;
}

.cta-top{
  background:#10b981;
  color:#fff;
  padding:10px 28px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  font-size:15px;
  transition:.3s;
}

.cta-top:hover{
  background:#059669;
  transform:translateY(-2px);
}

/* Navigation */
.main-navigation{
  display:flex;
  align-items:center;
}

.main-navigation ul{
  display:flex;
  list-style:none;
  gap:24px;
  margin:0;
  padding:0;
}

.main-navigation ul li a{
  text-decoration:none;
  color:#1e293b;
  font-weight:600;
  font-size:15px;
  transition:.3s;
}

.main-navigation ul li a:hover{
  color:#10b981;
}

.main-navigation .current-menu-item a{
  color:#10b981;
}

/* Hero */
.hero{
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f172a 100%);
  color:#fff;
  padding:80px 0 100px;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:'';
  position:absolute;
  bottom:-40px;
  left:0;
  right:0;
  height:80px;
  background:#f8fafc;
  border-radius:50% 50% 0 0;
}

.hero h1{
  font-size:48px;
  font-weight:800;
  margin-bottom:16px;
  line-height:1.3;
}

.hero h1 span{
  background:linear-gradient(90deg,#10b981,#06b6d4);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.hero p{
  font-size:20px;
  color:#94a3b8;
  max-width:700px;
  margin:0 auto 32px;
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  gap:12px;
  background:linear-gradient(90deg,#10b981,#059669);
  color:#fff;
  padding:16px 40px;
  border-radius:12px;
  font-size:20px;
  font-weight:700;
  text-decoration:none;
  transition:.3s;
  box-shadow:0 8px 30px rgba(16,185,129,.3);
}

.hero-cta:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 40px rgba(16,185,129,.4);
}

.hero-badge{
  display:inline-block;
  background:rgba(16,185,129,.15);
  color:#10b981;
  padding:6px 20px;
  border-radius:50px;
  font-size:14px;
  font-weight:600;
  margin-bottom:20px;
}

/* Sections */
section{
  padding:80px 0;
}

.section-title{
  text-align:center;
  font-size:32px;
  font-weight:800;
  margin-bottom:12px;
}

.section-sub{
  text-align:center;
  color:#64748b;
  font-size:18px;
  margin-bottom:48px;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}

/* Stats */
.stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:24px;
  margin-bottom:60px;
}

.stat-card{
  background:#fff;
  border-radius:16px;
  padding:28px;
  text-align:center;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  border:1px solid #e2e8f0;
}

.stat-card .num{
  font-size:36px;
  font-weight:800;
  color:#0f172a;
}

.stat-card .label{
  color:#64748b;
  font-size:14px;
  margin-top:4px;
}

/* Features Grid */
.features{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}

.feature{
  background:#fff;
  border-radius:16px;
  padding:32px;
  border:1px solid #e2e8f0;
  transition:.3s;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}

.feature:hover{
  border-color:#10b981;
  box-shadow:0 8px 30px rgba(16,185,129,.1);
  transform:translateY(-4px);
}

.feature-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  font-size:24px;
}

.feature h3{
  font-size:20px;
  font-weight:700;
  margin-bottom:8px;
}

.feature p{
  color:#64748b;
  font-size:15px;
}

/* Screenshots */
.screenshots{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}

.screenshot{
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  text-align:center;
  padding:16px;
}

.screenshot .mockup{
  background:linear-gradient(135deg,#f1f5f9,#e2e8f0);
  height:360px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:14px;
}

.screenshot p{
  margin-top:12px;
  font-weight:600;
  font-size:14px;
}

/* Comparison Table */
.comparison{
  width:100%;
  border-collapse:collapse;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 2px 12px rgba(0,0,0,.06);
  margin-bottom:40px;
}

.comparison th,.comparison td{
  padding:16px 20px;
  text-align:center;
  border-bottom:1px solid #f1f5f9;
  font-size:15px;
}

.comparison th{
  background:#0f172a;
  color:#fff;
  font-weight:700;
  font-size:16px;
}

.comparison th:first-child{
  text-align:right;
}

.comparison td:first-child{
  text-align:right;
  font-weight:600;
  color:#1e293b;
}

.comparison tr:last-child td{
  border-bottom:none;
}

.comparison tr:nth-child(even){
  background:#f8fafc;
}

.comparison .yes{
  color:#10b981;
  font-weight:700;
}

.comparison .no{
  color:#ef4444;
}

.comparison .partial{
  color:#eab308;
}

.comparison-wrapper{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:0 -16px;
  padding:0 16px 16px;
}

/* Why Us */
.why-us{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
  margin-top:48px;
}

.why-card{
  background:#f8fafc;
  border-radius:16px;
  padding:28px;
  border-right:4px solid #10b981;
  text-align:right;
}

.why-card h4{
  font-size:18px;
  font-weight:700;
  margin-bottom:8px;
}

.why-card p{
  color:#64748b;
  font-size:14px;
}

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:24px;
}

.plan{
  background:#fff;
  border-radius:16px;
  padding:36px;
  border:1px solid #e2e8f0;
  text-align:center;
  transition:.3s;
}

.plan.featured{
  border-color:#10b981;
  box-shadow:0 8px 30px rgba(16,185,129,.15);
  position:relative;
}

.plan.featured::before{
  content:'الأكثر طلباً';
  position:absolute;
  top:-12px;
  left:50%;
  transform:translateX(-50%);
  background:#10b981;
  color:#fff;
  padding:4px 16px;
  border-radius:50px;
  font-size:13px;
  font-weight:600;
}

.plan .price{
  font-size:42px;
  font-weight:800;
  color:#0f172a;
  margin:16px 0;
}

.plan .price span{
  font-size:16px;
  color:#94a3b8;
  font-weight:400;
}

.plan .price .old-price{
  font-size:20px;
  color:#ef4444;
  text-decoration:line-through;
  margin-left:8px;
  font-weight:600;
}

.plan .discount-badge{
  display:inline-block;
  background:#fef2f2;
  color:#ef4444;
  padding:4px 14px;
  border-radius:50px;
  font-size:13px;
  font-weight:700;
  margin-top:4px;
}

.plan ul{
  list-style:none;
  margin:24px 0;
  text-align:right;
}

.plan ul li{
  padding:8px 0;
  border-bottom:1px solid #f1f5f9;
  font-size:15px;
}

.plan ul li::before{
  content:'✓ ';
  color:#10b981;
  font-weight:700;
}

.plan .cta{
  display:block;
  background:#f1f5f9;
  color:#1e293b;
  padding:14px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
  margin-top:16px;
}

.plan.featured .cta{
  background:#10b981;
  color:#fff;
}

.plan.featured .cta:hover{
  background:#059669;
}

.plan .cta:hover{
  background:#e2e8f0;
}

/* FAQ */
.faq-item{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  margin-bottom:12px;
  overflow:hidden;
}

.faq-q{
  padding:18px 24px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:16px;
  user-select:none;
}

.faq-q::after{
  content:'+';
  font-size:22px;
  color:#10b981;
}

.faq-item.open .faq-q::after{
  content:'−';
}

.faq-a{
  padding:0 24px 18px;
  color:#64748b;
  font-size:15px;
  display:none;
}

.faq-item.open .faq-a{
  display:block;
}

/* Footer */
footer{
  background:#0f172a;
  color:#94a3b8;
  padding:40px 0;
  text-align:center;
}

footer strong{
  color:#fff;
}

/* Sidebar & Widget Areas */
.widget-area{
  padding:40px 0;
}

.widget{
  background:#fff;
  border-radius:12px;
  padding:24px;
  margin-bottom:24px;
  border:1px solid #e2e8f0;
}

.widget-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:16px;
  color:#0f172a;
}

/* Blog / Post Cards */
.posts-loop{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:24px;
}

.post-card{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #e2e8f0;
  transition:.3s;
}

.post-card:hover{
  box-shadow:0 8px 30px rgba(0,0,0,.08);
  transform:translateY(-4px);
}

.post-card .post-thumbnail{
  width:100%;
  height:200px;
  object-fit:cover;
}

.post-card .post-content{
  padding:24px;
}

.post-card h2{
  font-size:20px;
  font-weight:700;
  margin-bottom:8px;
}

.post-card h2 a{
  text-decoration:none;
  color:#0f172a;
}

.post-card h2 a:hover{
  color:#10b981;
}

.post-card .post-meta{
  color:#94a3b8;
  font-size:13px;
  margin-bottom:12px;
}

.post-card .post-excerpt{
  color:#64748b;
  font-size:15px;
}

.read-more{
  display:inline-block;
  margin-top:12px;
  color:#10b981;
  font-weight:700;
  text-decoration:none;
}

.read-more:hover{
  color:#059669;
}

/* Single Post */
article.single-post{
  max-width:800px;
  margin:auto;
}

/* Single Post */
article.single-post > h1{
  font-size:38px;
  font-weight:800;
  margin-bottom:24px;
  line-height:1.4;
  color:#0f172a;
  position:relative;
  padding-bottom:16px;
}

article.single-post > h1::after{
  content:'';
  position:absolute;
  bottom:0;
  right:0;
  width:80px;
  height:4px;
  background:linear-gradient(90deg,#10b981,#06b6d4);
  border-radius:2px;
}

article.single-post .post-content{
  font-size:18px;
  line-height:2;
  color:#334155;
}

article.single-post .post-content p{
  margin-bottom:24px;
}

/* Post & Page content styles are loaded via wp_head in theme-setup.php */

/* Page Template */
.page-template .entry-title{
  font-size:38px;
  font-weight:800;
  margin-bottom:24px;
  color:#0f172a;
  position:relative;
  padding-bottom:16px;
}

.page-template .entry-title::after{
  content:'';
  position:absolute;
  bottom:0;
  right:0;
  width:80px;
  height:4px;
  background:linear-gradient(90deg,#10b981,#06b6d4);
  border-radius:2px;
}

.page-template .page-content{
  font-size:18px;
  line-height:2;
  color:#334155;
}

/* Search */
.search-form{
  display:flex;
  gap:12px;
  margin-bottom:32px;
}

.search-form input[type="search"]{
  flex:1;
  padding:14px 20px;
  border:2px solid #e2e8f0;
  border-radius:10px;
  font-family:'Cairo',sans-serif;
  font-size:16px;
  outline:none;
  transition:.3s;
}

.search-form input[type="search"]:focus{
  border-color:#10b981;
}

.search-form button[type="submit"]{
  padding:14px 28px;
  background:#10b981;
  color:#fff;
  border:none;
  border-radius:10px;
  font-family:'Cairo',sans-serif;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:.3s;
}

.search-form button[type="submit"]:hover{
  background:#059669;
}

/* 404 Page */
.error-404{
  text-align:center;
  padding:80px 24px;
}

.error-404 h1{
  font-size:120px;
  font-weight:800;
  color:#e2e8f0;
  line-height:1;
}

.error-404 p{
  font-size:20px;
  color:#64748b;
  margin:16px 0 32px;
}

.error-404 a{
  display:inline-block;
  background:#10b981;
  color:#fff;
  padding:14px 32px;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
}

.error-404 a:hover{
  background:#059669;
}

/* Comments */
.comments-area{
  margin-top:48px;
}

.comments-area h2{
  font-size:24px;
  font-weight:700;
  margin-bottom:24px;
}

.comment-list{
  list-style:none;
  padding:0;
}

.comment-list .comment{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:20px;
  margin-bottom:16px;
}

.comment-list .comment .comment-author{
  font-weight:700;
  margin-bottom:4px;
}

.comment-list .comment .comment-metadata{
  color:#94a3b8;
  font-size:13px;
  margin-bottom:12px;
}

.comment-list .comment .comment-content{
  font-size:15px;
  line-height:1.8;
}

.comment-respond{
  margin-top:32px;
}

.comment-respond h3{
  font-size:20px;
  font-weight:700;
  margin-bottom:16px;
}

.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"]{
  width:100%;
  padding:12px 16px;
  border:2px solid #e2e8f0;
  border-radius:10px;
  font-family:'Cairo',sans-serif;
  font-size:15px;
  margin-bottom:12px;
  outline:none;
  transition:.3s;
}

.comment-respond textarea{
  min-height:120px;
  resize:vertical;
}

.comment-respond textarea:focus,
.comment-respond input:focus{
  border-color:#10b981;
}

.comment-respond button[type="submit"]{
  background:#10b981;
  color:#fff;
  border:none;
  padding:12px 32px;
  border-radius:10px;
  font-family:'Cairo',sans-serif;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:.3s;
}

.comment-respond button[type="submit"]:hover{
  background:#059669;
}

/* Pagination */
.pagination{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:48px;
}

.pagination a,
.pagination span{
  display:inline-block;
  padding:10px 18px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
  transition:.3s;
}

.pagination a{
  background:#fff;
  color:#1e293b;
  border:1px solid #e2e8f0;
}

.pagination a:hover{
  background:#10b981;
  color:#fff;
  border-color:#10b981;
}

.pagination .current{
  background:#10b981;
  color:#fff;
  border:1px solid #10b981;
}

/* Responsive */
@media(max-width:768px){
  .hero{padding:50px 0 80px}
  .hero h1{font-size:30px}
  .hero p{font-size:16px}
  .hero-cta{padding:14px 28px;font-size:16px;gap:8px}
  .hero-badge{font-size:12px;padding:5px 14px}
  .section-title{font-size:24px}
  .section-sub{font-size:15px;margin-bottom:32px}
  section{padding:50px 0}
  .container{padding:0 16px}
  .header-inner{gap:12px}
  .logo{font-size:18px;gap:8px}
  .logo img{width:34px;height:34px}
  .cta-top{padding:8px 16px;font-size:13px}
  .stats{grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:40px}
  .stat-card{padding:18px 12px}
  .stat-card .num{font-size:28px}
  .stat-card .label{font-size:12px}
  .features{grid-template-columns:1fr;gap:16px}
  .feature{padding:24px 20px}
  .feature-icon{width:44px;height:44px;font-size:20px}
  .feature h3{font-size:17px}
  .feature p{font-size:14px;line-height:1.7}
  .comparison-wrapper{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -16px;padding:0 16px 16px}
  .comparison{min-width:480px}
  .comparison th,.comparison td{padding:12px 10px;font-size:13px}
  .comparison td:first-child,.comparison th:first-child{position:sticky;right:0;z-index:1;background:#fff}
  .comparison th:first-child{background:#0f172a;z-index:2}
  .comparison tr:nth-child(even) td:first-child{background:#f8fafc}
  .why-us{grid-template-columns:1fr;gap:16px}
  .why-card{padding:20px}
  .pricing{grid-template-columns:repeat(2,1fr);gap:12px}
  .plan{padding:20px 14px}
  .plan h3{font-size:16px}
  .plan .price{font-size:24px}
  .plan .price span{font-size:12px}
  .plan .price .old-price{font-size:14px}
  .plan.featured::before{font-size:11px;padding:3px 10px}
  .plan ul{margin:14px 0}
  .plan ul li{font-size:12px;padding:5px 0}
  .faq-q{padding:14px 18px;font-size:14px}
  .faq-a{padding:0 18px 14px;font-size:14px}
  footer{padding:28px 0}
  footer p{font-size:14px}
  .posts-loop{grid-template-columns:1fr}
  .main-navigation ul{gap:16px}
  .main-navigation ul li a{font-size:13px}
}

@media(max-width:380px){
  .hero h1{font-size:26px}
  .hero-cta{width:100%;justify-content:center;font-size:15px;padding:14px 20px}
  .stats{grid-template-columns:1fr 1fr;gap:8px}
  .stat-card .num{font-size:24px}
  .plan .price{font-size:22px}
  .plan h3{font-size:14px}
  .plan ul li{font-size:11px}
  .plan .cta{font-size:13px;padding:10px}
  .cta-top{padding:8px 12px;font-size:12px}
  .comparison{min-width:400px}
  .comparison th,.comparison td{padding:10px 8px;font-size:12px}
  .comparison-wrapper{margin:0 -12px;padding:0 12px 12px}
  .main-navigation ul{flex-wrap:wrap;gap:10px}
}