/* ============================================
   WORD OF GUIDANCE - MAIN STYLESHEET
   ============================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #64B5F6; /* Light blue color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #1565C0; /* Slightly darker blue on hover */
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lora', serif;
  line-height: 1.3;
  margin-bottom: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #1565C0 0%, #42A5F5 70%, #80D8FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Gradient Animation */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(100, 181, 246, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(100, 181, 246, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1rem;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  box-shadow: 0 8px 32px rgba(100, 181, 246, 0.15);
}

.logo-section {
  flex: 0 0 auto;
}

.logo {
  font-family: 'Lora', serif;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.logo:hover {
  color: #64B5F6;
  transform: translateY(-1px);
}

.logo-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  background: linear-gradient(135deg, #1a1a1a 0%, #64B5F6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  font-style: italic;
  color: #666;
  margin-top: 0.1rem;
  letter-spacing: 0.3px;
  opacity: 0.8;
}

/* Language Switcher in Header */
.language-switcher-header {
  position: relative;
  margin-right: 1rem;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
  transition: all 0.3s ease;
}

.lang-switcher-btn:hover {
  background: #f5f5f5;
  border-color: #FFC300;
}

.lang-icon {
  width: 20px;
  height: 20px;
  color: #FFC300;
}

.lang-text {
  font-weight: 500;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #f5f5f5;
}

.lang-option.active {
  background: #e8f4f8;
  color: #FFC300;
  font-weight: 600;
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.menu-toggle .hamburger {
  width: 24px;
  height: 2px;
  background-color: #333;
  display: block;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Navigation */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.6rem 1rem;
  color: #333;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #64B5F6;
  background: rgba(100, 181, 246, 0.05);
  border-color: rgba(100, 181, 246, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(100, 181, 246, 0.15);
}

/* Button-like styling for smaller screens */
@media (max-width: 1200px) {
  .nav-link {
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(100, 181, 246, 0.15);
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    backdrop-filter: blur(10px);
  }
  
  .nav-link:hover {
    background: #64B5F6;
    color: white;
    border-color: #64B5F6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.25);
  }
}

.nav-item.has-children > .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-indicator {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
}

.nav-item.has-children:hover > .nav-link .dropdown-indicator {
  transform: rotate(180deg);
}

/* Submenu */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 1rem 0;
  border: 1px solid rgba(255, 195, 0, 0.1);
  pointer-events: none;
}

/* Show submenu on hover - works for all screen sizes */
.nav-item.has-children:hover > .submenu,
.nav-item.has-children.hover > .submenu,
.nav-item.has-children.active > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.submenu .nav-item {
  width: 100%;
}

.submenu .nav-link {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(100, 181, 246, 0.05);
  border-radius: 8px;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
}

.submenu .nav-link:hover {
  background: rgba(100, 181, 246, 0.1);
  color: #42A5F5;
  transform: translateX(4px);
  box-shadow: none;
}

.submenu .nav-item:last-child .nav-link {
  border-bottom: none;
}

/* Nested Submenu (3rd level) - Appears on the right */
.submenu-nested {
  top: -0.5rem; /* Aligns with the top of the parent item */
  left: 100%;
  margin-left: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.submenu .nav-item.has-children {
  position: relative;
}

.submenu .nav-item.has-children > .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.submenu .nav-item.has-children > .nav-link .dropdown-indicator {
  border-left: 4px solid currentColor;
  border-right: none;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: none;
}

.submenu .nav-item.has-children:hover > .nav-link .dropdown-indicator {
  transform: translateX(3px);
}

/* Show nested submenu on hover (desktop) */
@media (min-width: 1024px) {
  .submenu .nav-item.has-children:hover > .submenu-nested {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
  }
}

/* Show nested submenu on click (mobile) */
.submenu .nav-item.has-children.active > .submenu-nested {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  position: static;
  max-height: 500px; /* for mobile dropdown animation */
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  min-height: calc(100vh - 200px);
}

/* ============================================
   HERO SECTION (HOME PAGE)
   ============================================ */

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero-quote {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  border-left: 4px solid #FFC300;
  border-radius: 4px;
}

.quote-text {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #555;
  line-height: 1.8;
}

.quote-line {
  display: block;
}

.hero-content {
  background-color: #fff;
}

.welcome-section {
  max-width: 900px;
  margin: 0 auto;
}

.welcome-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #222;
}

.welcome-title .highlight {
  color: #FFC300;
  font-weight: 700;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #444;
}

.intro-text strong {
  color: #222;
  font-weight: 600;
}

.closing-text {
  margin-top: 2rem;
  font-size: 1rem;
  color: #666;
}

.author-name {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
  letter-spacing: 2px;
}

/* ============================================
   PAGE LAYOUTS
   ============================================ */

.single-page,
.list-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  color: #888;
  font-weight: 300;
  margin-bottom: 0;
}

.page-content {
  line-height: 1.8;
  color: #444;
}

.page-content p {
  margin-bottom: 1.5rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
  border: 1px solid #e0e0e0;
  background-color: #fff;
}

.page-content table th,
.page-content table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
}

