/* =========================================================
   RESET
========================================================= */

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


/* =========================================================
   BODY
========================================================= */

body {

    font-family: 'Tajawal', sans-serif;

    min-height: 100vh;

    direction: rtl;

    color: #ffffff;

    padding: 30px;

    background:
        radial-gradient(
            ellipse 75% 90% at 100% 0%,
            #344f72 0%,
            #263d59 35%,
            rgba(22, 39, 54, 0) 70%
        ),
        radial-gradient(
            ellipse 65% 75% at 0% 100%,
            #142d3a 0%,
            rgba(20, 45, 58, 0) 65%
        ),
        linear-gradient(
            135deg,
            #050b0f 0%,
            #0b151d 38%,
            #142536 70%,
            #304b6d 100%
        );

    display: flex;

    justify-content: center;

    align-items: flex-start;
}


/* =========================================================
   الحاوية الرئيسية
========================================================= */

.container {
  width: 100%;
  max-width: 1100px;
  padding: 40px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}


/* =========================================================
   الهيدر
========================================================= */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin-bottom: 30px;
  padding-bottom: 25px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  width: 170px;
  filter: drop-shadow(0 4px 12px rgba(17, 17, 17, 0.137));
}

.header-text {
  text-align: right;
}

h1 {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.5px;

  background: linear-gradient(135deg, #ffffff, #edefed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  margin-bottom: 6px;
}

.subtitle {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}


/* =========================================================
   قسم البحث
========================================================= */

.search-section {
  margin-bottom: 10px;
}

.search-box {
  display: flex;
  align-items: center;

  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;

  padding: 6px 6px 6px 14px;
  gap: 10px;

  transition: 0.3s;
}

.search-box:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(100, 200, 100, 0.6);

  box-shadow: 0 0 0 4px rgba(100, 200, 100, 0.1);
}

.search-icon {
  font-size: 18px;
  opacity: 0.7;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;

  background: transparent !important;
  border: none;
  outline: none;

  font-size: 16px;
  font-family: 'Tajawal', sans-serif;

  color: #ffffff;
  text-align: right;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-box button {
  margin: 0;
  padding: 12px 28px;

  border-radius: 12px;
  border: none;

  background: linear-gradient(135deg, #3d8b35, #56c44a);

  color: #fff;

  font-size: 15px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;

  cursor: pointer;
  transition: 0.25s;

  box-shadow: 0 4px 15px rgba(80, 180, 80, 0.35);

  flex-shrink: 0;
}

.search-box button:hover {
  background: linear-gradient(135deg, #4da844, #6bdc5e);

  transform: translateY(-1px);

  box-shadow: 0 6px 20px rgba(80, 180, 80, 0.5);
}


/* =========================================================
   أزرار الاختصار
========================================================= */

.quick-buttons {
  display: flex;
  justify-content: center;

  gap: 12px;
  flex-wrap: wrap;

  margin-top: 14px;
}

.quick-buttons button {
  background: rgba(255, 255, 255, 0.877);

  color: rgba(3, 3, 3, 0.85);

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;

  padding: 5px 20px;

  font-size: 18px;
  font-weight: 700;
  font-family: 'Tajawal', sans-serif;

  cursor: pointer;
  transition: 0.25s;

  margin: 0;
}

.quick-buttons button:hover {
  background: rgba(80, 180, 80, 0.3);

  border-color: rgba(80, 200, 80, 0.5);

  color: #fff;

  transform: translateY(-2px);
}


/* =========================================================
   نتيجة البحث
========================================================= */

#result {
  margin-top: 30px;
  margin-bottom: 30px;

  font-size: 37px;
  font-weight: 700;

  min-height: 28px;

  color: #ffffff;
  text-align: center;
}


/* =========================================================
   عناوين الأقسام
========================================================= */

.section-title {
  text-align: center;

  font-size: 27px;
  font-weight: 600;

  color: rgb(255 255 255);

  letter-spacing: 1px;

  margin-bottom: 10px;
  padding-right: 4px;
}


/* =========================================================
   Layout الخرائط
========================================================= */

.maps-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;

  gap: 70px;
  margin-top: 65px;
}


/* =========================================================
   قسم المخطط
========================================================= */

.map-section {
  flex: 1.1;

  min-width: 0;

  display: flex;
  flex-direction: column;
}


/* =========================================================
   قسم المبنى
========================================================= */

.building-section {
  flex-shrink: 0;

  width: 450px;

  display: flex;
  flex-direction: column;
}


/* =========================================================
   المخطط
========================================================= */

.map-container {
  position: relative;

  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 35px 40px rgba(0, 0, 0, 0.35);

  flex: 1;
  min-height: 280px;
}

.map-image {
  width: 100%;
  display: block;
}

#map-svg {
  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}


