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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.main-header {
  background: #030946;
  color: #ffffff;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-direction: row-reverse;
  position: relative;
}

.header-center {
  flex: 0 1 auto;
  text-align: center;
  margin: 0 auto;
  align-self: center;
}

.header-center h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1rem;
  opacity: 0.9;
}

.logo-section {
  flex-shrink: 0;
}

.logo {
  display: inline-block;
  width: 400px;
  height: 100px;
  background-image: url("../images/elisystemadmin_logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ===== Hamburger ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-btn.active {
  background: #ffffff;
  color: #1e3c72;
  border-color: #ffffff;
}

/* ===== Hero ===== */
.hero-section {
  background: #ffffff;
  border-radius: 15px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.hero-content h2 {
  color: #1e3c72;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  color: #666666;
  font-size: 1.2rem;
}

/* ===== News Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.news-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-right: 5px solid #1e3c72;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-card.hidden {
  display: none;
}

.news-category {
  display: inline-block;
  background: #1e3c72;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-category.netscaler { background: #267dc0; }
.news-category.cvad { background: #2808b8; }
.news-category.VMWare { background: #df9e14; }
.news-category.security { background: #910303; }
.news-category.Fortigate { background: #d22525; }

.news-card h3 {
  color: #1e3c72;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card p {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888888;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eeeeee;
}

.news-author {
  font-weight: 600;
  color: #1e3c72;
}

.read-more-btn {
  background: #1e3c72;
  color: #ffffff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  margin-top: 1rem;
  width: 100%;
  font-weight: 600;
}

.read-more-btn:hover {
  background: #2a5298;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* ===== No Results ===== */
.no-results {
  text-align: center;
  padding: 4rem;
  background: #ffffff;
  border-radius: 15px;
  margin: 2rem 0;
}

.no-results h3 {
  color: #1e3c72;
  margin-bottom: 1rem;
}

/* ===== Footer ===== */
.main-footer {
  background: #030946;
  color: #ffffff;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: #929292;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: #ffffff;
  opacity: 1;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  height: 2px;
  width: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666666;
  cursor: pointer;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  line-height: 1;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #1e3c72;
  transform: rotate(90deg);
}

.modal-close:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: none;
  transform: none;
}

.modal-close:disabled:hover {
  background: none;
  transform: none;
}

.modal-content h2 {
  color: #1e3c72;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-content p {
  color: #555555;
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: right;
}

.contact-info {
  text-align: center;
  padding: 1rem 0;
}

.contact-info p {
  margin: 0.5rem 0;
  text-align: center;
}

.contact-info strong {
  color: #1e3c72;
  font-size: 1.1rem;
}

.phone-number {
  font-size: 1.5rem;
  color: #030946;
  font-weight: 600;
  margin-bottom: 1.5rem !important;
  direction: ltr;
}

.email-btn {
  display: inline-block;
  background: #1e3c72;
  color: #ffffff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.email-btn:hover {
  background: #2a5298;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* ===== Privacy Modal Specific Styles ===== */
.privacy-content {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.privacy-content::-webkit-scrollbar { width: 8px; }
.privacy-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.privacy-content::-webkit-scrollbar-thumb {
  background: #1e3c72;
  border-radius: 10px;
}
.privacy-content::-webkit-scrollbar-thumb:hover { background: #2a5298; }

.privacy-agreement {
  border-top: 2px solid #e0e0e0;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.checkbox-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 1.5rem;
  position: relative;
  padding-right: 35px;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  right: 0;
  height: 24px;
  width: 24px;
  background-color: #ffffff;
  border: 2px solid #1e3c72;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark { background-color: #f0f5ff; }
.checkbox-container input:checked ~ .checkmark {
  background-color: #1e3c72;
  border-color: #1e3c72;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after {
  right: 7px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  color: #030946;
  font-size: 1rem;
  font-weight: 500;
}

.privacy-confirm-btn {
  width: 100%;
  padding: 0.9rem;
  background: #1e3c72;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.privacy-confirm-btn:hover:not(:disabled) {
  background: #2a5298;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.privacy-confirm-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== Accessibility Button ===== */
.accessibility-btn {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0066a1 url("../images/accessibility-plugin.png") center / cover;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1500;
  transition: all 0.3s ease;
  will-change: transform;
}

.accessibility-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.accessibility-menu {
  position: fixed;
  left: -320px;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  z-index: 1400;
  transition: left 0.4s ease;
  padding: 1.5rem;
}

.accessibility-menu.active { left: 90px; }

.accessibility-menu h3 {
  color: #030946;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #0066a1;
  padding-bottom: 0.5rem;
}

.accessibility-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f5f7fa;
}

.accessibility-option:hover {
  background: #e8eef3;
  transform: translateX(-3px);
}

.accessibility-option span {
  color: #030946;
  font-size: 1rem;
  font-weight: 500;
}

.accessibility-option::before {
  content: "○";
  font-size: 1.5rem;
  color: #0066a1;
  margin-left: 0.5rem;
}

.accessibility-option.active::before { content: "●"; }

.accessibility-reset {
  width: 100%;
  padding: 0.8rem;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.accessibility-reset:hover {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

/* Accessibility States */
body.large-text { font-size: 120%; }
body.high-contrast { filter: contrast(1.5); }
body.grayscale { filter: grayscale(100%); }
body.high-contrast.grayscale { filter: contrast(1.5) grayscale(100%); }
body.underline-links a { text-decoration: underline !important; }
body.readable-font { font-family: "Arial", sans-serif !important; }

.accessibility-btn:focus-visible,
.accessibility-menu .accessibility-option:focus-visible,
.accessibility-reset:focus-visible {
  outline: 3px solid #0b54ba;
  outline-offset: 3px;
}

.accessibility-btn { color: #ffffff; }

body.high-contrast .accessibility-menu { box-shadow: 0 0 0 3px #000; }

body.underline-links a,
body.underline-links a:visited,
body.underline-links button,
body.underline-links [role="button"],
body.underline-links .btn,
body.underline-links .button {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

body.underline-links button { border-bottom: 1px solid currentColor; }

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 2500;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show { transform: translateY(0); }

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.cookie-content h3 {
  color: #030946;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.cookie-content > p {
  color: #555555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: #f5f7fa;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-option:hover:not(:has(input:disabled)) { background: #e8eef3; }

.cookie-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.cookie-label {
  color: #030946;
  font-size: 1rem;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-accept {
  background: #1e3c72;
  color: #ffffff;
}

.cookie-accept:hover {
  background: #2a5298;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

.cookie-accept-all {
  background: #2ecc71;
  color: #ffffff;
}

.cookie-accept-all:hover {
  background: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  .main-header { padding: 1.75rem 0; }
  .header-center { display: none; }
  
  .hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .logo-section {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .logo {
    width: 140px;
    height: 46px;
  }
  
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .main-nav.active { display: flex; }
  .nav-btn {
    width: 100%;
    text-align: center;
  }
  
  .news-grid { grid-template-columns: 1fr; }
  .hero-section { padding: 2rem 1rem; }
  .hero-content h2 { font-size: 1.5rem; }
  .hero-content p { font-size: 1rem; }
  
  .modal-content {
    padding: 2rem;
    width: 95%;
    max-width: 100%;
  }
  
  .modal-content h2 { font-size: 1.5rem; }
  .phone-number { font-size: 1.3rem; }
  .modal-close {
    top: 10px;
    right: 10px;
  }
  
  .privacy-content { max-height: 200px; }
  .checkbox-label { font-size: 0.9rem; }
  
  .accessibility-btn {
    width: 50px;
    height: 50px;
    left: 10px;
  }
  
  .accessibility-menu {
    width: calc(100% - 80px);
    max-width: 280px;
  }
  
  .accessibility-menu.active { left: 70px; }
  
  .cookie-content { padding: 1.5rem; }
  .cookie-content h3 { font-size: 1.2rem; }
  .cookie-content > p { font-size: 0.9rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-btn { width: 100%; }
}

/* ===== Accessibility: pick-to-read mode ===== */
body.tts-pick-mode {
  cursor: crosshair;
}

/* Visual highlight for the element being targeted for reading */
.tts-highlight {
  outline: 2px dashed #0b54ba;
  outline-offset: 2px;
}
