@font-face {
  font-family: "arabicstyle";
  src: local("arabicstyle"), local("ArabicStyle"), local("Arabic Typesetting");
  font-display: swap;
}

:root {
  --primary: #0f4a3f;
  --primary-2: #176b5b;
  --gold: #c8a24a;
  --gold-soft: #f3df9c;
  --text: #11231f;
  --muted: #5f6f68;
  --light-muted: #8a948f;
  --border: rgba(200, 162, 74, 0.32);
  --card-bg: rgba(255, 252, 241, 0.88);
  --card-bg-strong: rgba(255, 252, 241, 0.94);
  --radius-lg: 28px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: "arabicstyle", "Arabic Typesetting", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: #0b302b url("assets/islamic-shia-bg.png") center center / cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 252, 235, 0.42), rgba(255, 252, 235, 0.08) 42%, rgba(0, 0, 0, 0.10) 100%),
    linear-gradient(135deg, rgba(1, 25, 21, 0.38), rgba(10, 55, 47, 0.22) 42%, rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
}

.login-card {
  width: min(100%, 760px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

h1 {
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.5;
  margin-bottom: 10px;
  color: #102a24;
}

.subtitle {
  color: var(--muted);
  font-size: clamp(14px, 3.4vw, 16px);
  line-height: 1.9;
  margin-bottom: clamp(22px, 5vw, 32px);
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 18px);
  margin-bottom: 26px;
}

.main-btn {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 24px 18px;
  text-decoration: none;
  color: #0f241f;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(200, 162, 74, 0.34);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  touch-action: manipulation;
}

.main-btn:hover,
.main-btn:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(255, 252, 241, 0.96);
  box-shadow: 0 18px 38px rgba(15, 74, 63, 0.20);
  outline: none;
}

.btn-title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  color: #0f4a3f;
}

.contact-box {
  margin: 4px auto 0;
  padding: clamp(16px, 4vw, 22px);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(200, 162, 74, 0.30);
  border-radius: 20px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.contact-box h2 {
  margin-bottom: 14px;
  font-size: clamp(19px, 4vw, 24px);
  line-height: 1.6;
  color: #0f4a3f;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 16px;
  background: rgba(255, 252, 241, 0.85);
  border: 1px solid rgba(200, 162, 74, 0.34);
  border-radius: 999px;
  text-decoration: none;
  color: #233932;
  box-shadow: 0 8px 22px rgba(15, 74, 63, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(15, 74, 63, 0.14);
  outline: none;
}

.contact-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: var(--gold-soft);
  flex: 0 0 36px;
}

.contact-icon svg {
  width: 19px;
  height: 19px;
}

.contact-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.8;
}

.contact-label {
  color: #0f4a3f;
  font-weight: 700;
  font-size: clamp(15px, 3vw, 18px);
}

.contact-value {
  color: #233932;
  font-weight: 700;
  font-size: clamp(15px, 3vw, 18px);
  direction: ltr;
}

.note {
  color: var(--light-muted);
  font-size: 13px;
  line-height: 1.9;
}

.static-page {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 4vw, 28px);
}

.page-header {
  max-width: 980px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 252, 241, 0.84);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(14px, 3vw, 20px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-header h1 {
  margin: 0;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: var(--gold-soft);
  border: 1px solid rgba(200, 162, 74, 0.5);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  white-space: nowrap;
}

.content-card {
  width: min(100%, 980px);
  margin: 0 auto;
  background: var(--card-bg-strong);
  border-radius: 26px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.content-card h2 {
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.6;
  margin-bottom: 16px;
  color: #0f4a3f;
}

.content-card p {
  color: #475950;
  line-height: 2;
  margin-bottom: 18px;
}

.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.info-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 18px;
  padding: 20px;
}

.info-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #0f4a3f;
}

.info-box p {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 900px) {
  .button-grid,
  .info-boxes {
    grid-template-columns: 1fr;
  }

  .main-btn {
    min-height: 82px;
  }
}

@media (max-width: 600px) {
  body {
    background-attachment: scroll;
    background-position: center top;
  }

  .login-page {
    align-items: stretch;
    padding: 12px;
  }

  .login-card {
    min-height: calc(100svh - 24px);
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 252, 241, 0.90);
  }

  .main-btn {
    width: 100%;
    min-height: 72px;
    align-items: center;
    text-align: center;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .contact-list {
    gap: 10px;
  }

  .contact-item {
    width: 100%;
    border-radius: 18px;
    justify-content: center;
  }

  .page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .back-link {
    width: 100%;
  }

  .content-card,
  .info-box {
    border-radius: 18px;
  }
}

@media (max-width: 380px) {
  .login-card,
  .content-card {
    padding: 18px 14px;
  }

  .main-btn {
    min-height: 70px;
  }

  .contact-item {
    padding: 10px 12px;
  }

  .contact-text {
    gap: 4px;
  }
}


.book-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.book-figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
}

.book-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.book-figure figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: 18px;
  color: #0f4a3f;
}

@media (max-width: 900px) {
  .book-gallery {
    grid-template-columns: 1fr;
  }
}


.book-gallery-single {
  grid-template-columns: minmax(0, 1fr);
}

.book-gallery-single .book-figure {
  max-width: 980px;
  margin-inline: auto;
}