/* =========================================================
   الليجند
========================================================= */
/* =========================================================
   LEGEND - شريط كبير أسفل الخرائط
========================================================= */

.map-legend {
  width: calc(93% + 80px);
  margin-right: -5px;
  margin-left: -80px;

  min-height: 120px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;

  gap: 28px;

  margin-top: 38px;
  margin-bottom: 0;

  padding: 32px 40px;

  background: rgba(164, 162, 162, 0.205);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(251, 248, 247, 0.36);
  border-radius: 18px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35);

  font-size: 20px;

  color: #ffffff;

  opacity: 1;
}

/* =========================================================
   عناصر الـLegend
========================================================= */

.legend-item {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  min-width: 130px;
  min-height: 95px;

  padding: 14px 52px;

  background: rgba(11, 11, 11, 0.38);

  border: 1px solid rgba(3, 8, 10, 0.661);

  border-radius: 12px;

  font-family: 'Tajawal', sans-serif;

  font-size: 24px;
  font-weight: 700;

  white-space: nowrap;
}


/* =========================================================
   الدوائر
========================================================= */

.dot {
  width: 22px;
  height: 22px;

  border-radius: 50%;

  flex-shrink: 0;
}


/* =========================================================
   المربعات
========================================================= */

.box {
  width: 19px;
  height: 19px;

  border-radius: 2px;

  display: inline-block;

  flex-shrink: 0;
}


/* =========================================================
   خط المسار
========================================================= */

.line-icon {
  width: 32px;
  height: 5px;

  border-radius: 4px;

  background: linear-gradient(
    90deg,
    #ff4444,
    #ff8888
  );

  flex-shrink: 0;
}


/* =========================================================
   الألوان
========================================================= */

.red {
  background: #ff3b3b;

  box-shadow:
    0 0 10px rgba(255, 0, 0, 0.7);
}

.green {
  background: #2ecc71;

  box-shadow:
    0 0 10px rgba(46, 204, 113, 0.7);
}

.blue {
  background: #3498db;

  box-shadow:
    0 0 10px rgba(52, 152, 219, 0.7);
}


/* =========================================================
   المسار
========================================================= */

#route-path {
  fill: none;
  stroke: #E14A2B;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;

  /* ظل لوني خفيف يعطي الخط إحساسًا بالعمق بدل السطح المسطح */
  filter: drop-shadow(0 3px 6px rgba(225, 74, 43, 0.35));
}

/* نمط التدفق المستمر بعد اكتمال رسم المسار */
#route-path.route-flow {
  stroke-dasharray: 16 12;
  animation: routeFlow 1.1s linear infinite;
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -56;
  }
}

/* احترام من يفضّل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  #route-path {
    transition: none !important;
  }
  #route-path.route-flow {
    animation: none;
  }
}


/* =========================================================
   نقطة البداية
========================================================= */

#start-dot {
  fill: #ff3b3b;
  stroke: white;
  stroke-width: 3;

  transform-origin: center;
  transform-box: fill-box;

  animation: startDotPulse 1.1s ease-in-out infinite;
}

@keyframes startDotPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 3px rgba(255, 59, 59, 0.4));
  }

  50% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 12px rgba(255, 59, 59, 0.95));
  }
}


