/* Pillar Page - Christian Hypnotherapy Guide */

* {
  box-sizing: border-box;
}

main {
  padding-top: calc(var(--header-height) + 2px);
}

#pillar-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1.5em 3em;
}

.pillar-content {
  line-height: 1.7;
  color: var(--color-3-grey);
}

/* Typography */
h1 {
  color: var(--color-3-grey);
  font-size: var(--font-size-title);
  margin-bottom: 0.8em;
  line-height: 1.2em;
  text-align: center;
}

h2 {
  color: var(--color-8-deep-green);
  font-size: var(--font-size-bigger);
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3em;
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--color-8-deep-green);
}

h3 {
  color: var(--color-3-grey);
  font-size: var(--font-size-larger);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.3em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

/* First paragraph styling - intro hook */
.pillar-content > p:first-of-type {
  font-size: var(--font-size-larger);
  color: var(--color-5-grey);
  border-left: 4px solid var(--color-8-deep-green);
  padding-left: 1em;
  margin-bottom: 1.5em;
}

/* Lists */
ul, ol {
  margin: 1em 0;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.5em;
}

/* Links */
.pillar-content a {
  color: var(--color-8-deep-green);
  text-decoration: underline;
}

.pillar-content a:hover {
  color: var(--color-11-red);
}

/* Strong/Bold text */
strong {
  color: var(--color-3-grey);
}

/* Blockquotes for scripture */
blockquote {
  background: var(--color-7-white);
  border-left: 4px solid var(--color-8-deep-green);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  font-style: italic;
  color: var(--color-5-grey);
}

/* CTA Box at bottom */
.pillar-cta {
  margin-top: 3em;
  width: 100%;
}

.cta-box {
  background: linear-gradient(135deg, var(--color-8-deep-green) 0%, #2d7a35 100%);
  color: var(--color-7-white);
  padding: 2em;
  border-radius: 8px;
  text-align: center;
}

.cta-box h3 {
  color: var(--color-7-white);
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: var(--font-size-bigger);
}

.cta-box p {
  margin-bottom: 1.5em;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

.cta-buttons a.bookInBtn,
.cta-buttons a.quizBtn {
  display: inline-block;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0;
}

.cta-buttons a.bookInBtn {
  background: var(--color-7-white);
  color: var(--color-8-deep-green);
  box-shadow: none;
}

.cta-buttons a.bookInBtn:hover {
  background: #f0f0f0;
}

.cta-buttons a.quizBtn {
  background: transparent;
  color: var(--color-7-white);
  border: 2px solid var(--color-7-white);
}

.cta-buttons a.quizBtn:hover {
  background: rgba(255,255,255,0.1);
}

/* Header - same as other pages */
#header {
  position: fixed;
  height: var(--header-height);
  width: 100%;
  background: rgba(255, 255, 255);
  box-shadow: 0 1px 0 0 #eee, 0 0 1px 0 #eee;
  color: var(--color-9-grey);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.header__icon-cont {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#logo-icon {
  display: inline-block;
  height: 32px;
  margin-left: 1em;
  margin-right: 0.5em;
}
#header a {
  color: var(--color-9-grey);
  cursor: pointer;
  text-decoration: none;
}
#header a:hover {
  color: var(--color-11-red);
}
.header__nav {
  padding-right: 1em;
}
.header__nav a {
  display: inline-block;
  margin-right: 1em;
}
.header__nav img {
  height:0.7em;
  position:relative;
  top:-4px;
  left: -1px;
  opacity:0.5;
}
#header a:hover img {
  opacity:0.8;
}
.header__nav img.star1-1 {
  height: 0.6em;
  top: +4px;
  left: -2px;
}

/* Footer - same as other pages */
#footer {
  background: var(--color-8-deep-green);
  color: var(--color-9-grey);
  text-align: center;
  font-size: var(--font-size-small);
  padding: 1.4em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}
.map {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.loc {
  display: block;
  text-align: left;
  margin-left: 1em;
}
.social-media a {
  display: flex;
  flex-direction: row;
  color: var(--color-8-grey);
  align-items: center;
  line-height: 1em;
  font-size: 1em;
  text-decoration: none;
}
.social-media img {
  width: 23px;
  display: inline-block;
  margin-right: 4px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #pillar-page {
    padding: 1.5em 1em 2em;
  }

  h1 {
    font-size: var(--font-size-bigger);
  }

  h2 {
    font-size: var(--font-size-larger);
  }

  .pillar-content > p:first-of-type {
    font-size: var(--font-size-normal);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons a.bookInBtn,
  .cta-buttons a.quizBtn {
    width: 100%;
    max-width: 250px;
  }
}
