 * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Poppins', sans-serif;
    }
    
    body {
        background-color: #f8f9fa;
        color: #333;
        line-height: 1.6;
    }


     /* header {
      background: white;
      padding: 1em;
      color: black;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
    }

    .logo {
      font-weight: bold;
      font-size: 1.2rem;
      z-index: 1001;
    }

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

    .desktop-nav {
      display: flex;
    } */

    /* .desktop-nav a {
      color: black;
      margin: 0 1em;
      text-decoration: none;
      transition: color 0.3s;
    } */

    /* .desktop-nav a:hover {
      color: #61dafb;
      text-decoration: none;
    } */


    .mobile-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 70%;
      height: 100vh;
      background: #282c34;
      padding: 5em 2em 2em;
      transition: right 0.3s ease;
      z-index: 1000;
    }

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

    .mobile-nav a {
      display: block;
      color: white;
      padding: 1em 0;
      text-decoration: none;
      border-bottom: 1px solid #444;
      transition: color 0.3s;
    }

    .mobile-nav a:hover {
      color: #61dafb;
    }

    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s;
    }

    .overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
   .image-carousel {
    width: 100%;
    height: 550px;
    overflow: hidden;
    position: relative;
}

.carousel-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 30px;
    font-size: 3.2rem;
    font-weight: bold;
    border-radius: 10px;
    text-align: center;
    z-index: 2;
    white-space: nowrap;
}

/* Center vertically */
.carousel-control-prev,
.carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4); /* semi-transparent black */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Left & right placement */
.carousel-control-prev {
    left: 15px;
}
.carousel-control-next {
    right: 15px;
}

/* Icons */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    filter: invert(1);
}

/* Hover effect */
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.6);
}





    /* Main Content */
    .container {
        display: flex;
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 1rem;
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    main {
        flex: 2;
        min-width: 0;
    }
    
    aside {
        flex: 1;
        min-width: 300px;
    }
    
    .featured-post {
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        margin-bottom: 2rem;
    }
    
    .featured-image {
        height: 300px;
        background-size: cover;
        background-position: center;
    }
    
    .featured-content {
        padding: 2rem;
    }
    
    .category-tag {
        display: inline-block;
        background-color: #3498db;
        color: white;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .featured-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .post-meta {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        color: #666;
        font-size: 0.9rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .post-meta span {
        display: flex;
        align-items: center;
    }
    
    .post-meta i {
        margin-right: 0.3rem;
    }
    
    .featured-content p {
        margin-bottom: 1.5rem;
        color: #555;
    }
    
    .read-more {
        display: inline-block;
        color: #3498db;
        font-weight: bold;
        transition: color 0.3s;
    }
    
    .read-more:hover {
        color: #2c3e50;
    }
    
    /* Recent Posts Grid */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #eee;
    }
    
    .posts-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .scroll-wrapper {
        position: relative;
        width: 100%;
        margin: 0 auto;
    }

    .scrollable {
        display: flex;
        overflow-x: auto;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 1rem 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .scrollable::-webkit-scrollbar {
        display: none;
    }

    .post-card {
        min-width: 250px;
        max-width: 300px;
        background-color: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        transition: transform 0.3s;
        flex-shrink: 0;
    }
    
    .post-card:hover {
        transform: translateY(-5px);
    }
    
    .post-image {
        height: 180px;
        background-size: cover;
        background-position: center;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    .post-excerpt {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Sidebar */
    .sidebar-widget {
        background-color: white;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 2rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        width: 100%;
    }

    .widget-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #eee;
    }

    .popular-posts {
        list-style: none;
    }

    .popular-posts li {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .popular-posts li:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .popular-post-title {
        font-weight: 500;
        margin-bottom: 0.3rem;
        display: block;
    }

    .popular-post-meta {
        font-size: 0.8rem;
        color: #666;
    }

    .categories-list {
        list-style: none;
    }

    .categories-list li {
        margin-bottom: 0.5rem;
    }

    .categories-list a {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        transition: color 0.3s;
    }

    .categories-list a:hover {
        color: #3498db;
    }

    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tag {
        background-color: #f1f1f1;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        font-size: 0.8rem;
        transition: all 0.3s;
    }

    .tag:hover {
        background-color: #3498db;
        color: white;
    }

    /* Newsletter */
    .newsletter-form input {
        width: 100%;
        padding: 0.8rem;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 0.8rem;
        background-color: #3498db;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
        transition: background-color 0.3s;
    }
    
    .newsletter-form button:hover {
        background-color: #2c3e50;
    }
    
    /* Footer */
    footer {
        background-color: #2c3e50;
        color: white;
        padding: 3rem 1rem;
    }
    
    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
    
    .footer-column h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
    }
    
    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background-color: #3498db;
    }
    
    .footer-column p {
        margin-bottom: 1rem;
        opacity: 0.8;
    }
    
    .footer-links {
        list-style: none;
    }
    
    .footer-links li {
        margin-bottom: 0.8rem;
    }
    
    .footer-links a {
        opacity: 0.8;
        transition: opacity 0.3s;
    }
    
    .footer-links a:hover {
        opacity: 1;
        color: #3498db;
    }
    
    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background-color: rgba(255,255,255,0.1);
        border-radius: 50%;
        transition: background-color 0.3s;
    }
    
    .social-links a:hover {
        background-color: #3498db;
    }
    
    .copyright {
        text-align: center;
        padding-top: 2rem;
        margin-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        opacity: 0.7;
        font-size: 0.9rem;
    }

    /* Scrollable sections */
    .scrollable-section {
        padding: 2rem 1rem;
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
    }

    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #eee;
    }

    .scroll-nav-container {
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .scroll-nav-btn {
        width: 36px;
        height: 36px;
        background: #3498db;
        color: #fff;
        border: none;
        border-radius: 50%;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-nav-btn:hover {
        background: #2c3e50;
    }

    .cards-container {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-behavior: smooth;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    .cards-container::-webkit-scrollbar {
        display: none;
    }

    .card-item {
        flex: 0 0 300px;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .card-img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }

    .card-content p {
        color: #666;
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-meta {
        font-size: 0.8rem;
        color: #888;
    }

    /* Scroll arrows */
    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        border: none;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        font-size: 24px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.3s ease;
    }

    .scroll-arrow:hover {
        background-color: rgba(0, 0, 0, 0.85);
    }

    .left-arrow {
        left: 10px;
    }

    .right-arrow {
        right: 10px;
    }

    @media (max-width: 768px) { 
        nav ul {
            margin-top: 1rem;
        }
        
        nav ul li {
            margin: 0 0.5rem;
        }
            
        .featured-post {
            width: 100%;
        }
        
        .post-card {
            min-width: 280px;
        }
        
        .card-item {
            flex: 0 0 280px;
        }
    }

    @media (max-width: 480px) {    
        .featured-content h2 {
            font-size: 1.5rem;
        }
        
        .post-content h3 {
            font-size: 1.1rem;
        }
        
        .card-content h3 {
            font-size: 1rem;
        }
        
        .footer-container {
            grid-template-columns: 1fr;
        }
    }

   