/* ==========================================
   منصة ادرس في مصر (v3 - Official Exact Replica)
   ========================================== */

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/tajawal/tajawal-300.ttf') format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tajawal/tajawal-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/tajawal/tajawal-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/tajawal/tajawal-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/tajawal/tajawal-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Tajawal';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/tajawal/tajawal-900.ttf') format('truetype');
}

:root {
  --official-red: #c92125;
  --official-dark: #212121;
  --official-skew: #333333;
  --official-bg-light: #f5f6f7;
  --official-border: #e0e0e0;
  --official-green-btn: #49e670;
  --official-green-hover: #068e28;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  font-family: "Tajawal", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ffffff;
  color: #363636;
  font-size: 15px;
  line-height: 1.7;
}

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

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================
   Official Top Bar & Skewed Navigation
   ========================================== */
.official-top-bar {
  background-color: var(--official-dark);
  color: #ffffff;
  height: 40px;
  font-size: 12px;
  display: flex;
  align-items: center;
}

.official-top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.skew-icons-container {
  display: flex;
  height: 40px;
  align-items: center;
}

.skew-icon-btn {
  display: flex;
  height: 100%;
  width: 50px;
  background-color: var(--official-skew);
  justify-content: center;
  align-items: center;
  transform: skewX(-25deg);
  transition: background-color 0.2s ease;
}

.skew-icon-btn:hover {
  background-color: var(--official-red);
}

.skew-icon-btn i {
  transform: skewX(25deg);
  font-size: 13px;
  color: #ffffff;
}

.official-top-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #ffffff;
}

/* ==========================================
   Official Sticky Header
   ========================================== */
.official-header {
  background-color: #ffffff;
  box-shadow: 0.1px 0 5px 0.1px var(--official-border);
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 99999;
}

.official-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 75px;
  padding-bottom: 8px;
  padding-top: 8px;
}

.official-logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 180px;
}

.official-logo-box img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
}

.official-logo-title {
  font-size: 23px;
  font-weight: 900;
  color: var(--official-dark);
  line-height: 1.15;
  max-width: 125px;
}

.official-nav {
  flex: 1;
  min-width: 0;
}

.official-nav-toggle {
  display: none;
}

.official-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  font-weight: 700;
  min-width: 0;
  row-gap: 4px;
}

.official-nav-list > li {
  position: relative;
}

.official-nav-link {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  padding: 6px 7px;
  border-bottom: 1px solid rgba(224, 224, 224, 0.57);
  font-size: 13px;
  line-height: 1.3;
  max-width: 132px;
  min-height: 38px;
  text-align: center;
  transition: all 0.2s ease;
  white-space: normal;
}

.official-nav-link i {
  font-size: 10px;
}

.official-nav-icon {
  display: none;
}

.official-nav-text {
  display: inline;
}

.official-nav-link:hover, .official-nav-link.active {
  background-color: #145e94;
  color: #ffffff;
  border-radius: 4px;
}

.official-dropdown {
  background: #fff;
  border: 1px solid var(--official-border);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 4px;
  list-style: none;
  min-width: 210px;
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 100000;
}

.has-dropdown:hover .official-dropdown,
.has-dropdown:focus-within .official-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.official-dropdown a {
  align-items: center;
  border-radius: 6px;
  color: var(--official-dark);
  display: flex;
  gap: 8px;
  font-size: 14px;
  padding: 9px 10px;
  white-space: nowrap;
}

.official-dropdown a:hover,
.official-dropdown a:focus {
  background: #f5f6f7;
  color: var(--official-red);
}

