/* This is the universal stylesheet for all pages */
:root {
  --color-card-bg1: #eaf3ff;
  --color-card-bg2: #ffffff;
  --color-card-text: #1565c0;
  --color-card-border: #303f9f;
  --color-card-dot: #303f9f1a;
  --color-footer-bg: #4a4a4a;
  --color-footer-text: #dddddd;
  --color-footer-link: #ffffff;
  --color-footer-link-hover: #f0f0f0;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 16px;
  --color-chapter-pill: #e0e0e0;
  --color-chapter-pill-hover: #bdbdbd;
  --color-chapter-unavailable: #f0f0f0;
  --color-divider: #333;
  --color-book-hover: #ffd700;
  --color-box-bg: #fff;
  --color-box-border: #eee;
  --bg-body: #f0f2f5;
  --color-text: #333;
  --color-header-bg1: #5c6bc0;
  --color-header-bg2: #303f9f;
  --color-header-text: #ffffff;
  --color-nav-bg: #303f9f;
  --color-nav-hover: #1a237e;
  --color-verse-bg1: #ffe082; /* A very light shade of gold for the center */
  --color-verse-bg2: #ffd700; /* The same golden color as the sides */
  --color-verse-text: #333333;
}

    * { box-sizing: border-box; }
    body {
      margin: 0; padding: 0;
      background-color: var(--bg-body);
      color: var(--color-text);
      font-family: 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;
      line-height: 1.6;
    }
    header {
      background: radial-gradient(circle at center, var(--color-header-bg1), var(--color-header-bg2));
      color: var(--color-header-text);
      padding: 3rem 1rem 2rem; text-align: center;
    }
    header h1 { margin: 0; font-size: 2.2rem; font-weight: 800; }
    header p { margin-top: .8rem; font-size: 1.1rem; }
    nav {
      background: var(--color-nav-bg);
      display: flex; justify-content: center; flex-wrap: wrap;
    }
    nav a {
      color: var(--color-header-text);
      padding: 1rem 1.4rem; text-decoration: none; font-weight: bold;
      transition: background 0.3s ease;
    }
    nav a:hover, nav a.active { background: var(--color-nav-hover); }
    .verse-bar {
  background: radial-gradient(circle at center, var(--color-verse-bg1), var(--color-verse-bg2));
  padding: .9rem 1rem; text-align: center; color: var(--color-verse-text);
}
        
    .container { max-width: 1200px; margin: auto; padding: 2rem; }
    
    /* Mobile menu button */
    .menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  left: 20px;
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
}
.menu-toggle div {
  width: 28px;
  height: 3px;
  background-color: var(--color-header-text);
  margin: 6px 0;
  transition: 0.4s;
  border-radius: 2px;
}

body.dark-mode {
  --bg-body: #1c1c1c;
  --color-text: #f0f0f0;
  --color-header-bg1: #4a4a4a;
  --color-header-bg2: #222222;
  --color-header-text: #ffffff;
  --color-nav-bg: #222222;
  --color-nav-hover: #333333;
  --color-verse-bg1: #e6c200;
  --color-verse-bg2: #d1a800;
  --color-verse-text: #ffffff;
  --color-card-bg1: #2a2a2a;
  --color-card-bg2: #3a3a3a;
  --color-card-text: #d0d8ff;
  --color-card-border: #4b5bd3;
  --color-card-dot: #ffffff12;
  --color-footer-bg: #111111;
  --color-footer-text: #cccccc;
  --color-footer-link: #ffffff;
  --color-footer-link-hover: #ffffff;
  --color-chapter-pill: #555;
  --color-chapter-pill-hover: #666;
  --color-chapter-unavailable: #333;
  --color-divider: #ccc;
  --color-book-hover: #e6c200;
  --color-box-bg: #3a3a3a;
  --color-box-border: #4b5bd3;
}

/* Navigation */


@media (max-width: 768px) {
  nav { flex-direction: column; display: none; }
  nav.active { display: flex; }
  .menu-toggle { display: block; }
}

/* Header */
@media (max-width: 768px) {
  header h2 { font-size: 1.8rem; }
}