/* =========================================================
   نقطة الوجهة
========================================================= */

#destination-dot {
  fill: #2ecc71;

  stroke: white;
  stroke-width: 4;

  filter: drop-shadow(0 0 10px #2ecc71);

  display: none;
}


/* =========================================================
   المبنى
========================================================= */

.building-wrapper {
  display: flex;
  align-items: stretch;

  gap: 0;

  flex: 1;
}


/* =========================================================
   أرقام الأدوار
========================================================= */

.floor-labels {
  display: flex;

  flex-direction: column;
  justify-content: space-between;
  align-items: center;

  padding-top: 18%;
  padding-bottom: 6%;

  width: 65px;

  flex-shrink: 0;

  position: relative;
  z-index: 20;
}


/* =========================================================
   شكل أرقام الأدوار
========================================================= */

.floor-labels span {
  color: rgba(255, 255, 255, 0.9);

  font-weight: 700;
  font-size: 15px;

  font-family: 'Tajawal', sans-serif;

  text-align: center;

  background: rgba(0, 0, 0, 0.45);

  border-radius: 7px;

  padding: 14px 21px;

  position: relative;

  cursor: default;

  transition: 0.25s;

  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* =========================================================
   الخط الواصل من رقم الدور للمبنى
========================================================= */

.floor-labels span::after {
  content: '';

  position: absolute;

  left: 100%;
  top: 50%;

  transform: translateY(-50%);

  width: 5px;
  height: 1px;

  background: rgba(255, 255, 255, 0.35);
}


/* =========================================================
   الدور المحدد
========================================================= */

.floor-labels span.active {
  background: linear-gradient(135deg, #cc2222, #ff4444);

  color: #fff;

  border-color: rgba(255, 100, 100, 0.5);

  box-shadow:
    0 0 12px rgba(255, 60, 60, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.3);

  transform: scale(1.12);
}

/* =========================================================
   حاوية صورة المبنى
========================================================= */

.building-container {
  position: relative;

  flex: 1;

  overflow: hidden;

  border-radius: 14px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 35px 40px rgba(0, 0, 0, 0.35);

  min-height: 280px;
}

.building-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;

  border-radius: 14px;
}


/* =========================================================
   تحديد الدور
========================================================= */
#floor-highlight {
  position: absolute;

  left: 6%;
  width: 96%;

  height: 65px;

  border-radius: 10px;

  /* تدرج بدل تعبئة حمراء صلبة: يبرز في المنتصف ويخفت عند الحواف
     فيبدو كإضاءة على الدور بدل بقعة لون مسطحة */
  background: linear-gradient(
  90deg,
  rgba(214, 73, 30, 0) 0%,
  rgba(214, 30, 30, 0.839) 15%,
  rgba(214, 30, 30, 0.839) 85%,
  rgba(30, 125, 214, 0.072) 100%
);

  /* حدّان علوي وسفلي مضيئان يحددان الدور بدقة أكبر من التعبئة وحدها */
  border-top: 2px solid rgba(214, 73, 30, 0.85);
  border-bottom: 2px solid rgba(214, 73, 30, 0.85);

  box-shadow:
    0 0 18px rgba(214, 73, 30, 0.55),
    inset 0 0 20px rgba(214, 73, 30, 0.15);

  display: none;

  z-index: 5;

  pointer-events: none;

  transform: translateY(-20%);

  animation: floorPulse 1.8s ease-in-out infinite;
}

