/*
 * ICT Arabia WordPress Theme
 * RTL Arabic dark theme for trading/ICT content
 */

/* Base */
:root {
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;
  --color-slate-50: #f8fafc;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;
  --color-slate-950: #020617;
  --color-amber-400: #fbbf24;
  --color-amber-500: #f59e0b;
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--color-slate-950);
  color: var(--color-slate-100);
  line-height: 1.7;
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-emerald-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-emerald-500);
}

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

/* Container */
.ict-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .ict-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .ict-container {
    padding: 0 2rem;
  }
}

/* Header */
.ict-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--color-slate-800);
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
}

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

.ict-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.ict-logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-emerald-400);
}

.ict-nav {
  display: none;
}

@media (min-width: 768px) {
  .ict-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.ict-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-slate-300);
}

.ict-nav a:hover {
  background-color: var(--color-slate-800);
  color: #fff;
}

.ict-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--color-slate-300);
  cursor: pointer;
}

.ict-mobile-menu-btn:hover {
  background-color: var(--color-slate-800);
  color: #fff;
}

@media (min-width: 768px) {
  .ict-mobile-menu-btn {
    display: none;
  }
}

.ict-mobile-nav {
  display: none;
  border-top: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-950);
  padding: 1rem;
}

.ict-mobile-nav.active {
  display: block;
}

.ict-mobile-nav a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-slate-300);
}

.ict-mobile-nav a:hover {
  background-color: var(--color-slate-800);
  color: #fff;
}

/* Hero */
.ict-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-slate-950);
  padding: 5rem 0;
}

.ict-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(16, 185, 129, 0.1), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(20, 184, 166, 0.08), transparent 60%);
}

.ict-hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.ict-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background-color: rgba(52, 211, 153, 0.1);
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-emerald-400);
  margin-bottom: 1.5rem;
}

.ict-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0;
}

.ict-hero h1 span {
  color: var(--color-emerald-400);
}

.ict-hero p {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--color-slate-400);
}

.ict-hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ict-hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.ict-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ict-btn-primary {
  background-color: var(--color-emerald-500);
  color: var(--color-slate-950);
}

.ict-btn-primary:hover {
  background-color: var(--color-emerald-400);
  color: var(--color-slate-950);
}

.ict-btn-secondary {
  border: 1px solid var(--color-slate-700);
  background-color: var(--color-slate-900);
  color: #fff;
}

.ict-btn-secondary:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background-color: var(--color-slate-800);
  color: #fff;
}

/* Sections */
.ict-section {
  padding: 4rem 0;
}

.ict-section-alt {
  background-color: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--color-slate-800);
  border-bottom: 1px solid var(--color-slate-800);
}

.ict-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.ict-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ict-section-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* Grid */
.ict-grid {
  display: grid;
  gap: 1.5rem;
}

.ict-grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.ict-grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.ict-grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .ict-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ict-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ict-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .ict-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Cards */
.ict-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.ict-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

.ict-card-image {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-900));
  overflow: hidden;
}

.ict-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ict-card:hover .ict-card-image img {
  transform: scale(1.05);
}

.ict-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.ict-card-image-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-slate-600);
}

.ict-card-category {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(16, 185, 129, 0.9);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-slate-950);
}

.ict-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

.ict-card-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.ict-card-title a {
  color: inherit;
}

.ict-card-title a:hover {
  color: var(--color-emerald-400);
}

.ict-card-excerpt {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-slate-400);
  flex: 1;
}

.ict-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-slate-800);
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

/* Company cards */
.ict-company-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.ict-company-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

.ict-company-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ict-company-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 0.75rem;
  background-color: var(--color-slate-800);
  color: var(--color-emerald-400);
}

.ict-company-rating {
  text-align: left;
}

.ict-company-rating-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-emerald-400);
}

.ict-company-rating-label {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.ict-company-name {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.ict-company-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-400);
  flex: 1;
}

.ict-company-specs {
  margin-top: 1rem;
  border-radius: 0.75rem;
  background-color: rgba(2, 6, 23, 0.5);
  padding: 1rem;
  font-size: 0.875rem;
}

.ict-company-spec {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.ict-company-spec:last-child {
  margin-bottom: 0;
}

.ict-company-spec-label {
  color: var(--color-slate-500);
}

.ict-company-spec-value {
  color: var(--color-slate-200);
  font-weight: 600;
}

.ict-company-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ict-company-actions .ict-btn {
  flex: 1;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
}

/* Recommended badge */
.ict-badge-recommended {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  background-color: rgba(251, 191, 36, 0.1);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-amber-400);
}

/* News card */
.ict-news-card {
  display: flex;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}

.ict-news-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

.ict-news-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  background-color: var(--color-slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-slate-600);
}

.ict-news-content {
  flex: 1;
}

.ict-news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ict-news-source {
  border-radius: 9999px;
  background-color: var(--color-slate-800);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-emerald-400);
}

.ict-news-date {
  font-size: 0.75rem;
  color: var(--color-slate-500);
}

.ict-news-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.ict-news-title a {
  color: inherit;
}

.ict-news-title a:hover {
  color: var(--color-emerald-400);
}

