@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap");

/* ==========================================================================
   PPO PORTAL — LOGIN PAGE STYLES ONLY
   Scope: /local/ppoportal1/index.php (logged-out view: login card + public
   news section + news detail modal). No other portal/dashboard styles here.
   ========================================================================== */

/* html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
} */

.ppo-homepage,
.ppo-homepage body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
}

.ppo-homepage * {
  box-sizing: border-box;
}

.ppo-homepage a {
  text-decoration: none;
}

.ppo-unauth-container {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", "Tajawal", Arial, sans-serif;
  color: #111915;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(214, 168, 90, 0.16) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 15% 85%,
      rgba(107, 17, 25, 0.28) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #050d0a 0%, #0a1d15 45%, #180507 100%);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

/* Header ------------------------------------------------------------- */

.ppo-unauth-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 213, 142, 0.15);
  background: rgba(6, 16, 12, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ppo-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.ppo-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(214, 168, 90, 0.35));
}

.ppo-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.ppo-brand-text p {
  font-size: 0.82rem;
  font-weight: 500;
  color: #f4d58e;
  line-height: 1.3;
  margin: 0;
}

.ppo-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ppo-header-nav-link {
  color: #fbf5e6;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(214, 168, 90, 0.1);
  border: 1px solid rgba(214, 168, 90, 0.2);
}

.ppo-header-nav-link:hover {
  color: #06100c;
  background: #d6a85a;
  border-color: #e5be74;
}

/* Main layout ---------------------------------------------------------- */

.ppo-unauth-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Login card ------------------------------------------------------------ */

.ppo-login-center-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 56px;
}

.ppo-login-card {
  width: 100%;
  max-width: 520px;
  background: rgba(16, 39, 29, 0.82);
  border: 1px solid rgba(214, 168, 90, 0.32);
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(6, 16, 12, 0.24);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.ppo-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8f1c26, #d6a85a, #178149);
}

.ppo-card-header {
  margin-bottom: 26px;
  text-align: center;
}

.ppo-badge-secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(23, 129, 73, 0.25);
  border: 1px solid rgba(23, 129, 73, 0.45);
  border-radius: 999px;
  color: #6ee7b7;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.ppo-badge-secure::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.ppo-card-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.ppo-card-header p {
  color: #fbf5e6;
  opacity: 0.88;
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Login form -------------------------------------------------------- */

.ppo-login-form {
  display: flex;
  flex-direction: column;
}

.ppo-form-group {
  margin-bottom: 18px;
}

.ppo-form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f4d58e;
  margin-bottom: 8px;
}

.ppo-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ppo-input-icon {
  position: absolute;
  right: 16px;
  color: #d6a85a;
  font-size: 1.1rem;
  pointer-events: none;
}

.ppo-form-input {
  width: 100%;
  padding: 14px 48px 14px 44px;
  background: rgba(6, 16, 12, 0.75);
  border: 1.5px solid rgba(214, 168, 90, 0.24);
  border-radius: 16px;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 500;
  outline: none;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ppo-form-input:focus {
  border-color: #e5be74;
  background: rgba(6, 16, 12, 0.92);
  box-shadow: 0 0 0 4px rgba(214, 168, 90, 0.16);
}

.ppo-toggle-password-btn {
  position: absolute;
  left: 14px;
  background: none;
  border: none;
  color: #8b968f;
  cursor: pointer;
  padding: 6px;
}

.ppo-toggle-password-btn:hover {
  color: #f4d58e;
}

.ppo-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 10px;
}

.ppo-remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fbf6ea;
  cursor: pointer;
  user-select: none;
}

.ppo-remember-me input[type="checkbox"] {
  accent-color: #d6a85a;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.ppo-forgot-link {
  color: #f4d58e;
  text-decoration: none;
  font-weight: 600;
}

.ppo-forgot-link:hover {
  color: #e5be74;
  text-decoration: underline;
}

.ppo-btn-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #b78236 0%, #d6a85a 50%, #e5be74 100%);
  border: none;
  border-radius: 16px;
  color: #06100c;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(183, 130, 54, 0.4);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ppo-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(183, 130, 54, 0.55);
}

.ppo-btn-submit svg {
  flex-shrink: 0;
}

/* Public news section ------------------------------------------------ */

.ppo-news-section {
  background: rgba(16, 39, 29, 0.68);
  border: 1px solid rgba(214, 168, 90, 0.26);
  border-radius: 28px;
  padding: 44px 38px;
  box-shadow: 0 32px 80px rgba(6, 16, 12, 0.24);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.ppo-news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d6a85a, #178149, #8f1c26);
}

.ppo-news-header-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(214, 168, 90, 0.18);
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.ppo-news-heading-box h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.ppo-news-heading-box p {
  color: #fbf5e6;
  font-size: 0.94rem;
  opacity: 0.85;
  margin: 0;
}

.ppo-news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ppo-news-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 90, 0.2);
  background: rgba(6, 16, 12, 0.6);
  color: #fbf6ea;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ppo-news-filter-btn:hover,
.ppo-news-filter-btn.active {
  background: #d6a85a;
  color: #06100c;
  border-color: #e5be74;
  box-shadow: 0 4px 14px rgba(214, 168, 90, 0.35);
}

