/* Base Layout */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FAF9F6;
    color: #2A2545;
}
/* Ensure the body and html take full height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Flex layout to push footer down if needed */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Make main grow to fill space between header and footer */
main {
  flex: 1;
}

/* Header & Navigation */
.top-bar {
    background-color: #2A2545; /* warm dark gray */
    color: #FAF9F6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar h1 {
    font-size: 1.5rem;
    margin: 0;
}

.top-bar nav {
    display: flex;
    align-items: center;
}

.top-bar nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.top-bar nav ul li a {
    color: #FAF9F6;
    text-decoration: none;
}

.top-bar nav ul li a:hover {
    text-decoration: underline;
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo-title a {
    color: inherit;
    text-decoration: none;
	display: flex; /* Optional: lays out image + text nicely */
    align-items: center; /* Optional: vertically center content */
    gap: 0.5em; /* Optional: spacing between logo and text */
}
.logo-title h1 {
    display: inline;
    margin: 0; /* Optional: removes default top/bottom spacing */
}

.logo-title a:visited,
.logo-title a:hover,
.logo-title a:active {
    color: inherit;
    text-decoration: none;
}

.logo-title img {
    height: 100%;              /* Match header height */
    max-height: 48px;          /* Optional: cap max height */ 
    width: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Hamburger Menu for Mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.3rem;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: #FAF9F6;
    display: block;
}

@media (max-width: 700px) {
    .top-bar nav ul {
        display: none;
        flex-direction: column;
        background-color: #2A2545;
        position: absolute;
        top: 100%;
        right: 0;
        width: 200px;
        padding: 1rem;
    }

    .top-bar nav ul.show {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    background: #EDF2F7;
    padding: 1rem 1rem;
    text-align: center;
    border-bottom: 1px solid #A5BFA2;
}

.hero h2 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

.hero p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* General Sections */
.section {
    padding: 1rem 1.5rem;
    max-width: 800px;
    margin: auto;
}


.header-with-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-line {
    flex-grow: 1;
    border: none;
	border-top: 2px solid #a95454;
    /* border-top: 2px solid #d46a6a; */
    /* border-top: 1px solid #A5BFA2; */
}

/* Buttons */
/* Base button style */
.button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    margin: 0.5rem;
    background-color: #F4B860;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

/* Container for single or grouped buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: .2rem auto;
}


.button:hover {
    background-color: #D39C45;
}
.link-box {
  background-color: #EDF2F7;
  padding: 20px;
  margin: 10px 0;
  border-radius: 8px;
  text-align: center;
  font-family: sans-serif;
}

.link-box a {
  text-decoration: none;
  color: #2A2545;
  font-size: 1.2em;
  font-weight: bold;
}

.link-box a:hover {
  color: #7D9E79;
}
/* Cards for Featured Writings */
.writing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid #A5BFA2;
    /* padding: 1rem; */
    border-radius: 8px;
    text-align: center;
}

.card a {
    text-decoration: none;
    color: #2A2545;
}

/* Footer */
.footer {
    background-color: #2A2545;
    color: #FAF9F6;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer a {
    color: #FAF9F6;
    text-decoration: none;
    margin: 0 0.5rem;
}
/* Foundations page sphere layout */
.sphere-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  text-align: center;
}

.sphere {
  position: relative;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 30% 30%, #6a91c9, #1e4077);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s;
}

.sphere:hover {
  transform: scale(1.1);
}

.tooltip {
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  width: 160px;
  font-size: 0.8rem;
  z-index: 1;
}

.sphere:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* ===== Parable Button Styles ===== */
.parable-button-wrapper {
  margin-top: 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
}

.parable-button {
  padding: 1em;
  border: 1px solid #A5BFA2;
  background-color: #FFFFFF;
  cursor: pointer;
  font-size: 1em;
  width: 100%;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.parable-button:hover {
  background-color: #EDF2F7;
}

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2em;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal .parable-content p {
  margin-bottom: 1em;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* Responsive adjustments */

@media (max-width: 600px) {
  .sphere-container {
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .sphere {
    width: 80px;
    height: 80px;
    font-size: 0.7rem;
  }

  .tooltip {
    font-size: 0.6rem;
    width: 120px;
  }
  
  .parable-button {
    font-size: 0.95em;
    padding: 0.8em;
  }

  .modal-content {
    padding: 1.2em;
  }
}

