/* 
   Styles for the help center website including layout, navigation, forms, and responsive design
*/

/* Load Google Fonts for typography */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@700&family=Nunito+Sans:wght@400;600&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  /* Background Colors */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f8f9fa;
  
  /* Text Colors */
  --text-primary: #333;
  --text-secondary: #5f6368;
  --text-tertiary: #202124;
  
  /* Brand Colors */
  --brand-primary: #ffa116;
  --brand-primary-hover: #e6950a;
  --brand-primary-light: rgba(255, 161, 22, 0.1);
  --brand-primary-shadow: rgba(255, 161, 22, 0.3);
  
  /* Border Colors */
  --border-primary: #e8eaed;
  --border-secondary: #dadce0;
  
  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.12);
  
  /* Banner Gradient */
  --banner-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Mobile Menu Colors */
  --mobile-menu-1: #D64796;
  --mobile-menu-2: #F39237;
  --mobile-menu-3: #4FB3C7;
  --mobile-menu-4: #E55353;
  --mobile-menu-5: #8E6FB8;
  --mobile-menu-6: #5CBAD3;
}

/* === DARK MODE === */
.dark-mode {
  /* Background Colors - Calm deep blues and grays */
  --bg-primary: #0f1419;
  --bg-secondary: #1a2332;
  --bg-tertiary: #242b3d;
  
  /* Text Colors - Soft whites and light grays */
  --text-primary: #e6eaf0;
  --text-secondary: #b8c5d1;
  --text-tertiary: #f0f4f8;
  
  /* Brand Colors - Warmer, softer orange */
  --brand-primary: #ff9f4a;
  --brand-primary-hover: #e8884a;
  --brand-primary-light: rgba(255, 159, 74, 0.15);
  --brand-primary-shadow: rgba(255, 159, 74, 0.25);
  
  /* Border Colors - Subtle blue-grays */
  --border-primary: #2d3748;
  --border-secondary: #4a5568;
  
  /* Shadow Colors - Deeper shadows */
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  
  /* Banner Gradient - Calmer deep blues and purples */
  --banner-gradient: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
  
  /* Mobile Menu Colors - Muted versions */
  --mobile-menu-1: #b83280;
  --mobile-menu-2: #d97706;
  --mobile-menu-3: #0891b2;
  --mobile-menu-4: #dc2626;
  --mobile-menu-5: #7c3aed;
  --mobile-menu-6: #0284c7;
}

/* Reset all browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base body styling */
body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* === HEADER NAVIGATION === */
/* Main header that stays at top when scrolling */
.top-nav {
  background: var(--bg-secondary);
  box-shadow: 0 2px 8px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-primary);
}

/* Container for header content */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
}

/* === MOBILE HAMBURGER MENU === */
/* Three-line hamburger button (hidden on desktop) */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

/* The three horizontal lines */
.hamburger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hide lines when menu is open */
.hamburger-menu.active span {
  display: none;
}

/* Show X symbol when menu is active */
.hamburger-menu.active::after {
  content: '\2715';
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
}

/* === MOBILE MENU DROPDOWN === */
/* Dropdown that appears when hamburger is clicked */
.mobile-menu-overlay {
  display: none;
  width: 100%;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: 0 4px 12px var(--shadow-dark);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
}

/* Show dropdown when menu is active */
.mobile-menu-overlay.active {
  display: block;
  max-height: 400px;
  transition: max-height 0.3s ease-in;
}

/* Container for mobile menu links */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.mobile-menu-links a {
  display: block;
  padding: 1.2rem 2rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
}

.mobile-menu-links a:hover {
  transform: scale(1.02);
  filter: brightness(110%);
}

/* Mobile menu link colors - using BiblioCommons brand colors */
.mobile-menu-links a:nth-child(1) { background-color: var(--mobile-menu-1); } /* Magenta */
.mobile-menu-links a:nth-child(2) { background-color: var(--mobile-menu-2); } /* Orange */
.mobile-menu-links a:nth-child(3) { background-color: var(--mobile-menu-3); } /* Teal */
.mobile-menu-links a:nth-child(4) { background-color: var(--mobile-menu-4); } /* Red */
.mobile-menu-links a:nth-child(5) { background-color: var(--mobile-menu-5); } /* Purple */
.mobile-menu-links a:nth-child(6) { background-color: var(--mobile-menu-6); } /* Light Blue */