/* Header Buttons Layout */
.official-header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.official-header-btn-red,
.official-header-btn-black {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.official-header-btn-red {
  background-color: var(--official-red);
  color: #ffffff;
}

.official-header-btn-red:hover {
  background-color: #a8191c;
}

.official-header-btn-black {
  background-color: #23282d;
  color: #ffffff;
}

.official-header-btn-black:hover {
  background-color: #111;
}

@media (max-width: 1200px) and (min-width: 981px) {
  .official-header .container {
    gap: 12px;
  }
  .official-logo-box {
    min-width: 150px;
  }
  .official-logo-box img {
    width: 48px;
    height: 48px;
  }
  .official-logo-title {
    font-size: 20px;
    max-width: 105px;
  }
  .official-nav-list {
    gap: 5px;
  }
  .official-nav-link {
    font-size: 13px;
    max-width: 116px;
    min-height: 36px;
    padding: 6px 7px;
  }
  .official-header-btn-red,
  .official-header-btn-black {
    font-size: 13px;
    padding: 0 10px;
    height: 36px;
  }
}

/* ==========================================
   Hero & Headline Decoration
   ========================================== */
.official-hero {
  padding: 50px 0 30px 0;
  text-align: center;
  background-color: #ffffff;
}

.hero-sub-text {
  color: var(--official-red);
  font-size: 20px;
  font-weight: 700;
}

.hero-main-heading {
  font-weight: 900;
  font-size: 56px;
  color: var(--official-dark);
  margin-bottom: 10px;
}

.hero-desc-lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--official-dark);
}

.head-line-decor {
  display: block;
  margin: 15px auto 30px auto;
  width: 250px;
  height: 12px;
  background: url('../images/head-line.png') no-repeat center center;
  background-size: contain;
}

/* Ticker 7 Badges Box */
.official-ticker-bar {
  background-color: #ffffff;
  box-shadow: 0.2px 0.2px 5px 0.3px #e3e3e3;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 10px;
  margin-bottom: 40px;
  border-radius: 6px;
}

.ticker-col {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ticker-col img, .ticker-col i {
  font-size: 2rem;
  color: var(--official-dark);
  margin-bottom: 4px;
}

.ticker-badge-red {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--official-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-bottom: 5px;
  border-radius: 50%;
}

.ticker-col-title {
  font-weight: 700;
  font-size: 13px;
}

/* Official Form with Background Icons inside Inputs */
.home-study-form-card {
  width: 380px;
  background-color: #ffffff;
  padding: 25px 25px 15px;
  text-align: center;
  box-shadow: 0.2px 0.2px 5px 0.3px #e3e3e3;
  border-radius: 8px;
}

.sie-v3-lead-form-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
}

.sie-v3-lead-form-card.is-sidebar {
  border: 1px solid #eceff2;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 30px 25px 18px;
  width: 100%;
}

.sie-v3-lead-form-card.is-sidebar h3 {
  color: var(--official-red);
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
}

.sie-v3-lead-form-note {
  color: #333;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 auto 22px;
  max-width: 300px;
}

.home-study-email, .home-study-name, .home-study-phone, .wpcf7-form-select {
  width: 100%;
  padding: 10px 40px 10px 12px;
  margin-bottom: 12px;
  text-align: right;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  transition: all .25s ease;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
}

.home-study-name {
  background-image: url('../images/icon-user.png');
}

.home-study-email {
  background-image: url('../images/icon-email.png');
}

.home-study-phone {
  background-image: url('../images/icon-phone.png');
}

.wpcf7-form-select.major-select {
  background-image: url('../images/icon-book.png');
}

.wpcf7-form-select.degree-select {
  background-image: url('../images/icon-graduation-cap.png');
}

.home-study-email:focus, .home-study-name:focus, .home-study-phone:focus, .wpcf7-form-select:focus {
  border-color: #146b63;
  box-shadow: 0 0 6px rgba(0, 166, 81, 0.4);
}

.home-study-btn {
  background: var(--official-red);
  color: #ffffff;
  border: 0;
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
}

