
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
   line-height: 1.0;
    color: #070707;
} 

/* BACKGROUND IMAGES FOR DIFFERENT PAGES */
body.page {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed; /* optional */
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    color: #010101; 
}

/* HOME PAGE  You can adjust the background image and styles as needed */

body.home {
  
    background:
        linear-gradient(
            rgba(255,255,255,0.35),
            rgba(255,255,255,0.35)
        ),
        url("../images/back-image-1.jpeg");

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
}
/* ALL OTHER PAGES */
body.standard {
    background-image: url("../images/back-image-8.jpg"); /* orig is back25.jpg */
}

/* LAST PAGE */
body.chapters {
    background-image: url("../images/back-image-8.jpg");

    
}
body.timelinepage {
  background-image: url("../images/back25.jpg");
}
.chapters-page {
  background-image: url("../images/back4.jpg"); /* <-- your image path */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed; /* optional */
   font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #f8f4f4;

}




/* Used in timeline page */

.contentl {
  padding: 15px;
  /* background: #f4f4f4; */
  border-radius: 6px;
}


/* HEADER AREA */
header {
    background-color: #efdcdc;
    color: #ffffff;   
    min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #065cb7;
  color: #fff;
  width: 30px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(12, 134, 227, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #555;
  transform: translateY(-4px);
}  

/* NAVIGATION  Top of page */
.main-nav {
  background: #f8f8f8;
  border-bottom: 1px solid #ccc;
  /*position: sticky; */
  top: 0;
  /*z-index: 1000; */
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #fbf8f8;
  font-weight: 600;
}

.nav-list a:hover {
  background: #3f3f3f;
}

/* New dopdown  */

/* DROPDOWN */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;

    background-color: #6da0f26f;
    border: 1px solid #ccc;

    width: 700px;
    padding: 8px;

    flex-wrap: wrap;
    gap: 5px;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    white-space: nowrap;
    font-weight: normal;
}

/* Chapter navigation at bottom of chapter pages */
.chapter-navtools {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #032eba;
  
  padding-top: 20px;
  margin-top: 40px;
}
/* En of bottom page Navigatio buttons */


/* New Stuff for timeline page */
.timeline{
  max-width:900px;
  margin:60px auto;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:30px;
}

.timeline::before{
  content:"";
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:4px;
 /* background:#c53a3a; */
}

.timeline-event{
  position:relative;
  width:100%;
  padding:0;
  box-sizing:border-box;
/* transition:all .6s ease; */
}


.timeline-content{
  background:#e1dede;
  padding:14px;
  font-size:14px;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,0.15);
}

.year{
    font-size:14px;
  font-weight:bold;
  color:#444;
}

.timeline-event.active .year{
  color:#054c9e;
  font-size:14px;
}

.gallery-btn{
  display:inline-block;
  margin-top:10px;
  padding:5px 10px;
  background:#054c9e;
  color:white;
  text-decoration:none;
  border-radius:4px;
  font-size:12px;
}

.gallery-btn:hover{
  background:#005fcc;
}

/* timeline circles */

.timeline-event::after{
  content:"";
  position:absolute;
  top:30px;
  width:10px;
  height:10px;
  background:rgb(240, 238, 238);
  border:4px solid #054c9e;
  border-radius:50%;
}

.timeline-event.left::after{
  right:-11px;
}

.timeline-event.right::after{
  left:-11px;
}
/* End of time line stuff */

/* scroll animation */
.hidden{
  opacity:0;
  transform:translateY(40px);
}

.show{
  opacity:1;
  transform:translateY(0);
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

/* end time line stuff */


/* CONTENT AREA */
.content { 
  max-width: 900px;
  margin: auto;
padding: 40px 20px;
  /* text-align: center; */
 color: #060606;
}
/* !-- Headers order list -- */
ol {
  width: fit-content;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
    text-align: center;
    color: #070707;
    margin-bottom: 25px;
}
h2 {
   font-size: 20px; 
    text-align: center;
    color: #070707;
    margin-bottom: 20px;
}

h3 {
  
    scroll-margin-top: 70px;
    font-size: 16px;
    text-align: center;
    color: #1d1a44;
    margin-bottom: 10px;
}

h4 {
    font-size: 14px;
    text-align: center;
    color: #291af5;
    margin-bottom: 10px;
}

.change-color {
  color: #892c2c;
  font-size: 16px;
}

.color-white {
  color: white;
}
.color-red {
  color: red;
}
.color-black {
  color: black;
}
.color-blue {
  color: blue;
}

.p-text {
  max-width: 90%;
  margin: 5px;
  text-align: center;
  color: #8f3535; 
}
/* LEFT SIDE */
.left-box {
  max-width: 70%;
  padding: 10px;
  box-sizing: content-box;
   color: #f4f4f4;
}


/* TEXT BOXES AND POSITIONS */
/* TEXT AREAS */
.page-text {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: 15px;
}
.page-text h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
    color: #222;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
}

