:root {
  --accent: #5c33d4;
  --gray-bg: #3d3d3d;
  --light-bg: #f5f5f5;
  --dark-bg: #121212;
  --gray-text: #d4d4d4;
  --light-text: #222;
  --dark-text: #f2f2f2;
  --border: #999;
  --transition: 0.4s ease;
  --btn-light: #cccccc;
  --btn-gray: #5f5f7a;
  --btn-dark: #888;
  --highlight-text: #bbbbbb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hind Siliguri', sans-serif;
  transition: background-color var(--transition), color var(--transition);
  margin: 0;
  height: 100%;
  overflow-y: scroll;
}

body.light-mode {
  background-color: var(--light-bg);
  color: #333;
}
body.gray-mode {
  background-color: var(--gray-bg);
  color: var(--gray-text);
}
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrap {
  flex-grow: 1;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 4.5rem;
  font-weight: 400;
  color: #4d33d0;
  text-align: center;
  margin: 1rem 0 0.5rem;
}

.brand-sub {
  text-align: center;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  color: var(--accent);
  font-family: 'Cinzel', serif;
}

/* Theme toggle + nav */
.theme-toggle, .nav-buttons {
  position: fixed;
  z-index: 1000;
}

.theme-toggle {
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.75rem;
}

.theme-toggle button {
  background-color: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  padding: 0.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-buttons {
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.6rem;
}

.nav-buttons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}
.nav-buttons a:hover {
  transform: scale(1.1);

 
}

/* Section layout from Day1 */
.day-body {
  max-width: 800px;
  margin: 3rem auto;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  color: var(--highlight-text);
}
body.light-mode .day-body {
  color: #444;
}

.day-title {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

.day-subquote {
  font-size: 1.35rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 3rem;
}

.day-section-title {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0.6rem;
}

.mantra-quote,
.guiding-quote,
.reinforcement-quote,
.insight-reinforce,
.soft-closing,
.quote-centered {
  font-style: italic;
  color: white;
  margin: 2.5rem 0;
}

.mantra-quote { font-size: 1.5rem; }
.guiding-quote { font-size: 1.4rem; }
.reinforcement-quote { font-size: 1.3rem; }
.insight-reinforce { font-size: 1.5rem; }
.soft-closing { font-size: 1.5rem; }
.quote-centered { font-size: 1.4rem; }

.day-checklist {
  font-family: 'Cormorant Garamond', serif;
  color: var(--highlight-text);
  max-width: 720px;
  margin: 2rem auto;
  font-size: 1.3rem;
  text-align: left;
  padding-left: 1.2rem;
}

.day-checklist li {
  margin-bottom: 1rem;
  list-style-type: disc;
}

.notice-section {
  margin-top: 5rem;
}


@keyframes fadeIn {
  to { opacity: 1; }
}
.course-index {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 4rem auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    transform: translateX(1.5rem); /* ← shift right about 2cm visually */
  }
  
  .course-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: fit-content; /* ← this is the magic line */
  }
  
  .course-index p {
    margin-bottom: 1.5rem;
  }

  .course-text-centered {
    max-width: 800px;
    margin: 4rem auto;
    text-align: center; /* CENTER THE TEXT ITSELF */
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    line-height: 1.1rem;
    padding: 0 2rem;  /* Optional optical breathing on mobile */
  }
  /* Theme toggle fix (copied from style-rev1.css) */