.home-study-btn:hover {
  background: linear-gradient(90deg, #c92125, #ea595b);
}

.official-intro-form {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  text-align: right;
}

.official-intro-content {
  flex: 1;
}

/* Background Overlay Fixed Section */
.bg-fixed-overlay-section {
  background-image: url('../images/study-in-egy-background-300x300.avif');
  background-position: top center;
  background-size: auto;
  background-attachment: fixed;
  padding: 60px 0;
  position: relative;
}

.bg-fixed-overlay-section::before {
  background-image: repeating-linear-gradient(rgba(213, 213, 213, 0.85), rgba(213, 213, 213, 0.85));
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.bg-fixed-overlay-section .container {
  position: relative;
  z-index: 2;
}

/* Features Cards */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature-card-3 {
  padding: 20px;
  box-shadow: 0.2px 0.2px 5px 0.3px #e3e3e3;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 6px;
}

.feature-card-3 img, .feature-card-3 i {
  width: 55px;
  height: 55px;
  margin-bottom: 8px;
  font-size: 2.2rem;
  color: var(--official-red);
}

.feature-card-3 h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* 15 Programs Grid */
.programs-grid-15 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 15px;
  margin-top: 30px;
}

.program-box-15 {
  box-shadow: 0.01px 0.01px 5px 0.1px #e0e0e0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  border-radius: 6px;
  text-align: center;
}

.program-box-15 i {
  font-size: 2.2rem;
  color: var(--official-dark);
  margin-bottom: 8px;
}

.program-box-15 h3 {
  font-size: 15px;
  font-weight: 700;
}

/* Universities Section */
.unis-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.tourism-grid-3,
.steps-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.tourism-card,
.step-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0.1px 0.1px 5px #e0e0e0;
}

.tourism-card {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--official-red);
  color: white;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
}

.uni-card-official {
  background: #ffffff;
  box-shadow: 0.01px 0.01px 5px 0.1px #e0e0e0;
  padding: 25px 15px;
  text-align: center;
  border-radius: 8px;
}

.uni-card-official h3 {
  font-size: 22px;
  color: var(--official-red);
  margin-bottom: 12px;
  font-weight: 800;
}

/* Green WhatsApp Action Buttons */
.whatsapp-green-btn-large {
  font-family: "Tajawal", sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  gap: 12px;
  width: 70%;
  background-color: var(--official-green-btn);
  border-radius: 10px;
  height: 50px;
  cursor: pointer;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0;
  border: none;
}

.whatsapp-green-btn-large:hover {
  background-color: var(--official-green-hover);
}

.floating-wa-official {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99999;
  width: 60px;
  height: 60px;
  background-color: var(--official-green-btn);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ Accordion Official */
.faq-official-container {
  max-width: 900px;
  margin: 30px auto 0 auto;
}

.faq-official-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 0;
}

.faq-official-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--official-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-official-content {
  display: none;
  padding-top: 10px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

.faq-official-item.active .faq-official-content {
  display: block;
}

/* Official Footer */
.official-footer {
  background-color: var(--official-dark);
  color: #ffffff;
  padding: 50px 0 20px 0;
  font-size: 14px;
}

.official-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.sie-v3-footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.sie-v3-footer-col h4,
.sie-v3-footer-brand h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 15px;
}

.sie-v3-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.sie-v3-footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.sie-v3-footer-col p,
.sie-v3-footer-text {
  color: #aaa;
  margin-bottom: 8px;
}

.sie-v3-footer-col i {
  color: var(--official-red);
  margin-left: 6px;
}

.official-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
}

.sie-v3-section-subtitle {
  color: #666;
  font-size: 16px;
  margin: 8px auto 0;
  max-width: 720px;
}

.sie-v3-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.sie-v3-post-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0.01px 0.01px 5px 0.1px #e0e0e0;
  overflow: hidden;
}

.sie-v3-post-thumb {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #f5f6f7;
  color: var(--official-red);
  display: flex;
  justify-content: center;
}

.sie-v3-post-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sie-v3-post-thumb span {
  font-size: 42px;
}

.sie-v3-post-body {
  padding: 18px;
  text-align: right;
}

.sie-v3-post-body time,
.sie-v3-single time {
  color: #777;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.sie-v3-post-body h3 {
  color: var(--official-dark);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
}

.sie-v3-post-body p {
  color: #555;
  font-size: 14px;
  margin-bottom: 14px;
}

.sie-v3-post-read {
  color: var(--official-red);
  font-weight: 800;
}

.sie-v3-section-action {
  margin-top: 26px;
  text-align: center;
}

.sie-v3-archive,
.sie-v3-single {
  padding: 60px 0;
}

.sie-v3-single-layout {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 400px;
}

