/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

html {
  scroll-behavior: smooth !important;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    text-decoration: none;
    color: white;
}

.nav-brand h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #3C035E;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.primary-nav .nav-link {
    color: #3C035E !important;
}

.nav-link:hover {
    color: #ffd700;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffd700;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #3C035E;
    margin: 3px 0;
    transition: 0.3s;
}

.primary-nav-toggle span {
    background: #3C035E;
}


/* Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.nav-item .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 0;
    margin: 0;
    border-radius: 4px;
}

.nav-item .dropdown-menu li {
    list-style: none;
}

.nav-item .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #3C035E;
    text-decoration: none;
    transition: background 0.3s;
}

.nav-item .dropdown-menu li a:hover {
    background-color: #f3f3f3;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(#3C035E, #a245d8), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f2f5" width="1200" height="600"/><circle fill="%23e1e5e9" cx="200" cy="150" r="80"/><circle fill="%23d1d7dd" cx="800" cy="300" r="120"/><circle fill="%23c1c9d1" cx="1000" cy="100" r="60"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ffd700;
    color: #3C035E;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    /* background: transparent; */
    color: #000;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #3C035E;
}

/* Content Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #3C035E;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.latest-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

@media (max-width: 992px) {
    .latest-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .latest-features {
        grid-template-columns: 1fr;
    }
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #000;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: #3C035E;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #3C035E;
}

/* Research Reports */

.latest-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    max-width: calc(250px * 5 + 2rem * 4);
    /* Width of 5 cards + 4 gaps */
    margin-left: auto;
    margin-right: auto;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.report-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
}

.report-header {
    background: linear-gradient(135deg, #3C035E, #782ca4);
    color: white;
    padding: 1.5rem;
}

.report-code {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.report-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.report-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.report-body {
    padding: 1.5rem;
}

.report-description {
    margin-bottom: 1rem;
    color: #666;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.pricing {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price {
    text-align: center;
}

.price-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.price-amount {
    font-weight: 600;
    color: #3C035E;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2a5298;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Contact Page */
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: #2a5298;
    margin-right: 1rem;
    width: 20px;
}

/* Footer */
.footer {
    background: #3C035E;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ffd700;
}

.mt-0 {
    margin-top: 0px !important;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #3C035E;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #ffd700;
    color: #3C035E;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.newsletter-form button {
    background: #ffd700;
    color: #3C035E;
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #ffed4e;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a5298;
    color: #ccc;
}

/* Admin Styles */
.admin-header {
    background: #343a40;
    color: white;
    padding: 1rem 0;
}

.admin-nav {
    background: #495057;
    padding: 1rem 0;
}

.admin-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #6c757d;
}

.admin-content {
    padding: 2rem 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
}

.table tr:hover {
    background: #f8f9fa;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: left 0.3s ease;
        padding-top: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-form {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        max-width: 100vw;
    }

    .container-fluid {
        padding: 0 10px;
        max-width: 100vw;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.me-2 {
    margin-right: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}



#paypal-modal {
    display: flex;
    justify-content: center;
    align-items: center;
}

#paypal-modal-content {
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    #paypal-modal-content {
        width: 50%;
        /* Half screen for desktop */
    }
}

