/* Base Styles */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #f7b733;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --header-color: #2c3e50;
    --border-color: #e1e5eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin: 0 15px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: all 0.3s ease;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    width: 200px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    width: 220px;
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    margin-left: -30px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--primary-color);
}

/* Slider Section */
.news-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
}

.slide-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 30px;
    color: white;
    text-align: left;
}

.category-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.slide-excerpt {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.slide-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.slide-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.slide-link:hover::after {
    left: 100%;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0 15px;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-dots {
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* Content Grid */
.content-grid {
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    padding: 0 20px;
}

.grid-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.featured-article {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
}

.article-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--header-color);
}

.article-excerpt {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.article-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.article-link:hover::after {
    left: 100%;
}

.hot-topics, .recent-news, .video-previews, .editor-picks {
    grid-column: span 4;
}

.grid-title {
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    margin: 0;
    font-size: 1.3rem;
}

.topic-list {
    padding: 0 20px 20px;
}

.topic-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.topic-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.topic-content {
    flex-grow: 1;
}

.topic-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--header-color);
}

.topic-excerpt {
    font-size: 0.9rem;
    color: #666;
}

.news-list {
    padding: 20px;
}

.news-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.news-img-container {
    flex: 0 0 100px;
    margin-right: 15px;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.3;
    color: var(--header-color);
}

.news-date {
    font-size: 0.8rem;
    color: #888;
}

.view-more {
    display: block;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-more:hover {
    background-color: var(--primary-color);
    color: white;
}

.video-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.video-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
}

.video-title {
    padding: 10px;
    font-size: 0.9rem;
    color: var(--header-color);
}

.picks-container {
    padding: 20px;
}

.pick-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.pick-number {
    flex: 0 0 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 5px;
    margin-right: 15px;
}

.pick-content {
    display: flex;
    flex-grow: 1;
}

.pick-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.pick-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pick-title {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--header-color);
    line-height: 1.3;
}

.pick-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 26px 0 13px;
}

.footer-top {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 0 0 300px;
    margin-bottom: 30px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: block;
}

.footer-tagline {
    color: #ccc;
    font-size: 1rem;
}

.footer-links {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

.footer-column {
    flex: 0 0 200px;
    margin: 0 20px 30px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #ccc;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-legal {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-legal a {
    color: #ccc;
    margin: 0 15px;
    font-size: 0.9rem;
}

.copyright {
    color: #ccc;
    font-size: 0.9rem;
}

/* Overlay for effects */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.1) 0%, rgba(37, 117, 252, 0.1) 100%);
    z-index: -1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .featured-article {
        grid-column: span 12;
    }

    .hot-topics, .recent-news, .video-previews, .editor-picks {
        grid-column: span 6;
    }
}

@media (max-width: 992px) {
    .header-content {
        padding: 15px 20px;
    }
    #adv1{
        margin-top: 157px !important;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px var(--shadow-color);
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 15px 0;
    }

    .hamburger-menu {
        display: flex;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .search-container {
        margin-left: auto;
    }

    .news-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .search-container {
        width: 100%;
        margin-top: 15px;
    }

    .search-input {
        width: 100%;
    }

    .news-slider {
        height: 350px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-excerpt {
        font-size: 1rem;
    }

    .hot-topics, .recent-news, .video-previews, .editor-picks {
        grid-column: span 12;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-column {
        flex: 0 0 100%;
    }
}