.sie-v3-single-article {
  background: #fff;
  min-width: 0;
}

.sie-v3-single-head {
  border-bottom: 1px solid #edf0f3;
  margin-bottom: 26px;
  padding-bottom: 24px;
}

.sie-v3-back-link {
  color: var(--official-red);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 8px;
}

.sie-v3-single-head h1 {
  color: var(--official-dark);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.sie-v3-single-head p {
  color: #555;
  font-size: 18px;
  line-height: 1.8;
}

.sie-v3-single-sidebar {
  position: sticky;
  top: 110px;
}

.sie-v3-archive-head {
  text-align: center;
}

.sie-v3-archive-head h1,
.sie-v3-single-card h1 {
  color: var(--official-dark);
  font-size: 42px;
  font-weight: 900;
}

.sie-v3-archive-head p {
  color: #666;
  font-size: 16px;
}

.sie-v3-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.sie-v3-pagination .page-numbers {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: var(--official-dark);
  font-weight: 800;
  padding: 8px 13px;
}

.sie-v3-pagination .current,
.sie-v3-pagination .page-numbers:hover {
  background: var(--official-red);
  border-color: var(--official-red);
  color: #fff;
}

.sie-v3-single-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0.01px 0.01px 5px 0.1px #e0e0e0;
  margin: 0 auto;
  max-width: 900px;
  padding: 34px;
}

.sie-v3-single-thumb {
  margin: 24px 0;
}

.sie-v3-single-thumb img {
  border-radius: 8px;
  width: 100%;
}

.sie-v3-single-content {
  color: #444;
  font-size: 20px;
  line-height: 2;
}

.sie-v3-single-content h2,
.sie-v3-single-content h3 {
  border-right: 4px solid var(--official-red);
  color: var(--official-dark);
  font-weight: 900;
  line-height: 1.45;
  margin: 30px 0 12px;
  padding-right: 12px;
}

.sie-v3-single-content p {
  margin-bottom: 20px;
}

.sie-v3-article-cta {
  background-image: linear-gradient(rgba(245, 246, 247, 0.9), rgba(245, 246, 247, 0.9)), url('../images/study-in-egy-background-300x300.avif');
  border-radius: 8px;
  margin: 34px 0 10px;
  padding: 22px;
  text-align: center;
}

.sie-v3-article-cta h2 {
  color: var(--official-dark);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 18px;
}

.sie-v3-article-cta-actions {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 620px;
}

.sie-v3-article-cta-actions a {
  align-items: center;
  background: #18ad45;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
}

.sie-v3-related-posts {
  border-top: 1px solid #edf0f3;
  margin-top: 48px;
  padding-top: 36px;
}

.sie-v3-related-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.sie-v3-related-head h2 {
  color: var(--official-dark);
  font-size: 30px;
  font-weight: 900;
}

.sie-v3-related-head a {
  color: var(--official-red);
  font-weight: 900;
}

