 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #4a6fa5;
            --secondary: #ff7e5f;
            --dark: #2c3e50;
            --light: #f8f9fa;
            --gray: #6c757d;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            padding-bottom: 50px;
        }

        .navbar {
            background-color: white;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
            margin-bottom: auto;
        }

        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 5%;
            border-bottom: 1px solid #eee;
        }
        
        
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo span {
    letter-spacing: 0.5px;
}

.logo:hover {
    color: #ff6a00;
}

.logo:hover img {
    transform: scale(1.1) rotate(-3deg);
}

        .logo {
            display: flex;
            align-items: center;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
        }

        .logo i {
            margin-right: 8px;
            color: var(--secondary);
        }

        .search-container {
            position: relative;
            width: 40%;
        }

        .search-container input {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 30px;
            outline: none;
            transition: all 0.3s;
        }

        .search-container input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
        }

        .search-container button {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--primary);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .search-container button:hover {
            background: var(--secondary);
        }

        .auth-buttons {
            display: flex;
            gap: 15px;
        }

        .auth-buttons a {
            padding: 8px 20px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }

        .sign-in {
            color: var(--primary);
            border: 1px solid var(--primary);
        }

        .sign-in:hover {
            background: var(--primary);
            color: white;
        }

        .subscribe {
            background: var(--secondary);
            color: white;
        }

        .subscribe:hover {
            background: #ff6b4a;
        }

        .main-nav {
            display: flex;
            justify-content: center;
            padding: 0 5%;
        }

        .nav-links {
            display: flex;
            list-style: none;
            position: relative;
        }

        .nav-links > li {
            position: relative;
        }

        .nav-links > li > a {
            display: block;
            padding: 15px 20px;
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            transition: all 0.3s;
            position: relative;
        }

        .nav-links > li > a:hover {
            color: var(--primary);
        }

        .nav-links > li > a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background: var(--secondary);
            transition: all 0.3s;
            transform: translateX(-50%);
        }

        .nav-links > li > a:hover::after {
            width: 80%;
        }

        .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 220px;
            box-shadow: var(--shadow);
            border-radius: 0 0 8px 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s;
            z-index: 100;
        }

        .nav-links li:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown li {
            list-style: none;
        }

        .dropdown li a {
            display: block;
            padding: 12px 20px;
            text-decoration: none;
            color: var(--dark);
            border-bottom: 1px solid #f0f0f0;
            transition: all 0.2s;
        }

        .dropdown li:last-child a {
            border-bottom: none;
        }

        .dropdown li a:hover {
            background: #f8f9fa;
            color: var(--primary);
            padding-left: 25px;
        }

        .mobile-toggle {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark);
        }

        /* Carousel Styles */
        .carousel-container {
            max-width: 1200px;
            margin:  auto;
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            height: 500px;
        }

        .carousel-slides {
            display: flex;
            width: 100%;
            height: 100%;
            transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .carousel-slide {
            min-width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slide-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            filter: brightness(0.7);
            transition: filter 0.5s;
        }

        .carousel-slide:hover .slide-bg {
            filter: brightness(0.5);
        }

        .slide-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            max-width: 80%;
            padding: 30px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 10px;
            backdrop-filter: blur(5px);
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.8s ease;
        }

        .carousel-slide.active .slide-content {
            transform: translateY(0);
            opacity: 1;
        }

        .slide-content h2 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--secondary);
        }

        .slide-content p {
            font-size: 1.2rem;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .btn-explore {
            display: inline-block;
            padding: 12px 30px;
            background: var(--secondary);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-explore:hover {
            background: white;
            color: var(--secondary);
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .carousel-controls {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            display: flex;
            justify-content: center;
            z-index: 10;
        }

        .carousel-indicators {
            display: flex;
            gap: 10px;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s;
        }

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        .carousel-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10;
            backdrop-filter: blur(5px);
        }

        .carousel-arrow:hover {
            background: rgba(255, 255, 255, 0.4);
        }

        .carousel-arrow.prev {
            left: 20px;
        }

        .carousel-arrow.next {
            right: 20px;
        }

        @media (max-width: 992px) {
            .search-container {
                width: 30%;
            }
            
            .carousel-container {
                height: 400px;
            }
            
            .slide-content h2 {
                font-size: 2rem;
            }
            
            .slide-content p {
                font-size: 1rem;
            }
        }

        @media (max-width: 768px) {
            .top-nav {
                flex-wrap: wrap;
            }
            
           
            
            .mobile-toggle {
                display: block;
            }
            
            .main-nav {
                display: none;
                width: 100%;
                padding: 0;
            }
            
            .nav-links {
                flex-direction: column;
                width: 100%;
            }
            
            .nav-links > li > a {
                padding: 15px 20px;
                border-bottom: 1px solid #eee;
            }
            
            .dropdown {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                display: none;
                background: #f8f9fa;
            }
            
            .nav-links li.active .dropdown {
                display: block;
            }
            
            .carousel-container {
                height: 350px;
            }
            
            .slide-content h2 {
                font-size: 1.8rem;
            }
            
            .slide-content p {
                font-size: 0.9rem;
            }
            
            .carousel-arrow {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }}
           
   /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                        url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 120px 0;
            text-align: center;
            margin-bottom: 60px;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .hero p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }

        .btn {
            display: inline-block;
            padding: 14px 35px;
            background: var(--secondary);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
        }

        .btn:hover {
            background: #ff6b4a;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Featured Categories */
        .categories-section {
            margin-bottom: 60px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 2rem;
            color: var(--dark);
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 4px;
            background: var(--secondary);
        }

        .view-all {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }

        .view-all:hover {
            color: var(--secondary);
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 30px;
        }

        .category-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
            text-align: center;
            padding: 30px 20px;
        }

        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .category-icon {
            width: 80px;
            height: 80px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 2rem;
        }

        .category-name {
            font-size: 1.4rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .category-desc {
            color: var(--gray);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .category-count {
            display: inline-block;
            background: #f0f0f0;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            color: var(--gray);
        }

        /* Trending Articles */
        .trending-section {
            margin-bottom: 60px;
        }

        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
        }

        .article-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .card-image {
            height: 200px;
            overflow: hidden;
            position: relative;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .article-card:hover .card-image img {
            transform: scale(1.05);
        }

        .trending-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--secondary);
            color: white;
            padding: 5px 10px;
            border-radius: 30px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .card-content {
            padding: 25px;
        }

        .card-category {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            margin-bottom: 15px;
        }

        .card-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .card-title a {
            color: var(--dark);
            text-decoration: none;
            transition: color 0.3s;
        }

        .card-title a:hover {
            color: var(--primary);
        }

        .card-excerpt {
            color: var(--gray);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .card-author {
            display: flex;
            align-items: center;
        }

        .author-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
        }

        /* Newsletter Section */
        .newsletter-section {
            background: linear-gradient(135deg, var(--primary), #2c3e50);
            color: white;
            padding: 60px 0;
            text-align: center;
            margin-bottom: 60px;
            border-radius: 10px;
        }

        .newsletter-title {
            font-size: 2.2rem;
            margin-bottom: 20px;
        }

        .newsletter-desc {
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto 30px;
            opacity: 0.9;
        }

        .newsletter-form {
            display: flex;
            max-width: 500px;
            margin: 0 auto;
        }

        .newsletter-form input {
            flex: 1;
            padding: 15px 20px;
            border: none;
            border-radius: 30px 0 0 30px;
            font-size: 1rem;
        }

        .newsletter-form input:focus {
            outline: none;
        }

        .newsletter-form button {
            padding: 15px 30px;
            background: var(--secondary);
            color: white;
            border: none;
            border-radius: 0 30px 30px 0;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.3s;
        }

        .newsletter-form button:hover {
            background: #ff6b4a;
        }

        /* Editor's Pick */
        .editors-pick {
            margin-bottom: 60px;
        }

        .featured-article {
            display: flex;
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 40px;
        }

        .featured-image {
            flex: 1;
            min-height: 400px;
        }

        .featured-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .featured-content {
            flex: 1;
            padding: 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .featured-badge {
            display: inline-block;
            background: var(--secondary);
            color: white;
            padding: 5px 15px;
            border-radius: 30px;
            font-size: 0.9rem;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .featured-title {
            font-size: 2rem;
            margin-bottom: 20px;
            line-height: 1.3;
            color: var(--dark);
        }

        .featured-excerpt {
            color: var(--gray);
            margin-bottom: 30px;
            line-height: 1.7;
            font-size: 1.1rem;
        }

        /* Popular This Week */
        .popular-section {
            margin-bottom: 60px;
        }

        .popular-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 25px;
        }

        .popular-card {
            display: flex;
            background: white;
            border-radius: 10px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: transform 0.3s;
        }

        .popular-card:hover {
            transform: translateY(-5px);
        }

        .popular-rank {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary);
            margin-right: 15px;
            min-width: 30px;
        }

        .popular-content h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .popular-content h3 a {
            color: var(--dark);
            text-decoration: none;
            transition: color 0.3s;
        }

        .popular-content h3 a:hover {
            color: var(--primary);
        }

        .popular-meta {
            font-size: 0.8rem;
            color: var(--gray);
        }

        /* Testimonials */
        .testimonials-section {
            background: #f0f4f8;
            padding: 60px 0;
            margin-bottom: 60px;
            border-radius: 10px;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .testimonial-card {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: var(--shadow);
            position: relative;
        }

        

        .testimonial-text {
            font-style: italic;
            margin-bottom: 20px;
            line-height: 1.6;
            position: relative;
            z-index: 1;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
        }

        .testimonial-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
        }

        .author-info h4 {
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        .author-info p {
            color: var(--gray);
            font-size: 0.9rem;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .featured-article {
                flex-direction: column;
            }
            
            .featured-image {
                min-height: 300px;
            }
            
            .newsletter-form {
                flex-direction: column;
                gap: 15px;
            }
            
            .newsletter-form input, .newsletter-form button {
                border-radius: 30px;
                width: 100%;
            }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.1rem;
            }
            
            .categories-grid, .articles-grid, .popular-grid, .testimonials-grid {
                grid-template-columns: 1fr;
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }}

    /* Footer */
    footer{margin-top:36px;padding:36px 0;color:var(--muted)}
    .footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}

    /* Responsive */
    @media(max-width:1000px){
      .trending-grid,.latest-grid{grid-template-columns:repeat(2,1fr)}
      .hero{flex-direction:column}
      .hero-right{width:100%}
    }
    @media(max-width:720px){
      .nav-links{display:none}
      .hamburger{display:block}
      .search input{width:120px}
      .trending-grid,.latest-grid{grid-template-columns:1fr}
      .cat{min-width:140px}
    }

    /* small helpers */
    .muted{color:var(--muted)}
    .pill{display:inline-block;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,0.04);font-size:13px}
       
  footer {
            background: linear-gradient(135deg, var(--dark), #1a2530);
            color: white;
            margin-top: auto;
        }

        .footer-main {
            padding: 60px 5% 40px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer-column h3 {
            font-size: 1.3rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 40px;
            height: 3px;
            background: var(--secondary);
        }

        .footer-about p {
            text-align: left;
            margin-bottom: 20px;
            color: #b0b7c3;
            line-height: 1.7;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            text-decoration: none;
            transition: all 0.3s;
        }

        .social-links a:hover {
            background: var(--secondary);
            transform: translateY(-3px);
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #b0b7c3;
            text-decoration: none;
            transition: all 0.3s;
            display: flex;
            align-items: center;
        }

        .footer-links a:hover {
            color: var(--secondary);
            padding-left: 5px;
        }

        .footer-links i {
            margin-right: 8px;
            font-size: 0.9rem;
            width: 20px;
            text-align: center;
        }

        .recent-posts .post {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .recent-posts .post:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .post-image {
            width: 70px;
            height: 70px;
            border-radius: 5px;
            overflow: hidden;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .post-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .post-content h4 {
            font-size: 0.95rem;
            margin-bottom: 5px;
            line-height: 1.4;
        }

        .post-content h4 a {
            color: white;
            text-decoration: none;
            transition: color 0.3s;
        }

        .post-content h4 a:hover {
            color: var(--secondary);
        }

        .post-meta {
            display: flex;
            font-size: 0.8rem;
            color: #b0b7c3;
        }

        .post-meta span {
            margin-right: 10px;
            display: flex;
            align-items: center;
        }

        .post-meta i {
            margin-right: 5px;
            font-size: 0.7rem;
        }

        .newsletter p {
            text-align: left;
            color: #b0b7c3;
            margin-bottom: 20px;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .newsletter-form input {
            padding: 12px 15px;
            border: none;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1rem;
        }

        .newsletter-form input::placeholder {
            color: #b0b7c3;
        }

        .newsletter-form input:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.15);
        }

        .newsletter-form button {
            padding: 12px 15px;
            border: none;
            border-radius: 5px;
            background: var(--secondary);
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .newsletter-form button:hover {
            background: #ff6b4a;
            transform: translateY(-2px);
        }

        .newsletter-form button i {
            margin-right: 8px;
        }

        .footer-bottom {
            background: rgba(0, 0, 0, 0.3);
            padding: 20px 5%;
        }

        .footer-bottom-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .copyright {
            color: #b0b7c3;
            font-size: 0.9rem;
        }

        .footer-bottom-links {
            display: flex;
            gap: 20px;
        }

        .footer-bottom-links a {
            color: #b0b7c3;
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.3s;
        }

        .footer-bottom-links a:hover {
            color: var(--secondary);
        }

        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--secondary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
            opacity: 0;
            visibility: hidden;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background: #ff6b4a;
            transform: translateY(-3px);
        }

        @media (max-width: 768px) {
            .footer-main {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .footer-bottom-content {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .footer-bottom-links {
                justify-content: center;
            }

            /* //home and outdoor */
            * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #4a6fa5;
            --secondary: #ff7e5f;
            --dark: #2c3e50;
            --light: #f8f9fa;
            --gray: #6c757d;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --green: #28a745;
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                        url('https://images.unsplash.com/photo-1586023492125-27b2c045efd7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 100px 0;
            text-align: center;
            margin-bottom: 50px;
        }

        .hero h1 {
            font-size: 3rem;
            margin-bottom: 20px;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 30px;
        }

        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: var(--secondary);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s;
            border: none;
            cursor: pointer;
        }

        .btn:hover {
            background: #ff6b4a;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* Page Layout */
        .page-layout {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 40px;
            margin-bottom: 50px;
        }

        /* Category Navigation */
        .category-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }

        .category-btn {
            padding: 8px 20px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 30px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }

        .category-btn.active, .category-btn:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        /* Blog Cards Grid */
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 30px;
            margin-bottom: 50px;
        }

        .blog-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.3s, box-shadow 0.3s;
        }

        .blog-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .card-image {
            height: 220px;
            overflow: hidden;
        }

        .card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .blog-card:hover .card-image img {
            transform: scale(1.05);
        }

        .card-content {
            padding: 25px;
        }

        .card-category {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 5px 12px;
            border-radius: 30px;
            font-size: 0.8rem;
            margin-bottom: 15px;
        }

        .card-title {
            font-size: 1.3rem;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .card-title a {
            color: var(--dark);
            text-decoration: none;
            transition: color 0.3s;
        }

        .card-title a:hover {
            color: var(--primary);
        }

        .card-excerpt {
            color: var(--gray);
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.9rem;
            color: var(--gray);
        }

        .card-author {
            display: flex;
            align-items: center;
        }

        .author-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            margin-right: 10px;
        }

        /* Sidebar */
        .sidebar {
            background: white;
            border-radius: 10px;
            padding: 25px;
            box-shadow: var(--shadow);
            align-self: start;
        }

        .sidebar-widget {
            margin-bottom: 40px;
        }

        .sidebar-widget:last-child {
            margin-bottom: 0;
        }

        .widget-title {
            font-size: 1.2rem;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
            color: var(--dark);
        }

        .popular-posts .post {
            display: flex;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .popular-posts .post:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .post-thumb {
            width: 70px;
            height: 70px;
            border-radius: 5px;
            overflow: hidden;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .post-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .post-content h4 {
            font-size: 0.95rem;
            margin-bottom: 5px;
            line-height: 1.4;
        }

        .post-content h4 a {
            color: var(--dark);
            text-decoration: none;
            transition: color 0.3s;
        }

        .post-content h4 a:hover {
            color: var(--primary);
        }

        .post-meta {
            font-size: 0.8rem;
            color: var(--gray);
        }

        .categories-list {
            list-style: none;
        }

        .categories-list li {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #f0f0f0;
        }

        .categories-list li:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .categories-list a {
            color: var(--dark);
            text-decoration: none;
            display: flex;
            justify-content: space-between;
            transition: color 0.3s;
        }

        .categories-list a:hover {
            color: var(--primary);
        }

        .category-count {
            background: #f0f0f0;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.8rem;
        }

        .newsletter-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .newsletter-form input {
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
        }

        .newsletter-form input:focus {
            outline: none;
            border-color: var(--primary);
        }

        /* Featured Section */
        .featured-section {
            margin-bottom: 50px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .section-title {
            font-size: 1.8rem;
            color: var(--dark);
            position: relative;
            padding-bottom: 10px;
        }

        .section-title::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background: var(--secondary);
        }

        .view-all {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s;
        }

        .view-all:hover {
            color: var(--secondary);
        }

        /* Tips Section */
        .tips-section {
            background: white;
            border-radius: 10px;
            padding: 40px;
            box-shadow: var(--shadow);
            margin-bottom: 50px;
        }

        .tips-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 30px;
        }

        .tip-card {
            text-align: center;
            padding: 20px;
            border-radius: 8px;
            transition: transform 0.3s;
        }

        .tip-card:hover {
            transform: translateY(-5px);
        }

        .tip-icon {
            width: 70px;
            height: 70px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: white;
            font-size: 1.8rem;
        }

        .tip-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
            color: var(--dark);
        }

        .tip-desc {
            color: var(--gray);
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .page-layout {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                order: -1;
                margin-bottom: 40px;
            }
        }

        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .blog-grid {
                grid-template-columns: 1fr;
            }
            
            .category-nav {
                justify-content: center;
            }
        }}

 .search-box {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 350px;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ddd;
    padding: 5px 10px;
    transition: 0.3s;
}

.search-box:hover {
    border-color: #888;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
    border-radius: 30px;
}

.search-box button {
    background: #007bff;
    border: none;
    padding: 8px 15px;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #0056b3;
}

        