.page-content table th:last-child,
.page-content table td:last-child {
  border-right: none;
}

.page-content table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #222;
  border-bottom: 2px solid #ddd;
}

.page-content table tr:last-child td {
  border-bottom: none;
}

.page-content table tr:hover {
  background-color: #fafafa;
}

.page-content table a {
  color: #64B5F6;
  text-decoration: none;
  font-weight: 500;
}

.page-content table a:hover {
  text-decoration: underline;
}

.page-content ul,
.page-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: #64B5F6;
  text-decoration: underline;
}

.page-content a:hover {
  color: #E6B800;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
}

.contact-content {
  line-height: 1.8;
}

.contact-content p {
  margin-bottom: 1.5rem;
  color: #444;
}

.contact-form {
  margin-top: 2rem;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #222;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FFC300;
  box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group.honeypot {
  display: none;
}

.submit-btn {
  background-color: #FFC300;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #E6B800;
}

.submit-btn:active {
  transform: translateY(1px);
}

/* ============================================
   VIDEOS & AUDIOS PAGES
   ============================================ */

.page-content hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 2px solid #e0e0e0;
}

.videos-page .page-content,
.audios-page .page-content {
  max-width: 100%;
}

.videos-page h2,
.audios-page h2 {
  clear: both;
}

/* Video embed styling */
.video-embed {
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

/* ============================================
 
   ============================================ */

.video-players-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 3px solid #e0e0e0;
}

.video-player-container {
  margin-bottom: 4rem;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.video-player-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #222;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid #64B5F6;
}

.player-wrapper {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.video-list {
  max-height: 600px;
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  scroll-behavior: smooth;
}

.video-list::-webkit-scrollbar {
  width: 8px;
}

.video-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.video-list::-webkit-scrollbar-thumb {
  background: #FFC300;
  border-radius: 4px;
}

.video-list::-webkit-scrollbar-thumb:hover {
  background: #42A5F5;
}

.video-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  border: 2px solid transparent;
}

.video-item:hover {
  background: #f5f5f5;
  transform: translateX(4px);
  border-color: #e0e0e0;
}

.video-item.active {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf7 100%);
  border-color: #FFC300;
  box-shadow: 0 2px 8px rgba(100, 181, 246, 0.2);
}

.video-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.video-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.video-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-item.active .video-title {
  color: #FFC300;
}