@media (max-width: 980px) {
  .official-top-bar .container,
  .official-intro-form {
    flex-direction: column;
    height: auto;
  }
  .official-header .container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 15px;
  }
  .official-logo-box {
    min-width: 0;
  }
  .official-nav {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
    order: 3;
  }
  .official-nav-list {
    background: #fff;
    border-top: 1px solid var(--official-border);
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    width: 100%;
  }
  .official-nav.is-open .official-nav-list {
    display: flex;
  }
  .official-nav-toggle {
    align-items: center;
    background: #145e94;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-weight: 800;
    gap: 8px;
    padding: 9px 13px;
  }
  .official-nav-list > li,
  .official-nav-link {
    width: 100%;
  }
  .official-nav-link {
    justify-content: space-between;
  }
  .official-dropdown {
    box-shadow: none;
    display: none;
    min-width: 0;
    opacity: 1;
    padding: 4px 12px 4px 0;
    pointer-events: auto;
    position: static;
    transform: none;
    width: 100%;
  }
  .has-dropdown:hover .official-dropdown,
  .has-dropdown:focus-within .official-dropdown,
  .has-dropdown.is-open .official-dropdown {
    display: grid;
  }
  .official-ticker-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
  }
  .features-grid-3, .unis-grid-3, .official-footer-grid, .tourism-grid-3, .steps-grid-3, .sie-v3-posts-grid {
    grid-template-columns: 1fr;
  }
  .programs-grid-15 {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-study-form-card {
    width: 100%;
  }
  .sie-v3-single-layout {
    grid-template-columns: 1fr;
  }
  .sie-v3-single-sidebar {
    position: static;
  }
  .sie-v3-single-head h1 {
    font-size: 36px;
  }
  .sie-v3-single-content {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  body {
    background: #fff;
    font-size: 14px;
  }

  .container {
    padding: 0 14px;
  }



  .official-top-bar {
    height: auto;
    min-height: 38px;
    overflow: hidden;
  }

  .official-top-bar .container {
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }

  .official-top-contact {
    display: none;
  }

  .skew-icons-container {
    height: 38px;
    justify-content: center;
    width: 100%;
  }

  .skew-icon-btn {
    transform: none;
    width: 48px;
  }

  .skew-icon-btn i {
    transform: none;
  }

  .official-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  }

  .official-header .container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: 72px;
    padding: 10px 14px;
  }

  .official-logo-box {
    gap: 9px;
    min-width: 0;
  }

  .official-logo-box img {
    height: 46px;
    width: 46px;
  }

  .official-logo-title {
    font-size: 22px;
    line-height: 1.08;
    max-width: 105px;
  }

  .official-header-btn-red {
    align-self: center;
    border-radius: 9px;
    font-size: 13px;
    max-width: 118px;
    min-height: 42px;
    padding: 8px 13px;
  }

  .official-nav {
    display: block;
    grid-column: 1 / -1;
    order: initial;
    width: 100%;
  }

  .official-nav-toggle {
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(20, 94, 148, 0.22);
    margin: 0 auto;
    min-height: 42px;
    padding: 10px 16px;
  }

  .official-nav.is-open::before {
    background: rgba(0, 0, 0, 0.32);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 99990;
  }

  .official-nav-list {
    border: 0;
    border-radius: 18px 18px 0 0;
    bottom: 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.22);
    display: flex;
    gap: 8px;
    left: 0;
    margin: 0;
    max-height: 72vh;
    overflow: auto;
    padding: 18px;
    position: fixed;
    right: 0;
    transform: translateY(110%);
    transition: transform 0.24s ease;
    z-index: 99999;
  }

  .official-nav.is-open .official-nav-list {
    transform: translateY(0);
  }

  .official-nav-link {
    background: #f7f8fa;
    border: 0;
    border-radius: 12px;
    color: var(--official-dark);
    font-size: 15px;
    font-weight: 800;
    min-height: 48px;
    padding: 12px 14px;
    text-align: right;
  }

  .official-nav-link:hover,
  .official-nav-link.active {
    background: #145e94;
    color: #fff;
  }

  .official-dropdown {
    background: #f7f8fa;
    border: 0;
    border-radius: 12px;
    margin-top: 6px;
    padding: 6px;
  }

  .official-dropdown a {
    background: #fff;
    border-radius: 10px;
    min-height: 42px;
  }

  .official-hero {
    padding: 48px 0 28px;
  }

  .hero-sub-text {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .hero-main-heading {
    font-size: 44px;
    line-height: 1.14;
    margin-bottom: 14px;
  }

  .hero-desc-lead {
    font-size: 18px;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 340px;
  }

  .head-line-decor {
    margin: 18px auto 26px;
    width: 150px;
  }

  .official-ticker-bar {
    border: 1px solid #edf0f3;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 34px;
    padding: 16px 10px;
  }

  .ticker-col {
    background: #fbfbfc;
    border-radius: 12px;
    min-height: 96px;
    padding: 12px 8px;
    width: auto;
  }

  .ticker-col img,
  .ticker-col i {
    font-size: 1.85rem;
  }

  .ticker-col-title {
    font-size: 13px;
    line-height: 1.45;
  }

  .official-intro-form {
    gap: 24px;
    text-align: center;
  }

  .official-intro-content h2,
  #features h2,
  #programs h2,
  #universities h2,
  #tourism h2,
  #steps h2,
  #articles h2,
  #faq h2 {
    font-size: 32px !important;
    line-height: 1.25;
  }

  .whatsapp-green-btn-large {
    border-radius: 12px;
    font-size: 16px;
    width: 100%;
  }

  .home-study-form-card {
    border: 1px solid #edf0f3;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    padding: 22px 18px 18px;
  }

  .sie-v3-single {
    padding: 34px 0;
  }

  .sie-v3-single-head h1 {
    font-size: 31px;
  }

  .sie-v3-single-head p,
  .sie-v3-single-content {
    font-size: 17px;
    line-height: 1.9;
  }

  .sie-v3-article-cta {
    padding: 18px;
  }

  .sie-v3-article-cta h2 {
    font-size: 22px;
  }

  .sie-v3-article-cta-actions {
    grid-template-columns: 1fr;
  }

  .sie-v3-related-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-study-email,
  .home-study-name,
  .home-study-phone,
  .wpcf7-form-select {
    border-radius: 11px;
    min-height: 46px;
  }

  .home-study-btn {
    border-radius: 11px;
    min-height: 48px;
  }

  .floating-wa-official {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 12px 28px rgba(73, 230, 112, 0.35);
    height: 58px;
    left: 18px;
    width: 58px;
  }
}

