/**
 * Landing Page CSS för ITV
 * Modern hemsidedesign - inte adminpanel
 */

/* ==========================================================================
   Base / Reset for Landing Page
   ========================================================================== */

html, body {
  margin: 0;
  padding: 0;
}

.landing-page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.landing-page * {
  box-sizing: border-box;
}

/* ==========================================================================
   Hero Section - Banner 200px
   ========================================================================== */

.hero-section {
  position: relative;
  height: 1000px;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #234876 100%);
  margin: 0;
  padding: 0;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(10, 22, 40, 0.7) 0%,
    rgba(10, 22, 40, 0.3) 50%,
    rgba(10, 22, 40, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  color: #fff;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  color: #fff;
}

.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 3;
}

.hero-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-indicator:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-indicator.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

/* Hero placeholder when no banners */
.hero-placeholder {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.hero-placeholder h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero-placeholder p {
  font-size: 1rem;
  opacity: 0.8;
}

/* ==========================================================================
   Landing Header (Transparent)
   ========================================================================== */

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  margin: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.landing-header.scrolled {
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-logo i {
  font-size: 2rem;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-menu a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

.landing-menu a:hover {
  color: #fff;
}

.landing-menu .btn-login {
  padding: 0.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  transition: all 0.3s;
}

.landing-menu .btn-login:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.landing-section {
  padding: 100px 5%;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #1a365d;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   News Section
   ========================================================================== */

.news-section {
  background: #f8fafc;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.news-card-body {
  padding: 1.75rem;
}

.news-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.news-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card h3 a:hover {
  color: #3b82f6;
}

.news-date {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.news-summary {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: #3b82f6;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
}

.news-link:hover {
  gap: 0.7rem;
}

.section-cta {
  text-align: center;
  margin-top: 50px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border: 2px solid #3b82f6;
  color: #3b82f6;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #3b82f6;
  color: #fff;
}

/* ==========================================================================
   Support Section
   ========================================================================== */

.support-section {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  color: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.support-content h2 {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.support-content .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.support-content p {
  opacity: 0.8;
  line-height: 1.7;
}

.support-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0 0;
}

.support-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 1.05rem;
}

.support-features li i {
  font-size: 1.4rem;
  color: #4ade80;
}

/* Support Contact Box */
.support-contact-box {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-contact-box h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.support-contact-box h4 i {
  color: #4ade80;
}

.support-contact-box p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.support-contact-box a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.support-contact-box a:hover {
  color: #4ade80;
}

.support-contact-box a i {
  font-size: 1.1rem;
}

/* Login Card */
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.login-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 2rem;
}

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

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

.form-group .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-group .forgot-link {
  font-size: 0.85rem;
  color: #3b82f6;
  text-decoration: none;
}

.form-group .forgot-link:hover {
  text-decoration: underline;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.login-footer {
  text-align: center;
  margin-top: 1.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

/* ==========================================================================
   Education Section
   ========================================================================== */

.education-section {
  background: #fff;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.edu-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.edu-card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-card-image i {
  font-size: 4rem;
  color: #0284c7;
}

.edu-card-body {
  padding: 1.75rem;
}

.edu-category {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.edu-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.edu-description {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.edu-card-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid #f1f5f9;
}

.btn-edu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-edu.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.btn-edu.primary:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-edu.outline {
  background: transparent;
  color: #3b82f6;
  border: 2px solid #3b82f6;
}

.btn-edu.outline:hover {
  background: #3b82f6;
  color: #fff;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.landing-footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h4 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .support-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .landing-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 22, 40, 0.98);
    padding: 1.5rem 5%;
    gap: 0;
  }

  .landing-menu.active {
    display: flex;
  }

  .landing-menu li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .landing-menu li:last-child {
    border-bottom: none;
    padding-top: 1rem;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 400px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .landing-section {
    padding: 70px 5%;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .news-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .support-content h2 {
    font-size: 2rem;
  }

  .login-card {
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-brand p {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-btn {
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .landing-logo {
    font-size: 1.25rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }
}