.video-duration {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

.video-player {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

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

/* Responsive Design for Video Players */
@media (max-width: 1200px) {
  .player-wrapper {
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
  }

  .video-item img {
    width: 100px;
    height: 75px;
  }

  .video-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 1023px) {
  .player-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-list {
    max-height: 400px;
    order: 2;
  }

  .video-player {
    order: 1;
  }

  .video-item {
    gap: 0.75rem;
  }

  .video-item img {
    width: 100px;
    height: 75px;
  }
}

@media (max-width: 767px) {
  .video-player-container {
    padding: 1.5rem;
  }

  .video-player-container h2 {
    font-size: 1.5rem;
  }

  .video-list {
    max-height: 350px;
    padding: 0.75rem;
  }

  .video-item {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .video-item img {
    width: 80px;
    height: 60px;
  }

  .video-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
  }

  .video-duration {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .video-player-container {
    padding: 1rem;
  }

  .video-player-container h2 {
    font-size: 1.3rem;
  }

  .video-list {
    max-height: 300px;
  }

  .video-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .video-item img {
    width: 100%;
    height: auto;
    max-width: 200px;
  }

  .video-info {
    width: 100%;
  }

  .video-title {
    -webkit-line-clamp: 2;
  }
}

/* ============================================
   SITEMAP PAGE
   ============================================ */

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #222;
}

.page-content h2:first-of-type {
  margin-top: 0;
}

.page-content strong {
  color: #222;
  font-weight: 600;
  font-size: 1.1rem;
}

.page-content ul ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* ============================================
   ERROR PAGE (404)
   ============================================ */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 2rem;
}

.error-container {
  text-align: center;
  max-width: 600px;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: #FFC300;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.error-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.error-message {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: #FFC300;
  color: white;
}

.btn-primary:hover {
  background-color: #E6B800;
}

.btn-secondary {
  background-color: transparent;
  color: #FFC300;
  border-color: #FFC300;
}

.btn-secondary:hover {
  background-color: #FFC300;
  color: white;
}

.error-suggestions {
  text-align: left;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 4px;
  border-left: 4px solid #FFC300;
}

.error-suggestions h3 {
  margin-bottom: 1rem;
  color: #222;
}

.error-suggestions ul {
  list-style: none;
  margin: 0;
}

.error-suggestions li {
  margin-bottom: 0.5rem;
}

.error-suggestions a {
  color: #64B5F6;
  text-decoration: underline;
}

.error-suggestions a:hover {
  color: #E6B800;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(135deg, #2c2c54 0%, #3a3a6b 100%);
  color: #ffffff;
  margin-top: 3rem;
  padding: 2.5rem 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
}

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

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-content p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  transition: opacity 0.3s ease;
}

.footer-content p:hover {
  opacity: 0.8;
}