/* Mobile Bottom Nav Bar Styles */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 999999;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777777;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
  }

  .mobile-tab-item i {
    font-size: 20px;
    margin-bottom: 4px;
  }

  .mobile-tab-item.active {
    color: var(--official-red);
  }

  /* Make the register/CTA tab stand out */
  .mobile-tab-item.cta-tab {
    color: #ffffff !important;
    background-color: var(--official-red);
    height: 80%;
    margin: 0 6px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(201, 33, 37, 0.3);
  }

  .mobile-tab-item.cta-tab.active,
  .mobile-tab-item.cta-tab:hover {
    color: #ffffff !important;
    background-color: #a8191c;
  }

  /* Hide normal header navigation toggle on mobile */
  .official-header nav,
  .official-nav-toggle {
    display: none !important;
  }
  
  /* Add bottom padding to body so content isn't covered */
  body {
    padding-bottom: 75px !important;
  }
}

/* Fix mobile sticky header top gap when scrolled and admin bar scrolls off */
@media screen and (max-width: 782px) {
  .admin-bar .official-header {
    top: 0 !important;
  }
}

/* ==========================================================================
   Medicine Landing Page Styles
   ========================================================================== */

/* Medicine Hero */
.medicine-hero {
  background: linear-gradient(135deg, rgba(33, 33, 33, 0.9), rgba(19, 35, 47, 0.85)), url('../images/study-in-egy-background-300x300.avif') no-repeat center center;
  background-size: cover;
  color: white;
  padding: 100px 0 60px 0;
  text-align: right;
}
.medicine-hero-content {
  max-width: 800px;
}
.med-tag {
  display: inline-block;
  background: var(--official-red);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
}
.med-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 15px;
}
.med-desc {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #ddd;
}

/* Metrics Section */
.medicine-metrics-section {
  background: white;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}
.medicine-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px;
}
.metric-card i {
  font-size: 2.2rem;
  color: var(--official-red);
}
.metric-card h3 {
  font-size: 15px;
  color: #777;
  margin-bottom: 4px;
  font-weight: 500;
}
.metric-card p {
  font-size: 16px;
  color: var(--official-dark);
  font-weight: 700;
  margin: 0;
}

/* Layout */
.medicine-layout-section {
  padding: 60px 0;
  background: #f8f9fa;
}
.medicine-layout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.medicine-main-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.med-article-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.med-article-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--official-dark);
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
  position: relative;
}
.med-article-card h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 60px;
  height: 2px;
  background: var(--official-red);
}
.med-article-card p {
  line-height: 1.8;
  color: #555;
  font-size: 16px;
}

/* Features List */
.med-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.med-feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.med-feature-item i {
  color: #28a745;
  font-size: 1.4rem;
  margin-top: 3px;
}
.med-feature-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--official-dark);
  margin-bottom: 5px;
}
.med-feature-item p {
  margin: 0;
  font-size: 15px;
  color: #666;
}

