/* Base Styles */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --danger-color: #f72585;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --info-color: #4895ef;
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    outline: none;
    border: none;
}

.headerMainDiv, .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}
.btn-outline-danger {
    background-color: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    color: var(--gray-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Header Styles */
.announcement-bar {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
}

.announcement-bar a {
    color: var(--accent-color);
    font-weight: 500;
    margin-left: 5px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn, .mobile-menu-btn {
    background: none;
    color: var(--dark-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover, .mobile-menu-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn, .mbSubscribeBtn {
    display: none;
}

.singUpButtons, .pcSubscribeBtn {
    display:block;
}


/* Search Overlay */
.search-overlay {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1001;
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-overlay.active {
    top: 0;
}

.search-box {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
    font-size: 1rem;
    box-shadow: var(--box-shadow);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--gray-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.search-close {
    right: 45px !important;
}

.search-suggestions {
    margin-top: 20px;
    text-align: center;
}

.search-suggestions h4 {
    font-family: var(--font-primary);
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--gray-color);
}

.search-suggestions ul {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-suggestions a {
    color: var(--primary-color);
    font-weight: 500;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow-hover);
}

/* Featured Categories */
.featured-categories {
    padding: 80px 0;
    background-color: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-gray);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.category-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Articles Section */
.trending-articles, .latest-articles {
    padding: 80px 0;
    background-color: #f9fafc;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.article-card.featured {
    grid-column: span 2;
    display: flex;
}

.article-card.featured .article-image {
    flex: 1;
}

.article-card.featured .article-content {
    flex: 1;
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-card.featured .article-image {
    height: auto;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.category {
    color: var(--primary-color);
    font-weight: 500;
}

.reading-time {
    color: var(--gray-color);
}

.article-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-content p {
    color: var(--gray-color);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

.author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.author span {
    font-size: 0.9rem;
    font-weight: 500;
}

.article-stats {
    display: flex;
    gap: 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.article-stats i {
    margin-right: 3px;
}

/* Latest Articles List */
.articles-list {
    display: grid;
    gap: 30px;
}

.article-item {
    display: flex;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.article-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.article-item .article-image {
    width: 250px;
    height: auto;
    flex-shrink: 0;
}

.article-details {
    padding: 25px;
    flex: 1;
}

.article-meta {
    margin-bottom: 10px;
}

.date {
    color: var(--gray-color);
}

.excerpt {
    margin: 15px 0;
    color: var(--gray-color);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: white;
}

.newsletter .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.newsletter-content {
    flex: 1;
}

.newsletter h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: white;
}

.newsletter p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
}

.newsletter-form input {
   /* flex: 1;*/
    padding: 15px 20px;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    width:100%;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
}

.small-text {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}

.newsletter-image {
    flex: 1;
}

.newsletter-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Popular Authors */
.popular-authors {
    padding: 80px 0;
    background-color: white;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.author-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-gray);
}

.author-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.author-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--light-gray);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card h3 {
    margin-bottom: 5px;
}

.author-bio {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

.section-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: #f9fafc;
}

.testimonials-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.testimonial-card {
    min-width: 350px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    scroll-snap-align: start;
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--light-gray);
    position: absolute;
}

.testimonial-content p::before {
    top: -15px;
    left: -10px;
}

.testimonial-content p::after {
    bottom: -25px;
    right: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #b3b3b3;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.footer-about p {
    color: #b3b3b3;
    margin: 15px 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    width:260px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-newsletter-form {
    display: flex;
    margin-top: 20px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.footer-newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    padding: 0 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #b3b3b3;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background-color: white;
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-close {
    background: none;
    font-size: 1.5rem;
    color: var(--gray-color);
    cursor: pointer;
}

.mobile-nav {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav a.active {
    color: var(--primary-color);
}

.menu-divider {
    height: 1px;
    background-color: var(--light-gray);
    margin: 15px 0;
}

.mobile-menu-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.mobile-menu-footer .social-links {
    justify-content: center;
    margin-bottom: 15px;
}

/* Filter Options */
.filter-options {
    display: flex;
    gap: 15px;
}

.filter-options select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid var(--light-gray);
    font-size: 0.9rem;
    background-color: white;
    cursor: pointer;
}

/* Load More Button */
.load-more {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container, .newsletter .container {
        flex-direction: column;
    }
    
    .hero-content, .newsletter-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-actions, .newsletter-form {
        justify-content: center;
    }
    
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .article-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn, .mbSubscribeBtn {
        display: block;
    }
    .singUpButtons,.pcSubscribeBtn{
        display:none;
    }
    .section-header{
        flex-wrap: wrap;
    }
    
    .header-actions a:not(.btn) {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-item .article-image {
        width: 100%;
        height: 200px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-actions, .filter-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-card {
        min-width: 280px;
    }
}