.footer-content a {
  color: #64B5F6;
  text-decoration: none;
  border-bottom: 1px solid rgba(100, 181, 246, 0.3);
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.footer-content a:hover {
  color: #b8b8d1;
  border-bottom-color: #b8b8d1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  .header-container,
  .footer-container {
    max-width: 1400px;
  }

  .single-page,
  .list-page {
    max-width: 1200px;
  }
}

/* Desktop (1024px to 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
  .header-container {
    padding: 1rem 1.5rem;
  }

  .single-page,
  .list-page {
    padding: 2.5rem 1.5rem;
  }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .logo-tagline {
    font-size: 0.7rem;
  }

  .nav-menu {
    gap: 0.3rem;
  }

  .nav-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(255, 195, 0, 0.15);
    border-radius: 6px;
  }

  .nav-link:hover {
    background: #64B5F6;
    color: white;
    border-color: #64B5F6;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(100, 181, 246, 0.2);
  }

  .single-page,
  .list-page {
    padding: 2rem 1.5rem;
  }

  .page-content table {
    font-size: 0.9rem;
  }
}

/* Mobile Landscape & Tablet Portrait (481px to 767px) */
@media (max-width: 767px) {
  .header-container {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-tagline {
    font-size: 0.65rem;
  }

  .language-switcher-header {
    order: -1;
    margin-right: auto;
    margin-left: 0.5rem;
  }

  .lang-switcher-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    background: rgba(255, 195, 0, 0.05);
    border-color: rgba(100, 181, 246, 0.2);
  }

  .lang-icon {
    width: 18px;
    height: 18px;
  }

  .lang-dropdown {
    left: 0;
    right: auto;
    min-width: 140px;
  }

  .lang-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }

  .menu-toggle {
    display: flex;
    background: rgba(100, 181, 246, 0.05);
    border: 1px solid rgba(100, 181, 246, 0.2);
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .menu-toggle:hover {
    background: rgba(100, 181, 246, 0.1);
    transform: scale(1.05);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 181, 246, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(100, 181, 246, 0.15);
  }

  .main-nav[aria-expanded="true"] {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    width: 6px;
  }

  .main-nav::-webkit-scrollbar-track {
    background: rgba(100, 181, 246, 0.05);
  }

  .main-nav::-webkit-scrollbar-thumb {
    background: rgba(100, 181, 246, 0.3);
    border-radius: 3px;
  }

  .main-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 181, 246, 0.5);
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(255, 195, 0, 0.15);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-link:hover {
    background: #42A5F5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
  }

  .submenu {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    border: none;
    box-shadow: none;
    background: transparent;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
  }

  .nav-item.has-children:hover > .submenu,
  .nav-item.has-children.active > .submenu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
  }

  .submenu .nav-link {
    margin-left: 1rem;
    font-size: 0.9rem;
    background: rgba(100, 181, 246, 0.05);
    border-color: rgba(100, 181, 246, 0.1);
  }

  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-quote {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .quote-text {
    font-size: 1rem;
  }

  .welcome-title {
    font-size: 1.75rem;
  }

  .single-page,
  .list-page {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-content table {
    font-size: 0.85rem;
  }

  .page-content table th,
  .page-content table td {
    padding: 0.75rem;
  }

  .error-code {
    font-size: 4rem;
  }

  .error-title {
    font-size: 1.5rem;
  }
}

/* Responsive Images - All Sizes */
img {
  max-width: 100%;
  height: auto;
}

.page-content img,
.peace-page img,
.hero-content img {
  max-width: 100%;
  height: auto;
}

/* Mobile-specific image adjustments */
@media (max-width: 767px) {
  .peace-page .step-image {
    float: none !important;
    margin: 1rem auto !important;
    max-width: 150px !important;
    display: block;
  }

  .peace-page .center-image img,
  .page-content img[style*="max-width"] {
    max-width: 100% !important;
    width: 100% !important;
  }

  img[style*="max-width: 500px"],
  img[style*="max-width: 400px"] {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-content div[style*="text-align: center"] img {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Mobile Portrait (320px to 480px) */
@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem;
  }

  .logo-text {
    font-size: 1rem;
    letter-spacing: 0;
  }

  .logo-tagline {
    font-size: 0.6rem;
  }

  .lang-switcher-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  .lang-text {
    display: none;
  }

  .lang-icon {
    width: 16px;
    height: 16px;
  }

  .hero-section {
    padding: 1.5rem 1rem;
  }

  .hero-quote {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .quote-text {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .welcome-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .intro-text {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: left;
  }

  .single-page,
  .list-page {
    padding: 1.5rem 1rem;
  }

  .page-title {
    font-size: 1.25rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Responsive table - Card layout on mobile */
  .page-content table,
  .articles-table,
  .audio-table {
    font-size: 0.85rem;
  }

  /* Hide table headers on mobile */
  .page-content table thead,
  .articles-table thead,
  .audio-table thead {
    display: none;
  }

  /* Make table, tbody, tr, td all behave as block elements */
  .page-content table,
  .page-content table tbody,
  .page-content table tr,
  .page-content table td,
  .articles-table,
  .articles-table tbody,
  .articles-table tr,
  .articles-table td,
  .audio-table,
  .audio-table tbody,
  .audio-table tr,
  .audio-table td {
    display: block;
    width: 100%;
  }

  /* Style each row as a card */
  .page-content table tr,
  .articles-table tr,
  .audio-table tr {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  /* Remove borders from cells */
  .page-content table td,
  .articles-table td,
  .audio-table td {
    border: none !important;
    padding: 0.4rem 0;
    text-align: left;
    position: relative;
    padding-left: 50% !important;
    word-wrap: break-word;
    white-space: normal;
  }

  /* Add labels before each cell using data attributes */
  .page-content table td:before,
  .articles-table td:before,
  .audio-table td:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Style for first cell (usually #) */
  .page-content table td:first-child,
  .articles-table td:first-child,
  .audio-table td:first-child {
    padding-top: 0.5rem !important;
    font-size: 0.9rem;
  }

  /* Style for last cell */
  .page-content table td:last-child,
  .articles-table td:last-child,
  .audio-table td:last-child {
    padding-bottom: 0.5rem !important;
  }

  .footer-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-title {
    font-size: 1.25rem;
  }

  .error-message {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .video-embed {
    margin: 1rem 0;
  }
}

/* Extra Small (320px and up) */
@media (max-width: 320px) {
  body {
    font-size: 14px;
  }

  .logo {
    font-size: 0.9rem;
  }

  .welcome-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 1.1rem;
  }

  .quote-text {
    font-size: 0.85rem;
  }

  .error-code {
    font-size: 2.5rem;
  }

  .error-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid #64B5F6;
  outline-offset: 2px;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(100, 181, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 999;
  color: #FFC300;
}

.scroll-to-top:hover {
  background: rgba(100, 181, 246, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .menu-toggle,
  .scroll-to-top {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    text-decoration: underline;
  }
}
