/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 100vw;
  overflow-x: hidden;
}

.header-container {
  padding: 0.75rem 0;
}

.header-container .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.logo a:hover {
  color: #2563eb;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 2vw, 2.5rem);
}

nav a {
  font-family: 'Montserrat', sans-serif;
  color: #333333;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.875rem, 1.5vw, 1.1rem);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  color: #1e3a8a;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #1e3a8a;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333333;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: #1e3a8a;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }
}

/* Footer Styles */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(1rem, 2vw, 2rem);
  position: relative;
  margin-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.footer-col h3 {
  color: #ffffff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.footer-col p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  width: clamp(32px, 5vw, 40px);
  height: clamp(32px, 5vw, 40px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-links a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.footer-links a:hover::before {
  opacity: 1;
  left: -15px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-cta .btn {
  width: 100%;
  text-align: center;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footer-cta .btn i {
  margin-right: 0.5rem;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: #999999;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 480px) {
  footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.about-img {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.about-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
  width: 100%;
}

/* Book Featured Section */
.book-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.book-mockup {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.book-featured-details {
  width: 100%;
}

/* Social Media Section */
.social-platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.social-platform-card {
  text-align: center;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.social-platform-card:hover {
  transform: translateY(-5px);
}

/* Media Center Section */
.media-section {
  background: #f8f9fa;
  padding: 4rem 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.media-card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.media-card:hover {
  transform: translateY(-5px);
}

.media-card h3 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.audio-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.audio-player audio {
  width: 100%;
  margin: 0.5rem 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.video-item {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-item iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.teach-card .purchase-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 4rem;
}

.teach-card .purchase-options .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.teach-card .purchase-options .btn i {
  font-size: 1.2rem;
}

.teach-card h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.teach-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .teach-card .purchase-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Success and Cancel Pages */
.success-container,
.cancel-container {
    max-width: 600px;
    margin: 100px auto;
    padding: 2rem;
    text-align: center;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-container h1,
.cancel-container h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-container p,
.cancel-container p {
    color: var(--text-color);
    margin-bottom: 2rem;
}

.success-container .btn,
.cancel-container .btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.success-container .btn:hover,
.cancel-container .btn:hover {
    background: var(--primary-color-dark);
}

.book-links .purchase-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 5rem;
}

.book-links .purchase-options .btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.book-links .purchase-options .btn i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .book-links .purchase-options {
    grid-template-columns: repeat(2, 1fr);
  }
}

.book-highlights {
  margin-bottom: 3rem;
  list-style: none;
  padding-left: 0;
}

.book-highlights li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.book-highlights li i {
  color: var(--primary-color);
  margin-top: 0.25rem;
}

/* Contact Form Message Styles */
.form-message {
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 5px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.form-message.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

.form-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.form-message.info {
  background-color: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
}

/* Amazon indicator on buttons */
.book-purchase-btn small {
  font-size: 0.7em;
  opacity: 0.9;
  vertical-align: middle;
  margin-left: 2px;
}

/* Add Amazon color to both eBook and Paperback buttons */
.book-purchase-btn[data-format="ebook"],
.book-purchase-btn[data-format="paperback"] {
  position: relative;
  overflow: hidden;
}

.book-purchase-btn[data-format="ebook"]::after,
.book-purchase-btn[data-format="paperback"]::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background-color: #FF9900; /* Amazon's orange color */
} 