/* Fees Table */
.med-fees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.med-fees-table th, .med-fees-table td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid #eee;
}
.med-fees-table th {
  background: #f8f9fa;
  font-weight: 700;
  color: var(--official-dark);
}
.med-fees-table td {
  color: #555;
}

/* Requirements List */
.med-requirements-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.med-requirements-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #555;
}
.med-requirements-list li i {
  color: var(--official-red);
  font-size: 12px;
}

/* Unis list */
.med-unis-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.med-uni-tag {
  background: #f1f3f5;
  color: #495057;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}
.med-uni-tag:hover {
  background: var(--official-red);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .medicine-layout-grid {
    grid-template-columns: 1fr;
  }
  .medicine-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .medicine-metrics-grid {
    grid-template-columns: 1fr;
  }
  .med-title {
    font-size: 2.2rem;
  }
  .medicine-hero {
    padding: 80px 0 40px 0;
  }
  .med-fees-table th, .med-fees-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* ==========================================================================
   Mobile Toggle & Drawer Overlay Styles
   ========================================================================== */

/* Mobile Toggle styling */
.sie-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

/* CSS-based Grid Icon */
.sie-grid-toggle-icon {
  display: grid;
  grid-template-columns: repeat(2, 9px);
  grid-template-rows: repeat(2, 9px);
  gap: 3px;
  padding: 4px;
}
.sie-grid-toggle-icon .square {
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid;
  box-sizing: border-box;
}
.sie-grid-toggle-icon .square.black {
  border-color: #23282d;
}
.sie-grid-toggle-icon .square.red {
  border-color: #c92125;
}

/* Mobile Drawer Overlay */
.sie-mobile-drawer {
  position: fixed;
  top: 75px; /* height of header */
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding: 20px;
}

/* Open state for body and header */
body.sie-drawer-open {
  overflow: hidden !important;
}

/* Drawer list styling */
.sie-drawer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.sie-drawer-nav-list li.drawer-item {
  border-bottom: 1px solid #f0f0f0;
}
.sie-drawer-nav-list li.drawer-item .drawer-link-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 55px;
}
.sie-drawer-nav-list li.drawer-item .drawer-link {
  color: #333;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
}
.sie-drawer-nav-list li.drawer-item .drawer-link.active {
  color: #c92125;
}
.sie-drawer-nav-list li.drawer-item .drawer-dropdown-toggle {
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: #777;
  font-size: 16px;
  transition: transform 0.2s ease;
}
.sie-drawer-nav-list li.drawer-item.open .drawer-dropdown-toggle {
  transform: rotate(180deg);
}

/* Nested dropdown inside drawer */
.sie-drawer-nav-list li.drawer-item .drawer-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
  background: #fdfdfd;
}
.sie-drawer-nav-list li.drawer-item .drawer-dropdown li {
  border-bottom: 1px solid #f7f7f7;
}
.sie-drawer-nav-list li.drawer-item .drawer-dropdown a {
  display: block;
  padding: 12px 25px 12px 10px;
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.sie-drawer-nav-list li.drawer-item .drawer-dropdown a:hover {
  color: #c92125;
}

/* Drawer Buttons */
.sie-drawer-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: auto;
  padding-bottom: 30px;
}
.sie-drawer-buttons .btn-drawer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}
.sie-drawer-buttons .btn-drawer.btn-red {
  background: #c92125;
  color: white;
}
.sie-drawer-buttons .btn-drawer.btn-black {
  background: #23282d;
  color: white;
}

/* Media query to activate mobile drawer and toggle */
@media (max-width: 991px) {
  .sie-mobile-toggle {
    display: block;
  }
  .official-header .official-nav,
  .official-header .official-header-buttons {
    display: none !important;
  }
  .official-header .official-logo-box {
    margin-right: auto; /* Push logo to the right, toggle is on the left */
    margin-left: 0;
  }
  .official-header .official-logo-title {
    display: none; /* Hide title on small screens to fit log-box */
  }
}

