/* ==========================================================================
   Sri Kanchi Kamakoti Peetam - Custom Theme Overrides & Additions
   ========================================================================== */

/* Full-Width Top Banner Styles */
.top-banner-container {
  width: 100%;
  margin-bottom: 2.5em;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-banner-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.top-banner-container img {
  display: block;
  width: 100%;
  height: auto;
}

/* Banner Side Image Stylings */
#banner .image.object {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Flex layout helper for centered sections */
.align-center {
  text-align: center;
  margin-top: 2.5em;
  width: 100%;
}

/* Enhancements for action buttons in columns */
ul.actions.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1.5em;
}

ul.actions.banner-actions li {
  padding: 0;
}

/* Seva Features Grid Enhancement */
.features article {
  border-bottom: solid 1px rgba(210, 215, 217, 0.5);
  padding-bottom: 1.5em;
}

.features article:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Comparison Table Styles (Migrated from style.css)
   ========================================================================== */
.comparison {
  max-width: 940px;
  margin: 0 auto;
  font: 13px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
  padding: 10px;
}

.comparison table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
  border-bottom: 1px solid #CCC;
}

.comparison td, .comparison th {
  border-right: 1px solid #CCC;
  empty-cells: show;
  padding: 10px;
}

.compare-heading {
  font-size: 18px;
  font-weight: bold !important;
  border-bottom: 0 !important;
  padding-top: 10px !important;
}

.comparison tbody tr:nth-child(odd) {
  display: none;
}

.comparison .compare-row {
  background: #F5F5F5;
}

.comparison th {
  font-weight: normal;
  padding: 0;
  border-bottom: 1px solid #CCC;
}

.comparison tr td:first-child {
  text-align: center;
  font-size: 20px;
  color: #000000;
}
  
.comparison .qbse, .comparison .qbo, .comparison .tl {
  color: #FFF;
  padding: 10px;
  font-size: 13px;
  border-right: 1px solid #CCC;
  border-bottom: 0;
}

.comparison .tl2 {
  border-right: 0;
}

.comparison .qbse {
  background: #0078C1;
  border-top-left-radius: 3px;
  border-left: 0px;
}

.comparison .qbo {
  background: #009E2C;
  border-top-right-radius: 3px;
  border-right: 0px;
}

.comparison .price-info {
  padding: 5px 15px 15px 15px;
}

.comparison .price-now, .comparison .price-now span {
  color: #ff5406;
}

.comparison .price-now span {
  font-size: 34px;
}

.comparison .price-buy {
  background: #ff5406;
  padding: 10px 20px;
  font-size: 12px;
  display: inline-block;
  color: #FFF;
  text-decoration: none;
  border-radius: 3px;
  text-transform: uppercase;
  margin: 5px 0 10px 0;
}

@media (max-width: 767px) {
  .comparison td:first-child, .comparison th:first-child {
    display: none;
  }
  .comparison tbody tr:nth-child(odd) {
    display: table-row;
    background: #F7F7F7;
  }
  .comparison .row {
    background: #FFF;
  }
  .comparison td, .comparison th {
    border: 1px solid #CCC;
  }
  .price-info {
    border-top: 0 !important;
  }
}

@media (max-width: 639px) {
  .comparison .price-buy {
    padding: 5px 10px;
  }
  .comparison td, .comparison th {
    padding: 10px 5px;
  }
  .comparison .hide-mobile {
    display: none;
  }
  .comparison .price-now span {
    font-size: 16px;
  }
  .comparison .qbse, .comparison .qbo {
    font-size: 12px;
    padding: 10px 5px;
  }
  .comparison .price-buy {
    margin-top: 10px;
  }
  .compare-heading {
    font-size: 13px;
  }
}

/* ==========================================================================
   Books Page Redesign
   ========================================================================== */
.books-section {
  padding: 1.5rem 0 3rem 0;
}

.books-section .main-header {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid #f2f4f5;
  padding-bottom: 1.5rem;
}

.books-section .page-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #3d4449;
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.books-section .page-subtitle {
  font-size: 1.05rem;
  color: #7f8c8d;
  max-width: 800px;
  line-height: 1.6;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media screen and (max-width: 980px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.book-card {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(220, 224, 226, 0.6);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.book-image-wrapper {
  flex: 0 0 180px;
  position: relative;
  background: #fdfdfd;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(220, 224, 226, 0.4);
  overflow: hidden;
}

.book-image {
  max-width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

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

.book-details {
  flex: 1;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.book-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.book-badge {
  background: #fff9f0;
  color: #e67e22;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #fdebd0;
}

.book-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #3d4449;
  margin: 0 0 0.75rem 0 !important;
  line-height: 1.3;
}

.book-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.book-action {
  margin-top: auto;
}

.book-action .button {
  width: 100%;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .book-card {
    flex-direction: column;
  }
  .book-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    height: 220px;
    border-right: none;
    border-bottom: 1px solid rgba(220, 224, 226, 0.4);
  }
  .book-image {
    max-height: 180px;
  }
  .book-details {
    padding: 1.25rem;
  }
}
/* ==========================================================================
   Footer Info Grid & Motto
   ========================================================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 2.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(220, 224, 226, 0.5);
  align-items: flex-start;
}

.footer-column h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d4449;
  margin-bottom: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.contact-info li i {
  color: #e67e22;
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

.contact-info li a {
  color: #e67e22;
  text-decoration: none;
  border-bottom: none;
}

.contact-info li a:hover {
  color: #d35400;
}

.spiritual-motto {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.motto-box {
  background: #fffdf9;
  border: 1px solid #fdebd0;
  padding: 1.25rem;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.02);
}

.motto-sanskrit {
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  color: #e67e22;
  font-size: 0.95rem;
  margin-bottom: 0.4rem !important;
}

.motto-sanskrit-devanagari {
  font-size: 1.15rem;
  font-weight: 700;
  color: #d35400;
  margin-bottom: 0.2rem !important;
}

.motto-translation {
  font-size: 0.8rem;
  font-style: italic;
  color: #7f8c8d;
  margin-bottom: 0 !important;
}

@media screen and (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .motto-box {
    max-width: 400px;
    margin: 0 auto;
  }
}
