/*
 * Stylesheet for the STE Buddy web site
 *
 * The design uses modern CSS features such as flexbox and grid to layout
 * the page responsively without the aid of a framework. Colours and
 * typography are defined using CSS variables for easy theme adjustments.
 * A mobile‑first approach is applied so smaller screens load with an
 * optimised experience and then progressively enhance for larger viewports.
 */

/* Import a clean, legible font from Google Fonts. Open Sans offers good
   readability for body text and headings. */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* Colour palette definitions
   Adjust these values to brand the application. Primary and accent colours
   provide highlights for links and buttons while neutrals support
   backgrounds and text. */
:root {
  --primary-color: #0077cc;
  --primary-color-rgb: 0, 119, 204;
  /* Main brand colour (blue) */
  --secondary-color: #00aaff;
  /* Accent colour for highlights */
  --dark-color: #042a4e;
  /* Darker shade used for footer background */
  --light-color: #ffffff;
  /* White for panels and cards */
  --text-color: #333333;
  /* Standard body text colour */
  --text-color-light: #666666;
  /* Lighter text colour for secondary elements */
  --muted-text-color: #666666;
  /* Secondary text colour */
  --background-color: #f7f9fc;
  /* Page background */
  --border-radius: 0.5rem;
  /* Standard border radius */
  --max-width: 1200px;
  /* Constrain the main content width */
  --transition-speed: 0.3s;
  /* Used for hover transitions */
}

/* Universal base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1,
h2,
h3,
h4 {
  color: var(--dark-color);
  font-weight: 700;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

a:hover,
a:focus {
  color: var(--secondary-color);
}

/* Container used to center content on the page */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Navigation bar styling */
header {
  background-color: var(--light-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/*--------------------------------------------------------------
# Navigation dropdown menus
--------------------------------------------------------------*/
/* The main navigation list. Display items horizontally and remove default list styling. */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Each navigation item relative to allow absolute positioning of dropdowns */
.nav-menu>li {
  position: relative;
}

/* Base styles for links in the top level nav. Use dark colour to stand out on light backgrounds */
.nav-menu>li>a {
  font-weight: 600;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Dropdown container hidden by default. When the parent li is hovered, show the dropdown */
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 999;
  list-style: none;
}

/* Show dropdown on hover on desktop devices */
.nav-menu li:hover>.dropdown {
  display: block;
}

/* When a dropdown is marked as open via JS, display its menu */
.nav-menu li.open>.dropdown {
  display: block;
}

/* Each dropdown item styling */
.nav-menu .dropdown li {
  padding: 0.4rem 1rem;
  white-space: nowrap;
}

.nav-menu .dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-color);
  font-weight: 500;
}

.nav-menu .dropdown li a:hover {
  background-color: var(--background-color);
}

/* Hide the nav menu by default on small screens */
@media (max-width: 768px) {
  nav .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  
  /* Add professional header styling on mobile */
  .navbar {
    padding: 1rem 1.5rem !important;
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  
  .navbar .logo {
    font-weight: 600 !important;
    font-size: 1.2rem !important;
  }

  /* Mobile: when nav-toggle is checked, show the nav-menu vertically */
  #nav-toggle:checked~nav .nav-menu {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    background-color: var(--light-color);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 998;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  /* Professional mobile menu item styling */
  #nav-toggle:checked~nav .nav-menu li {
    margin-bottom: 0.5rem;
  }
  
  #nav-toggle:checked~nav .nav-menu li a {
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  #nav-toggle:checked~nav .nav-menu li a:hover {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
    padding-left: 0.5rem;
    border-radius: 8px;
  }
  
  #nav-toggle:checked~nav .nav-menu li:last-child a {
    border-bottom: none;
  }

  /* Show the hamburger menu button on mobile */
  .nav-toggle-label {
    display: flex !important;
  }
}

/* Mobile dropdowns: disable hover behaviour and allow expanding via focus */
#nav-toggle:checked~nav .nav-menu li:hover>.dropdown {
  display: none;
}