@keyframes floorPulse {
  0%, 100% {
    opacity: 0.3;
    box-shadow:
      0 0 14px rgba(214, 73, 30, 0.4),
      inset 0 0 15px rgba(214, 73, 30, 0.1);
  }

  20% {
    opacity: 1;
    box-shadow:
      0 0 30px rgba(214, 73, 30, 0.8),
      inset 0 0 25px rgba(214, 73, 30, 0.25);
  }

  35% {
    opacity: 0.8;
    box-shadow:
      0 0 16px rgba(214, 73, 30, 0.45),
      inset 0 0 15px rgba(214, 73, 30, 0.12);
  }

  50% {
    opacity: 1;
    box-shadow:
      0 0 30px rgba(214, 73, 30, 0.8),
      inset 0 0 25px rgba(214, 73, 30, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  #floor-highlight {
    animation: none;
    opacity: 0.9;
  }
}


/* =========================================================
   النقطة الحمراء على المبنى
========================================================= */

#start-floor-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #ff3b3b;
  border-radius: 50%;
  border: 2.5px solid white;
  z-index: 10;

  /* مكان النقطة */
  bottom: 25%;
  right: 7%;

  /* النبض */
  animation: floorDotPulse 1.1s ease-in-out infinite;

  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

@keyframes floorDotPulse {
  0%, 100% {
    transform: translateY(-30%) scale(1);
    box-shadow:
      0 0 8px rgba(255, 0, 0, 0.5);
  }

  50% {
    transform: translateY(-30%) scale(1.3);
    box-shadow:
      0 0 24px rgba(255, 0, 0, 1);
  }
}

/* =========================================================
   شرح رموز القاعات
========================================================= */

/* =========================================================
   🔎 دليل قراءة رمز القاعة
========================================================= */

.room-code-guide {
  width: 100%;
  margin-top: 30px;
  padding: 50px 34px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid rgba(252, 249, 249, 0.418);
  border-radius: 22px;

  text-align: center;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   العنوان
========================================================= */

.guide-title {
  font-size: 30px;
  font-weight: 800;

  color: #ffffff;

  margin-bottom: 25px;

  letter-spacing: 0.2px;
}


/* =========================================================
   رمز القاعة
========================================================= */

.room-code {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 23px;

  direction: ltr;
}


/* =========================================================
   بطاقات أجزاء الرمز
========================================================= */

.code-part {
  width: 195px;
  min-height: 105px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  padding: 14px 10px;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.035)
    );

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 17px;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}


/* =========================================================
   الحرف / الرقم
========================================================= */

.code-part strong {
  font-size: 42px;
  font-weight: 900;

  line-height: 1;

  color: #2ed844;

  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.274);
}


/* =========================================================
   شرح الجزء
========================================================= */

.code-part span {
  font-size: 24px;
  font-weight: 600;

  line-height: 1.4;

  color: rgba(255, 255, 255, 0.993);
}


/* =========================================================
   الفواصل
========================================================= */

.code-separator {
  font-size: 32px;
  font-weight: 900;

  color: rgba(255, 255, 255, 0.38);

  margin-top: -3px;
}


/* =========================================================
   المثال
========================================================= */

.guide-example {
  margin-top: 25px;
  padding-top: 18px;

  border-top:
    1px solid rgba(169, 163, 163, 0.329);

  font-size: 36px;
  font-weight: 500;

  color: rgb(255, 255, 255);
}


/* =========================================================
   رمز المثال
========================================================= */

.guide-example strong {
  color: #f6e503;

  font-size: 38px;
  font-weight: 900;

  text-shadow:
    0 0 14px rgba(175, 184, 43, 0.134);
}


/* =====================================================
   MOBILE
   نفس تصميم الكمبيوتر لكن بتوزيع مصغر ومتناسق
   ===================================================== */