/* Light/dark mode switch button */
.theme-toggle-btn {
  position: absolute; top: 20px; right: 20px;
  background: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 999px;
  cursor: pointer;
  padding: .4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}
.theme-toggle-btn:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}
.theme-toggle-btn svg {
  fill: #333333;
  width: 24px;
  height: 24px;
}

/* Verse bar: High-contrast gold with white text */
.verse-bar {
  background: radial-gradient(circle at center, var(--color-verse-bg1), var(--color-verse-bg2));
  padding: .9rem 1rem; text-align: center; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center;
  color: var(--color-verse-text);
}
.verse-bar::before {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(#ffffff66 1px, transparent 1px); background-size: 10px 10px; opacity: .18; z-index: 0;
}.verse-bar .verse-text {
  font-size: 1.15rem;
  margin: 0;
  position: relative;
  z-index: 1;
  padding-left: .5rem;
}
.verse-bar p {
  margin: 0;
  font-size: .95rem;
  position: relative;
  z-index: 1;
}

/* Cards grid */
.container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }

.section {
  background: linear-gradient(to top right, var(--color-card-bg1), var(--color-card-bg2));
  border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform .28s ease, box-shadow .28s ease;
  cursor: pointer; border: 1px solid var(--color-card-border); position: relative; overflow: hidden;
}
.section::before { content: ""; position: absolute; top: -22px; left: -22px; width: 60px; height: 60px; background: var(--color-card-dot); border-radius: 50%; z-index: 0; }
.section:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(0,0,0,0.14); }
.section h2 { margin: 0 0 .6rem; color: var(--color-card-text); font-size: 1.45rem; position: relative; z-index: 1; }
.section p { position: relative; z-index: 1; margin: 0; }
.section a { text-decoration: none; color: inherit; display: block; }

/* Revolving box (key studies) – Primary distinct appearance */
.study-highlight { background: linear-gradient(to top right, #ffe082, #fff8e1); border: 2px solid #ffd54f; }
.revolving-box { min-height: 100px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; font-size: 1.25rem; font-weight: 700; color: var(--color-card-text); }
@keyframes fadeAndSlide { 0% { opacity: 0; transform: translateY(14px);} 10% { opacity: 1; transform: translateY(0);} 90% { opacity: 1;} 100% { opacity: 0; transform: translateY(-14px);} }
.revolving-box h2 { margin: 0; animation: fadeAndSlide 10s infinite ease-in-out; }

/* Dynamic area */
.dynamic-content { display:none; }
.dynamic-table { width: 100%; border-collapse: separate; border-spacing: .5rem; text-align: center; }
.dynamic-table td { padding: .3rem 0; }
.dynamic-link { display:inline-flex; min-width: 2.2rem; justify-content:center; align-items:center; padding: .38rem .6rem; border-radius: 10px; background:#fff; border:1px solid var(--color-card-border); text-decoration:none; box-shadow: 0 1px 4px rgba(0,0,0,.06); margin: 0 .2rem .2rem; }

/* Footer */
footer { text-align: center; padding: 2.2rem; background: var(--color-footer-bg); color: var(--color-footer-text); font-size: .9rem; margin-top: 2rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.footer-content a { color: var(--color-footer-link); text-decoration: none; }
.footer-content a:hover { text-decoration: underline; }

/* Styles for other pages */
.main-content {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}
.book-selector-box {
  background: var(--color-box-bg);
  border: 1px solid var(--color-box-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}
.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  color: var(--color-card-text);
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.3s ease;
}
.box-header span {
  font-size: 1.2rem;
}
.box-header .arrow {
  transition: transform 0.3s ease;
}
.book-selector-box.open .box-header .arrow {
  transform: rotate(180deg);
}
.box-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}
.book-selector-box.open .box-body {
  max-height: 800px;
  padding: 1rem;
}
.book-title {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.book-title:hover {
  background-color: var(--color-book-hover);
  border-radius: 8px;
}
.chapters-list {
  display: none;
  flex-wrap: wrap;
  padding: 10px;
  gap: 8px;
  justify-content: flex-start;
}
.chapter-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-chapter-pill);
  color: var(--color-text);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 4px;
}
.chapter-number:hover {
  background-color: var(--color-chapter-pill-hover);
}
.content-area {
  padding: 1.5rem;
  background: var(--color-card-bg2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-card-text);
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-card-border);
  padding-bottom: .5rem;
}
.verse-link, .note-verse-link .note-verse-number {
  font-weight: bold;
  color: var(--color-card-text);
  cursor: pointer;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.verse-link:hover, .note-verse-link:hover .note-verse-number {
  background: var(--color-chapter-pill-hover);
}
.notes-section {
  margin-top: 2rem;
  border-top: 2px solid var(--color-divider);
  padding-top: 1.5rem;
}
.notes-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-card-text);
  margin-bottom: 1rem;
}
.note-item {
  margin-bottom: 1rem;
}
.note-verse-number {
  font-weight: bold;
  color: var(--color-card-text);
}
.chapter-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}
.nav-button {
  padding: 10px 20px;
  background-color: var(--color-card-border);
  color: var(--color-header-text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}
.nav-button:hover {
  background-color: var(--color-book-hover);
}
.day-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-chapter-pill);
  color: var(--color-text);
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 4px;
  text-decoration: none;
}
.day-number:hover {
  background-color: var(--color-chapter-pill-hover);
}
footer {
  text-align: center;
  padding: 2.2rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: .9rem;
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}
.footer-content a {
  color: var(--color-footer-link);
  text-decoration: none;
}
.footer-content a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  /* Adjust subtitle font size for smaller screens */
  header h2 {
    font-size: 1.8rem;
  }
}
 /* Define the Regular (400) weight */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Define the Bold (700) weight */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* --- Your existing CSS code goes here --- */

