/* =========================================================
   MARIDI UK EDUCATION
   Shared Website Styles
   ========================================================= */


/* GENERAL */

* {
  box-sizing:border-box;
}

html,
body {
  margin:0;
  padding:0;
  width:100%;
  overflow-x:hidden;
  font-family:Arial, sans-serif;
  background:#f5f7fa;
  color:#1f2933;
}

body {
  direction:rtl;
}

html[lang="en"] body {
  direction:ltr;
}

.page {
  width:100%;
  max-width:1000px;
  margin:auto;
  padding:24px 20px;
  font-size:18px;
  line-height:1.7;
  text-align:start;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  background:#173b5d;
  padding:12px 16px;
  margin-bottom:20px;
  border-radius:10px;
  text-align:center;
}

.nav a {
  display:inline-block;
  color:#ffffff;
  text-decoration:none;
  font-weight:bold;
  margin:0 8px;
  white-space:nowrap;
}

.nav a:hover {
  text-decoration:underline;
}

.nav a.active {
  text-decoration:underline;
  text-underline-offset:5px;
}


/* LANGUAGE SWITCH */

.language-link {
  border:1px solid rgba(255,255,255,0.70);
  border-radius:6px;
  padding:3px 7px;
}

.language-link:hover {
  background:rgba(255,255,255,0.12);
  text-decoration:none !important;
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:24px;
  background:#173b5d;
  padding:10px 16px;
  margin-bottom:22px;
  border-radius:12px;
}

.brand {
  display:flex;
  align-items:center;
  gap:7px;
  color:#ffffff;
  text-decoration:none;
  font-weight:bold;
  font-size:17px;
  white-space:nowrap;
}

.brand:hover {
  text-decoration:none;
}

.brand img {
  width:52px;
  height:52px;
  object-fit:contain;
  border-radius:50%;
  background:#ffffff;
}

.site-header .nav {
  margin:0;
  padding:0;
  background:none;
  border-radius:0;
}

.site-header .nav a {
  margin:4px 4px;
}


/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.hero {
  text-align:center;
  background:#ffffff;
  padding:24px;
  margin-bottom:24px;
  border-radius:16px;
  box-shadow:0 3px 14px rgba(0,0,0,.06);
}

.hero img {
  width:100%;
  max-width:900px;
  height:auto;
  border-radius:12px;
}

.hero h1 {
  margin:18px 0 8px;
  font-size:36px;
  color:#173b5d;
  line-height:1.4;
}

.hero h1 .ar-title {
  font-size:.75em;
}

.hero p {
  margin:0;
  font-weight:bold;
}


/* =========================================================
   INNER PAGE TITLE
   ========================================================= */

