/* --- VINTAGE RETRO THEME FOR STELLAR VOYAGE ENGLISH --- */
/* Google Fonts Import (Montserrat for display, Open Sans for body, plus a retro accent font) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;700&family=Pacifico&display=swap');

:root {
  --primary: #223056;
  --secondary: #31A6D3;
  --accent: #F6EEDD;
  --retro-orange: #E67E22;
  --retro-yellow: #F9D77E;
  --retro-brown: #8D6748;
  --retro-green: #A3B18A;
  --retro-red: #D94F4F;
  --white: #fff;
  --black: #181818;
  --shadow: 0 4px 24px 0 rgba(34,48,86,0.10);
  --border-radius: 18px;
  --border-radius-sm: 8px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', 'Pacifico', cursive, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
  --pattern-bg: repeating-linear-gradient(135deg, #F6EEDD 0 10px, #F9D77E 10px 20px);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--pattern-bg);
  color: var(--primary);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--border-radius-sm);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 var(--retro-yellow), 4px 4px 0 var(--retro-orange);
  font-family: 'Pacifico', var(--font-display);
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--retro-orange);
  text-shadow: 1px 1px 0 var(--accent);
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--retro-brown);
}
h4, h5, h6 {
  font-weight: 700;
}
p, ul, ol {
  margin-top: 0;
  margin-bottom: 18px;
}
strong {
  color: var(--retro-brown);
  font-weight: 700;
}

/* --- LINKS & BUTTONS --- */
a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--retro-orange);
  text-decoration: underline;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(90deg, var(--retro-orange), var(--retro-yellow));
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 32px;
  box-shadow: 0 2px 8px 0 rgba(34,48,86,0.10);
  border: 2px solid var(--retro-brown);
  letter-spacing: 0.04em;
  margin-top: 18px;
  margin-bottom: 18px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-shadow: 1px 1px 0 var(--accent);
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, var(--retro-yellow), var(--retro-orange));
  color: var(--retro-brown);
  box-shadow: 0 6px 24px 0 rgba(34,48,86,0.18);
  text-decoration: none;
}

button, .button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 10px 24px;
  background: var(--retro-green);
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 8px 0 rgba(34,48,86,0.08);
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--retro-orange);
  color: var(--white);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--accent);
  border-bottom: 4px solid var(--retro-orange);
  box-shadow: 0 2px 12px 0 rgba(34,48,86,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img {
  height: 48px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--retro-orange);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  margin-left: 12px;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, var(--accent) 80%, var(--retro-yellow) 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 0 0 rgba(0,0,0,0.0);
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 0 0 100vw rgba(34,48,86,0.18);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--retro-brown);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  padding: 32px 32px 0 48px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  padding: 8px 0;
  border-radius: var(--border-radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

/* --- SECTIONS & LAYOUTS --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(246,238,221,0.85);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- FLEXBOX LAYOUTS --- */
.feature-grid, .course-cards, .course-listings, .pricing-table, .team-profiles, .blog-list, .photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .course-cards > div, .course-listings > div, .pricing-table > div, .team-profiles > div, .blog-list > div, .photo-gallery > img {
  flex: 1 1 260px;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--retro-yellow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.feature-grid > div:hover, .course-cards > div:hover, .course-listings > div:hover, .pricing-table > div:hover, .team-profiles > div:hover, .blog-list > div:hover {
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.16);
  border-color: var(--retro-orange);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-image-section > div {
  flex: 1 1 320px;
  min-width: 260px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--retro-yellow);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  color: var(--primary);
  border: 2px solid var(--retro-orange);
  font-style: italic;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.16);
  border-color: var(--retro-brown);
}
.testimonial-meta {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--retro-brown);
  font-style: normal;
  margin-left: 12px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.faq-list, .faq-list-short {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.faq-list > div, .faq-list-short > div {
  flex: 1 1 320px;
  min-width: 260px;
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-green);
}

/* --- BLOG CARDS --- */
.blog-post-card, .featured-post {
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-yellow);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.blog-post-card:hover, .featured-post:hover {
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.16);
  border-color: var(--retro-orange);
}
.categories {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.categories a {
  background: var(--retro-yellow);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-display);
  margin-right: 6px;
  transition: background var(--transition), color var(--transition);
}
.categories a:hover {
  background: var(--retro-orange);
  color: var(--white);
}