/* Logo in header */
.logo img {
  height: 48px;
  width: auto;
}

/* === NAVIGATION BUTTONS === */
/* Container for login and signup buttons */
.nav-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: 2px solid var(--brand-primary);
  border-radius: 20px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.dark-mode-toggle:hover {
  background: var(--brand-primary-light);
  transform: translateY(-1px);
}

.dark-mode-toggle i {
  font-size: 1rem;
  color: #202124;
  transition: all 0.3s ease;
}

/* Dark mode specific styling for toggle */
.dark-mode .dark-mode-toggle {
  border-color: var(--brand-primary);
}

.dark-mode .dark-mode-toggle i,
body.dark-mode.index-page .dark-mode-toggle i {
  color: white !important;
}

.dark-mode .dark-mode-toggle:hover {
  background: var(--brand-primary-light);
}

/* Base button styling */
.btn {
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  min-width: 100px;
}

/* Login button - outlined orange */
.login {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  background-color: transparent;
}

/* Login button hover effect */
.login:hover {
  background-color: var(--brand-primary-light);
  transform: translateY(-1px);
}

/* Get started button - filled orange */
.get-started {
  background-color: var(--brand-primary);
  color: white;
  box-shadow: 0 2px 4px var(--brand-primary-shadow);
}

/* Get started button hover effect */
.get-started:hover {
  background-color: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--brand-primary-shadow);
}

/* === SECONDARY NAVIGATION === */
/* Help section navigation that sticks below header */
.secondary-nav {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-primary);
  box-shadow: 0 1px 3px var(--shadow-medium);
  position: sticky;
  top: 88px;
  z-index: 100;
}

/* Container for secondary navigation */
.secondary-nav .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
}

/* Help section links */
.secondary-nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
}

/* Individual help section links */
.secondary-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

/* Help section link hover effect */
.secondary-nav-links a:hover {
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
}

/* Active help section link */
.secondary-nav-links a.active {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  color: var(--text-tertiary);
  font-weight: 600;
}

/* === BANNER SECTION === */
/* Hero banner with page title and description */
.banner {
  background: var(--banner-gradient);
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

/* Banner main heading */
.banner-header h1,
.banner h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.75rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Banner subtitle text */
.banner-header p,
.banner p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto;
}

/* === Enhanced Search Section === */
.search-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 2rem;
  text-align: center;
}

.search-section h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: 24px;
  padding: 4px;
  box-shadow: 0 2px 8px var(--shadow-medium);
  border: 1px solid var(--border-primary);
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  background: transparent;
  outline: none;
}

.search-form input[type="search"]::placeholder {
  color: #9aa0a6;
}

.search-form button {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.search-form button:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
}

/* === INDEX PAGE GRID === */
/* Grid layout for help section tiles */
.grid-container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* === HELP SECTION TILES === */
/* Individual help section cards on index page */
.help-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1px solid var(--border-primary);
  transition: all 0.3s ease;
  text-align: center;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover effect for tiles */
.help-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-dark);
}

/* Tile headings */
.help-section h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.375rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tile description text */
.help-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
}

/* Clickable link wrapper for tiles */
.section-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

/* Icons in help section tiles */
.section-link img {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 80px;
  height: auto;
  transition: transform 0.2s ease;
}

/* Icon hover effect */
.help-section:hover .section-link img {
  transform: scale(1.05);
}

/* Tile hover colors using BiblioCommons brand colors */
.section-link:nth-child(1) .help-section:hover {
  background: #00aec7;
  color: white;
}

.section-link:nth-child(2) .help-section:hover {
  background: #ee3441;
  color: white;
}

.section-link:nth-child(3) .help-section:hover {
  background: #d22f92;
  color: white;
}

.section-link:nth-child(4) .help-section:hover {
  background: #5251a2;
  color: white;
}

.section-link:nth-child(5) .help-section:hover {
  background: #faa31b;
  color: white;
}

.section-link:nth-child(6) .help-section:hover {
  background: #00aec7;
  color: white;
}

.section-link:nth-child(1) .help-section:hover h2,
.section-link:nth-child(1) .help-section:hover h3,
.section-link:nth-child(1) .help-section:hover p {
  color: white;
}

.section-link:nth-child(2) .help-section:hover h2,
.section-link:nth-child(2) .help-section:hover h3,
.section-link:nth-child(2) .help-section:hover p {
  color: white;
}

