/* style/contact.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light: #f5f5f5;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-bg-light-mode: #ffffff;
  --border-color: #e0e0e0;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherits from body */
  padding-top: 120px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Adjust for fixed header on mobile */
  }
}

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

@media (max-width: 768px) {
  .page-contact__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

.page-contact__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .page-contact__section-title {
    font-size: 2em;
    padding: 0 10px;
  }
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }
}

.page-contact__card {
  background: var(--card-bg-dark-mode); /* Card background for dark mode */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

.page-contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__text-dark {
  color: var(--text-dark) !important; /* For light background sections */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 2;
}

.page-contact__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 30px;
  border-radius: 10px;
  color: var(--text-light);
}

.page-contact__main-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-contact__title-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-light);
  line-height: 1.5;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--background-dark);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-primary:hover {
  background: darken(var(--primary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-contact__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    height: 450px;
  }
  .page-contact__hero-content {
    padding: 20px;
  }
  .page-contact__main-title {
    font-size: 2.2em;
  }
  .page-contact__title-description {
    font-size: 1em;
  }
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
}

/* Contact Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-contact__contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-contact__channel-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__channel-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.page-contact__channel-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__channel-text {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__channel-button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 20px;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-contact__social-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-contact__social-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

@media (max-width: 768px) {
  .page-contact__info-section {
    padding: 60px 0;
  }
  .page-contact__channel-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__channel-title {
    font-size: 1.5em;
  }
  .page-contact__channel-text {
    font-size: 0.95em;
  }
  .page-contact__channel-item, .page-contact__social-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-contact__channel-button, .page-contact__social-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--background-light); /* Light background for FAQ */
}

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-light-mode);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}

.page-contact__faq-question:hover {
  background: #f0f0f0;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--text-dark);
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--background-light);
  color: var(--text-dark);
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to accommodate content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .page-contact__faq-section {
    padding: 60px 0;
  }
  .page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-question h3 {
    font-size: 1em;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-contact__faq-answer {
    padding: 0 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Brand Section */
.page-contact__brand-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-contact__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__brand-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__brand-icon {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.page-contact__brand-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__brand-text {
  font-size: 0.95em;
  color: var(--text-light);
  flex-grow: 1;
}

@media (max-width: 768px) {
  .page-contact__brand-section {
    padding: 60px 0;
  }
  .page-contact__brand-icon {
    width: 100px;
    height: 100px;
  }
  .page-contact__brand-title {
    font-size: 1.3em;
  }
  .page-contact__brand-text {
    font-size: 0.9em;
  }
  .page-contact__brand-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Blog Section */
.page-contact__blog-section {
  padding: 80px 0;
  background-color: var(--background-light); /* Light background for blog */
}

.page-contact__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__blog-item {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-contact__blog-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-dark);
}

.page-contact__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.page-contact__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
  flex-grow: 1;
}

.page-contact__blog-item-excerpt {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-contact__blog-item-date {
  font-size: 0.85em;
  color: #777;
  font-style: italic;
  margin-top: auto;
}

@media (max-width: 768px) {
  .page-contact__blog-section {
    padding: 60px 0;
  }
  .page-contact__blog-item-image {
    height: 180px;
  }
  .page-contact__blog-item-title {
    font-size: 1.1em;
  }
  .page-contact__blog-item-excerpt {
    font-size: 0.9em;
  }
  .page-contact__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* General Image and Video Responsiveness */
.page-contact img, .page-contact video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__hero-image, .page-contact__channel-icon, .page-contact__brand-icon, .page-contact__blog-item-image {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-contact img,
  .page-contact video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-image,
  .page-contact__channel-icon,
  .page-contact__brand-icon,
  .page-contact__blog-item-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__faq-section,
  .page-contact__brand-section,
  .page-contact__blog-section,
  .page-contact__contact-channels,
  .page-contact__brand-content,
  .page-contact__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}