@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&family=Lato:wght@400;600;700&family=Merriweather:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600&display=swap');

/* ===========================
   Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   Layout & Container
   =========================== */
.site-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 40px rgba(0,0,0,0.1);
}  

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#content {
  padding-top: 0;
}

.books-section,
.box-section,
.home-authors-section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

html {
	scrollbar-gutter: stable;
  overflow-y: scroll;
}

/* ===========================
   Typography
   =========================== */
body {
  font-family: 'Montserrat', sans-serif;
  background: #e8e8e8;
  color: #1d262f;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: #2e3338;
  margin-bottom: 0.6em;
}

.container-heading {
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  color: #2e3338;
  margin: 10px auto 30px auto;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  background-color: #c88a2a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn:hover {
  background-color: #a6721f;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ===========================
   Header Styles
   =========================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #eee;
  padding: 15px 0 30px 0;
}

.site-branding img {
  max-height: 100px;
  width: 280px;
  margin-left: 100px;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.header-links a {
  color: #333333;
  font-weight: normal;
  font-size: 16px;
  text-transform: uppercase;
  position: relative;
  padding: 5px 0;
  text-decoration: none;
}

.header-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #004F86;
  transition: width 0.3s ease;
}

.header-links a:hover {
  color: #004F86;
}

.header-links a:hover:after {
  width: 100%;
}

.header-links a.active {
  color: #004F86;
  font-weight: 600;
}

.header-links a.active:after {
  width: 100%;
  height: 2px;
  background-color: #004F86;
}

.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: color 0.3s ease, transform 0.2s ease;
  margin-left: 20px;
  margin-right: 80px;
}

.search-icon-btn:hover {
  color: #004F86;
  transform: translateY(-2px);
}

.search-icon-btn svg {
  display: block;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  margin: 10px auto;
  order: 2;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #004F86;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  text-align: center;
}

.mobile-menu a {
  color: #333;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu input[type="text"] {
  margin-top: 10px;
  padding: 6px 10px 6px 30px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
  max-width: 220px;
  width: 80%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 14px 14px;
}

.search-heading {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

/* ===========================
   Montage Section
   =========================== */
.site-montage {
  background: linear-gradient(135deg, #4a5f7f 0%, #5a6f8f 100%);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  margin: 0;
  color: #fff;
}

.montage-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/php-montage.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.montage-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 62, 80, 0.45);
  z-index: 1;
}

.montage-content {
  position: relative;
  z-index: 2;
}

.montage-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: inherit;
}

.montage-line-1 {
  display: inline;
}

.montage-line-2 {
  display: none;
}

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

.coming-soon-section {
  padding: 40px 20px;
  background: #fff;
}

.coming-soon-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 30px 40px 20px;
  background: #fff;
}

.coming-soon-label {
  position: absolute;
  top: -12px;
  left: -12px;
  background: #003366;
  color: #fff;
  padding: 8px 30px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 10;
  white-space: nowrap;
  pointer-events: none;
}

.coming-soon-wrapper:hover .coming-soon-label {
  background: #004d99;
}

.coming-soon-list {
  font-size: 1.2rem;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
  text-align: left;
  margin-top: 15px;
}

.coming-soon-list div {
  padding: 10px 0;
}

/* ===========================
   Carousel Section
   =========================== */
.carousel-section {
  background: #f5f5f5;
  padding: 30px 200px;
  margin: 0;
}

.carousel-container {
  position: relative;
}

.book-carousel {
  overflow: hidden;
}

#carousel-slider .swiper-slide {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 80px;
  align-items: start;
}

.book-info {
  color: #333;
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 400px;
  align-items: start;
}

.carousel-info-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  cursor: pointer;
}

.carousel-info-link:hover .carousel-title {
  text-decoration: underline;
}

.carousel-read-more {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #c88a2a;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  transition: background-color 0.3s ease, transform 0.1s ease;
  justify-self: start;
}

.carousel-info-link:hover .carousel-read-more {
  background-color: #a6721f;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.carousel-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.carousel-author {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.carousel-description {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #555;
  transition: opacity 0.3s ease;
}

.author-book {
  position: relative;
  padding-bottom: 35px;
}

#carousel-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#carousel-slider .swiper-wrapper {
  align-items: stretch;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #000000;
  width: 44px;
  height: 44px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  font-size: 24px;
  font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.9);
}

.swiper-button-prev {
  display: none;
}

.swiper-button-next {
  right: 5px;
}

.carousel-book-cover {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.dot.active {
  background-color: #ffffff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Book Grid
   =========================== */

.grid-heading {
  text-align: left;
  font-size: 24px;
  color: #2e3338;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.grid-header h2 {
  margin: 0 0 0 30px;
}

.grid-button {
  margin-right: 30px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-block;
}

.books-grid-container {
  margin: 0 0 10px 0;
  padding-top: 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  row-gap: 30px;
  max-width: 100%;
  overflow: hidden;
}

.grid-book-item {
  display: flex;
  justify-content: flex-start;
  max-width: 100%;
  overflow: hidden;
}

.grid-book-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

.grid-book-image:hover {
  transform: translateY(-5px);
}

.books-section {
  padding: 30px 20px 30px 0;
}

.books-section .container {
  max-width: none;
  padding: 0 20px;
  margin: 0;
}

/* ===========================
   Spotlight
   =========================== */
.spotlight-heading {
  text-align: left;
  font-size: 24px;
  color: #2e3338;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  margin-top: 20px;
}

.spotlight-header {
  margin-bottom: 10px;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 0;
}

.box {
  background: #f8f8f8;
  border: 1px solid #ddd;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.box-image {
  position: relative;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.box-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.box-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.box-book-cover {
  position: relative;
  z-index: 3;
  max-width: 200px;
  max-height: 300px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.box-content {
  padding: 25px;
  background: #f8f8f8;
}

.box-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c3e50;
  line-height: 1.3;
}

.box-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
}

.box-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.box-link:hover {
  color: #a6721f;
  border-color: #a6721f;
}

/* ===========================
   Featured Authors Section
   =========================== */
.home-authors-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 0;
}

.home-authors-heading {
  text-align: left;
  font-size: 24px;
  color: #2e3338;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-left: 0;
  margin: 0;
}

.home-authors-button {
  margin-right: 16px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1;
  flex: 0 0 auto;
  display: inline-block;
}

.home-authors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.home-author-polaroid {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin-top: 20px;
}

.home-author-polaroid:hover {
  transform: translateY(-5px);
}

.home-author-photo {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 4/5;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.home-author-photo img,
.home-author-photo picture,
.home-author-photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-author-polaroid-name {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  margin-top: 10px;
}

.home-author-polaroid > a {
  text-decoration: none;
  border-bottom: 0;
  color: inherit;
}
.home-author-polaroid > a:hover,
.home-author-polaroid > a:focus {
  text-decoration: none;
  border-bottom: 0;
}

.home-authors-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background-color: #eee;
  padding: 20px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-content {
  flex: 0 1 auto;
  text-align: left;
  font-size: 0.9em;
  color: #444;
  line-height: 1.8;
}

.footer-content p {
  margin: 0 15px 0 0;
}

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

.footer-newsletter {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
}

.footer-newsletter h3 {
  font-size: 1rem;
  color: #003366;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.footer-newsletter form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.footer-newsletter .newsletter-email {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 250px;
  font-size: 0.9rem;
}

.footer-newsletter .newsletter-btn {
  padding: 8px 20px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}

.footer-newsletter .newsletter-btn:hover {
  background: #00804d;
}

.footer-newsletter .form-response {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
