@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root{
  --main-color: #28a745;
  --red: #fc0909;
  --black: #222;
  --white: #fff;
  --light-black: #333;
  --light-black-2: #111;
  --light-white: #fff9;
  --dark-rgba: (0, 0, 0, .7);
  --light-bg: #eee;
  --border: .1rem solid var(--black);
  --box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
  --text-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
}

*{
    font-family: 'Poppins', Sans-Serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    outline: none; border: none;
    text-decoration: none;
    text-transform: capitalize;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
    background: var(--black);
}
 /* Navigation */
.header {
    position: sticky;
    left: 0; right: 0; top: 0;
    z-index: 1000;
    padding: 2rem 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--main-color);
    box-shadow: var(--box-shadow);
}
.header .logo a{
    font-size: 3rem;
    color: var(--white);
}
.header .navbar a{
    font-size: 2rem;
    color: var(--white);
    margin-left: 2rem;
}
.header .navbar a:hover{
    color: var(--black);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    position: relative;
}

.hero-content {
    position: relative;
    width: 100%;
    padding: 2rem;
    display: flex;
    text-align: flex-end;
    align-items: flex-end;
    justify-content: space-between;
   
}

.hero-content .search{
    position: absolute;
    top: 0;
    right: 0;
    margin: 2rem;
}
.search-page{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 1px solid var(--white);
    padding: 1rem 1.5rem;
    border-radius: 5px;
}
.search form{
    padding: 1rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--white);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.search form input, .search-page form input{
    background: transparent;
    color: var(--white);
    font-size: 1.8rem;
    width: 100%;
}
.search form button, .search-page .search-btn button{
    background-color: transparent;
    cursor: pointer;
}
.search form button i, .search-page .search-btn button i{
    color: var(--white);
    font-size: 2rem;
    border: none;
}
.search form button i:first-child, .search-page .search-btn button i:first-child{
    margin-right: 2rem;
}

.search input::placeholder{
    color: var(--light-white);
    font-style: italic;
}

.hero-content .hero-main{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-content .sub-title h1{
    color: var(--white);
    font-size: 3rem;

}
.hero-category {
    background-color: #28a745;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-date {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.hero-comments {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.comment-icon {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.hero-comments span{
    font-size: 1.5rem;
    color: var(--white);
}
/* Main Content */
.main-content {
    background-color: var(--black);
    padding: 2rem 10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Popular Posts */
.popular-posts {
    margin-bottom: 3rem;
}

.container h2{
    font-size: 2.5rem;
    color: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.see-all {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.8rem;
    cursor: pointer;
}

.see-all:hover {
    color: var(--main-color);
}

.posts-slider {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.posts-grid {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.post-card {
    flex: 0 0 200px;
    width: 90%;
    height: 360px;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-image {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}
.post-image .type{
    position: absolute;
    top: 0;
    left: 0;
    margin: .5rem;
    color: var(--white);
    padding: .8rem 1.2rem;
    background: var(--main-color);
    border-radius: 5px;
    font-size: 1.5rem;
}

.post-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-title {
    padding-left: .8rem;
    padding-right: .8rem;
    padding-bottom: 2rem;
    padding-top: .5rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: #28a745;
}

/* detail page */
.post-details{
    display: flex;
   
    margin-top: 2rem;
}
.post-details .details-image{
    margin-right: 2rem;
    margin-bottom: 1rem;
    width: 400px;
}
.post-details .details-image img{
    width: 100%;
    
}

.post-details .details-description{
    line-height: 1.5;
    font-size: 1.8rem;
    color: var(--white)
}
.post-details .movie-details h1{
    color: var(--white);
    font-size: 3rem;
}
.details-epsodes .epsodes-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem; 
    color: var(--white);
    font-size: 2rem;
}

.epsodes-header .title{
    font-size: 2rem;
    color: var(--white);
}

.epsodes-header .count{
    font-size: 2rem;
    color: var(--white);
}

.details-epsodes .list-epsode{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #333;
    border-radius: 5px;
}

.list-epsode .epsodes-number{
    color: var(--white);
    font-size: 1.8rem;
}

.list-epsode .status{
    background-color: var(--main-color);
    padding: .5rem;
    cursor: pointer;
    border-radius: 3px;
    color: #fff;
    font-size: 1.8rem;
}

.latest-section{
    margin-top: 2rem;
}
.latest-section .section-title{
    text-align: center;
    margin-bottom: 1rem;
}
.latest-section .filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.latest-section .filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.latest-section .filter-btn.active,
.latest-section .filter-btn:hover {
    background: #28a745;
    border-color: #28a745;
}
.latest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

/* All Page*/
.main-content .latest-section .all-title{
    color: var(--white);
    text-align: center;
    font-size: 3rem;
} 
.main-content .all-pagination{
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-content .all-pagination ul{
    display: flex;
    list-style-type: none;
}
.all-pagination button{
    padding: 1rem 2rem;
    text-align: center;
    background: var(--white);
    color: var(--black);
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
}

/*  Search Page */
.main-content .search-title{
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #111;
    padding: 2rem 0;
    border-top: 1px solid #333;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-text {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--main-color);
    font-size: 2rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-year {
    color: #666;
    font-size: 1.8rem;
}

@media (min-width: 769px) and (max-width: 1024px) {
    html{
        font-size: 55%;
    }
    .latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1025px) {
    html{
        font-size: 55%;
    }
    .latest-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    html{
        font-size: 50%;
    }
    .header, .main-content {
        padding: 2rem 5%;
    }
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--main-color);
        width: 100%;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .navbar.active {
        display: flex;
        color: var(--black);
        background: var(--main-color);
        padding: 2rem 0;
    }
    .navbar a{
        display: block;
        text-align: center;
        margin: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .hero{
        height: 70vh;
    } 

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-content .sub-title h1{
        font-size: 2rem;
        padding: 0 2rem;
    }

    .post-card {
        flex: 0 0 200px;
        height: 300px;
        
        margin: 0 auto;
    }

    .post-image{
        height: 250px;
    }

    .post-title {
        font-size: 2rem;
    }
    .post-details .details-image{
        width: 300px;
    }
    .post-details{
        flex-direction: column
    }
    .post-details .details-description{
        margin-top: 1rem;
    }
    .latest-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* footer start */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links a{
        font-size: 2rem;
    }
    }

    @media (max-width: 640px) {
        .latest-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
        .post-details .details-image{
            width: 250px;
        }
    }

    @media (max-width: 480px) {
        .hero{
            height: 60vh;
        } 

        .latest-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }
    
        .hero-title {
            font-size: 1.5rem;
        }

        .post-card {
            flex: 0 0 180px;
            height: 280px;
        }
    
        .post-image{
            height: 230px;
        }

        .post-title {
            font-size: 2rem;
        }
        
        .post-details .details-image{
            width: 250px;
        }
    }
   


