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

 :root {
      --bg-dark: #0f1419;
      --bg-darker: #0a0e14;
      --accent: #e63946;
      --accent-hover: #f48c96;
      --text: #e0e0e0;
      --text-light: #2b2b2b40;
 }

body{
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg-darker);
}

.container{
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;

}

/* HEADER START */
.header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo{
    width: 20%;
    margin: 0 10px;
}

.logo img{
    width: 80%;
    object-fit: cover; 
    object-position: center;
}

.search-bar {
      flex: 1;
      max-width: 420px;
      margin: 0 32px;
    }

.search-bar {
      flex: 1;
      max-width: 420px;
      margin: 0 32px;
    }

.search-bar input {
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: #1e2a38;
    color: white;
    font-size: 0.95rem;
}    

.search-results{
  position:absolute;
  top:44px;
  left:0;
  right:0;
  background:#fff;
  border:1px solid #ddd;
  border-radius:10px;
  max-height:320px;
  overflow:auto;
  z-index:9999;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.search-item{
  padding:10px 12px;
  cursor:pointer;
  border-bottom:1px solid #f1f1f1;
  font-size:14px;
}

.search-item:last-child{ border-bottom:none; }

.search-item:hover{
  background:#f7f7f7;
}

@media (min-width: 800px){
    .header .logo{
    width: 10%;
}
.header {
    padding-right: 80px;
}
}
/* HEADER END */


/* HERO BANNER START */
.hero{
    width: 100%;
    height: 60vh;
    background: url(image/banner.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.breaking-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom: 16px;
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
}

.hero p {
      font-size: 1.3rem;
      max-width: 720px;
      color: #d0d0d0;
}
/* HERO BANNER END */


/* SLIDER  START*/
.top-stoires-header{
    width: 90%;
    margin: 20px 0 0 0;
}

.top-stoires-header h1{
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent);
    padding-left: 14px;
    color: white;
}

.top-stories{
    width: 90%;
    display: flex;
    justify-content: center;    
}
.news-wrapper{
    max-width: 1240px;
    min-width: 620px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news{
    display: flex;
    gap: 10px;
    overflow: hidden;
    scroll-behavior: smooth;
}

/* boxs start */
.news .box{
    width: 300px;
    height: 300px;
    background-color: var( --text-light);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s ease-in;
    text-decoration: none;
}

.news .box:hover{
    border: rgba(255, 0, 0, 0.389) 1px solid;
    transform: scale(0.99);
    
}

.box .image-box{
    width: 100%;
    height: auto;
    position: relative;
}

.box .image-box img{
    width: 100%;
    object-fit: cover; 
    object-position: center;
}

.image-box h2{
    position: absolute;
    text-align: center;
    width: 100%;
    background-color: #0000007d;
    color: white;
    bottom: 0;
    font-size: 20px;
}

.box .content-box{
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-box p{
    color: white;
    font-size: 13px;
    text-align: center;
}
/* boxs END */

/* butons*/
.nav{
    border: none;
    cursor: pointer;
    position: absolute;
    z-index: 9;
    background: transparent;
}

.nav i{
    font-size: 60px;
    color: rgba(255, 255, 255, 0.342);
    transition: 0.5s ease-in-out;
}

.nav i:hover{
    color: white;
}

.news-wrapper .left{
    left: 10px;

}
.news-wrapper .right{
    right: 10px;
}

@media (max-width: 700px){
.news .box{
    width: 250px;
    height: 250px;
}
.news-wrapper {
    min-width: 500px;}
.image-box h2{
    font-size: 16px;
}
}

@media (max-width: 600px){
.news .box{
    width: 200px;
    height: 200px;
}
.news-wrapper {
    min-width: 400px;}

.image-box h2{
    font-size: 14px;
}
}

@media (max-width: 500px){
.news .box{
    width: 200px;
    height: 200px;
}
.news-wrapper {
    min-width: 300px;}

}

@media (max-width: 350px){
.news .box{
    width: 200px;
    height: 200px;
}
.news-wrapper {
    min-width: 200px;}

}

/* SLIDER  END*/

.sections{
    display: flex;
    width: 90%;
    gap: 30px;
    padding: 30px 0;
}

/* TRENDİNG START*/

.trending{
    width: 60%;

}
.trending-header{
    width: 90%;
    margin: 20px 0 0 0;
}

#trendingList{
    max-height: 400px;
    overflow-y: scroll;
}
.trending-header h1{
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent);
    padding-left: 14px;
    color: white;
}

.story-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1e2a38;
    align-items: center;
}

.story-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.story-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}

.story-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.35;
    color: white;
}

.story-card h3 a {
    color: inherit;
    text-decoration: none;
    color: white
}

.story-card h3 a:hover {
    color: var(--accent-hover);
}

@media (max-width: 700px){
.story-card{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
}
.story-card img {
    width: 80%;
}  
}

@media (max-width: 500px){
.sections{
    display: flex;
    flex-direction: column;
}
.trending{
    width: 100%;
}
.informations{
    width: 100% !important;
}
}

@media (max-width: 350px){
.story-card h3{
    font-size: 1.1rem;
}
}


/* TRENDİNG END*/


/* İNFORMATİONS START */
.informations{
    width: 40%;
}
.informations-header{
    width: 90%;
    margin: 20px 0 0 0;
}

#infoList{
    max-height: 400px;
    overflow-y: scroll;
}

.informations-header h1{
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent);
    padding-left: 14px;
    color: white;
}

.informations ul{
    list-style: none;
}

.informations ul li{
    margin: 10px 0;
    font-size: 1.05rem;
    background-color: rgba(59, 59, 59, 0.391);
    padding: 5px 10px;
    text-align: left;
    width: 100%;
    border-radius: 5px;
}

.informations ul li a{
    text-decoration: none;
    color: white;
}
.informations ul li a:hover{
    color: var(--accent-hover);

}

/* İNFORMATİONS END*/


/* FOOTER */

footer{
    width: 100%;
    padding: 30px 0;
}