@media (max-width: 767px) {
    #paypal-modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}


.buttons-container {
    display: flex !important;
    justify-content: center !important;
}


.mt-n5 {
    margin-top: -45px !important;
}



/* Custom CSS for the Carousel */


.slider-content {
    position: relative;
    width: 100vw;
    height: 75vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.slider-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 0;
}

.slider-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.slider {
    position: relative;
    width: 100%;
    display: flex;
    overflow: hidden;
}

.slider .slider-inner {
    display: flex;
    width: 100%;
    transition: all .3s;
}

.slider .slide {
    flex: none;
    width: 100%;
}

.slider .indicators {
    display: flex;
    position: absolute;
    top: 50px;
    right: 50px;
    z-index: 1;
}

.slider .indicators .indicator {
    margin: 0px 5px;
    width: 10px;
    height: 10px;
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    opacity: .6;
    cursor: pointer;
    transition: all .3s;
}

.slider .indicators .indicator[active] {
    width: 15px;
    opacity: 1;
}

.slider .arrows {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
}

.slider .arrows .arrow-prev,
.slider .arrows .arrow-next {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    opacity: .6;
    cursor: pointer;
    transition: all .3s;
}

.slider .arrows .arrow-prev:hover,
.slider .arrows .arrow-next:hover {
    opacity: .8;
}

.slider .arrows .arrow-prev {
    left: 50px;
}

.slider .arrows .arrow-next {
    right: 50px;
}

.slider .arrows .arrow-prev .fas,
.slider .arrows .arrow-next .fas {
    color: #4b4b4b;
    opacity: .5;
}


.text-light {
    color: #fff !important;
}

.font-small {
    font-size: 15px;
}

.search-bar-wrapper {
    /* position: relative; */
    max-width: 600px;
    margin: 1rem auto;
    border: 2px solid black;
    border-radius: 25px;
}

.report-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    color: black;
    /* border: 1px solid #ccc; */
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-results div {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.autocomplete-results div:hover {
    background: #f0f0f0;
}




.autocomplete-reports-results {
    position: absolute;
    top: 90%;
    left: 0;
    right: 0;
    background: white;
    color: black;
    /* border: 1px solid #ccc; */
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-reports-results div {
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.autocomplete-reports-results div:hover {
    background: #f0f0f0;
}



.p-0 {
    padding: 0 !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}


.fw-bold {
    font-weight: bold;
}




.carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    max-width: 100%;
    padding: 1rem 0;
}

/* Hide horizontal scrollbar */
.carousel::-webkit-scrollbar {
    display: none;
}

.carousel {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.category-icon {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    width: 100px;
    transition: transform 0.2s ease;
}

.category-icon:hover {
    transform: scale(1.05);
}

.category-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}


.blog-icon {
    flex: 0 0 auto;
    text-align: center;
    cursor: pointer;
    width: 200px;
    transition: transform 0.2s ease;
}

.blog-icon:hover {
    transform: scale(1.05);
}

.blog-icon img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.carousel-arrow {
    font-size: 2rem;
    padding: 0 1rem;
    cursor: pointer;
    user-select: none;
    color: #333;
}


.toggle-latest,
.recent-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}


.testimonial-slider-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Slider container - enables smooth sliding */
.testimonial-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

/* Each testimonial card takes full width */
.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
}

/* Image styling */
.testimonial-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #eee;
}

/* Arrows */
.testimonial-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonial-arrow {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
    transition: background 0.3s ease;
}

.testimonial-arrow:hover {
    background: rgba(0, 0, 0, 0.1);
}

.testimonial-author {
    color: blue;
}

.testimonial-content {
    color: black;
    font-weight: bold;
}


.custom-pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pagination-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.active):not(:disabled) {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn:disabled,
.pagination-btn.disabled {
    background-color: #eee;
    color: #aaa;
    border-color: #ddd;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 6px 10px;
    color: #888;
    font-size: 18px;
}




/* Bottom Navigation */


.reports-fab,
.custom-research-fab {
    position: fixed;
    right: 20px;
    background-color: #3C035E;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.reports-fab:hover,
.custom-research-fab:hover {
    background-color: #3C035E;
}

/* Positioning */
.reports-fab {
    bottom: 20px;
}

.custom-research-fab {
    bottom: 80px;
    /* 60px above the reports icon */
}

.sample-request-fab {
    position: fixed;
    right: 20px;
    bottom: 140px;
    /* 60px above the custom-research icon */
    background-color: #3C035E;
    color: #fff;
    padding: 12px 18px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.sample-request-fab:hover {
    background-color: #3C035E;
}

pre {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    white-space: pre-wrap !important;
    /* Allows line wrapping */
    word-wrap: break-word !important;
    /* Older fallback */
    word-break: break-word !important;
    /* Ensures words break */
    overflow-wrap: break-word !important;
    /* Modern fallback */
}

.text-danger {
    color: red !important;
}


.buttons-container {
    display: flex !important;
    justify-content: center !important;
}