/* Mobile: Show dropdown when parent has 'open' class */
@media (max-width: 768px) {
  .nav-menu .has-dropdown.open > .dropdown {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    background-color: rgba(var(--primary-color-rgb), 0.03) !important;
    padding: 0.75rem 0 0.75rem 2rem !important;
    margin: 0.5rem 0 1rem 0;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    animation: dropdownSlideIn 0.3s ease-out;
  }
  
  /* Smooth animation for dropdown */
  @keyframes dropdownSlideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
      max-height: 0;
    }
    to {
      opacity: 1;
      transform: translateY(0);
      max-height: 300px;
    }
  }
}

/* Mobile dropdown styling - professional appearance */
@media (max-width: 768px) {
  .nav-menu .dropdown {
    position: static !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-top: 0 !important;
    min-width: auto !important;
    border-radius: 0 !important;
  }

  .nav-menu .dropdown li {
    padding: 0 !important;
    border-bottom: none !important;
    margin-bottom: 0.3rem;
  }
  
  .nav-menu .dropdown li:last-child {
    margin-bottom: 0;
  }
  
  .nav-menu .dropdown li a {
    padding: 0.8rem 1rem !important;
    font-weight: 400 !important;
    font-size: 1rem !important;
    color: var(--text-color) !important;
    background-color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    margin-bottom: 0.25rem;
  }
  
  .nav-menu .dropdown li a:hover,
  .nav-menu .dropdown li a:focus {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  
  .nav-menu .dropdown li a i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    width: 18px;
    text-align: center;
  }
  
  .nav-menu .dropdown li a:hover i,
  .nav-menu .dropdown li a:focus i {
    color: white;
  }
  
  /* Rotate dropdown arrow when open with better animation */
  .nav-menu .has-dropdown > a .fa-chevron-down {
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--text-color-light);
  }
  
  .nav-menu .has-dropdown.open > a .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--primary-color);
  }
  
  .nav-menu .has-dropdown.open > a {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
  }
  
  /* Make dropdown parent more tappable on mobile with better styling */
  .nav-menu .has-dropdown > a {
    padding: 1.2rem 0 !important;
    min-height: 48px !important; /* iOS minimum touch target */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    position: relative;
  }
  
  .nav-menu .has-dropdown > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  .nav-menu .has-dropdown.open > a::after {
    width: 100%;
  }
}

/* Cookie banner styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  /* Light background with dark text for better contrast */
  background-color: var(--light-color);
  color: var(--dark-color);
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 2000;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1;
}

.cookie-banner a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-banner button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.cookie-btn-accept:hover {
  background-color: var(--secondary-color);
}

.cookie-btn-decline {
  background-color: #6c757d;
  color: var(--light-color);
}

.cookie-btn-decline:hover {
  background-color: #5a6268;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-color);
}

.navbar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar nav a {
  font-weight: 600;
  color: var(--dark-color);
}

/* Logo image in navigation */
.navbar .logo img {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Mobile navigation toggle using a hidden checkbox */
#nav-toggle {
  display: none;
}

/* Base styles for nav-toggle-label - will be overridden by media queries */
.nav-toggle-label {
  flex-direction: column;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.nav-toggle-label:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.nav-toggle-label span {
  height: 3px;
  width: 100%;
  background: var(--dark-color);
  margin-bottom: 6px;
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

.nav-toggle-label span:last-child {
  margin-bottom: 0;
}

/* Hamburger menu animation when active - more professional */
#nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

#nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

#nav-toggle:checked + .nav-toggle-label {
  background-color: rgba(var(--primary-color-rgb), 0.15);
}

/* Desktop: hide hamburger menu and show navigation normally */
@media (min-width: 769px) {
  .nav-toggle-label {
    display: none !important;
  }
  
  nav .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }
}

/* Hero section with a two column layout on larger screens */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  background-color: var(--light-color);
  padding: 3rem 0;
}