.section-link:nth-child(3) .help-section:hover h2,
.section-link:nth-child(3) .help-section:hover h3,
.section-link:nth-child(3) .help-section:hover p {
  color: white;
}

.section-link:nth-child(4) .help-section:hover h2,
.section-link:nth-child(4) .help-section:hover h3,
.section-link:nth-child(4) .help-section:hover p {
  color: white;
}

.section-link:nth-child(5) .help-section:hover h2,
.section-link:nth-child(5) .help-section:hover h3,
.section-link:nth-child(5) .help-section:hover p {
  color: white;
}

.section-link:nth-child(6) .help-section:hover h2,
.section-link:nth-child(6) .help-section:hover h3,
.section-link:nth-child(6) .help-section:hover p {
  color: white;
}

/* === PAGE LAYOUT === */
/* Two-column layout with sidebar and main content */
.page-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}

/* === SIDEBAR TABLE OF CONTENTS === */
/* Sticky sidebar navigation for help pages */
.sidebar-toc {
  position: sticky;
  top: 185px; /* Adjusted for sticky secondary nav */
  padding: 1rem;
  height: fit-content;
}

/* Sidebar heading */
.sidebar-toc h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #e8eaed;
  padding-bottom: 0.75rem;
}

/* List container for sidebar links */
.sidebar-toc-list {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Individual list items */
.sidebar-toc-list li {
  margin: 0;
  list-style-type: none;
}

/* Sidebar navigation links */
.sidebar-toc-list a {
  display: block;
  text-decoration: none;
  color: var(--brand-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
}

/* Sidebar link hover effect */
.sidebar-toc-list a:hover {
  background-color: var(--brand-primary-light);
  border-left-color: var(--brand-primary);
  transform: translateX(4px);
}

/* Active section highlighting - matches hover effect */
.sidebar-toc-list a.active {
  background-color: var(--brand-primary-light);
  border-left-color: var(--brand-primary);
  transform: translateX(4px);
}

/* === MAIN CONTENT === */
/* Main content area in page layout */
.main-content {
  min-width: 0;
}

/* === Enhanced Content Layout === */
.content-wrapper {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.content-section {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1px solid var(--border-primary);
  scroll-margin-top: 140px;
}

.content-section h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-tertiary);
  border-bottom: 3px solid var(--brand-primary);
  padding-bottom: 0.5rem;
}

.content-section h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-tertiary);
  border-bottom: 3px solid var(--brand-primary);
  padding-bottom: 0.5rem;
}

.content-section h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.content-section h4 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.content-section p,
.content-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

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

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

.content-section strong {
  color: var(--text-tertiary);
  font-weight: 600;
}

/* === Form Styling === */
.content-section form {
  background: var(--bg-tertiary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-primary);
  margin: 2rem 0;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-secondary);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px var(--brand-primary-light);
}

