/* Combined Stylesheet for WebTheology
   Modernized styling based on sample site design
   Optimized and organized for performance
*/

/* ==========================================================================
   Base Styles and Variables
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Kulim+Park:ital,wght@0,200;0,400;0,600;1,700&display=swap');

:root {
  /* Colors */
  --color-primary: #4D4D4D;
  --color-secondary: #c1912c;
  --color-accent: #000;
  --color-text: #4D4D4D;
  --color-text-light: #565555;
  --color-border: #c9c9c9;
  --color-background: #fff;
  
  /* Typography Scale */
  --font-size-base: 16px;
  --font-size-h1: 2.5rem;    /* 40px */
  --font-size-h2: 1.75rem;   /* 28px */
  --font-size-h3: 1.25rem;   /* 20px */
  --font-size-h4: 1.125rem;  /* 18px */
  --font-size-h5: 1rem;      /* 16px */
  --font-size-h6: 0.875rem;  /* 14px */
  
  /* Line Heights */
  --line-height-heading: 1.2;
  --line-height-body: 1.5;
  
  /* Letter Spacing */
  --letter-spacing-heading: -0.02em;
  
  /* Spacing Scale */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 1rem;      /* 16px */
  --spacing-md: 2rem;      /* 32px */
  --spacing-lg: 3rem;      /* 48px */
  --spacing-xl: 4rem;      /* 64px */
  
  /* Max Widths */
  --max-width-text: 600px;
  --max-width-container: 1200px;
  
  /* Border Styles */
  --border-width: 1px;
  --border-style: solid;
  --border-color: var(--color-border);
}

/* Base HTML and Body Styles */
html {
  background-image: url(../images/body-bg.jpg);
}

body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Kulim Park', sans-serif;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  text-transform: uppercase;
}

h1 { font-size: var(--font-size-h1); margin-bottom: 14px; }
h2 { font-size: var(--font-size-h2); margin-bottom: 10px; }
h3 { font-size: var(--font-size-h3); margin-bottom: 8px; }
h4 { font-size: var(--font-size-h4); margin-bottom: 4px; }
h5 { font-size: var(--font-size-h5); }
h6 { 
  font-size: var(--font-size-h6); 
  margin-bottom: 14px; 
  font-family: Arial, Helvetica, sans-serif; 
  font-weight: bold;
  text-transform: none;
  color: var(--color-text-light);
}

p { 
  margin: 0 0 18px 0; 
  max-width: var(--max-width-text);
}

/* Font Weight Classes */
.light { font-weight: 200; }
.medium { font-weight: 400; }
.bold { font-weight: 600; }
.xbold { font-weight: 700; }

/* Special Heading Styles */
h1.page-title {
  color: var(--color-secondary);
  text-align: center;
  position: relative;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
}

h1.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--color-secondary) 0%,
    rgba(193, 145, 44, 0.3) 100%
  );
}

h2.bookHeading {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 3rem 0 2rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(193, 145, 44, 0.05) 0%, rgba(193, 145, 44, 0.1) 100%);
  border-radius: 12px;
  position: relative;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  h2.bookHeading {
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    margin: 2rem 0 1.5rem;
  }
}

/* ==========================================================================
   Links and Buttons
   ========================================================================== */
a { 
  color: var(--color-secondary); 
  text-decoration: underline; 
  outline: 0; 
}

a:hover, 
a:focus { 
  color: var(--color-accent); 
  text-decoration: none; 
}

p a, 
p a:visited { 
  line-height: inherit; 
}

.btn-primary {
  background-color: var(--color-secondary);
  border-color: var(--color-accent);
  padding: var(--spacing-xs) var(--spacing-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-secondary);
}

/* ==========================================================================
   Layout and Containers
   ========================================================================== */
.container {
  max-width: var(--max-width-container);
}

.section-spacing {
  margin-bottom: var(--spacing-xl);
}

.content-spacing {
  margin-bottom: var(--spacing-md);
}

.text-block {
  max-width: var(--max-width-text);
  margin-left: auto;
  margin-right: auto;
}

.text-block--centered {
  text-align: center;
}

.divider {
  height: 3px;
  width: 100%;
  border-bottom: var(--color-border) 3px double;
  margin: 28px 0 28px 0;
}

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
header {
  border-top: 5px solid var(--color-secondary);
  background: linear-gradient(to bottom, var(--color-background) 80%, transparent 90%);
}