.ict-news-excerpt {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

/* Page header */
.ict-page-header {
  border-bottom: 1px solid var(--color-slate-800);
  background-color: rgba(15, 23, 42, 0.3);
  padding: 4rem 0;
}

.ict-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-emerald-400);
  margin-bottom: 1rem;
}

.ict-breadcrumbs span {
  color: var(--color-slate-600);
}

.ict-page-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ict-page-description {
  margin-top: 1rem;
  max-width: 640px;
  color: var(--color-slate-400);
}

/* Single content */
.ict-single {
  padding: 3rem 0;
}

.ict-single-featured {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--color-slate-800), var(--color-slate-900));
}

.ict-single-featured img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.ict-content {
  font-size: 1.0625rem;
  color: var(--color-slate-300);
}

.ict-content h2,
.ict-content h3,
.ict-content h4 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.ict-content h2 {
  font-size: 1.75rem;
}

.ict-content h3 {
  font-size: 1.375rem;
}

.ict-content p {
  margin-bottom: 1.25rem;
}

.ict-content ul,
.ict-content ol {
  margin-bottom: 1.25rem;
  padding-right: 1.5rem;
}

.ict-content li {
  margin-bottom: 0.5rem;
}

.ict-content strong {
  color: var(--color-emerald-400);
}

.ict-content a {
  text-decoration: underline;
}

.ict-content blockquote {
  border-right: 4px solid var(--color-emerald-500);
  background-color: var(--color-slate-900);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

/* Info box */
.ict-info-box {
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ict-info-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem 0;
}

/* Warning box */
.ict-warning-box {
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.2);
  background-color: rgba(251, 191, 36, 0.1);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.ict-warning-box p {
  margin: 0;
  color: rgba(254, 243, 199, 0.9);
}

/* Pros / Cons */
.ict-pros-cons {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

@media (min-width: 768px) {
  .ict-pros-cons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ict-pros,
.ict-cons {
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  padding: 1.5rem;
}

.ict-pros h3,
.ict-cons h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem 0;
}

.ict-pros h3 {
  color: var(--color-emerald-400);
}

.ict-cons h3 {
  color: var(--color-rose-400);
}

.ict-pros ul,
.ict-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ict-pros li,
.ict-cons li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate-300);
}

/* Sidebar */
.ict-with-sidebar {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .ict-with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

.ict-sidebar {
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  padding: 1.5rem;
  height: fit-content;
}

.ict-sidebar-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem 0;
}

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

.ict-sidebar li {
  margin-bottom: 0.75rem;
}

.ict-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-slate-300);
}

.ict-sidebar a:hover {
  color: var(--color-emerald-400);
}

/* Footer */
.ict-footer {
  border-top: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-950);
  padding: 3rem 0 0;
}

.ict-footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .ict-footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.ict-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.ict-footer-brand svg {
  color: var(--color-emerald-400);
}

.ict-footer-desc {
  font-size: 0.875rem;
  color: var(--color-slate-400);
  line-height: 1.7;
}

.ict-footer-contact {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

.ict-footer-contact div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.ict-footer-contact svg {
  color: var(--color-emerald-400);
  width: 16px;
  height: 16px;
}

.ict-footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem 0;
}

.ict-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ict-footer-menu li {
  margin-bottom: 0.75rem;
}

.ict-footer-menu a {
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

.ict-footer-menu a:hover {
  color: var(--color-emerald-400);
}

.ict-footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--color-slate-800);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 768px) {
  .ict-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: right;
  }
}

.ict-footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-slate-500);
}

.ict-footer-risk {
  font-size: 0.75rem;
  color: var(--color-slate-600);
}

/* Feature cards */
.ict-feature-card {
  border-radius: 1rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}

.ict-feature-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

.ict-feature-icon {
  color: var(--color-emerald-400);
  margin-bottom: 1rem;
}

.ict-feature-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.ict-feature-desc {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-slate-400);
}

/* Pagination */
.ict-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.ict-pagination a,
.ict-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  border: 1px solid var(--color-slate-800);
  background-color: var(--color-slate-900);
  color: var(--color-slate-300);
  font-weight: 600;
}

.ict-pagination a:hover {
  border-color: var(--color-emerald-500);
  color: var(--color-emerald-400);
}

.ict-pagination .current {
  background-color: var(--color-emerald-500);
  border-color: var(--color-emerald-500);
  color: var(--color-slate-950);
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--color-slate-700);
  background-color: var(--color-slate-950);
  color: #fff;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-emerald-500);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-slate-300);
}

button[type="submit"] {
  border: none;
  cursor: pointer;
}

/* 404 */
.ict-404 {
  text-align: center;
  padding: 6rem 0;
}

.ict-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-emerald-400);
  margin: 0;
}

.ict-404 h2 {
  font-size: 1.75rem;
  color: #fff;
  margin: 1rem 0;
}

.ict-404 p {
  color: var(--color-slate-400);
}

/* Screen reader only */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* WordPress alignments */
.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: right;
  margin-left: 1rem;
}

.alignright {
  float: left;
  margin-right: 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--color-slate-500);
  text-align: center;
}
