/* Redesigned Style System for Nordenfeltska Musikskolan */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --primary: #8c1d40;        /* Crimson Burgundy */
  --primary-light: #a32646;  /* Warmer Crimson */
  --primary-dark: #4f040d;   /* Deep Dark Burgundy */
  --accent-gold: #d4c2b0;    /* Warm Champagne */
  --accent-gold-light: #f3eae1; /* Soft Champagne / Cream */
  --accent-gold-hover: #bfae9c;
  --bg-light: #faf9f6;       /* Light Slate Gray */
  --bg-white: #ffffff;
  --text-dark: #2e2522;
  --text-muted: #756963;
  --text-light: #faf9f6;
  --text-white: #ffffff;
  
  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg-dark: rgba(79, 4, 13, 0.7);
  --card-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.1);
  --card-shadow-hover: 0 20px 40px -15px rgba(212, 194, 176, 0.2);
  
  /* Layout Options */
  --max-width: 1200px;
  --transition-speed: 0.3s;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

/* Decorative Gold line under H2 */
h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background-color: var(--accent-gold);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-speed) ease;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-light);
}

.section-dark h2 {
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-light);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(79, 4, 13, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-speed) ease;
}

header.scrolled {
  padding: 8px 0;
  background-color: var(--primary-dark);
}

.page-header {
  background: linear-gradient(rgba(79, 4, 13, 0.85), rgba(79, 4, 13, 0.95)), url('../images/adult_learning.png') center/cover no-repeat;
  height: 300px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-white);
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: .8rem;
  color: var(--text-white);
}
.page-header p {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link img {
  height: 72px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-item a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--transition-speed) ease;
}

.nav-item a:hover {
  color: var(--accent-gold);
}

.nav-item a:hover::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--accent-gold);
}

.nav-item.active a::after {
  width: 100%;
}

/* Header CTA Button */
.nav-cta {
  background-color: var(--accent-gold);
  color: var(--primary-dark) !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--accent-gold);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background-color: transparent !important;
  color: var(--accent-gold) !important;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-secondary:hover {
  background-color: var(--text-white);
  color: var(--primary);
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary-dark:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

.btn-dark {
  background-color: var(--primary);
  color: var(--text-white);
  border: 2px solid var(--primary);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--primary-dark);
  background-image: linear-gradient(rgba(79, 4, 13, 0.8), rgba(32, 2, 5, 0.9)), url('../images/tadas-mikuckis-hbnh0iljuze-unsplash-scaled.webp');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding-top: 100px;
}

.hero-content {
  max-width: 650px;
}

.hero-logo {
  margin-bottom: 28px;
}

.hero-logo img {
  max-width: 600px;
  height: auto;
  display: block;
}

.hero h1 {
  color: var(--text-white);
  margin-bottom: 24px;
  font-size: 3.5rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--accent-gold);
}

.hero p {
  color: rgba(248, 250, 252, 0.85);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

/* Features Section (Why Choose Us) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background-color: var(--bg-white);
  padding: 40px 32px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 194, 176, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 24px;
  display: inline-block;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  margin-bottom: 0;
}

/* Instrument Section */
.instrument-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.instrument-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: var(--text-white);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
}

/* Fallback color gradients if image is not loaded */
.instrument-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(79, 4, 13, 0.95) 20%, rgba(79, 4, 13, 0.4) 60%, rgba(79, 4, 13, 0.1) 100%);
  z-index: 1;
}

.instrument-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.instrument-card:hover img {
  transform: scale(1.1);
}

.instrument-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.instrument-name {
  position: relative;
  z-index: 2;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 4px;
}

.instrument-desc {
  position: relative;
  z-index: 2;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(15px);
  opacity: 0;
  transition: all var(--transition-speed) ease;
}

.instrument-card:hover .instrument-desc {
  transform: translateY(0);
  opacity: 1;
}