#site-title {
  font-size: 0.5em;
  text-indent: -999999px;
  margin-bottom: 0px;
}

.topaddress {
  clear: right;
  line-height: 1.5em;
  font-size: 16px;
  color: #444;
  p {
    max-width: 100%;
  }
}

.topaddress p {
  text-align: right;
  margin: 2px 0 0;
}

.phone {
  color: #444;
  margin-top: 47px;
  padding: 4px 0 2px 38px;
}

.phone a {
  color: #444;
  text-decoration: none;
}

.phone a:hover {
  color: var(--color-secondary);
}

/* Navigation */
nav.header {
  background: url(../images/nav-bg.gif) left top repeat-x, url(../images/nav-bg.gif) left bottom repeat-x;
}

nav.header ul {
  width: 100%;
  text-align: center;
}

nav.header li {
  float: left;
  width: 20%;
  font-family: 'Kulim Park', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
  font-size: 16px;
  color: #3d3c3c;
  align-content: center;
}

nav.header li:first-child {
  background: none;
  margin-left: 0;
}

nav.header li a {
  text-decoration: none;
  color: #3d3c3c;
}

nav.header li a:hover, 
nav.header li a:active {
  color: var(--color-secondary);
}

.navbar-toggler {
  color: rgba(0,0,0,.5);
  border-color: rgba(0,0,0,.1);
}

.navbar-toggler-icon {
  vertical-align: -35%;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.slogan {
  font-size: 1.2em;
  line-height: 1.6;
  color: var(--color-text);
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Book Sections - Unified Modern Styling
   ========================================================================== */

/* Standard Book Row Styling */
.row .col-md-4.col-lg-2,
.row .col-sm-12.col-md-4.col-lg-2 {
  text-align: center;
  margin-bottom: var(--spacing-sm);
}

.row .col-md-4.col-lg-2 img,
.row .col-sm-12.col-md-4.col-lg-2 img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 3px solid var(--color-background);
}

.row .col-md-4.col-lg-2 img:hover,
.row .col-sm-12.col-md-4.col-lg-2 img:hover {
  transform: scale(1.05);
}

.row .col-md-8.col-lg-6,
.row .col-md-8.col-lg-10 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.row .col-md-8.col-lg-6 h3,
.row .col-md-8.col-lg-10 h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
  font-weight: 600;
}

.row .col-md-8.col-lg-6 p,
.row .col-md-8.col-lg-10 p {
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  max-width: 100%;
}

.row .col-md-8.col-lg-6 .btn,
.row .col-md-8.col-lg-10 .btn {
  align-self: flex-start;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  min-width: 120px;
  text-align: center;
}

.row .col-md-8.col-lg-6 .btn:hover,
.row .col-md-8.col-lg-10 .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Carousel Styling for All Book Sections */
.row .col-sm-12.col-md-12.col-lg-4,
.row .col-lg-4.col-md-12.col-sm-12 {
  margin-top: var(--spacing-md);
}

.row .col-sm-12.col-md-12.col-lg-4 .carousel,
.row .col-lg-4.col-md-12.col-sm-12 .carousel {
  overflow: hidden;
}

.row .col-sm-12.col-md-12.col-lg-4 .carousel-item,
.row .col-lg-4.col-md-12.col-sm-12 .carousel-item {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row .col-sm-12.col-md-12.col-lg-4 .blockquote,
.row .col-lg-4.col-md-12.col-sm-12 .blockquote {
  margin: 0;
  padding: var(--spacing-sm);
  background: linear-gradient(135deg, rgba(193, 145, 44, 0.05) 0%, rgba(193, 145, 44, 0.1) 100%);
  border-radius: 8px;
  border-left: none;
  text-align: center;
}

.row .col-sm-12.col-md-12.col-lg-4 .blockquote p,
.row .col-lg-4.col-md-12.col-sm-12 .blockquote p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  font-style: italic;
}