/* --- New CSS for the Info Box (new_testament.html) --- */
.book-info-box {
    position: fixed; /* Using fixed position for floating box behavior */
    top: 80px; /* Positions the box below the header */
    right: 20px;
    width: 300px;
    max-width: 90%;
    max-height: 80vh; 
    overflow-y: auto; 
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    visibility: hidden;
    color: #333;
    font-size: 14px;
    padding: 10px;
}

.dark-mode .book-info-box {
  background-color: #212121;
  color: #e0e0e0;
  border: 1px solid #444;
}

.book-info-box.active {
    opacity: 1;
    visibility: visible;
}

.book-info-box .box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    font-weight: bold;
}

.dark-mode .book-info-box .box-header {
  border-color: #444;
}

.book-info-box .box-content p {
    margin: 5px 0;
}

.book-info-box button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

.dark-mode .book-info-box button {
    color: #e0e0e0;
}
    
    /* Re-adding the daily widget's styles for correct positioning */
    .daily-widget {
        position: fixed;
        bottom: 10rem;
        left: 2rem;
        z-index: 999;
        transition: all 0.3s ease-in-out;
        overflow: hidden;
        width: 48px;
        border-radius: 1rem;
        background-color: #ff9800;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
        color: #fff;
        font-size: 0.95rem;
        display: flex;
        flex-direction: column;
    }

    .daily-widget.expanded {
        width: 300px;
        z-index: 1000;
        height: auto;
    }

    .daily-widget.collapsed {
        height: auto;
        width: auto;
    }

    .daily-widget .widget-tab {
        padding: 0.75rem 1.5rem;
        cursor: pointer;
        font-weight: bold;
        text-align: center;
        background-color: #ff9800;
        border-radius: 1rem;
    }

    .daily-widget .widget-content {
        padding: 12px;
        display: none;
        background-color: #fff;
        color: #333;
    }

    .daily-widget.expanded .widget-content {
        display: block;
    }
  
   .publish-message {
  color: #e65100;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
   #copyBtn {
  background: #e65100;
  color: white;
  border: none;
  padding: 0.5rem 1rem; /* Added padding */
  border-radius: 6px; /* Added border-radius */
  cursor: pointer; /* Added cursor */
  font-size: 1.15rem; /* Increase font size of the button text */
}