/* Testimonials / Quote Section */
.testimonials-section {
  background-color: var(--primary);
  background-image: linear-gradient(rgba(79, 4, 13, 0.92), rgba(32, 2, 5, 0.96)), url('../images/tadas-mikuckis-hbnh0iljuze-unsplash-1-scaled.webp');
  background-size: cover;
  background-position: center;
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-icon {
  font-size: 4rem;
  color: rgba(212, 194, 176, 0.3);
  line-height: 1;
  margin-bottom: 24px;
}

.testimonial-card {
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  padding: 48px;
  border-radius: var(--border-radius-md);
  margin-top: 24px;
}

.testimonial-text {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--text-white);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-gold);
}

.testimonial-rating {
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.news-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 194, 176, 0.3);
}

.news-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
  transform: scale(1.05);
}

.news-meta {
  padding: 24px 24px 12px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-gold-hover);
  letter-spacing: 0.05em;
}

.news-content {
  padding: 0 24px 24px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-content p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.news-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-link:hover {
  color: var(--accent-gold);
}

/* Footer styling */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0 30px 0;
  border-top: 2px solid var(--accent-gold);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--text-white);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--accent-gold);
}

.footer-col p {
  color: rgba(248, 250, 252, 0.7);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(248, 250, 252, 0.7);
}

.footer-col ul li a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.85rem;
}

/* Page Header (Subpages) */
.page-header {
  background-color: var(--primary);
  padding: 120px 0 60px 0;
  text-align: center;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header h1 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(248, 250, 252, 0.8);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Redesigned Courses Page with Tabs/Filters */
.courses-tabs {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  background-color: var(--bg-white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  box-shadow: var(--card-shadow);
}

.tab-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
}

.tab-btn.active {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  border-color: var(--accent-gold);
}

.course-category-section {
  margin-bottom: 60px;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.course-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 194, 176, 0.25);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.course-tag {
  background-color: rgba(212, 194, 176, 0.1);
  color: var(--accent-gold-hover);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.course-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.course-details {
  list-style: none;
  margin: 16px 0 24px 0;
  font-size: 0.95rem;
}

.course-details li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.course-details li strong {
  color: var(--primary);
}

.course-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

/* Pricing Page Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 30px;
}

.pricing-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  transition: all var(--transition-speed) ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-gold);
}

.pricing-card.popular {
  border: 2px solid var(--accent-gold);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  margin-bottom: 30px;
}

.pricing-value {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-gold-hover);
  font-weight: bold;
}

/* Team Section (Teachers) */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.teacher-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-speed) ease;
}

.teacher-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(212, 194, 176, 0.2);
}

.teacher-img {
  height: 260px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.teacher-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.teacher-card:hover .teacher-img img {
  transform: scale(1.05);
}

.teacher-info {
  padding: 24px;
}

.teacher-instrument-tag {
  background-color: rgba(212, 194, 176, 0.1);
  color: var(--accent-gold-hover);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.teacher-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.teacher-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Local Facilities Page Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  height: 250px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Registration Form Page */
.registration-container {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 48px;
  align-items: start;
}

.registration-info {
  padding-right: 24px;
}

.registration-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 40px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
  scroll-margin-top: 150px; /* Offset for fixed header & announcement bar to prevent clipping when scrolled to */
}

/* Glassmorphism style wrapper for HubSpot Form */
.registration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  pointer-events: none;
  border: 1px solid rgba(212, 194, 176, 0.15);
  box-sizing: border-box;
}

.info-list {
  list-style: none;
  margin-top: 24px;
}

