body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    text-align: center;
    width: 100%;
    overflow-x: hidden;
}
.header {
    display: flex;
    height: 40px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    background-color: #fff;
    position: relative;
}

/* Navbar Styling */
.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    padding: 8px;
}

.navbar ul li a:hover {
    color: #333;
    font-size:18px ;
}

/* Menu Toggle Button (Hidden by Default) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #007bff;
    cursor: pointer;
}

.logo-container{
    width:fit-content;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 10px;
}
.logo-image{
    height: 100%;
}
.top-section {
    background: rgb(54,115,196);
    background: linear-gradient(164deg, rgba(54,115,196,1) 30%, rgba(169,217,218,1) 83%);
    padding: 40px 20px;
    height: auto;
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
}
.nav-heading{
    font-size: 2.5rem;
    width: 60%;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #f7f7f7;
    font-weight:bolder;
}
.highlight {
    color:#000;
    font-weight: bold;
}
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.category {
    background: white;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    width: 100px; 
    position: relative;
}

.category i {
    font-size: 40px; /* Adjust icon size */
    color: #3673c4; /* Icon color */
}

.category p {
    margin: 8px 0 0;
    color: #444;
    font-weight: bold;
}

.category.active {
    border: 2px solid #3673c4;
}

.category:hover {
    transform: scale(1.1);
}
.category.active::after {
    content: "";
    position: absolute;
    bottom: -15px; /* Position below the category */
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #3673c4; /* Arrow color same as border */
}

.dynamic-content {
    display: flex;
    justify-content: center;
    padding: 20px;
    background-color: #eeeeee;
}

.content-container {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap if space is limited */
    gap: 20px; /* Space between cards */
    justify-content: center; /* Center align cards */
}

.card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 200px; /* Adjust card width as needed */
    text-align: center;
    transition: all 0.3s ease;
}

.card p {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px; /* Space between title and buttons */
}

.card a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    flex: 1; /* Makes both links take equal space */
    text-align: center;
}

.card a:hover {
    text-decoration: underline;
}

.brand-section {
    display: flex;
    flex-wrap: wrap; /* Ensures wrapping */
    align-items: center;
    justify-content: center; /* Centers content properly */
    background-color: #eeeeee;
    padding: 10px;
    width: 100%;
    box-sizing: border-box; /* Prevents content from exceeding the width */
    gap: 15px;
    box-shadow: 0px -4px 6px -2px #c7bfbf;
    overflow: hidden; /* Ensure no internal overflow */
    max-width: 100%; /* Keeps section within viewport */
}

.brand-section p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    white-space: wrap; /* Prevents text from wrapping */
}

.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Ensures alignment */
    align-items: center;
    gap: 10px;
    max-width: 100%; /* Prevents growing beyond the container */
}

.brand-logos img {
    height: 25px;
    width: auto;
    filter: grayscale(0%) brightness(1.1);
    opacity: 1;
    mix-blend-mode: multiply;
    max-width: 100%; /* Ensures images don't cause overflow */
}

.swiper-container {
    width: 100%;
    height: 150px; /* Adjust height as needed */
}

/* Styling for Slides */
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* General Styling */
.trending-section {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    font-family: Arial, sans-serif;
}

.trending-section h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #3673c4;
    font-family: "DM Sans", serif;
    text-align: center;
}

/* Collapsible Button */
.collapsible {
    font-family: "DM Sans";
    background: #e3e3e3;
    color: #333;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    margin: 10px 0;
    transition: background 0.3s ease;
}

.collapsible:hover {
    background: #d9d9d9;
}