.hero-content {
  flex: 1;
  padding: 2rem;
}

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

.hero-content p {
  font-size: 1.2rem;
  color: var(--muted-text-color);
}

.hero-content .btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background-color var(--transition-speed) ease;
}

.hero-content .btn:hover {
  background-color: var(--secondary-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
}

/* Enhanced styling for the main hero screenshot to improve readability */
.hero-main-image {
  max-width: 600px !important;
  width: 100% !important;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-main-image:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Authentication hero variant - smaller height for auth pages */
.hero.auth-hero {
  min-height: 25vh;
  padding: 2rem 0;
}

/* General button styling */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-color);
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background-color var(--transition-speed) ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
}

/* Button color variants */
.btn[style*="background-color: #6c757d"]:hover {
  background-color: #5a6268 !important;
}

.btn[style*="background-color: #f44336"]:hover {
  background-color: #d32f2f !important;
}

.btn[style*="background-color: #ff9800"]:hover {
  background-color: #f57c00 !important;
}

/* Section styling */
section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-speed) ease;
}

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

.feature h3 {
  margin-bottom: 1rem;
}

.feature p {
  color: var(--muted-text-color);
}

/* Professional cards styling for the "Professional STE Compliance Platform" section */
.dream-cards .feature {
  text-align: left;
  padding: 2.5rem;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 119, 204, 0.08);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  background: linear-gradient(135deg, #ffffff 0%, #fafcff 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.dream-cards .feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.dream-cards .feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 32px rgba(0, 119, 204, 0.15);
}

.dream-cards .feature .icon {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-color);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 119, 204, 0.2);
}

.dream-cards .feature h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.4;
}

.dream-cards .feature p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-color);
}

.dream-cards .feature ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.dream-cards .feature ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--muted-text-color);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
}

.dream-cards .feature ul li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  margin-right: 0.75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Pricing cards */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.price-card {
  background-color: var(--light-color);
  border: 1px solid #e0e6ed;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Plan badge for pricing cards */
.plan-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--light-color);
}

.plan-badge.best {
  background-color: var(--primary-color);
}

.plan-badge.flexible {
  background-color: var(--secondary-color);
}

.plan-badge.free {
  background-color: #6c757d;
}

/* Adjust price display for pricing page */
.price-card .period {
  display: block;
  font-size: 0.9rem;
  color: var(--muted-text-color);
}

.price-card .saving {
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* FAQ styles */
.faq {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.faq-item p {
  color: var(--muted-text-color);
  margin-bottom: 0.5rem;
}

/* Terms page styles */
.terms {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.term h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark-color);
}

.term h3 i {
  color: var(--primary-color);
}

.term p {
  color: var(--muted-text-color);
  margin-bottom: 0.5rem;
}

.term ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--muted-text-color);
}

.term ul li {
  margin-bottom: 0.5rem;
}

.price-card h3 {
  margin-bottom: 0.5rem;
}

.price-card .price {
  font-size: 2rem;
  color: var(--primary-color);
  margin: 1rem 0;
}

.price-card ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  flex: 1;
}

.price-card ul li {
  margin-bottom: 0.5rem;
  color: var(--muted-text-color);
}

/* Icons inside pricing lists */
.price-card ul li i {
  margin-right: 0.4rem;
  color: var(--primary-color);
}

.price-card .btn {
  margin-top: 1.5rem;
}

/* Testimonial section */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial .author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial .author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.testimonial .author span {
  font-weight: 600;
}

/* Call to action section */
.cta {
  background-color: var(--primary-color);
  color: var(--light-color);
  text-align: center;
  padding: 3rem 1rem;
  border-radius: var(--border-radius);
}

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

.cta p {
  color: #e8f1fb;
}

.cta .btn {
  background-color: var(--light-color);
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 700;
  margin-top: 1.5rem;
  transition: background-color var(--transition-speed) ease;
}

.cta .btn:hover {
  background-color: #e5e5e5;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-container h4 {
  margin-bottom: 1rem;
  color: var(--light-color);
}