@media (max-width:700px) {

    body {
        padding: 6px;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 18px 8px;
        border-radius: 20px;
    }

    .header {
        gap: 8px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .logo {
        width: 72px;
        flex-shrink: 0;
    }

    h1 {
        font-size: 25px;
        line-height: 1.15;
    }

    .subtitle {
        font-size: 13px;
    }

    .search-section {
        width: 100%;
    }

    .search-box {
        width: 100%;
        padding: 4px;
        gap: 5px;
    }

    .search-box input {
        min-width: 0;
        font-size: 13px;
    }

    .search-box button {
        padding: 9px 15px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .quick-buttons {
    gap: 5px;
    margin-top: 9px;
}

.quick-buttons button {
    padding: 3px 7px;
    font-size: 8px;
    line-height: 1.2;
    border-radius: 4px;
}

    #result {
        margin-top: 18px;
        margin-bottom: 16px;
        font-size: 19px;
        line-height: 1.4;
    }


    /* =========================
       الخرائط - الجوال
       ========================= */

    .maps-wrapper {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        margin-top: 22px;
    }

    /* =========================
       قسم المبنى - اليمين
       ========================= */

    .building-section {
        width: 50%;
        min-width: 0;
        flex-shrink: 0;
    }

    /* =========================
       قسم المخطط - اليسار
       ========================= */

    .map-section {
        width: 45%;
        min-width: 0;
        flex-shrink: 0;
    }

    .section-title {
        font-size: 13px;
        line-height: 1.25;
        margin-bottom: 6px;
        letter-spacing: 0;
        white-space: nowrap;
    }


    /* =========================
       صورة المبنى
       ========================= */

    .building-wrapper {
        width: 100%;
        display: flex;
        align-items: stretch;
        gap: 2px;
    }

    .building-container {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .building-image {
        width: 100%;
        height: auto;
        display: block;
    }


    /* =========================
       أرقام الأدوار
       ========================= */

    .floor-labels {
        width: 30px;
        flex-shrink: 0;
        padding-top: 18%;
        padding-bottom: 6%;
        justify-content: space-between;
    }

    .floor-labels span {
        padding: 7px 7px;
        font-size: 11px;
        line-height: 1;
        border-radius: 7px;
        white-space: nowrap;
    }

    .floor-labels span.active {
        transform: scale(1.08);
    }


    /* =========================
       مخطط الكلية - اليسار
       ========================= */

    .map-container {
        position: relative;
        width: 100%;
        aspect-ratio: 820 / 1200;
        min-height: 0;
        overflow: hidden;
    }

    .map-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
    }

    #map-svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }


    /* =========================
       Highlight المبنى
       ========================= */

    #floor-highlight {
        left: 0;
        width: 100%;
        height: 12%;
        border-radius: 2px;
        transform: translateY(-30%);
    }


    /* =========================
       نقطة "أنت هنا" في المبنى
       ========================= */

    #start-floor-dot {
        width: 11px;
        height: 11px;
        border-width: 1px;
        bottom: 25%;
        right: 6%;
    }


    /* =========================
       الـ Legend
       ========================= */

    .map-legend {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-height: 0;
        gap: 4px;
        margin-top: 20px;
        padding: 8px 5px;
        flex-wrap: nowrap;
        border-radius: 12px;
        font-size: 9px;
    }

    .legend-item {
        min-width: 0;
        min-height: 48px;
        flex: 1;
        padding: 5px 3px;
        gap: 4px;
        border-radius: 7px;
        font-size: 9px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .box {
        width: 9px;
        height: 9px;
    }

    .line-icon {
        width: 15px;
        height: 2px;
    }


    /* =========================
       شرح رمز القاعة
       ========================= */

    .room-code-guide {
        width: 100%;
        margin-top: 18px;
        padding: 24px 8px;
        border-radius: 16px;
    }

    .guide-title {
        font-size: 19px;
        margin-bottom: 14px;
    }

    .room-code {
        gap: 4px;
        width: 100%;
    }

    .code-part {
        width: 23%;
        min-height: 65px;
        padding: 6px 2px;
        gap: 4px;
        border-radius: 10px;
    }

    .code-part strong {
        font-size: 24px;
    }

    .code-part span {
        font-size: 10px;
        line-height: 1.25;
    }

    .code-separator {
        font-size: 15px;
        margin-top: -2px;
    }

    .guide-example {
        margin-top: 15px;
        padding-top: 12px;
        font-size: 15px;
        line-height: 1.45;
    }

    .guide-example strong {
        font-size: 17px;
    }
}










































































/* =========================================================
   KKU MAP — HOME PAGE
   Dark Navy / Gold Identity
========================================================= */

.kku-home {
    width: 100%;
    max-width: 1180px;
    min-height: 100vh;

    margin: 0 auto;
    padding: 42px 32px 28px;

    box-sizing: border-box;

    font-family: 'Tajawal', sans-serif;

}


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

