:root {
  --blue: #0b63b6;
  --green: #0fa078;
  --gold: #c69b2a;
  --dark: #222;
  --card-bg: #ffffff;
  --pill-border: rgba(11, 99, 182, 0.15);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
  color: var(--dark);
}

/* Quran Verse */
.title-block {
  text-align: center;
  padding: 12px 0 10px;
  background: rgba(11, 99, 182, 0.03);
  border-bottom: 1px solid rgba(11, 99, 182, 0.08);
  margin-top: 8px;
  width: 100%;
}

.title-block .arabic {
  font-family: "Amiri", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
}

.title-block .translation {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  font-style: italic;
  margin-top: 3px;
}

/* Header */
.header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  flex-wrap: nowrap;
  width: 100%;
}

.logo-left img {
  width: 250px;
  height: auto;
  display: block;
}

.header-center {
  text-align: center;
  flex: 1;
}

.main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--blue);
  text-shadow: 0 0 8px rgba(11, 99, 182, 0.25);
}

.tagline {
  font-size: 18px;
  color: rgba(0, 0, 0, 0.75);
  font-weight: 600;
  margin-top: 4px;
}

/* Buttons right side */
.account-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.account-actions a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 25px;
  background: linear-gradient(90deg, #c69b2a, #0fa078);
  transition: 0.3s;
}

.account-actions a:hover {
  text-decoration: underline;
  transform: scale(1.05);
}

/* Navigation */
.nav-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 20px;
}

.nav-pill {
  padding: 12px 22px;
  border-radius: 40px;
  background: linear-gradient(90deg, rgba(11,99,182,0.12), rgba(15,160,120,0.06));
  border: 1px solid var(--pill-border);
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  transition: 0.25s;
}

.nav-pill:hover {
  background: var(--blue);
  color: white;
}

/* Main content */
.content {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 28px;
  padding: 20px 36px 40px;
}

.left-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.left-btn {
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.left-btn:hover {
  transform: scale(1.02);
}

/* CEO Card */
.ceo-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 22px;
  border-left: 6px solid var(--blue);
}

.ceo-card h3 {
  color: var(--blue);
}

/* Right Column */
.right-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 16px;
}

.news-card h4 {
  color: var(--green);
}

/* Footer */
footer {
  margin-top: 30px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: white;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
}

/* ============================ */
/* 📱 MOBILE RESPONSIVE FIX (FINAL) */
/* ============================ */
@media (max-width: 880px) {

  body {
    display: block !important;
  }

  /* Verse always at top */
  .title-block {
    order: -1 !important;
    width: 100%;
    margin-bottom: 10px;
  }

  /* Header */
  .header-line {
    flex-direction: column;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    order: 0;
  }

  .logo-left {
    order: 1;
  }

  .account-actions {
    order: 2;
    justify-content: flex-end;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
  }

  .header-center {
    order: 3;
    text-align: center;
  }

  .header-center .main-title {
    font-size: 32px;
  }

  .header-center .tagline {
    font-size: 15px;
  }

  /* Nav Buttons (HOME, ABOUT US, etc.) */
  .nav-row {
    order: 4;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 20px;
  }

  .nav-pill {
    text-align: center;
  }

  /* Stack all content vertically */
  .content {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px;
    padding: 16px 20px;
  }

  /* Order for mobile view */
  .left-col {
    order: 5;
  }

  .center-col {
    order: 6;
  }

  .right-col {
    order: 7;
  }

  footer {
    order: 8;
  }

  /* Buttons full width */
  .left-btn {
    width: 100%;
  }
}