.page-title {
  text-align:center;
  background:#ffffff;
  padding:22px 18px;
  margin-bottom:24px;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.page-title h1 {
  margin:0 0 4px;
  font-size:34px;
  line-height:1.4;
  color:#173b5d;
}

.page-title p {
  margin:0;
  font-size:19px;
  font-weight:bold;
  color:#44576a;
}


/* =========================================================
   CONTENT CARDS
   ========================================================= */

section {
  padding:22px;
  margin-bottom:20px;
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.white {
  background:#ffffff;
  border-inline-start:5px solid #8b98a5;
}

.blue {
  background:#eef5fb;
  border-inline-start:5px solid #2f6f9f;
}

.green {
  background:#eef8f3;
  border-inline-start:5px solid #43835e;
}

.gold {
  background:#fff8e8;
  border-inline-start:5px solid #b8862d;
}


/* =========================================================
   HEADINGS AND TEXT
   ========================================================= */

h1,
h2,
h3 {
  color:#173b5d;
}

h2 {
  margin:0 0 10px;
  line-height:1.4;
}

h2 .en {
  font-size:.88em;
  font-weight:bold;
}

h3 {
  margin:18px 0 8px;
  font-size:19px;
}

p {
  margin:0 0 10px;
}

p:last-child {
  margin-bottom:0;
}

.topics {
  font-weight:bold;
}

.en-line {
  display:block;
  text-align:right;
}
/* =========================================================
   LISTS
   ========================================================= */

ul {
  margin:8px 0 12px;
  padding-inline-start:24px;
}

li {
  margin-bottom:7px;
}

li:last-child {
  margin-bottom:0;
}


/* =========================================================
   INFORMATION NOTE
   ========================================================= */

.notice {
  background:rgba(255,255,255,.65);
  border-inline-start:4px solid #b8862d;
  padding:12px 14px;
  margin-top:14px;
  border-radius:8px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display:inline-block;
  margin-top:12px;
  padding:10px 18px;
  background:#173b5d;
  color:#ffffff;
  border-radius:7px;
  text-decoration:none;
  font-weight:bold;
}

.button:hover {
  background:#24577f;
  text-decoration:none;
}

/* Space between a button and the next subsection title */
.button + h3 {
  margin-top:30px;
}



/* =========================================================
   EDUCATION SYSTEM DROPDOWN
   ========================================================= */

.nav-dropdown {
  display:inline-block;
  position:relative;
  margin:4px 4px;
  vertical-align:middle;
}

.nav-dropdown summary {
  display:inline-block;
  color:#ffffff;
  font-weight:bold;
  cursor:pointer;
  list-style:none;
  white-space:nowrap;
}

.nav-dropdown summary::-webkit-details-marker {
  display:none;
}

.nav-dropdown.active > summary {
  text-decoration:underline;
  text-underline-offset:5px;
}

.dropdown-menu {
  position:absolute;
  top:100%;
  right:0;
  min-width:180px;
  margin-top:8px;
  padding:6px;
  background:#173b5d;
  border-radius:8px;
  z-index:1000;
  text-align:right;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}

.dropdown-menu a {
  display:block !important;
  margin:0 !important;
  padding:6px 8px;
  color:#ffffff;
}

/* =========================================================
   SOCIAL LINKS
   ========================================================= */

.social-links {
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.social-links a {
  display:inline-block;
  padding:8px 14px;
  background:#ffffff;
  color:#173b5d;
  border:1px solid #b8c6d3;
  border-radius:7px;
  text-decoration:none;
  font-weight:bold;
}

.social-links a:hover {
  background:#f0f4f8;
}


/* =========================================================
   CALL TO ACTION
   ========================================================= */

.cta {
  background:#eaf2f8;
  border:2px solid #2f6f9f;
}


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

footer {
  text-align:center;
  background:#173b5d;
  color:#ffffff;
  padding:24px 18px;
  margin-top:28px;
  border-radius:14px;
  line-height:1.8;
}

footer p {
  margin:5px 0;
}

footer a {
  color:#ffffff;
  text-decoration:none;
}

footer a:hover {
  text-decoration:underline;
}

.footer-links {
  margin:8px 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:700px) {

  .page {
    padding:12px;
    font-size:16px;
  }


  /* HEADER */

  .site-header {
    display:block;
    text-align:center;
    padding:10px;
  }

  .brand {
    justify-content:center;
    margin-bottom:8px;
  }

  .brand img {
    width:52px;
    height:52px;
  }

  .site-header .nav a {
    margin:4px 5px;
  }


  /* NAVIGATION */

  .nav {
    padding:10px;
  }

  .nav a {
    margin:4px 5px;
  }

  .language-link {
    padding:3px 9px;
  }



  /* EDUCATION SYSTEM DROPDOWN */

  .nav-dropdown {
    display:inline-block;
    margin:4px 4px;
  }

  .dropdown-menu {
    position:absolute;
  }

  /* HERO */

  .hero {
    padding:14px;
    border-radius:12px;
  }

  .hero h1 {
    font-size:28px;
  }

  .hero h1 .ar-title {
    display:block;
    font-size:.8em;
    margin-top:4px;
  }


  /* PAGE TITLE */

  .page-title {
    padding:17px 12px;
    margin-bottom:16px;
  }

  .page-title h1 {
    font-size:27px;
  }

  .page-title p {
    font-size:17px;
  }


  /* CONTENT */

  section {
    padding:17px;
    border-radius:11px;
    margin-bottom:16px;
  }

  h2 {
    font-size:22px;
  }

  h2 .en {
    font-size:.82em;
  }

  h3 {
    font-size:18px;
  }


  /* BUTTONS */

  .button {
    width:100%;
    text-align:center;
  }


  /* SOCIAL LINKS */

  .social-links {
    display:block;
  }

  .social-links a {
    display:block;
    text-align:center;
    margin-bottom:8px;
  }

}

.email-copy {
  margin-top: 12px;
  font-size: 0.95rem;
}

.email-text {
  font-weight: 700;
  user-select: all;
  -webkit-user-select: all;
}

.copy-btn {
  margin-inline-start: 8px;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}