.info-list li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-number {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.info-list h4 {
  margin-bottom: 4px;
}

.info-list p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* HubSpot custom override elements in static page */
.hs-form-wrapper {
  margin-top: 16px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .course-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .instrument-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .teachers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .registration-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .registration-info {
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .course-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .nav-menu {
    display: none; /* Mobile menu logic should be implemented */
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero {
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-logo img {
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .instrument-grid {
    grid-template-columns: 1fr;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
  }
  
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .teachers-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .registration-card {
    padding: 24px;
  }
}

/* Custom Adult Form Styling */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(226, 232, 240, 1);
  background-color: var(--bg-light);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all var(--transition-speed) ease;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(212, 194, 176, 0.15);
}

.form-success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease;
}

.form-success-icon {
  font-size: 4rem;
  color: var(--accent-gold-light);
  margin-bottom: 20px;
}

/* Homepage Adult Promo Section Layout */
.adult-promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.adult-badge {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
}

.adult-promo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.adult-promo-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.adult-promo-feature h4 {
  color: var(--text-white);
  margin-bottom: 4px;
}

.adult-promo-feature p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.feature-bullet {
  color: var(--accent-gold);
  font-weight: bold;
  font-size: 1.2rem;
}

.adult-promo-image {
  height: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.adult-promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive grid for adult promo */
@media (max-width: 1024px) {
  .adult-promo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .adult-promo-image {
    height: 350px;
    order: -1; /* Image on top on smaller screens */
  }
}

/* Teacher Contact Styling */
.teacher-contact {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 500;
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  padding-top: 10px;
}

.teacher-contact strong {
  color: var(--primary);
}

.teacher-contact a {
  color: var(--accent-gold-hover);
  text-decoration: none;
}

.teacher-contact a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Responsive Video Grid & Cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.video-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-gold);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.video-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.video-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Responsive Page Headers */
@media (max-width: 1024px) {
  .page-header {
    height: auto;
    min-height: 260px;
    padding: 110px 24px 60px;
  }
  .page-header h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    height: auto;
    min-height: 220px;
    padding: 100px 20px 50px;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .page-header p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    height: auto;
    min-height: 200px;
    padding: 95px 16px 40px;
  }
  .page-header h1 {
    font-size: 1.7rem;
  }
  .page-header p {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Top Announcement Bar */
.announcement-bar {
  background-color: var(--accent-gold);
  color: var(--primary-dark);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.announcement-bar p {
  margin: 0;
}

.announcement-bar a {
  text-decoration: underline;
  color: var(--primary-dark);
  font-weight: 700;
  margin-left: 6px;
}

.announcement-bar a:hover {
  color: #000;
}

/* Spacing overrides are now handled dynamically in news-renderer.js to prevent visual layout flicker */
/*
header {
  top: 36px !important;
}

body {
  padding-top: 36px;
}
*/

/* Dynamic banner positioning using head-loaded class to prevent layout shifts */
html.has-banner header {
  top: 36px !important;
}

html.has-banner body {
  padding-top: 36px;
}

@media (max-width: 768px) {
  .announcement-bar {
    font-size: 0.78rem;
    height: auto;
    min-height: 36px;
    padding: 6px 12px;
  }
}

/* Course Teachers & Avatars linking to om-oss.html */
.course-teachers {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 12px;
}

.course-teachers > span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.teacher-avatars {
  display: flex;
  align-items: center;
}

.teacher-avatar-link {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--bg-white);
  overflow: hidden;
  margin-left: -14px; /* Stack avatars */
  transition: all var(--transition-speed) ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(42, 36, 33, 0.08);
}

.teacher-avatar-link:first-child {
  margin-left: 0;
}

.teacher-avatar-link:hover {
  transform: translateY(-6px) scale(1.5);
  z-index: 10;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(79, 4, 13, 0.25);
}

.teacher-avatar-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Highlight Target Teacher card when clicking from kurser.html */
.teacher-card {
  transition: all var(--transition-speed) ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
  scroll-margin-top: 150px; /* Offset for fixed header & announcement bar to prevent clipping */
}

.teacher-card:target {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(140, 29, 64, 0.15), var(--card-shadow-hover);
  transform: translateY(-6px);
  animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 10px rgba(140, 29, 64, 0.4);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(140, 29, 64, 0.15), var(--card-shadow-hover);
  }
}

/* Widescreen optimization for high-resolution monitors (e.g. 1440p / 2560px) */
@media (min-width: 1400px) {
  :root {
    --max-width: 1400px;
  }
}

/* About Intro Grid Layout */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 30px;
  text-align: left;
}

@media (min-width: 768px) {
  .about-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  
  .about-intro-col-right {
    border-left: 2px solid var(--accent-gold);
    padding-left: 40px;
  }
}

/* Language Switcher Styling */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 10px;
}

.lang-switch a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.6;
  transition: opacity var(--transition-speed);
}

.lang-switch a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.lang-switch span.active {
  color: var(--accent-gold);
  cursor: default;
}

