/*
 * Custom styles for the True Gospel Message website.
 *
 * Color palette inspired by research on color psychology: blue conveys trust and
 * reliability while yellow evokes optimism and positivity【942444242319115†L176-L185】. The
 * 60‑30‑10 rule guides the proportions between primary, secondary and accent
 * colours to achieve balance and visual comfort【742895425191536†L375-L379】. We use high
 * contrast and simple typography for readability and accessibility【6131423827896†L196-L204】.
 */

:root {
  --primary-color: #1E3A8A; /* deep blue */
  --secondary-color: #F9FAFB; /* very light neutral background */
  --accent-color: #F4D35E; /* warm yellow accent */
  --text-color: #333333; /* dark gray for text */
  --card-background: #FFFFFF; /* white cards */
  --box-shadow: rgba(0, 0, 0, 0.05) 0px 4px 6px;
  --border-radius: 8px;
}

/* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: var(--secondary-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  height: 100%;
}

main, .section {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation bar */
.navbar {
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.menu li a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem;
}

.menu li a:hover,
.menu li a:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
}

/* Hamburger icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
}

/* More dropdown styles */
.more-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  display: none;
  background-color: var(--primary-color);
  list-style: none;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  min-width: 180px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  z-index: 1001;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu li a {
  display: block;
  color: #fff;
  padding: 0.5rem 1rem;
}

.dropdown-menu li a:hover,
.dropdown-menu li a:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero {
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: #fff;
  text-align: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Button styles */
.button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.2s ease-in-out;
}

/* On hover, use a slightly darker shade of the accent colour. */
.button:hover,
.button:focus {
  background-color: #e0b947;
}

.button.secondary {
  background-color: var(--primary-color);
  color: #fff;
}

.button.secondary:hover,
  .button.secondary:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Generic section styles */
.section {
  padding: 3rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.section p {
  margin-bottom: 1rem;
  max-width: 800px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--card-background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.card p {
  flex: 1;
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    width: 100%;
  }

  .menu li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-content {
    width: 100%;
    justify-content: space-between;
  }

  /* Dropdown behaves like normal list in mobile */
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 0;
  }
}

/* Utility classes */
.container.nav-content {
  padding: 0.5rem 1rem;
}

/* Video page layout */
.video-container {
  display: flex;
  gap: 2rem;
}

.video-content {
  flex: 2;
}

.video-content h1 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.video-description {
  margin-top: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.download-links h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.download-links ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.download-links li {
  margin-bottom: 0.5rem;
}

.download-links a {
  color: var(--primary-color);
  font-weight: 600;
}

.suggestions {
  flex: 1;
  background-color: var(--card-background);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  max-height: 100%;
  overflow-y: auto;
}

.suggestions h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.suggestion-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.suggestion-item a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
}

.suggestion-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 0.75rem;
}

.suggestion-title {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Make video page responsive */
@media (max-width: 768px) {
  .video-container {
    flex-direction: column;
  }
  .suggestions {
    margin-top: 2rem;
  }
}