body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1a1a1a;
}
* {
  box-sizing: border-box;
}
:root {
  --gic-primary: #0f766e;   /* لون GIC */
  --menu-bg: #ffffff;      /* خلفية القائمة */
  --menu-hover: #0f766e;   /* Hover */
  --text-dark: #000000;    /* نص أسود */
  --text-light: #ffffff;  /* نص أبيض */
}


/* NAVBAR */

.navbar {
  background-color: #0a2540;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.navbar .logo {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap; /* يضمن الانتقال للسطر عند صغر الشاشة */
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background-color: #1a73e8;
}

/* Dropdown */
.dropdown {
  position: relative;
}


.dropbtn {
  background-color: #0a2540;
  color: rgb(255, 255, 255);
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}

.dropbtn:hover {
  background-color: #346385;
}

/* قائمة Dropdown محسنة */
.dropdown-content {
  background-color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.dropdown-content {
  position: absolute;
  top: 110%;
  right: 0;

  background: var(--menu-bg);
  border-radius: 12px;
  min-width: 230px;
  padding: 8px;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;

  z-index: 1000;
}



/***/
.dropdown-content a {
  display: block;
  padding: 10px 14px;

  color: #000000 !important;   /* أسود غامق إجباري */
  font-size: 16px;
  font-weight: 600;

  text-decoration: none;
  background-color: transparent;

  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}


.dropdown-content a:hover {
  background-color: #0f766e;  /* لون متناسق مع GIC */
  color: #ffffff !important;  /* أبيض واضح */
}




.dropdown > a {
  color: var(--text-dark);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}


.dropdown > a:hover {
  background: var(--gic-hover-bg);
  color: var(--gic-primary);
}

/****/
/* عند تمرير الماوس على الـ Dropdown يظهر المحتوى */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* Responsive: شريط التنقل يلتف على الشاشات الصغيرة */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 5px;
  }
  .dropdown-content {
    right: auto;
    left: 0;
  }
}

/* ***** */
.logo {
  color:  white;
  font-weight: bold;
  text-decoration: none;
  font-size: 10px;
}

.nav-links a {
  color: #cfd8e3;
  margin-left: 20px;
  text-decoration: none;
}

.nav-links a.active,
.nav-links a:hover {
  color: white;
  border-bottom: 6px solid white;
}

/* CONTENT */
header {
  background: #102a44;
  color: white;
  padding: 30px;
  text-align: center;
}

main {
  max-width: 900px;
  margin: auto;
  padding: 30px;
}

section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.formula {
  background: #eef2f7;
  padding: 15px;
  font-family: monospace;
}

.result {
  background: #e8f0ff;
  text-align: center;
}

#gicValue {
  font-size: 26px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

th {
  background: #0a2540;
  color: white;
}

footer {
  background: #0a2540;
  color: white;
  text-align: center;
  padding: 15px;
}
.page-header {
  text-align: center;
  margin: 0;
}

.formula {
  background: #111;
  color: #00ffcc;
  padding: 15px;
  border-radius: 6px;
  font-family: monospace;
}

.highlight-text {
  font-weight: bold;
  color: #0066ff;
}

.nav-links a.active {
  border-bottom: 2px solid #ffffff;
}

.access-hero {
  text-align: center;
  padding: 60px 20px;
}

.access-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
}

.doc-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
}

.doc-card button {
  margin-top: 10px;
}

.access-form {
  padding: 40px;
  background: #f9f9f9;
}

.access-form form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.docs-section {
  padding: 60px 40px;
}

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

.doc-card {
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
}

.doc-card.restricted {
  background: #f7f7f7;
}

.doc-actions a,
.doc-card button {
  display: inline-block;
  margin-top: 8px;
  margin-right: 8px;
}

.access-form {
  background: #fafafa;
  padding: 60px 40px;
}
/******* */ 
.nda-wrapper {
  margin-top: 20px;
  background: #f4f7fb;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e0e6ed;
}

.nda-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  gap: 12px;
  position: relative;
  font-size: 13px;
  line-height: 1.6;
}

.nda-label input {
  position: absolute;
  opacity: 0;
}

/* مربع الاختيار */
.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #1e7e34; /* أخضر احترافي */
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* عند التحديد */
.nda-label input:checked + .checkmark {
  background-color: #1e7e34;
  border-color: #1e7e34;
}
.checkmark::after {
  content: "";
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nda-text {
  color: #444;
}

/* Button Professional Style */
button[type="submit"] {
  background: #111;
  color: white;
  padding: 14px;
  border: none;
  width: 100%;
  cursor: pointer;
  font-size: 15px;
  transition: 0.3s ease;
  position: relative;
}

button[type="submit"]:hover {
  background: #222;
}

button.loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid #00c853;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Message */
.form-message {
  margin-top: 15px;
  padding: 12px;
  font-size: 14px;
  display: none;
  border-radius: 4px;
}

.form-message.success {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 4px solid #00c853;
}

.form-message.error {
  background: #fdecea;
  color: #b71c1c;
  border-left: 4px solid #d32f2f;
}
.form-message {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}