.home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 55px;
    padding-bottom: 22px;

    border-bottom: 1px solid rgba(255,255,255,.07);
}


.home-brand {
    display: flex;
    align-items: center;

    gap: 18px;

    min-width: 0;
}


/* شعار الجامعة */

.home-logo {
    width: 78px;
    height: auto;

    flex-shrink: 0;

    /*
       يجعل الشعار أبيض مثل التصميم المرجعي
    */
    filter:
        brightness(0)
        invert(1)
        drop-shadow(0 4px 10px rgba(0,0,0,.30));
}


.home-brand-text {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.home-brand-label {
    margin-bottom: 5px;

    color: #a9b0b5;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2.8px;

    line-height: 1;
}


.home-header h1 {
    margin: 0;

    color: #f8f8f7;

    font-size: 39px;
    font-weight: 900;

    line-height: 1;

    letter-spacing: -.7px;
}


.home-header h1 strong {
    color: #c99a45;
}


.home-brand-subtitle {
    margin: 8px 0 0;

    color: #87929b;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.4;
}


/* =========================================================
   STATUS
========================================================= */

.home-status {

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 8px 13px;

    border:
        1px solid rgba(255,255,255,.18);

    border-radius: 30px;

    background:
        rgba(255,255,255,.035);

    color: #a8b0b5;

    font-size: 10px;
    font-weight: 500;

    white-space: nowrap;

    flex-shrink: 0;

    backdrop-filter: blur(8px);
}


.status-dot {
    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #c99a45;

    box-shadow:
        0 0 0 4px rgba(201,154,69,.16),
        0 0 16px rgba(201,154,69,.75);

    animation:
        statusPulse 1.5s ease-in-out infinite;
}

@keyframes statusPulse {

    0%, 100% {
        transform: scale(1);
        opacity: .75;

        box-shadow:
            0 0 0 3px rgba(201,154,69,.10),
            0 0 8px rgba(201,154,69,.45);
    }

    50% {
        transform: scale(1.18);
        opacity: 1;

        box-shadow:
            0 0 0 6px rgba(201,154,69,.16),
            0 0 20px rgba(201,154,69,.95);
    }
}


/* =========================================================
   INTRO
========================================================= */

.home-intro {

    text-align: center;

    margin-bottom: 30px;
}


.intro-label {

    display: block;

    margin-bottom: 7px;

    color: #c99a45;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 3px;
}


.home-intro h2 {

    margin: 0 0 8px;

    color: #f7f7f6;

    font-size: 30px;
    font-weight: 900;

    line-height: 1.2;
}


.home-intro p {

    margin: 0;

    color: #84919a;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.6;
}


/* =========================================================
   COLLEGES GRID
========================================================= */

.colleges-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}


/* =========================================================
   CARD BASE
========================================================= */

.college-card {

    position: relative;

    min-height: 108px;

    padding: 17px 18px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 14px;

    border-radius: 16px;

    text-decoration: none;

    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        background .28s ease;

    overflow: hidden;
}


/* =========================================================
   COMING SOON CARDS
========================================================= */

.college-card.coming-soon {

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.025)
        );

    border:
        1px solid rgba(190,205,215,.15);

    opacity: .78;

    filter: none;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}


/*
   إضاءة خفيفة جدًا عند المرور
   حتى الكروت القادمة ما تكون ميتة
*/

.college-card.coming-soon:hover {

    transform: translateY(-2px);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.075),
            rgba(255,255,255,.035)
        );

    border-color:
        rgba(190,205,215,.22);

    box-shadow:
        0 10px 25px rgba(0,0,0,.18);
}


/* =========================================================
   AVAILABLE — BUSINESS
========================================================= */

.college-card.available {

    background:
        linear-gradient(
            135deg,
            #fbfaf8fd 0%,
            #f4f1eb56 100%
        );

    border:
        1.5px solid #c99a45;

    box-shadow:
        0 10px 28px rgba(0,0,0,.25),
        0 0 0 rgba(201,154,69,0);

    cursor: pointer;

    z-index: 2;
}


