/* ========= GLOBAL ========= */

:root {
  --blue-main: #1a73e8;
  --blue-dark: #155ab8;
  --bg-light: #f4f6fb;
  --card-bg: #ffffff;
  --accent-gold: #f4d35e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #e3f2fd 0, #eef2f7 40%, #dde3f0 100%);
  color: #111827;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========= HEADER & NAV ========= */

header {
  background: linear-gradient(90deg, #155ab8, #1a73e8);
  color: #fff;
  padding: 14px 0 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}

@media (max-width: 600px) {
    .logo-icon {
        height: 32px;
        width: 32px;
    }
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
  background: #ffffff;
  object-fit: cover;
}

.logo-text {
  text-align: left;
}

.logo-main {
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 18px;
}

.logo-main .dibo {
  color: var(--accent-gold);
}

.logo-main .ventures {
  color: #ffffff;
  margin-left: 3px;
}

.logo-sub {
  font-size: 12px;
  opacity: 0.9;
}
/* Logo wrapper */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo image */
.logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;   /* لو عايز حواف ناعمة */
}

/* Logo text */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
}

.logo-subtitle {
  font-size: 11px;
  opacity: 0.85;
}
.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 999px;      /* تخليها دائرية ولذيذة */
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #ffffff55;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}
/* Nav */

nav {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  font-size: 13px;
  color: #e5ecff;
  position: relative;
  padding-bottom: 3px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: #f4d35e;
  transition: width 0.2s ease;
}

nav a:hover {
  color: #fff8e1;
}

nav a:hover::after {
  width: 100%;
}

/* ========= LAYOUT ========= */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-wrap {
  width: 90%;
  max-width: 1200px;
  margin: 24px auto 40px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
  margin-bottom: 20px;
}

/* ========= HERO (HOME) ========= */

.hero {
  width: 90%;
  max-width: 1200px;
  margin: 18px auto 24px;
  text-align: center;
}

.hero-banner {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.4);
}

.slogan-box {
  margin: 12px auto 0;
  display: inline-block;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ========= MAIN GRID (HOME) ========= */

.main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  margin-top: 4px;
}

.main-column {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.main-column h2 {
  margin-top: 0;
}

.main-column ul {
  padding-left: 18px;
  margin-top: 6px;
}

.main-column li {
  margin-bottom: 6px;
}

.arabic-section {
  direction: rtl;
  text-align: right;
  font-size: 14px;
}

.arabic-section h2 {
  color: #c02626;
}

/* أرقام داخل عربي */
.ltr {
  direction: ltr;
  unicode-bidi: embed;
}

/* ========= INTERNAL TABS (HOME) ========= */

.internal-tabs {
  margin-top: 26px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.09);
}

.internal-tabs-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tab-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: #f3f4f6;
  margin-bottom: 10px;
}

.tab-button {
  border: none;
  padding: 7px 13px;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.tab-button.active {
  background: #1a73e8;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.tab-panels {
  margin-top: 4px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.tab-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  font-size: 13px;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.tab-link strong {
  color: #1a73e8;
  font-size: 13px;
}

.tab-link span {
  font-size: 12px;
  color: #444;
}

.tab-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
  border-color: rgba(26, 115, 232, 0.5);
}

/* ========= QR BOX (HOME) ========= */

.qr-box {
  margin: 0 auto;
  margin-top: 10px;
  text-align: center;
  background: #ffffff;
  border-radius: 16px;
  padding: 14px;
  width: min(320px, 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  font-size: 13px;
}

/* ========= FORMS ========= */

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 13px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #cbd2e1;
  font: inherit;
  margin-top: 3px;
  box-sizing: border-box;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.btn-primary {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #10b981;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
  margin-top: 6px;
}

.btn-primary:hover {
  background: #059669;
}

/* ========= LIST PAGES (UNIVERSITIES / CITIES) ========= */

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.list-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 13px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.list-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  margin-bottom: 4px;
}

/* ========= WHATSAPP FLOAT ========= */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: white;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 60;
}

/* ========= FOOTER ========= */

footer {
  background: #020617;
  color: #e5e7eb;
  padding: 14px 0;
  margin-top: 30px;
}

.footer-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-inner a {
  color: #93c5fd;
  margin-left: 8px;
}

/* ========= RESPONSIVE ========= */

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .hero {
    width: 94%;
  }
  .container,
  .page-wrap {
    width: 94%;
  }
  header {
    padding: 12px 0 8px;
  }
  .logo {
    flex-direction: column;
  }
  nav {
    gap: 10px;
  }
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
}
/* === DiboVentures – Subtle animations & hover effects === */

/* Smooth scrolling between sections */
html {
  scroll-behavior: smooth;
}

/* Soft fade-in for main containers */
main,
section,
.container {
  animation: dv-fade-in 0.55s ease-out;
}

@keyframes dv-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Nav links hover – smoother + underline effect */
header nav a,
.nav-links a {
  position: relative;
  transition: color 0.2s ease-out;
}

header nav a::after,
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ffd46a;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: width 0.2s ease-out;
}

header nav a:hover::after,
.nav-links a:hover::after {
  width: 70%;
}

/* Language pills nicer hover */
.language-switch button,
.language-pill {
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.15s ease-out;
}

.language-switch button:hover,
.language-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* Generic buttons – a bit more lively */
button,
.btn,
.hero-cta a,
.hero-cta button {
  transition: background-color 0.2s ease-out,
              color 0.2s ease-out,
              transform 0.15s ease-out,
              box-shadow 0.15s ease-out;
}

button:hover,
.btn:hover,
.hero-cta a:hover,
.hero-cta button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Cards hover (services, cities, universities…) */
.card,
.service-card,
.city-card,
.university-card,
.dv-card {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
  will-change: transform, box-shadow;
}

.card:hover,
.service-card:hover,
.city-card:hover,
.university-card:hover,
.dv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(209, 213, 219, 0.8);
}

/* WhatsApp floating button – bounce on hover */
.whatsapp-float,
.whatsapp-btn {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.whatsapp-float:hover,
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* Very small glow when hovering links in footer */
footer a {
  transition: color 0.2s ease-out, text-shadow 0.2s ease-out;
}

footer a:hover {
  color: #ffd46a;
  text-shadow: 0 0 8px rgba(255, 212, 106, 0.4);
}