.form-group small {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-links {
  text-align: center;
  margin-top: 1rem;
}

.form-links a {
  color: #ffa116;
  text-decoration: none;
  margin: 0 1rem;
}

.form-links a:hover {
  text-decoration: underline;
}

.login-form,
.signup-form {
  max-width: 400px;
  margin: 0 auto;
}

/* === Support CTA Section === */
.support-cta {
  background: var(--bg-secondary);
  padding: 4rem 2rem;
  border-top: 1px solid var(--border-primary);
  margin-top: 3rem;
}

.support-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(4rem - 6px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.support-text h2 {
  font-family: 'Libre Baskerville', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.support-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.support-text .btn {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
}

.support-text .btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-2px);
}

.support-image img {
  max-width: 120px;
  height: auto;
}

/* === Footer === */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 3rem 0 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

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

.footer-center p {
  margin: 0;
  color: #bdc3c7;
}

/* Social Media Buttons */
.rounded-social-buttons {
  display: flex;
  gap: 0.75rem; /* Increased spacing between icons */
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-right: 0.5rem; /* Additional spacing for mobile */
}

.social-button.facebook {
  background-color: #3b5998;
}

.social-button.twitter {
  background-color: #1da1f2;
}

.social-button.linkedin {
  background-color: #0077b5;
}

.social-button.youtube {
  background-color: #ff0000;
}

.social-button.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive padding change for secondary nav */
@media (max-width: 866px) {
  .secondary-nav-links a {
    padding: 0.5rem 0.5rem;
  }
}

/* Mobile responsive design with required changes */
@media (max-width: 768px) {
  /* Hide sidebar completely on mobile - REQUIRED CHANGE */
  .sidebar-toc {
    display: none;
  }
  
  .page-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem;
  }
  
  .main-content {
    width: 100%;
  }
  
  /* Keep header elements inline on mobile */
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
  }
  
  .nav-logo {
    flex: 1;
    justify-content: flex-start;
  }
  
  .nav-logo img {
    height: 32px; /* Slightly smaller on mobile */
  }
  
  .nav-buttons {
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  
  .nav-buttons .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  /* Hide secondary navigation links on mobile */
  .secondary-nav-links {
    display: none;
  }
  
  /* Show hamburger menu in secondary nav */
  .secondary-nav .hamburger-menu {
    display: flex;
  }
  
  /* Position hamburger menu in secondary nav */
  .secondary-nav .nav-container {
    justify-content: flex-end;
    padding: 1rem 2rem;
  }
  
  /* Mobile menu positioning - REQUIRED CHANGE */
  .mobile-menu-overlay {
    position: fixed;
    top: 152px;
    left: 0;
    width: 100%;
    z-index: 999;
  }
  
  .banner h1 {
    font-size: 2rem;
  }
  
  .support-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0 2rem;
  }
  
  .grid-container {
    grid-template-columns: 1fr;
  }
  
  .content-wrapper {
    padding: 1rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }
  
  /* Footer adjustments */
  .footer-container {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .rounded-social-buttons {
    justify-content: center;
    gap: 1rem; /* Even more spacing on mobile */
  }
  
  .social-button {
    margin-right: 0; /* Remove extra margin on mobile since we have gap */
  }
}

@media (max-width: 480px) {
  .banner h1 {
    font-size: 1.8rem;
  }
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .content-section h3 {
    font-size: 1.2rem;
  }
  
  .page-layout,
  .content-wrapper {
    padding: 1rem;
  }
  
  .content-section {
    padding: 1rem;
  }
  
  .banner {
    padding: 2rem 1rem;
  }
}

/* === CAROUSEL STYLES === */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

.carousel {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-item {
  position: absolute;
  top: 0;
  width: 220px;
  height: 380px;
  margin: 0 8px;
  text-align: center;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.carousel-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 0.1rem 0;
  font-weight: 500;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  padding: 0 1rem;
  line-height: 1.3;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  transition: all 0.2s ease;
  z-index: 10;
}

.carousel-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

.carousel-button i {
  color: white;
  font-size: 1rem;
}

/* === SCROLL BUTTONS === */
.scroll-btn {
  position: fixed;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffa116;
  color: white;
  border: none;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-btn:hover {
  background: #e6950a;
  transform: scale(1.1);
}

#scrollTopBtn {
  bottom: 90px;
}

#scrollBottomBtn {
  bottom: 30px;
}

/* === CALLOUT BOXES === */
/* Blue highlighted information boxes */
.callout {
  background: #e7f7fa;
  border-left: 4px solid #0faec8;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Callout headings */
.callout h3 {
  color: #1976d2;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

/* Callout text */
.callout p {
  color: #1565c0;
  margin-bottom: 0.5rem;
}

/* Page-specific styles */
/* === LOGIN AND SIGNUP PAGE STYLING === */
.login-page .content-wrapper,
.signup-page .content-wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.login-page .content-section,
.signup-page .content-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.login-form,
.signup-form {
  max-width: 100%;
  margin: 1.5rem 0;
}

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

.login-form input,
.login-form select,
.signup-form input,
.signup-form select {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.login-form .form-actions,
.signup-form .form-actions {
  margin-top: 2rem;
}

.login-form .form-actions button,
.signup-form .form-actions button {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Mobile responsiveness for login/signup forms */
@media (max-width: 768px) {
  .login-page .content-wrapper,
  .signup-page .content-wrapper {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .login-page .content-section,
  .signup-page .content-section {
    padding: 1.5rem;
  }
}

.dashboard-page {
  min-height: 100vh;
}

.user-info {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.account-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.account-actions .btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

/* Help sections for dashboard-style layouts */
.help-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.help-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.help-card h3 {
  color: #ffa116;
  margin-bottom: 1rem;
}

.help-card p {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .account-actions {
    flex-direction: column;
  }
  
  .account-actions .btn {
    width: 100%;
  }
  
  .help-sections {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .help-card {
    padding: 1.5rem;
  }
}