/*
   Glow خفيف خلف البطاقة
*/

.college-card.available::before {

    content: "";

    position: absolute;

    inset: -30px;

    background:
        radial-gradient(
            circle,
            rgba(201,154,69,.13),
            transparent 65%
        );

    opacity: 0;

    transition:
        opacity .3s ease;

    pointer-events: none;
}


/* Hover */

.college-card.available:hover {

    transform:
        translateY(-4px);

    border-color:
        #d7b15ec0;

    box-shadow:
        0 18px 38px rgba(0,0,0,.30),
        0 0 28px rgba(201,154,69,.13);
}


.college-card.available:hover::before {
    opacity: 1;
}


/* =========================================================
   ICON CONTAINER
========================================================= */

.college-icon {

    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        rgba(255,255,255,.065);

    color: #aab3b9;

    transition:
        transform .28s ease,
        background .28s ease,
        color .28s ease,
        box-shadow .28s ease;
}


/* SVG */

.college-icon svg {

    width: 24px;
    height: 24px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .28s ease;
}


/* =========================================================
   BUSINESS ICON
========================================================= */

.available .college-icon {

    background:
        linear-gradient(
            135deg,
            #c99a45,
            #a8792e
        );

    color: #ffffff;

    box-shadow:
        0 7px 17px rgba(201,154,69,.25);
}


/*
   تأثير عند المرور على البطاقة
*/

.college-card.available:hover .college-icon {

    transform:
        translateY(-1px)
        scale(1.06);

    background:
        linear-gradient(
            135deg,
            #d7ad5b,
            #b98532
        );

    box-shadow:
        0 9px 23px rgba(201,154,69,.38);
}


.college-card.available:hover .college-icon svg {

    transform:
        scale(1.08)
        rotate(-2deg);
}


/*
   تأثير عند الضغط
*/

.college-card.available:active {

    transform:
        translateY(-1px)
        scale(.985);
}


.college-card.available:active .college-icon {

    transform:
        scale(.94);
}


/* =========================================================
   TEXT
========================================================= */

.college-info {

    flex: 1;

    min-width: 0;
}


.college-info h3 {

    margin: 0 0 7px;

    color: #dce1e4;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.35;

    transition:
        color .25s ease;
}


/* Business */

.available .college-info h3 {

    color: #24272a;
}


/* Coming soon */

.coming-soon .college-info h3 {

    color: #c4ccd1;
}


/* =========================================================
   AL-FARAAH
========================================================= */

.college-info h3 small {

    display: inline-block;

    margin-right: 7px;

    color: #899197;

    font-size: 12px;
    font-weight: 500;

    vertical-align: middle;
}


.available .college-info h3 small {

    color: #2d2d2d;
}


/* =========================================================
   STATUS LABEL
========================================================= */

.college-info span {

    display: inline-block;

    padding: 4px 9px;

    border-radius: 20px;

    background:
        rgba(255,255,255,.07);

    color: #3f91c4;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;

    transition:
        background .25s ease,
        color .25s ease;
}


/* Business status */

.available .college-info span {

    background:
        rgba(201,154,69,.13);

    color: #0b0803;
}


.college-card.available:hover
.college-info span {

    background:
        rgba(201,154,69,.18);

    color: #000000;
}


/* =========================================================
   ARROW
========================================================= */

.college-arrow {

    flex-shrink: 0;

    color: #c99a45;

    font-size: 27px;

    opacity: .9;

    transition:
        transform .28s ease,
        opacity .28s ease;
}


.college-card.available:hover
.college-arrow {

    transform:
        translateX(-17px);

    opacity: 1;
}


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

.kku-home footer {

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    margin-top: 45px;

    color: #75818a;

    font-size: 10px;
}


.footer-separator {

    opacity: .65;

    color: #c99a45;
}


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

