/* ==================================
   Civilisation ou Barbarie
   indexcss/index.css
   Scoped to .page-content ONLY (except hero)
   747civilbarb
================================== */

.homepage-grid{
  display:grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap:40px;
  width:100%;
  padding:0 40px;
}

.home-center{
  max-width: 820px;
}

.home-left,
.home-right{
  font-size:0.95rem;
  line-height:1.6;
}

.home-left h2,
.home-right h2{
  font-size:1.2rem;
  margin-bottom:15px;
  color: #3d0101;
  font-weight: normal;
}

.home-left{
  background: #f4f3f1;
  padding: 28px;
  border-left: 4px solid #730101;
  border-radius: 7px;
  border: 1px solid #e2e2e2;
  line-height: 1.6;
}

.home-left h2{
  text-align: center;
  margin-bottom: 20px;
}

.home-left p{
  text-align: justify;
}


.home-left .read-more{
  display: block;
  text-align: center;
  margin-top:20px;
  font-size:0.9rem;
}

.home-right{
  position:sticky;
  top:120px;
  height:fit-content;
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.home-right h2{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  font-size: 1.4rem;
  color: #3d0101;
  margin-bottom: 15px;
}

.home-right .ankh-icon {
  width: 43px; /* adjust size as needed */
  height: auto;
}

#imhotep-container {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 4px;
    padding-top: 5px;
}

#imhotep-container p{
  font-size:1rem;
  color: #2a1a1a;
}

#imhotep-container .imhotep-key{
  margin-bottom: 5px;
}

/* ===== Imhotep Progress Bar ===== */
#imhotep-progress {
  position: relative;
  width: 180px;
  height: 2px;           /* thin line */
  background: #000;       /* black bar */
  border-radius: 2px;
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Dot sliding along the bar */
#imhotep-progress-dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 8px;           /* slightly elongated for elegance */
  background-color: #0df1f1; /* turquoise Egyptian accent */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: left linear; /* duration handled by JS */
  z-index: 2;
}

/* Ankh symbol at the end of the bar */
#imhotep-progress-ankh {
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: rgba(61, 1, 1, 0.7); /* muted dark red, subtle */
  z-index: 1;
}


/* ===== Hero Section (FULL WIDTH) ===== */
#hero-index {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("/pictures/hero/hero_yaa_home01.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  min-height: 70vh;
  text-align: center;
  margin-bottom: 80px;
  overflow: hidden;
}

#hero-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

#hero-index .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
}

#hero-index h1 {
  color: #dfdfdf;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 500;
  margin-bottom: 20px;
}

#hero-index .manifesto {
  font-size: 20px;
  color: #eee;
  max-width: 740px;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px 25px;
  border-radius: 12px;
  margin: 15px auto auto;
  text-align: center;
}

#hero-index .manifesto,
#hero-index .quote {
  background: rgba(0, 0, 0, 0.6);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 19px rgba(0, 0, 0, 0.5);
  display: inline-block;
  max-width: 800px;
  margin: 25px auto 25px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#hero-index .manifesto:hover,
#hero-index .quote:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

#hero-index .quote {
  font-style: italic;
  color: #eee;
  max-width: 800px;
  background: rgba(16, 15, 15, 0.6);
  padding: 15px 20px;
  border-radius: 10px;
  margin: 25px auto 0 auto;
  text-align: center;
}

/* ===== Page Content ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Text Elements ===== */
.page-content p {
  color: #2a1a1a;
  font-size: 18px;
  max-width: 720px;
}

.page-content .quote {
  color: #919191;
  font-size: 17px;
  font-style: italic;
  margin-top: 20px;
}

.page-content em {
  font-style: italic;
  color: #dfdfdf;
  font-size: 20px;
}

/* ===== Section Titles ===== */
.page-content h2 {
  color: #3d0101;
  text-align: center;
  font-size: 34px;
  font-weight: normal;
  margin-bottom: 20px;
}



.page-content a:hover {
  text-decoration: underline;
  background-color: #880000;
  color: #f7f7f7;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #hero-index h1 {
    font-size: 40px;
  }

  #hero-index .hero-inner {
    padding: 20px;
  }

  #hero-index .manifesto,
  #hero-index .quote {
    font-size: 16px;
    padding: 20px;
  }

}

@media (max-width: 480px) {
  #hero-index h1 {
    font-size: 32px;
  }
}

@media (max-width:900px){

  .homepage-grid{
    grid-template-columns:1fr;
  }

  .home-left,
  .home-right{
    max-width:650px;
    margin:auto;
  }

}