  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    max-width: 1380px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
    color: #222;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  
  a {
    color: #222;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 1px dotted;
  }

  a:hover {
    color: #0000FF;
    border-bottom: 1px solid;
  }

  header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  header span {
    display: flex;
    align-items: center;
    margin-right: auto;
  }

  header span img{
    height: 60px;
    margin-right: 5px;
  }
  
  header span h1 {
    font-size: 24px;
    
  }
  
  .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    
  }

  
  .hero {
    margin: 20px 0;
    padding: 10px 0;
    max-width: 600px;
  }

  .main {
    margin-top: 20px;
    margin-bottom: 50px;
  }

  footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  footer .sc {
    margin-left: auto;
  }

  .list-top{
    display: flex;
    gap:30px;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-weight: bold;
  }


  .list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }


  
  .list-item {
    display: flex;
    border-bottom: 1px dotted;
    padding: 8px 0;
    font-size: 15px;
    gap: 10px;
    
  }

  .start {
    width: 140px;
    white-space: nowrap;
  }

  .content{
    margin-right: auto;
    flex: 1;
  }

  .end{
    white-space: nowrap;
    flex-shrink: 0;
  }

  .paging{
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .tags{
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   align-items: center;
   margin-top: 20px;
   margin-bottom: 20px;
  }

  .tags a{
  border-bottom: 1px dotted;
  }

  .tags a:hover{
  border-bottom:1px solid;
  }

/* Page */
    .page {
      margin: 20px auto 60px;
      max-width: 1100px;
      line-height: 1.6;
    }

    .page h1, h2, h3, h4{

      margin:15px 0;
    }

    .page ul{
      list-style: disc;
      margin-left: 30px;
    }


/* Medium screens - location wraps below */
@media (max-width: 768px) {
  .list-item {
    flex-wrap: wrap;
    
  }
  
  .start {
    order: 1;
  }
  
  .content {
    order: 2;
    flex: 1;
  }
  
  .end {
    order: 3;
    width: 100%;
  }
}


/* Small screens - vertical stack */
@media (max-width: 480px) {
  .list-item {
    flex-direction: column;
  }

}

/* Ads or Featured section */

    .ad-section {
        
        margin: 20px auto 100px;
    }

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

    .ad-card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
        border-radius: 8px;
        border:none;
        cursor: pointer;
        transition: background-color 0.2s ease;
        text-decoration: none;
        color: inherit;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-top: 10px;
        min-width: 320px;
        
    }

    .ad-card:hover {
        
        border: none;
    
    }

    .ad-card-content {
        flex: 1;
    }

    .ad-card-title {
        font-size: 16px;
        font-weight: 600;
        margin-top: 0;
        margin-bottom: 4px;
    }

    .ad-card-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .ad-card-image {
        width: 74px;
        height: 74px;
        border-radius: 6px;
        object-fit: cover;
        flex-shrink: 0;
    }