.ppo-featured-news-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  background: rgba(6, 16, 12, 0.7);
  border: 1px solid rgba(214, 168, 90, 0.28);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s;
}

.ppo-featured-news-card:hover {
  border-color: #e5be74;
}

.ppo-featured-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #6b1119, #8f1c26);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 213, 142, 0.3);
}

.ppo-featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 14px;
}

.ppo-featured-meta {
  font-size: 0.82rem;
  color: #f4d58e;
  margin-bottom: 12px;
  font-weight: 600;
}

.ppo-featured-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 14px;
}

.ppo-featured-excerpt {
  font-size: 0.92rem;
  color: #fbf6ea;
  line-height: 1.7;
  margin-bottom: 20px;
  opacity: 0.9;
}

.ppo-featured-action-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(214, 168, 90, 0.15);
  border: 1px solid #d6a85a;
  border-radius: 999px;
  color: #f4d58e;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.ppo-featured-action-btn:hover {
  background: #d6a85a;
  color: #06100c;
}

.ppo-featured-visual {
  background: linear-gradient(
    135deg,
    rgba(15, 91, 53, 0.4),
    rgba(69, 11, 16, 0.4)
  );
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 90, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  min-height: 220px;
}

.ppo-emblem-large {
  font-size: 3.8rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 16px rgba(214, 168, 90, 0.4));
}

.ppo-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.ppo-news-card {
  background: rgba(6, 16, 12, 0.6);
  border: 1px solid rgba(214, 168, 90, 0.18);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ppo-news-card:hover {
  background: rgba(21, 56, 39, 0.7);
  border-color: #d6a85a;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.ppo-news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.ppo-news-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(214, 168, 90, 0.14);
  color: #f4d58e;
  border: 1px solid rgba(214, 168, 90, 0.25);
}

.ppo-news-card-date {
  font-size: 0.76rem;
  color: #8b968f;
}

.ppo-news-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 12px;
}

.ppo-news-card-desc {
  font-size: 0.84rem;
  color: #fbf6ea;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ppo-news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 168, 90, 0.12);
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5be74;
}

.ppo-news-more-container {
  text-align: center;
  padding-top: 10px;
}

.ppo-btn-more-news {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  background: linear-gradient(
    135deg,
    rgba(214, 168, 90, 0.15),
    rgba(15, 91, 53, 0.25)
  );
  border: 2px solid #d6a85a;
  border-radius: 16px;
  color: #f4d58e;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.ppo-btn-more-news:hover {
  background: #d6a85a;
  color: #06100c;
  box-shadow: 0 8px 26px rgba(214, 168, 90, 0.4);
  transform: translateY(-2px);
}

/* News detail modal ---------------------------------------------------- */

.ppo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 8, 0.88);
  backdrop-filter: blur(10px);
  z-index: 600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ppo-modal-backdrop.open {
  display: flex;
}

.ppo-modal-card {
  background: #0a1d15;
  border: 1.5px solid #d6a85a;
  border-radius: 28px;
  padding: 38px 34px;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(6, 16, 12, 0.24);
  position: relative;
}

.ppo-modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #8b968f;
  font-size: 1.6rem;
  cursor: pointer;
}

.ppo-modal-close-btn:hover {
  color: #ffffff;
}

.ppo-modal-category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(214, 168, 90, 0.2);
  color: #f4d58e;
  border: 1px solid #d6a85a;
  margin-bottom: 12px;
}

.ppo-modal-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 14px;
}

.ppo-modal-date {
  font-size: 0.84rem;
  color: #f4d58e;
  margin-bottom: 20px;
}

.ppo-modal-body {
  font-size: 0.95rem;
  color: #fffdf8;
  line-height: 1.8;
  border-top: 1px solid rgba(214, 168, 90, 0.2);
  padding-top: 18px;
  white-space: pre-line;
}

/* Footer ---------------------------------------------------------------- */

.ppo-unauth-footer {
  padding: 24px 36px;
  text-align: center;
  font-size: 0.84rem;
  color: #8b968f;
  border-top: 1px solid rgba(244, 213, 142, 0.12);
  background: rgba(6, 16, 12, 0.85);
  margin-top: 40px;
}

/* ==========================================================================
   RESPONSIVE — login page only
   ========================================================================== */

@media (max-width: 980px) {
  .ppo-featured-news-card {
    grid-template-columns: 1fr;
  }

  .ppo-featured-visual {
    min-height: 160px;
  }

  .ppo-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .ppo-unauth-header {
    padding: 16px 20px;
  }

  .ppo-brand-text h1 {
    font-size: 1rem;
  }

  .ppo-brand-text p {
    font-size: 0.74rem;
  }

  .ppo-header-nav-link span:last-child {
    display: none;
  }

  .ppo-unauth-main {
    padding: 28px 16px 40px;
  }

  .ppo-login-card {
    padding: 32px 24px;
  }

  .ppo-news-section {
    padding: 28px 20px;
  }

  .ppo-news-header-area {
    align-items: flex-start;
  }

  .ppo-news-grid {
    grid-template-columns: 1fr;
  }

  .ppo-modal-card {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .ppo-form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