.footer-container ul {
  list-style: none;
}

.footer-container ul li {
  margin-bottom: 0.5rem;
}

.footer-container ul li a {
  color: #cfdceb;
  font-size: 0.95rem;
}

.footer-container ul li a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #e6edf7; /* Increased contrast for readability */
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content p {
  margin: 0;
  color: inherit;
}

.footer-bottom-content a {
  color: #ffffff;
  text-decoration: none;
}

.footer-bottom-content a:hover {
  text-decoration: underline;
}

.footer-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.footer-badges span {
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 500;
}

.footer-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-tags span {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #f0f4fb;
}

.footer-container > div:first-child p {
  color: #a3b3c9;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d9e3ef;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-family: inherit;
}

.contact-form button {
  background-color: var(--primary-color);
  color: var(--light-color);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed) ease;
}

.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Tables for pricing comparison on pricing page */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border: 1px solid #e0e6ed;
  text-align: center;
}

.comparison-table th {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.comparison-table tbody tr:nth-child(even) {
  background-color: #f2f7fb;
}

/* Icon styling */
/* Icons in the navigation inherit the font-awesome family and are spaced from the
   label text for clarity. */
.navbar nav a i {
  margin-right: 0.4rem;
}

/* Icons inside feature cards adopt a larger size and primary colour to draw
   attention. The margin below separates them from the heading. */
.feature .icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

/* Icons in pricing cards are slightly larger to emphasise plan tiers. */
.price-card .icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Icons in contact details (email, address) adopt the primary colour and spacing */
.contact-details i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Add spacing between social icons and text in the footer */
.footer-container ul li a i {
  margin-right: 0.5rem;
}

/* Benefits list on the Why STE page */
.benefits-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.benefits-list li {
  font-weight: 600;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.benefits-list li i {
  margin-right: 0.5rem;
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Comparison cards on the index page */
.comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.comparison-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.comparison-card .time {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0.5rem 0;
}

.comparison-card ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.comparison-card ul li {
  margin-bottom: 0.5rem;
}

/* Difference lists */
.difference {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.difference ul {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0;
}

.difference ul li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.difference ul li i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    padding: 1rem;
  }

  /* Improved mobile readability for hero main image */
  .hero-main-image {
    max-width: 100% !important;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }

  /* Footer responsive styles */
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .footer-tags {
    justify-content: center;
  }

  /* Dream cards responsive adjustments */
  .dream-cards .feature {
    padding: 2rem;
  }

  .dream-cards .feature .icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .dream-cards .feature h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .dream-cards .feature {
    padding: 1.5rem;
  }

  .dream-cards .feature ul li::before {
    width: 16px;
    height: 16px;
    font-size: 0.7rem;
  }
}

/* Alert styles for flash messages */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

/* Subscription Section Styles for Index Page */
.subscription-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.subscription-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.subscription-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.subscription-icon .fa-crown {
  color: #ffd700;
}

.subscription-section .section-title {
  color: white;
  margin-bottom: 1rem;
}

.subscription-section .subscription-intro {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.subscription-benefits {
  margin-bottom: 2.5rem;
}

.subscription-benefits .features {
  margin-bottom: 0;
}

.subscription-section .feature {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-bottom: 1rem;
}

.subscription-section .feature .icon {
  color: #ffd700;
}

.subscription-section .feature h3 {
  color: white;
}

.subscription-section .feature p {
  color: rgba(255,255,255,0.9);
}

.subscription-pricing {
  margin-bottom: 2rem;
}

.subscription-pricing .pricing-box {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.5rem;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.subscription-pricing .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: #ffd700;
}

.subscription-pricing .price-subtitle {
  opacity: 0.9;
}

.subscription-section .btn-subscription {
  background: #ffd700;
  color: #333;
  font-weight: bold;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.subscription-section .btn-subscription:hover {
  background: #ffed4e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.subscription-guarantee {
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}