.collapsible .left-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapsible .number {
    background: #007bff;
    color: white;
    font-weight: bold;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.collapsible .arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

/* When content is open, rotate arrow */
.collapsible.active .arrow {
    transform: rotate(180deg);
}

/* Collapsible Content */
.content {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Trending Content Layout */
.trending-content {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap; /* Makes it responsive */
}

.trending-content img {
    width: 350px;
    height: 200px;
    border-radius: 8px;
}

.trending-details {
    flex-grow: 1;
    min-width: 250px;
}

.trending-details h3 {
    margin: 0;
    font-size: 20px;
}

.trending-details a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.trending-details p {
    color: #666;
    margin: 5px 0;
}

.view-btn {
    display: inline-block;
    background: #3673c4;
    color: white !important;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.view-btn:hover {
    background: #285a99;
}

/* Related Articles */
.related-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

/* Article Card */
.article {
    display: flex;
    width: 100%;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
    background: #fff;
    transition: transform 0.3s ease;
}

.article:hover {
    transform: scale(1.05);
}

/* Image on Left */
.article-img {
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    background: white;
}

/* Text on Right */
.article-text {
    width: 60%;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.article-text p {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
}

.below-list{
background-color: #366DDC30;
height: auto;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.research{
    font-size: 25px;
    text-transform: capitalize;  
    color: #366DDC;
    padding: 20px;
    letter-spacing: 2px;
}
.tags{
    background-color: #b2c0ef;
    width:90%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
}
.tags-button{
    display: flex;
    flex-direction: column;
    width: 300px;
    height: 120px;
    background-color: #fff;
    font-size: 60px;
    align-items: center;
    justify-content: center;
    margin: 10px;
    font-weight: bolder;
    border: 3px solid #000;
    color: #3673c4;
}
.tags-button span{
    font-size: 20px;
}

.tags-button:hover{
    color: #000;
}

.tags-button:hover span {
    color:#3673c4; /* Keep the span 'Brands' color unchanged */
}

/* Experts Section */
.Experts {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    padding: 50px 20px;
}

/* Heading */
.experts-heading {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #3673c4;
}

/* Description Text */
.Experts p {
    width: 80%;
    font-size: 18px;
    word-spacing: 2px;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
}

/* Profile Section */
.profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers items */
    gap: 20px;
    width: 90%;
    margin-top: 30px;
}

/* Profile Card */
.profile-card {
    width: 100%; /* Full width by default */
    max-width: 280px; /* Restrict maximum width */
    height: auto; /* Adjust height dynamically */
    background: #f5f5f5;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
}

/* Profile Image */
.profile-card img {
    /* Adjust width to fit container */
    max-width: 130px; /* Restrict max width */
    height: 160px;
    object-fit: cover;
    border: 2px solid #3673c4;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Expert Name */
.profile-card div:nth-child(2) {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

/* Expert Title */
.profile-card div:nth-child(3) {
    font-size: 16px;
    color: #666;
}

/* Blog Section */
.blog-section {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa; /* Light background for better contrast */
}

/* Blog Posts Container */
.blog-posts {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Individual Blog Post */
.blog-post {
    width: 45%;
    max-width: 400px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.blog-post:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
}

/* Remove Underline from Links */
.blog-post a {
    text-decoration: none;
    color: inherit; /* Keeps original text color */
    display: block;
}

/* Blog Image */
.blog-post img {
    width: 100%;
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Crop and maintain aspect ratio */
    border-radius: 10px;
}

/* Blog Title */
.blog-post h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: #222; /* Slightly darker for stronger contrast */
    margin-top: 15px;
    margin-bottom: 8px;
}

/* Blog Description */
.blog-post p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.4;
    margin-bottom: 15px;
}
/* View All Blogs Button */
.view-all-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #3673c4;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.view-all-btn:hover {
    background: #225392;
    transform: scale(1.1);
}

.explore-categories-section {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.explore-heading {
    text-align: left;
    font-size: 24px;
    font-weight: bold;
    padding-left: 20px;
}

/* Wrapper for categories */
.categories-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

/* Category Navigation */
.categories-nav {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    white-space: nowrap;
    scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.category-item {
    background: #fff;
    border: 2px solid #ddd;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.category-item:hover, .active-category {
    background: #3673c4;
    color: white;
    border-color: #3673c4;
}

/* Category Content */
.categories-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 20px;
    padding-left: 20px;
}

.category-details {
    display: none;
    max-width: 600px;
    text-align: left;
}

.active-content {
    display: block;
}

.category-details ul {
    list-style: none;
    padding: 0;
}

.category-details ul li {
    margin: 10px 0;
}

.category-details ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.category-details ul li a:hover {
    color: #3673c4;
}

/* General Footer Styling */
.custom-footer {
    background-color: #222;
    color: white;
    overflow: hidden; /* Prevents horizontal scrolling */
    padding: 20px 0; /* Add padding for spacing */
}

/* Footer Container */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add padding for spacing */
}

/* Left Side - Logo & Contact */
.footer-left {
    flex: 1;
    min-width: 280px;
    text-align: left;
    margin-bottom: 15px;
}

/* Footer Logo */
.footer-logo {
    width: 150px;
    margin-bottom: 15px;
}

/* Contact Details */
.contact-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
}

/* Right Side - Navigation & About */
.footer-right {
    min-width: 280px;
    text-align: right;
    margin-bottom: 15px;
}

/* Footer Navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end; /* Align items to the right */
    gap: 15px;
}

.footer-nav ul li {
    display: inline-block;
}

.footer-nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 5px 10px;
    display: inline-block;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

/* About Text */
.about-text {
    font-size: 14px;
    color: #ccc;
    max-width: 500px;
    text-align: right;
}
/* 🔹 RESPONSIVE FIXES */
@media (max-width: 820px) {
    .blog-post {
        width: 90%;
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-left, .footer-right {
        text-align: center;
        min-width: auto;
        flex: 1;
        margin-bottom: 20px;
    }

    .footer-nav ul {
        justify-content: center; /* Center align nav items on mobile */
    }

    .footer-nav ul li a {
        font-size: 12px;
        padding: 5px 8px;
    }

    .about-text {
        text-align: center;
        font-size: 13px;
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 60px;
        right: 20px;
        background-color:#333;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        align-items: center;
        display: none;
        flex-direction: column;
        width: 200px;
        text-align: right;
    }
    .navbar ul li a:hover {
        color: #fff;
        font-size:18px ;
    }
    .navbar ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        align-items: center;
    }

    .navbar ul li {
        display: block;
    }

    /* Show button on mobile */
    .menu-toggle {
        display: block;
    }

    /* Show menu when active */
    .navbar.active {
        display: flex;
    }
    .nav-heading{
        width: 80%;
    }
    .brand-section {
        flex-direction: column;
        text-align: center;
    }

    .brand-logos {
        justify-content: center;
    }

    .brand-logos img {
        height: 20px; /* Smaller size for mobile */
    }
    .trending-content{
        flex-direction: column;
    }
    .trending-content img{
        width: 100%;
        height: 200px;
    }
    .related-articles {
        justify-content: center; /* Center items */
    }

    .article {
        width: 90%; /* Make articles take more space */
        height: 50px; /* Allow height to adjust */
        flex-direction: row; /* Stack image & text */
        text-align: center;
        padding: 10px;
    }

    .article-img {
        width: 100%; /* Image takes full width */
        height: 150px; /* Adjust image height */
    }

    .article-img img {
        width: 100%;
    }

    .article-text {
        width: 100%; /* Text takes full width */
        align-items: center; /* Center text */
    }

    .article-text p {
        font-size: 16px;
    }
    .profile {
        flex-direction: column;
        align-items: center;
    }
    .profile-card {
        width: 90%; /* Take up more space on small screens */
        max-width: 280px; /* Prevent from being too large */
    }
}