/* GRUNDLÄGGANDE INSTÄLLNINGAR */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f6f9;
    color: #333333;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HERO / SÖK-SEKTION */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2)), 
                url('../files/bg.jpg?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
    height: 380px;
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    font-size: 0.85rem;
    font-weight: 300;
}

.social-icons a {
    margin-left: 15px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.hero-content img {
     margin: -3px;
     z-index:2;}

.dot-nu {
    color: #2b70e4;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* SÖKRUTA */
.search-container {
    width: 100%;
    max-width: 700px;
    background-color: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 25px;
}

.search-icon {
    color: #888888;
    font-size: 1.1rem;
    margin-right: 10px;
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
}

.search-btn {
    background-color: #1a63db;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: #134eb3;
}

/* KATEGORIER */
.search-categories {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
}

.search-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.search-categories a:hover, .search-categories a.active {
    opacity: 1;
    border-bottom-color: #1a63db;
}

/* HUVUDINNEHÅLL GRID */
.main-content {
    padding: 40px 0;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* KORT (CARDS) */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1a202c;
}

.blue-icon {
    color: #1a63db;
}

.view-more {
    color: #1a63db;
    font-size: 0.85rem;
    font-weight: 600;
}

/* BILDKARUSELL */
.carousel {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-image {
    flex: 1;
    min-height: 220px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e0;
    cursor: pointer;
}

.dot.active {
    background-color: #1a63db;
}

/* VIDEOSEKTION */
.video-container {
    display: flex;
    flex-direction: column;
}

.video-player {
    height: 190px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.play-btn-overlay {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-btn-overlay:hover {
    transform: scale(1.1);
}

.video-controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 0.75rem;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.right-controls i {
    margin-left: 10px;
    cursor: pointer;
}

.video-info {
    margin-top: 15px;
}

.video-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.video-desc {
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 8px;
}

.video-meta {
    font-size: 0.75rem;
    color: #718096;
}

/* NYHETSSEKTION */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 12px;
}

.news-thumb {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-content h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.news-content p {
    font-size: 0.75rem;
    color: #4a5568;
    line-height: 1.3;
    margin-bottom: 3px;
}

.news-content .time {
    font-size: 0.7rem;
    color: #a0aec0;
}

/* OM-SEKTION / FUNKTIONER */
.about-section {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-logo-wrapper {
    background-color: #1a63db;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.about-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.about-text p {
    font-size: 0.8rem;
    color: #4a5568;
    line-height: 1.4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    color: #1a63db;
    font-size: 1.4rem;
    margin-top: 2px;
    width: 25px;
    text-align: center;
}

.feature-item h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.75rem;
    color: #718096;
}

/* FOOTER */
.footer {
    background-color: #0b1528;
    color: #a0aec0;
    padding: 40px 0;
    font-size: 0.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 0.8fr;
    gap: 40px;
}

.footer h3 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-brand p {
    margin-bottom: 15px;
}

.copyright {
    font-size: 0.75rem;
    color: #718096;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #ffffff;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tags a {
    background-color: #16243d;
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.search-tags a:hover {
    background-color: #243556;
}

.social-circle-icons {
    display: flex;
    gap: 10px;
}

.social-circle-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #16243d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.social-circle-icons a:hover {
    background-color: #1a63db;
}

/* RESPONSIVITET FÖR MINDRE SKÄRMAR */
@media (max-width: 992px) {
    .grid-3-cols {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero-content img {max-width: 320px;}
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Container för hela kortet */
.video-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  max-width: 500px; /* Justera bredden så den passar din layout */
  border: 1px solid #f0f0f0;
}

/* Header-raden */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.play-icon {
  width: 24px;
  height: 24px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.visa-fler {
  color: #0062ff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.visa-fler:hover {
  text-decoration: underline;
}

/* Själva videospelaren */
.video-wrapper {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
  aspect-ratio: 4 / 3;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Texten under videon */
.video-meta-container {
  margin-top: 16px;
}

.video-title {
  font-size: 15px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.video-description {
  font-size: 13px;
  color: #4a4a4a;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.video-stats {
  font-size: 12px;
  color: #8c8c8c;
  margin: 0;
}

/* Behållaren för hela formuläret */
.search-form {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 100px; 
  max-width: 700px; 
  width: 100%;
  box-sizing: border-box;
}

/* Wrapper för ikonen och textfältet */
.search-input-wrapper {
  display: flex;
  align-items: center;
  flex: 1;
 color:#444;
 background:#fff;
}

/* Sökikonen */
.search-icon {
  width: 22px;
  height: 22px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Själva textfältet */
.search-form input[type="text"] {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #111111;
  font-family: inherit;
  outline: none; /* Tar bort standardramen när man klickar i fältet */
}

/* Placeholder-textens färg */
.search-form input[type="text"]::placeholder {
  color: #757575;
  opacity: 1;
}

/* Den blå sökknappen */
.search-button {
  background-color: #0062ff;
  color: #ffffff;
  border: none;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px; /* Matchar den yttre formen */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-button:hover {
  background-color: #0052d4; /* Blir något mörkare vid hover */
}

/* Kortets grunddesign */
.carousel-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 500px;
  width: 100%;
  border: 1px solid #f0f0f0;
  box-sizing: border-box;
}

/* Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-icon {
  width: 24px;
  height: 24px;
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
  margin: 0;
}

.visa-fler {
  color: #0062ff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Visningsfönster för bilderna */
.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0f0f0;
}

/* Spåret där bilderna ligger dolda */
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pilarna ovanpå bilden */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.2s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

/* Prickarna under bilden */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #cccccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
}

.dot.active {
  background-color: #0062ff; /* Första pricken är blå på bilden */
}