.row .col-sm-12.col-md-12.col-lg-4 .blockquote-footer,
.row .col-lg-4.col-md-12.col-sm-12 .blockquote-footer {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.row .col-sm-12.col-md-12.col-lg-4 .carousel-indicators,
.row .col-lg-4.col-md-12.col-sm-12 .carousel-indicators {
  bottom: 8px;
}

.row .col-sm-12.col-md-12.col-lg-4 .carousel-indicators li,
.row .col-lg-4.col-md-12.col-sm-12 .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: 1px solid var(--color-secondary);
}

.row .col-sm-12.col-md-12.col-lg-4 .carousel-indicators .active,
.row .col-lg-4.col-md-12.col-sm-12 .carousel-indicators .active {
  background-color: var(--color-secondary);
}

/* Mobile Responsive for All Book Sections */
@media (max-width: 767.98px) {
  .row .col-md-4.col-lg-2,
  .row .col-sm-12.col-md-4.col-lg-2 {
    margin-bottom: var(--spacing-sm);
  }
  
  .row .col-md-8.col-lg-6,
  .row .col-md-8.col-lg-10 {
    text-align: center;
  }
  
  .row .col-md-8.col-lg-6 h3,
  .row .col-md-8.col-lg-10 h3 {
    font-size: 1.125rem;
    text-align: center;
  }
  
  .row .col-md-8.col-lg-6 p,
  .row .col-md-8.col-lg-10 p {
    text-align: center;
  }
  
  .row .col-md-8.col-lg-6 .btn,
  .row .col-md-8.col-lg-10 .btn {
    align-self: center;
    margin-right: 0;
    margin-bottom: var(--spacing-xs);
    width: 100%;
    max-width: 200px;
  }
  
  .row .col-sm-12.col-md-12.col-lg-4 .carousel-item,
  .row .col-lg-4.col-md-12.col-sm-12 .carousel-item {
    min-height: 100px;
  }
  
  .row .col-sm-12.col-md-12.col-lg-4 .blockquote,
  .row .col-lg-4.col-md-12.col-sm-12 .blockquote {
    padding: var(--spacing-xs);
  }
  
  .row .col-sm-12.col-md-12.col-lg-4 .blockquote p,
  .row .col-lg-4.col-md-12.col-sm-12 .blockquote p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .row .col-sm-12.col-md-12.col-lg-4 .blockquote-footer,
  .row .col-lg-4.col-md-12.col-sm-12 .blockquote-footer {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Cards and Content Blocks
   ========================================================================== */
.card {
  text-align: center;
  min-height: 24em;
  color: var(--color-secondary);
  background: var(--color-background);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card h2 {
  margin-bottom: 20px;
  color: var(--color-secondary);
}

.card div.text {
  left: 0px;
  padding: 10px 0;
}

.card .card-body .icon {
  width: 95px;
  height: 95px;
  padding-top: 10px;
  border: var(--color-secondary) 3px double;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Carousel and Media
   ========================================================================== */
.carousel.slide {
  border-radius: 8px;
  overflow: hidden;
}

.carousel-control-prev, 
.carousel-control-next {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 20px;
}

.carousel-indicators li {
  background-color: var(--color-secondary);
  border: 1px solid var(--color-accent);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators .active {
  background-color: var(--color-accent);
  border-color: var(--color-secondary);
}

/* Enhanced Carousel Styles */
.carousel.slide.carousel-fade {
  overflow: hidden;
}

.carousel.slide.carousel-fade .carousel-inner {
  border-radius: 12px;
}

.carousel.slide.carousel-fade .carousel-item {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel.slide.carousel-fade .blockquote {
  margin: 0;
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(193, 145, 44, 0.05) 0%, rgba(193, 145, 44, 0.1) 100%);
  border-radius: 8px;
  border-left: none;
}

.carousel.slide.carousel-fade .blockquote p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  font-style: italic;
}

.carousel.slide.carousel-fade .blockquote-footer {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: var(--spacing-sm);
}

.carousel.slide.carousel-fade .carousel-indicators {
  bottom: 10px;
}

.carousel.slide.carousel-fade .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(193, 145, 44, 0.3);
  border: 1px solid var(--color-secondary);
}

.carousel.slide.carousel-fade .carousel-indicators .active {
  background-color: var(--color-secondary);
}

/* Mobile improvements for carousels */
@media (max-width: 767.98px) {
  .carousel.slide.carousel-fade .carousel-item {
    min-height: 150px;
  }
  
  .carousel.slide.carousel-fade .blockquote {
    padding: var(--spacing-sm);
  }
  
  .carousel.slide.carousel-fade .blockquote p {
    font-size: 0.9rem;
  }
  
  .carousel.slide.carousel-fade .blockquote-footer {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Blockquotes and Testimonials
   ========================================================================== */
blockquote, 
blockquote p { 
  font-size: 17px; 
  line-height: 24px; 
  color: #b7b7b7; 
  font-style: italic; 
}

blockquote { 
  margin: 0 0 20px; 
  padding: 9px 20px 0 19px; 
  border-left: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 8px 8px 0;
}

blockquote cite { 
  display: block; 
  font-size: 12px; 
  color: #555; 
}

blockquote cite:before { 
  content: "\2014 \0020"; 
}

blockquote cite a, 
blockquote cite a:visited { 
  color: #555; 
}

/* ==========================================================================
   Forms
   ========================================================================== */
form#contact {
  margin-top: 15px;
}

form#contact strong {
  color: #9d9d9d;
  font-weight: normal;
  padding-bottom: 3px;
  display: block;
}

form#contact strong span {
  color: #1bd5e1;
}

fieldset {
  margin-bottom: 20px;
}

form#contact input[type="text"],
input[type="email"],
form#contact textarea,
select {
  border: #adadad 1px solid;
  border-bottom: none;
  border-right: none;
  background: #fff;
  padding: 1px 10px 2px 10px;
  color: #8c8c8c;
  border-radius: 4px;
}

/* Contact Page Specific Styles */
.map-address {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-address i {
  color: var(--color-secondary);
  margin-right: 0.5rem;
  width: 16px;
}

.iconIndent {
  margin-left: 1.5rem;
  display: inline-block;
}

/* Form Controls */
.form-control {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.75rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.2rem rgba(193, 145, 44, 0.25);
  outline: none;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.btn-secondary {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
  color: white;
}

.alert {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
}

.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--color-primary);
  color: var(--color-background);
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-nav {
  text-align: center;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-menu li {
  font-family: 'Kulim Park', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
}

.footer-menu a {
  color: var(--color-background);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.footer-menu a:hover {
  color: var(--color-secondary);
  background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-copyright {
  color: var(--color-background);
  font-size: 0.9em;
}

.footer-copyright p {
  margin: 0.25rem auto;
}

.site-credit {
  margin-top: 0.5rem;
}

.site-credit a {
  color: var(--color-secondary);
  text-decoration: none;
}

.site-credit a:hover {
  color: var(--color-background);
}

footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav.footer {
  text-align: right;
}

nav.footer li {
  display: inline-block;
  margin-left: 1rem;
  font-family: 'Kulim Park', sans-serif;
  font-weight: 200;
  text-transform: uppercase;
}

nav.footer li:first-child {
  margin-left: 0;
}

nav.footer li a {
  color: var(--color-background);
  text-decoration: none;
  transition: color 0.3s ease;
}

nav.footer li a:hover, 
nav.footer li.current a {
  color: var(--color-secondary);
}

.copyright {
  color: var(--color-background);
  font-size: 0.9em;
}

.copyright a {
  color: var(--color-secondary);
  text-decoration: none;
}

.copyright a:hover {
  color: var(--color-background);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.gold {
  color: var(--color-secondary);
}

.text-narrow {
  max-width: var(--max-width-text);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Image Rotator
   ========================================================================== */
div.rotator {
  position: relative;
  width: 211px;
  height: 300px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

div.rotator ul li {
  float: left;
  position: absolute;
  list-style: none;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

div.rotator ul li img {
  width: 211px;
  height: 300px;
  background: #FFF;
  border-radius: 8px;
}

div.rotator ul li.show {
  z-index: 500;
  opacity: 1;
}

/* ==========================================================================
   Images and Layout
   ========================================================================== */
.img-container {
  border: #fff 5px solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floatLeft {
  float: left;
  margin: 0 1em 0.5em 0;
}

/* Enhanced existing book row styles */
.row .col-md-4.col-lg-2,
.row .col-sm-12.col-md-4.col-lg-2 {
  text-align: center;
}

.row .col-md-8.col-lg-6,
.row .col-md-8.col-lg-10 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.row .col-md-8.col-lg-6 .btn,
.row .col-md-8.col-lg-10 .btn {
  align-self: flex-start;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-xs);
}

/* Mobile improvements for existing layout */
@media (max-width: 767.98px) {
  .row .col-md-4.col-lg-2,
  .row .col-sm-12.col-md-4.col-lg-2 {
    margin-bottom: var(--spacing-sm);
  }
  
  .row .col-md-8.col-lg-6,
  .row .col-md-8.col-lg-10 {
    text-align: center;
  }
  
  .row .col-md-8.col-lg-6 .btn,
  .row .col-md-8.col-lg-10 .btn {
    align-self: center;
    margin-right: 0;
    margin-bottom: var(--spacing-xs);
    width: 100%;
    max-width: 200px;
  }
  
  .floatLeft {
    float: none;
    margin: 0 0 1em 0;
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 767.98px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.5rem;
    --font-size-h3: 1.125rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topaddress p {
    text-align: center;
    margin: 2px 0 0;
  }

  nav.header li {
    text-align: center;
    width: 100%;
    font-size: 1.1em;
    line-height: 2.2em;
    border-top: 1px solid rgba(120, 120, 120, 0.2);
  }

  nav.header li:first-child {
    border-top: none;
  }

  .navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(193, 145, 44, 0.25);
  }

  .navbar-collapse {
    background: var(--color-background);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    padding: 1rem 0;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link:hover,
  .nav-link:focus {
    background: rgba(193, 145, 44, 0.1);
  }

  .nav-link.active {
    background: var(--color-secondary);
    color: var(--color-background);
  }

  .floatLeft {
    float: none;
    margin: 0 0 1em 0;
    width: 100%;
    text-align: center;
  }

  .slogan {
    font-size: 1.1em;
    padding: 0.75rem;
  }

  footer .inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  nav.footer {
    text-align: center;
  }

  nav.footer li {
    margin: 0 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .floatLeft {
    float: none;
    margin: 0 0 1em 0;
    width: 100%;
    text-align: center;
  }

  .slogan {
    font-size: 1em;
    padding: 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .floatLeft {
    float: none;
    margin: 0 0 1em 0;
    width: 100%;
    text-align: center;
  }
}

.slogan {
  font-size: 1.1em;
  padding: 0.75rem;
}

.footer-content {
  gap: var(--spacing-sm);
}

.footer-menu {
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-menu a {
  display: block;
  padding: 0.75rem 1rem;
}

.footer-bottom {
  padding-top: var(--spacing-sm);
}

/* ==========================================================================
   Page-Specific Styles
   ========================================================================== */

/* Dr. Steven Waterhouse page - full width paragraphs */
.dr-steven-waterhouse-page p {
  max-width: 100%;
}

/* ==========================================================================
   Featured Book Card - Modern Layout
   ========================================================================== */

.book-featured-card {
  background: var(--color-background);
  border-radius: 16px;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.book-featured-header {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.book-featured-image {
  flex-shrink: 0;
  width: 250px;
  text-align: center;
}

.book-featured-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  border: 4px solid var(--color-background);
}

.book-featured-image img:hover {
  transform: scale(1.05);
}

.book-featured-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-featured-content h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  font-weight: 600;
}

.book-description {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
  max-width: 100%;
}

.book-featured-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.book-featured-actions .btn {
  padding: 0.875rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  min-width: 140px;
  text-align: center;
}

.book-featured-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.book-featured-testimonials {
  margin-top: var(--spacing-md);
}

.book-featured-testimonials .carousel {
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-background);
}

.book-featured-testimonials .carousel-item {
  padding: var(--spacing-md);
  min-height: 120px;
  display: flex;
  align-items: center;
}

.book-featured-testimonials .blockquote {
  margin: 0;
  padding: var(--spacing-sm);
  background: var(--color-background);
  border-radius: 6px;
  border-left: 3px solid var(--color-secondary);
  text-align: center;
}

.book-featured-testimonials .blockquote p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
  font-style: italic;
}

.book-featured-testimonials .blockquote-footer {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

.book-featured-testimonials .carousel-indicators {
  bottom: 8px;
}

.book-featured-testimonials .carousel-indicators li {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: 1px solid var(--color-secondary);
}

.book-featured-testimonials .carousel-indicators .active {
  background-color: var(--color-secondary);
}

/* Mobile Responsive for Featured Book Card */
@media (max-width: 991.98px) {
  .book-featured-header {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .book-featured-image {
    width: 200px;
    margin: 0 auto;
  }
  
  .book-featured-content h3 {
    font-size: 1.25rem;
    text-align: center;
  }
  
  .book-description {
    text-align: center;
    font-size: 1rem;
  }
  
  .book-featured-actions {
    justify-content: center;
  }
  
  .book-featured-actions .btn {
    min-width: 120px;
  }
}

@media (max-width: 767.98px) {
  .book-featured-card {
    padding: var(--spacing-sm);
  }
  
  .book-featured-image {
    width: 150px;
  }
  
  .book-featured-content h3 {
    font-size: 1.125rem;
  }
  
  .book-description {
    font-size: 0.95rem;
  }
  
  .book-featured-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .book-featured-actions .btn {
    width: 100%;
    max-width: 200px;
  }
  
  .book-featured-testimonials {
    padding: var(--spacing-md);
  }
  
  .book-featured-testimonials .carousel-item {
    padding: var(--spacing-md);
    min-height: 150px;
  }
  
  .book-featured-testimonials .blockquote {
    padding: var(--spacing-sm);
  }
  
  .book-featured-testimonials .blockquote p {
    font-size: 1rem;
  }
  
  .book-featured-testimonials .blockquote-footer {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Coming Soon Section Styles
   ========================================================================== */

/* Coming Soon Card Styles */
.coming-soon-card {
    background: linear-gradient(135deg, var(--color-background) 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--color-secondary);
    text-align: center;
}

.coming-soon-header {
    margin-bottom: var(--spacing-md);
}

.coming-soon-title {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
}

.coming-soon-title i {
    color: var(--color-secondary);
    font-size: 1.3rem;
}

.coming-soon-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    margin-left: auto;
    margin-right: auto;
}

.language-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
}

.language-badge {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.language-badge.coming-soon {
    background: var(--color-secondary);
    animation: pulse 2s infinite;
}

.language-badge i {
    font-size: 0.8rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Lead Text */
.lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Text Link Enhancement */
.text-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Mobile Responsive for Coming Soon Section */
@media (max-width: 767.98px) {
    .coming-soon-card {
        padding: var(--spacing-md);
    }
    
    .coming-soon-title {
        font-size: 1.25rem;
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .coming-soon-description {
        font-size: 1rem;
    }
    
    .coming-soon-subtitle {
        font-size: 0.95rem;
    }
    
    .language-badges {
        gap: var(--spacing-xs);
    }
    
    .language-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .language-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .language-badge {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* ==========================================================================
   Author Featured Card Styles
   ========================================================================== */

.author-featured-card {
    background: var(--color-background);
    border-radius: 16px;
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--color-border);
}

.author-featured-header {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.author-featured-image {
    flex: 0 0 200px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.author-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.author-featured-image img:hover {
    transform: scale(1.05);
}

.author-featured-content {
    flex: 1;
    min-width: 0;
}

.author-name {
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-transform: none;
    letter-spacing: normal;
}

.author-name i {
    color: var(--color-secondary);
    font-size: 1.3rem;
}

.author-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    max-width: none;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    max-width: none;
}

.author-works {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 0;
    opacity: 0.9;
    max-width: none;
}

/* Enhanced Rotator for Author Section */
.author-featured-image .rotator {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
}

.author-featured-image .rotator ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.author-featured-image .rotator ul li {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.author-featured-image .rotator ul li.show {
    opacity: 1;
    z-index: 2;
}

.author-featured-image .rotator ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Responsive for Author Cards */
@media (max-width: 991.98px) {
    .author-featured-header {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .author-featured-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .author-name {
        font-size: 1.3rem;
        justify-content: center;
    }
    
    .author-description {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .author-featured-card {
        padding: var(--spacing-md);
    }
    
    .author-featured-image {
        max-width: 180px;
    }
    
    .author-featured-image .rotator {
        height: 300px;
    }
    
    .author-name {
        font-size: 1.2rem;
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    .author-description {
        font-size: 0.95rem;
    }
    
    .author-bio {
        font-size: 0.9rem;
    }
    
    .author-works {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .author-featured-image {
        max-width: 150px;
    }
    
    .author-featured-image .rotator {
        height: 250px;
    }
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* Contact Form Card */
.contact-form-card {
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg);
  height: 100%;
  border: 1px solid var(--color-border);
}

/* Contact Success State */
.contact-success {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: var(--spacing-md);
}

.contact-success h2 {
  color: #28a745;
  margin-bottom: var(--spacing-sm);
}

.contact-success p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin: 0 auto;
}

/* Contact Form Header */
.contact-form-header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.contact-form-header h2 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.75rem;
}

.contact-form-header h2 i {
  color: var(--color-secondary);
  margin-right: var(--spacing-xs);
}

.contact-form-header p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 1rem;
}

/* Contact Form Styling */
.contact-form .form-group {
  margin-bottom: var(--spacing-md);
}

.contact-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.contact-form label i {
  color: var(--color-secondary);
  margin-right: var(--spacing-xs);
  width: 16px;
}

.contact-form .form-control {
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fafafa;
}

.contact-form .form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(193, 145, 44, 0.1);
  background-color: var(--color-background);
}

.contact-form .form-control::placeholder {
  color: #999;
  font-style: italic;
}

/* Verification Image */
.verification-image {
  text-align: center;
  padding: var(--spacing-sm);
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.verification-image img {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.form-actions .btn {
  flex: 1;
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-actions .btn i {
  margin-right: var(--spacing-xs);
}

/* Contact Info Card */
.contact-info-card {
  background: var(--color-background);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg);
  height: 100%;
  border: 1px solid var(--color-border);
}

/* Contact Info Header */
.contact-info-header {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.contact-info-header h2 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.75rem;
}

.contact-info-header h2 i {
  color: var(--color-secondary);
  margin-right: var(--spacing-xs);
}

.contact-info-header .lead {
  color: var(--color-text-light);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Contact Details */
.contact-details h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: var(--spacing-xs);
}

.contact-details h3 i {
  color: var(--color-secondary);
  margin-right: var(--spacing-xs);
}

/* Address and Contact Items */
.address-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
}

.address-item,
.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  transition: none;
}

.address-item:hover,
.contact-item:hover {
  box-shadow: none;
  transform: none;
}

.address-item:last-child,
.contact-item:last-child {
  margin-bottom: 0;
}

.address-item i,
.contact-item i {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-right: var(--spacing-sm);
  margin-top: 2px;
  width: 20px;
  text-align: center;
}

.address-item div,
.contact-item div {
  flex: 1;
  line-height: 1.5;
}

.address-item strong,
.contact-item strong {
  color: var(--color-primary);
  font-weight: 600;
}

.address-item a,
.contact-item a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.address-item a:hover,
.contact-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Map Container */
.map-container {
  height: 100%;
}

.map-container h4 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.125rem;
  text-align: center;
}

.map-container h4 i {
  color: var(--color-secondary);
  margin-right: var(--spacing-xs);
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

.map-wrapper iframe {
  display: block;
  transition: all 0.3s ease;
}

.map-wrapper:hover iframe {
  transform: scale(1.02);
}

/* Alert Styling */
.alert {
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-md);
  margin-top: var(--spacing-xs);
  border: none;
  font-size: 0.9rem;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert i {
  margin-right: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .contact-form-card,
  .contact-info-card {
    margin-bottom: var(--spacing-lg);
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .contact-form-card,
  .contact-info-card {
    padding: var(--spacing-md);
  }
  
  .contact-form-header h2,
  .contact-info-header h2 {
    font-size: 1.5rem;
  }
  
  .contact-details h3 {
    font-size: 1.125rem;
  }
  
  .address-item,
  .contact-item {
    padding: var(--spacing-xs);
  }
  
  .address-item i,
  .contact-item i {
    font-size: 1rem;
    margin-right: var(--spacing-xs);
  }
  
  .map-wrapper iframe {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .contact-form-card,
  .contact-info-card {
    padding: var(--spacing-sm);
  }
  
  .contact-form .form-control {
    padding: 10px 12px;
  }
  
  .form-actions {
    gap: var(--spacing-xs);
  }
  
  .map-wrapper iframe {
    height: 200px;
  }
} 