/* --- PRICING TABLE --- */
.pricing-table > div {
  border: 2px solid var(--retro-green);
  background: var(--white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  padding: 28px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 260px;
  flex: 1 1 260px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.pricing-table > div:hover {
  border-color: var(--retro-orange);
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.16);
}
.pricing-table strong {
  font-size: 1.3rem;
  color: var(--retro-brown);
  margin-bottom: 8px;
}
.pricing-table a {
  margin-top: 10px;
  background: var(--retro-orange);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
}
.pricing-table a:hover {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}
.discounts-and-offers {
  background: var(--retro-green);
  color: var(--primary);
  border-radius: var(--border-radius-sm);
  padding: 14px 18px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* --- TIMELINE --- */
.timeline {
  background: var(--retro-yellow);
  border-radius: var(--border-radius-sm);
  padding: 18px 16px;
  margin-bottom: 20px;
  border: 2px solid var(--retro-orange);
  font-family: var(--font-display);
}
.timeline ul {
  padding-left: 20px;
  margin: 0;
}
.timeline li {
  margin-bottom: 8px;
}

/* --- GALLERY --- */
.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}
.photo-gallery img {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 240px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow);
  border: 2px solid var(--retro-yellow);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.photo-gallery img:hover {
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.16);
  border-color: var(--retro-orange);
}

/* --- SOCIAL LINKS --- */
.social-links {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.social-links a {
  background: var(--retro-yellow);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover {
  background: var(--retro-orange);
  color: var(--white);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 32px 0 16px 0;
  border-top: 4px solid var(--retro-orange);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  transition: color var(--transition);
}
.footer-nav a:hover {
  color: var(--retro-yellow);
}
footer p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- FORMS & INPUTS --- */
input[type="search"], input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--retro-yellow);
  background: var(--white);
  color: var(--primary);
  margin-bottom: 16px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="search"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--retro-orange);
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(34,48,86,0.10);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--retro-yellow) 80%, var(--retro-orange) 100%);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  box-shadow: 0 -2px 16px 0 rgba(34,48,86,0.13);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
  animation: cookieBannerIn 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  margin: 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 8px 0 rgba(34,48,86,0.08);
}
.cookie-banner .accept {
  background: var(--retro-green);
  color: var(--primary);
}
.cookie-banner .accept:hover {
  background: var(--retro-orange);
  color: var(--white);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--white);
}
.cookie-banner .reject:hover {
  background: var(--retro-brown);
}
.cookie-banner .settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--retro-orange);
}
.cookie-banner .settings:hover {
  background: var(--retro-yellow);
  color: var(--retro-brown);
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,48,86,0.18);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--accent);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.22);
  padding: 36px 32px 28px 32px;
  max-width: 420px;
  width: 90vw;
  color: var(--primary);
  font-family: var(--font-display);
  position: relative;
  animation: cookieModalPop 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  margin-top: 0;
  color: var(--retro-orange);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--retro-orange);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category.essential label {
  font-weight: 700;
  color: var(--retro-brown);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--retro-brown);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal .close-modal:hover {
  color: var(--retro-red);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .feature-grid, .course-cards, .course-listings, .pricing-table, .team-profiles, .blog-list, .photo-gallery {
    gap: 18px;
  }
  .feature-grid > div, .course-cards > div, .course-listings > div, .pricing-table > div, .team-profiles > div, .blog-list > div, .photo-gallery > img {
    min-width: 180px;
    flex: 1 1 180px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 14px;
  }
  .feature-grid, .course-cards, .course-listings, .pricing-table, .team-profiles, .blog-list, .photo-gallery {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-button {
    padding: 12px 22px;
    font-size: 1rem;
  }
  section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .feature-grid, .course-cards, .course-listings, .pricing-table, .team-profiles, .blog-list, .photo-gallery {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .course-cards > div, .course-listings > div, .pricing-table > div, .team-profiles > div, .blog-list > div, .photo-gallery > img {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .content-wrapper {
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 10px;
    font-size: 0.98rem;
  }
  .cookie-modal {
    padding: 22px 10px 18px 10px;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .cta-button {
    padding: 10px 12px;
    font-size: 0.98rem;
  }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.card, .feature-grid > div, .course-cards > div, .course-listings > div, .pricing-table > div, .team-profiles > div, .blog-list > div, .photo-gallery > img, .testimonial-card, .faq-list > div, .faq-list-short > div {
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover, .feature-grid > div:hover, .course-cards > div:hover, .course-listings > div:hover, .pricing-table > div:hover, .team-profiles > div:hover, .blog-list > div:hover, .photo-gallery > img:hover, .testimonial-card:hover, .faq-list > div:hover, .faq-list-short > div:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px 0 rgba(34,48,86,0.16);
}

/* --- ACCESSIBILITY & CONTRAST --- */
.testimonial-card, .testimonial-card p, .testimonial-meta {
  color: var(--primary) !important;
  background: var(--retro-yellow) !important;
}

/* --- MISC --- */
ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}

/* --- Hide scroll on mobile menu open --- */
body.mobile-menu-open {
  overflow: hidden;
}

/* --- Utility Classes --- */
.hide {
  display: none !important;
}

/* --- END OF CSS --- */