.theme-toggle button {
    background-color: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    padding: 0.4rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .theme-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }
  
  /* Theme icon color logic */
  body.light-mode .theme-icon {
    fill: #111;
  }
  body.light-mode .theme-toggle button {
    border-color: #333;
  }
  body.gray-mode .theme-icon {
    fill: #aaa;
  }
  body.gray-mode .theme-toggle button {
    border-color: #aaa;
  }
  body.dark-mode .theme-icon {
    fill: #fff;
  }
  body.dark-mode .theme-toggle button {
    border-color: #fff;
  }
  
  /* Optional: subtle hover scaling */
  .theme-toggle button:hover {
    transform: scale(1.1);
    opacity: 1;
  }
  
  .day-button {
    display: inline-block;
    width: 2.2rem;
    height: 2.2rem;
    line-height: 2.2rem; /* ← ADD THIS */
    text-align: center;
    border-radius: 50%;
    background-color: var(--button-bg, #444);
    color: var(--button-text, #fff);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.3s ease;
    pointer-events: none;
    opacity: 0.4;
  }
  
  .day-button:hover {
    background-color: var(--accent, #6e52ff);
    color: #fff;
  }
  

  .sun-button-wrap {
    display: flex;
    justify-content: center;
    margin: 5rem 0;
  }
  
  .sun-button {
    width: 160px;
    height: 160px;
    background-color: #606060;
    border: 4px solid #606060;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }
  
  .sun-button:hover {
    background-color: #a50bec;
    border-color: #a50bec;
  }
  
  .gate-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  
  /* Enlarged and lowered sun */
  .sun-circle {
    width: 125px;
    height: 125px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 48%; /* Lower it down */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }
  
  .torii-icon {
    width: 120px;
    height: 120px;
    z-index: 5;
    position: relative;
    top: 25px; /* Adjust this value to move it down */
  }


  .sun-button:hover .sun-circle {
  background-color: #d80000;
  box-shadow: 0 0 25px 10px rgb(251, 251, 2);
  animation: pulseSun 1.2s ease-in-out infinite;
}
@keyframes pulseSun {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
.torii-mini {
  width: 27px;
  height: 27px;
  display: block;
  margin: 9px auto 0 auto; /* top, sides, bottom */
  filter: grayscale(100%);
}

.day-button.active .torii-mini {
  filter: none;
}

.page-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.6rem;
  z-index: 1000;
}

.page-nav a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.top-right-nav a:hover {
  transform: scale(1.08);
}


.nav-icon {
  width: 22px;
  height: 22px;
  filter: invert(100%);
  transition: filter var(--transition);
}

body.light-mode .nav-icon {
  filter: invert(10%);
}

body.gray-mode .nav-icon {
  filter: invert(80%);
}

body.dark-mode .nav-icon {
  filter: invert(100%);
}


#index ul li a {
  color: var(--text);
  text-decoration: none;
}

#index ul li a:hover {
  text-decoration: underline;
}

#index ul li span {
  color: gray;
  opacity: 0.4;
}
.section-break {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  margin: 2rem 0 1.5rem;
  text-align: center;
  opacity: 0.6;
  line-height: 2;
}
#index {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#gateList, #dynamicGates {
  list-style-position: inside;
  padding: 0;
  margin: 0 auto;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

main.container {
  flex: 1;dy
  display: flex;
  flex-direction: column;
  align-items: center;
}


#index {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left; /* <- KEY: makes inner items align left */
}

#gateList, #dynamicGates {
  list-style-position: inside;
  padding: 0;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 2;
}

#index ul li a {
  color: var(--text);
  text-decoration: none;
}

#index ul li a:hover {
  text-decoration: underline;
}
#index ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin-left: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  line-height: 2rem;
}

.nav-top-center {
  position: absolute;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.nav-top-center a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.nav-top-center a:hover {
  transform: scale(1.08);
}

.nav-top-center img.nav-icon {
  width: 22px;
  height: 22px;
  filter: invert(100%);
  transition: filter 0.3s ease;
}

body.light-mode .nav-top-center img.nav-icon {
  filter: invert(10%);
}

body.gray-mode .nav-top-center img.nav-icon {
  filter: invert(80%);
}

body.dark-mode .nav-top-center img.nav-icon {
  filter: invert(100%);
}
footer {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 1.5rem 0;
  opacity: 0.6;
  transition: color 0.3s ease;
}
body.light-mode footer {
  color: #444 !important;
}

body.gray-mode footer {
  color: #d4d4d4 !important;
}

body.dark-mode footer {
  color: #ccc !important;
}

footer * {
  color: inherit !important;
}

body.light-mode .nav-buttons a {
  border-color: #111 !important;
  color: #111 !important;
}
body.light-mode .day-checklist strong {
  color: #111 !important;
}

body.gray-mode .day-checklist strong,
body.dark-mode .day-checklist strong {
  color: #fff !important;
}
