/* Homepage commerce and identity controls — v2.2.0 */
:root{
  --beige-ui:#f6efe3;
  --beige-ui-deep:#ede0cc;
  --beige-ui-soft:#fcf8f1;
}

/* Warm beige navigation background behind the main actions. */
.public-egypt-theme .main-header{
  background:rgba(248,241,229,.97);
  border-bottom-color:#ded2bf;
}
.public-egypt-theme .nav-wrap{
  background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(246,239,227,.75));
}
.public-egypt-theme .nav-links,
.public-egypt-theme .nav-actions{
  background:rgba(243,231,212,.82);
  border:1px solid rgba(184,157,118,.20);
  border-radius:16px;
  padding:5px;
}
.public-egypt-theme .nav-links a{
  background:transparent;
}
.public-egypt-theme .nav-links a:hover,
.public-egypt-theme .nav-links a.active{
  background:#fffaf2;
}

/* Journey presentation controlled from Identity & Settings. */
.journey-home-section{
  background:linear-gradient(180deg,var(--beige-ui-soft),#f5f7fb);
}
.journey-course-grid{
  align-items:stretch;
}
.journey-course-card{
  height:100%;
  display:flex;
  flex-direction:column;
  background:#fff;
}
.journey-course-card .course-cover{
  min-height:210px;
}
.journey-course-card .course-cover.has-custom-image:before,
.journey-course-card .course-cover.has-custom-image:after{
  display:none;
}
.journey-course-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:1;
}
.journey-course-card .course-badge{
  z-index:3;
  box-shadow:0 7px 18px rgba(7,26,56,.12);
}
.journey-course-card .course-body{
  display:flex;
  flex:1;
  flex-direction:column;
}
.journey-course-card .course-body p{
  flex:1;
}
.journey-course-meta{
  background:var(--beige-ui-soft);
  border:1px solid #eadfcd;
  border-radius:13px;
  padding:12px 13px;
  margin-top:8px;
}
.journey-reserve-btn{
  margin-top:14px;
  min-height:48px;
}
.courses-catalog-section{
  min-height:420px;
}

/* Featured book controlled from Identity & Settings. */
.featured-book-home{
  background:linear-gradient(145deg,#f5ecdd,#fbf8f1 48%,#eef3fb);
}
.featured-book-card{
  display:grid;
  grid-template-columns:minmax(250px,390px) minmax(0,1fr);
  gap:34px;
  align-items:center;
  max-width:980px;
  margin-inline:auto;
  padding:24px;
  overflow:hidden;
  border-color:#ddcfb9;
  background:rgba(255,255,255,.93);
}
.featured-book-cover{
  min-height:370px;
  aspect-ratio:4/5;
  overflow:hidden;
  border-radius:20px;
  border:1px solid #e0d4c2;
  background:#f2e8d8;
  display:grid;
  place-items:center;
}
.featured-book-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.featured-book-placeholder{
  display:flex;
  min-height:100%;
  width:100%;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--brand-navy);
  background:linear-gradient(145deg,#f4ead9,#e5edf9);
}
.featured-book-placeholder .ui-icon{
  width:64px;
  height:64px;
}
.featured-book-content h3{
  margin:15px 0 10px;
  font-size:clamp(25px,3vw,38px);
}
.featured-book-content p{
  color:var(--text-secondary);
  line-height:1.9;
  max-width:650px;
}
.featured-book-action-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:24px;
  padding:17px;
  border:1px solid #e2d7c6;
  border-radius:16px;
  background:var(--beige-ui-soft);
}
.featured-book-action-bar .course-price{
  font-size:25px;
}

/* Settings controls for course and book presentation. */
.interface-settings-nav{
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}
.journey-settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.journey-setting-card{
  align-content:start;
}
.journey-setting-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.journey-setting-heading strong,
.journey-setting-heading small{
  display:block;
}
.journey-setting-heading small{
  margin-top:4px;
  color:var(--text-secondary);
  font-size:11px;
}
.compact-grid{
  gap:10px;
}
.switch-setting{
  display:flex!important;
  min-height:48px;
  flex-direction:row!important;
  align-items:center;
  gap:9px;
  padding:10px 12px;
  border:1px solid #cfe2da;
  border-radius:13px;
  background:#eef9f4;
  color:#056044;
  font-weight:800;
}
.switch-setting input[type="checkbox"]{
  width:19px;
  height:19px;
}
.featured-book-settings-grid{
  display:grid;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.image-setting-preview.book-preview{
  height:300px;
}
.featured-book-fields{
  padding:16px;
  border:1px solid var(--border);
  border-radius:17px;
  background:#fbfcff;
}

@media(max-width:980px){
  .public-egypt-theme .nav-links{
    background:#fbf5eb;
  }
  .public-egypt-theme .nav-actions{
    background:rgba(243,231,212,.76);
  }
  .featured-book-card{
    grid-template-columns:minmax(220px,320px) minmax(0,1fr);
  }
  .journey-settings-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .public-egypt-theme .main-header,
  .public-egypt-theme .nav-wrap{
    background:#f8f0e4;
  }
  .public-egypt-theme .nav-links{
    background:#fbf5eb!important;
    border-radius:0;
    padding:20px;
  }
  .public-egypt-theme .nav-actions{
    padding:4px;
    border-radius:14px;
  }
  .featured-book-card{
    grid-template-columns:1fr;
    gap:20px;
    padding:16px;
  }
  .featured-book-cover{
    min-height:280px;
    width:min(100%,390px);
    margin-inline:auto;
  }
  .featured-book-action-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .featured-book-action-bar .btn{
    width:100%;
  }
  .featured-book-settings-grid{
    grid-template-columns:1fr;
  }
  .journey-course-card .course-cover{
    min-height:190px;
  }
}

@media(max-width:420px){
  .public-egypt-theme .nav-actions{
    background:transparent;
    border:0;
    padding:0;
  }
  .featured-book-content h3{
    font-size:24px;
  }
  .featured-book-action-bar .course-price{
    font-size:22px;
  }
}

@media(prefers-reduced-motion:reduce){
  .journey-course-card,
  .featured-book-card{
    transition:none!important;
  }
}