@media (max-width: 700px) {

    .kku-home {

        width: 100%;
        max-width: none;

        padding:
            22px
            13px
            20px;
    }


    /* Header */

    .home-header {

        flex-direction: column;

        align-items: center;

        gap: 13px;

        margin-bottom: 32px;

        padding-bottom: 18px;
    }


    .home-brand {

        width: 100%;

        justify-content: center;

        gap: 10px;
    }


    .home-logo {
        width: 53px;
    }


    .home-brand-label {

        font-size: 6.5px;

        letter-spacing: 1px;

        margin-bottom: 3px;
    }


    .home-header h1 {
        font-size: 27px;
    }


    .home-brand-subtitle {

        margin-top: 5px;

        font-size: 9px;

        line-height: 1.35;

        white-space: nowrap;
    }


    .home-status {

        padding: 6px 10px;

        gap: 6px;

        font-size: 8px;
    }


    .status-dot {

        width: 5px;
        height: 5px;

        box-shadow:
            0 0 0 3px
            rgba(201,154,69,.12);
    }


    /* Intro */

    .home-intro {

        margin-bottom: 21px;
    }


    .intro-label {

        margin-bottom: 5px;

        font-size: 7px;

        letter-spacing: 1.5px;
    }


    .home-intro h2 {

        margin-bottom: 5px;

        font-size: 22px;
    }


    .home-intro p {

        padding:
            0 8px;

        font-size: 11px;

        line-height: 1.5;
    }


    /* Grid */

    .colleges-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }


    /* Cards */

    .college-card {

        min-height: 96px;

        padding: 10px;

        gap: 8px;

        border-radius: 13px;
    }


    /* Icons */

    .college-icon {

        width: 39px;
        height: 39px;

        border-radius: 10px;
    }


    .college-icon svg {

        width: 19px;
        height: 19px;
    }


    /* Text */

    .college-info h3 {

        margin-bottom: 5px;

        font-size: 12px;

        line-height: 1.3;
    }


    .college-info h3 small {

        margin-right: 5px;

        font-size: 8px;
    }


    .college-info span {

        padding: 3px 6px;

        font-size: 8px;
    }


    .college-arrow {

        font-size: 17px;
    }


    /* Footer */

    .kku-home footer {

        margin-top: 30px;

        font-size: 9px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .kku-home {

        padding:
            18px
            9px
            18px;
    }


    .home-header {

        gap: 10px;

        margin-bottom: 27px;
    }


    .home-brand {

        gap: 8px;
    }


    .home-logo {
        width: 46px;
    }


    .home-brand-label {

        font-size: 5.5px;

        letter-spacing: .65px;
    }


    .home-header h1 {
        font-size: 23px;
    }


    .home-brand-subtitle {
        font-size: 8px;
    }


    .home-status {

        padding: 5px 8px;

        font-size: 7px;
    }


    .status-dot {

        width: 4px;
        height: 4px;
    }


    .home-intro h2 {
        font-size: 20px;
    }


    .home-intro p {
        font-size: 10px;
    }


    .colleges-grid {
        gap: 8px;
    }


    .college-card {

        min-height: 91px;

        padding: 9px;

        gap: 6px;

        border-radius: 12px;
    }


    .college-icon {

        width: 35px;
        height: 35px;

        border-radius: 9px;
    }


    .college-icon svg {

        width: 17px;
        height: 17px;
    }


    .college-info h3 {

        font-size: 11px;

        line-height: 1.25;
    }


    .college-info h3 small {

        margin-right: 4px;

        font-size: 7px;
    }


    .college-info span {

        padding: 3px 5px;

        font-size: 7px;
    }


    .college-arrow {

        font-size: 15px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .status-dot,
    .college-card,
    .college-icon,
    .college-icon svg,
    .college-arrow {

        animation: none !important;

        transition: none !important;
    }
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: #d64a1e;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-home:hover {
    color: #d64a1e;
    transform: translateX(3px);
}

@media (max-width:700px) {
    .back-to-home {
        margin-bottom: 16px;
        font-size: 10px;
    }
}