.page-text h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}
.page-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.textp {
  margin-bottom: 14px;
  font-weight: bold;
} 

 /* CENTERED TEXT */ 
.center-text {
    text-align: center;
    color: #060606;
}
.home-button {
    display: inline-block;
    padding: 15px 28px;
    margin: 10px;
    border-radius: 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}
.home-buttons {
    margin-top: 40px;
}
.home-button:hover {
    transform: translateY(-3px);
}
/* PAGE HEADER */
.page-header {
  text-align:right;
  margin-bottom: 40px;
}

.subtitle {
  color: #484848;
  font-size: 1em;
}
.highlight {
 color: #555;
font-style: italic;

}
.intro {
  max-width: 90%;
  text-align: center;
  font-size: 1.2rem;
} 
 
.intro.highlight {
  font-weight: bold;
}


/* IMAGE ROW */
.image-row {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 10px;
}

/* IMAGE BLOCK */
.image-row figure {
  flex: 1;
  margin: 0;
  text-align: center;
}

.image-row img {
  width: 400px;
  height: 265px;
  object-fit: contain;
  border-radius: 6px;
  
}

/* IMAGE DESCRIPTION */
.image-row figcaption {
  font-size: 0.9em;
  margin-top: 8px;
  color: #191818;
}

/* Chapters list bottom and chapters pge */
/* .chapters-list {
    max-width: 900px;
    margin: 50px auto;
    padding: 0;
    list-style: none;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 16px;
    text-align: center;
    counter-reset: chapter;
}

.chapters-list li {
    display: flex;
    align-items: baseline;
    margin: 5px 0;
}

.chapters-list li::before {
    counter-increment: chapter;
    content: "Chapter " counter(chapter) " ";
    font-weight: bold;
    margin-right: 5px;
    white-space: nowrap;
}

/* Leader dots */
/* .chapters-list li::after {
    content: "";
    flex-grow: 1;
    border-bottom: 1px dotted #8b2929;
    margin: 0 5px 4px;
}

/* Link styling — no blue */
/*.chapters-list a,
.chapters-list a:visited {
    color: #e2e0e6;
    text-decoration: none;
    white-space: normal;
}

.chapters-list a:hover {
    text-decoration: underline;
   
}
*/
.chapters-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0;
}

.chapters-list li {
    list-style-position: inside;
    margin: 18px 0;
    padding: 18px 25px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom:30px;
}

.chapters-list li:hover {
    background: rgba(255,255,255,0.35);
    transform: translateX(8px);
}

.chapters-list a {
    text-decoration: none;
    color: #1d4f91;
    font-size: 1.3rem;
    font-weight: bold;
}

.chapters-list a:hover {
    color: #0b2f5b;
}
/* End of chapters list */


.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  text-decoration: none;
}

/* ferom Gallery style */
/* CHAPTER */
.chapter-section {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}


.chapter-section img {
  width: 40%;
  max-width: 300px;
  border: 1px solid #ccc;
}

.chapter-section .text {
  width: 60%;
}

/* Top menu */
.top-menu {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #f2f2f2;
  padding: 10px;

  display: flex;
  flex-wrap: wrap;   /* allows items to go to next row */
  gap: 5px;          /* spacing between buttons */

}

.top-menu a {
  color: white;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 5px;
  padding: 5px 10px;
  text-decoration: none;
  background: #6d0202;
  border-radius: 5px;
}


a {
  display: inline-block;
  padding: 8px 12px;
  margin: 5px;
  background-color: #1870c9;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* =========================
   CHAPTER BUTTONS
========================= */
.chapter-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.chapter-nav button {
  padding: 10px 18px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #7e5151;
  font-weight: 500;
  transition: all 0.3s ease;
}

.chapter-nav button:hover {
  background-color: #5f2929;
  color: #4b3737;
  transform: translateY(-2px);
}

.chapter-nav button.active {
  background-color: #7a1f1f;   /* deep burgundy */
  color: #787575;
  font-weight: bold;
}

/* Chapter Cards */
.chapter-cards {
    max-width: 700px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chapter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 25px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.chapter-card:hover {
    background: rgba(255, 255, 255, 0.60);
    transform: translateY(-3px);
}

.chapter-number {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1d4f91;
    margin-bottom: 6px;
}

.chapter-title {
    font-size: 1.15rem;
    color: #333;
}


/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}



/* RESPONSIVE: STACK IMAGES ON SMALL SCREENS */
@media (max-width: 768px) {
  .image-row {
    flex-direction: column;
  }
}

    
/* FOOTER */
/* FOOTER */
footer {
    background-color: #d7d6d6;
    color: #555;
    margin-top: 70px;
    text-align: center;
    font-size: 1rem;
    padding: 25px;
    width: 100%;
}

footer p {
    margin: 0;
}




