.projects-container {
    max-width: 1270px;
    margin:25px auto 0 auto;
    padding: 0px 20px 0 20px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

h1.main-title{
    margin:0 0 30px 0;
    text-align: center;
    color: var(--c-headings);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 52px;
    text-transform: uppercase;
}
h1.main-title span{
    display: flex; 
    align-items: center;
    justify-content: center;
    background:#fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
	font-size:35px;
	top:-5px;

}
.projects-filters {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    width: calc(100% - 460px);
}

.filter-btn {
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    line-height:1.1;
    color:#1D2A3A;
    box-shadow: none;
    background: transparent;
    height:auto;
    font-weight:500;
}

.filter-btn .category-icon{
    display: flex;
    align-items: center;
    gap: 10px;
}


.filter-btn:hover,
.filter-btn.active {
    background: #F2F5F5;
    color: var(--c-main);
}

.filter-btn svg {
    width: 18px;
    height: 18px;
}

.projects-search {
    display: flex;
    gap: 10px;
}

/* .projects-search .search-wrapper .icn{
	background: var(--c-main);
	position: absolute;
    right: 0;
    top: 0;
    width: 36px;
    height: 37px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 0px 4px 4px 0px;
}
 */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background: #F2F5F5;
    border-radius: 16px;
    padding: 24px;
    border:1px solid #dbdbdbff;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
}

.project-title {
    font-size: 20px;
	line-height:1.2;
    font-weight: 600;
    margin-bottom: 15px;
    color:#1D2A3A;
}

.project-label {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
	line-height:1;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
	background: #FEBF4E; 
	color:#1D2A3A;
}

.label-coming-soon{background: #9FACB5; color: white;}
.label-mainnet { background:#58DA90; }
.label-testnet{ background: #FEBF4E;  }
.label-devnet{background:#3B82F6; color: white;}
.label-gaming { background: #6c5ce7; color: white; }
.label-dex { background:#3B82F6; color: white; }
.label-rwa { background: #e17055; color: white; }
.label-in-integration{background: #FB923C; }

.project-description {
    font-size: 16px;
    line-height: 1.6;
	font-weight:400;
    color:#545E69;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px
}

.project-tag {
    padding: 4px 10px;
    background:#fff;
    font-size: 12px;
	line-height:1;
    font-weight: 600;
    border-radius: 3px;
	border: 1px solid #E2E8F0;
    text-transform: uppercase;
}

.project-score {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--c-main);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin:40px 0;
	width:100%;
}

.pagination-btn {
    background: var(--c-main);
    color: white;
    border-color: var(--c-main);
    padding: 12px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
	height:auto;
	font-weight: 500;
    letter-spacing: 0.5;
}

.pagination-btn:hover:not(:disabled) {
  background: #161616;
  border-color: #161616;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 14px;
    color: #636e72;
}

/* Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
}

.project-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-wrapper{
    max-width: 860px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    background: white;
    border-radius: 6px;
}

.modal-content {

    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.modal-icon {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-header-info {
    flex: 1;
    display: flex;
    align-items: end;
}

.modal-header-info .left-side{
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap:10px;
    align-items: flex-start;
}

.modal-header-info .left-side h2{
    margin:0;
    line-height:1;
	font-family: Inter;
	font-size: 32px;
	font-style: normal;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -1px;
}

.modal-header-info .right-side{
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap:12px;
    align-items: stretch;
    min-width: max-content;
}

.modal-header-info .right-side .project-label{
    border-radius: 4px;
    border: 1px solid #F2F5F5;
    background: #FFF;
    color: #1D2A3A;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header-info .right-side .project-label .network-label-status{
    width:9px; height:9px;
    border-radius: 100%;
    display:inline-block;
   
}

.modal-slider-prev,
.modal-slider-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 9;
    transition: all 0.3s ease;
}

.modal-slider-prev:hover,
.modal-slider-next:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.modal-slider-prev {
    left: 15px;
    transform: translateY(-50%) rotate(180deg); /* Flip arrow for previous */
}

.modal-slider-prev:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.05);
}

.modal-slider-next {
    right: 15px;
}

/* Disabled state */
.modal-slider-prev.swiper-button-disabled,
.modal-slider-next.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-slider-prev svg,
.modal-slider-next svg {
    display: block;
    width: 14px;
    height: 11px;
}

/* Mobile adjustments */
@media (max-width: 767px) {

    .modal-slider-prev,
    .modal-slider-next {
        width: 32px;
        height: 32px;
    }
    
    .modal-slider-prev svg,
    .modal-slider-next svg {
        width: 12px;
        height: 9px;
    }
}

/* Ensure related articles section has proper positioning */
#relatedArticlesSection {
    position: relative;
    margin-top: 40px;
}

.related-articles-title {
    margin-bottom: 20px;
}


.label-in-integration .network-label-status{
    background: #FB923C;
}

.label-testnet .network-label-status{
    background: #FEBF4E;
}

.label-devnet .network-label-status{
    background: #3B82F6;
}

.label-mainnet .network-label-status{
    background: #58DA90;
}

.label-coming-soon .network-label-status{
    background:#9FACB5;
}


.pulse {
    --box-shadow: 0 0 0 0px rgba(83, 223, 141, .4);
    --box-shadow-end: 0 0 0 10px rgba(83, 223, 141, 0);
    animation: pulse-animation 1.5s infinite;
}

.label-testnet .pulse{
    --box-shadow: 0 0 0 0px rgba(254, 191, 78, .4);
    --box-shadow-end: 0 0 0 10px rgba(255, 71, 87, 0);
}

.label-devnet .pulse {
    --box-shadow: 0 0 0 0px rgba(59, 130, 246, .4);
    --box-shadow-end: 0 0 0 10px rgba(255, 71, 87, 0);
}

.label-coming-soon .pulse {
    --box-shadow: 0 0 0 0px rgba(106, 115, 124, .4);
    --box-shadow-end: 0 0 0 10px rgba(255, 165, 0, 0);
}
.label-in-integration .pulse{
    --box-shadow: 0 0 0 0px rgba(251, 146, 60, .4);
    --box-shadow-end: 0 0 0 10px rgba(255, 71, 87, 0);
}


@keyframes pulse-animation {
    0% {
        box-shadow: var(--box-shadow)
    }

    to {
        box-shadow: var(--box-shadow-end)
    }
}


.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 12px;
}

.modal-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

.modal-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--c-main);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    color: #fff;
    transition: all 0.3s;
    padding:0;
}

.modal-close:hover {
    background: #000;
    color: white;
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

.modal-body .modal-body-wrapper {
    padding: 30px;
}

.modal-section {
    margin-bottom: 35px;
}

.modal-section:empty {
	 margin-bottom: 0px;
}

.modal-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-section-title svg {
    width: 20px;
    height: 20px;
}

.modal-description {
    font-size: 18px;
    line-height: 1.8;
    color: #1D2A3A;
}

.modal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-categories .modal-category-badge{
    display:none;
}

 .modal-section .modal-categories{
	display:none;
}
.modal-category-badge {
    padding: 6px 14px;
    background: #f5f5f5;
    color: #2d3436;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tags span{
    background: #fff;
    padding: 4px 10px;
    border-radius: 3px;
    color: #1D2A3A;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 1;
	border: 1px solid #D6D6D6;
}

.modal-card-category{
	border-radius: 3px;
	background: #E9E9E9;
	color: #DD1438;
	font-size: 12px;
	font-style: normal;
	font-weight: 600;
	line-height: 12px; 
	letter-spacing: 0.72px;
	text-transform: uppercase;
	display: flex;
    align-items: center;
    gap: 3px;
	padding: 4px 10px;
}

.modal-card-category .category-icon svg{
	width: 15px;
    height: auto;
}

.modal-tag-badge {
    padding: 6px 14px;
    background: var(--c-main);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.modal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.modal-links a{
    color: var(--c-main);
    font-style: normal;
    font-weight: 600;
    line-height: 1;
    border-bottom: 1px solid var(--c-main);
}

.modal-links a:hover{
    border-bottom: 1px solid transparent;
}

.modal-links a.link-btn{
	background:var(--c-main);
	color:#fff;
	padding:10px 20px;
	text-transform:uppercase;
	border-radius:3px;
	font-weight: 600;
	font-size: 14px;
    line-height: 20px;
}

.modal-links a.link-btn:hover{
	background:#161616;
}

.modal-link-btn {
    padding: 10px 20px;
    background: var(--c-main);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.modal-link-btn:hover {
    background: #e84046;
    transform: translateY(-2px);
}

.modal-link-btn svg {
    width: 16px;
    height: 16px;
}

.modal-header-info .right-side .social-share{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.modal-header-info .right-side .social-share a{
    border-radius: 4px;
    border: 1px solid #F2F5F5;
    width: 36px;
    height: 36px;
    padding: 2px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.testimonial-section{
    padding:60px 30px;
    background-color: #1D2A3A;
    color: #F2F5F5;
}

.testimonial-section .testimonial-content{
	font-size: 20px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.7; 
	text-align: center;
}

.testimonial-section .testimonial-card{
	 display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.testimonial-quote-icon{
    margin: 0 0 15px 0;
}
.testimonial-author{
    display: flex;
    align-items: center;
    gap: 50px;
}
.testimonial-author .testimonial-icon{
    max-width: 80px;
    height: auto;   
    display: block;
}
.testimonial-author-info{
    display: flex;
    flex-direction: column;
    position: relative;
    color: #F2F5F5;
}
.testimonial-author-info::before{
    content: '';
    width: 1px;
    height: 100%;
    background-color: #CBD5E0;
    position: absolute;
    top: 0px;
    left: -27px;
}
.testimonial-name{
    font-size: 18px;
    font-weight: 700;
    margin:0;
}

.testimonial-position{
    font-size: 16px;
    margin:0;
    font-weight: 500;
}

.modal-body .swiper-slide a{
    display: block;
}
.related-article-thumbnail-wrapper{
    width:100%;
    overflow:hidden;
    border-radius: 6px;
    margin: 0 0 15px 0;
}

.related-article-thumbnail-wrapper img{
    width:100%;
    height:100%;
    object-fit: cover;
    object-position: center;
	display: block;
}

.related-article-category{  
    font-size: 16px;
    font-weight: 600;
    display: block;
}

.related-article-title{
    color: #1D2A3A;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px; 
     margin: 15px 0;
    text-transform: capitalize;
}
.related-article-date{
    color: #6D757F;
    font-size: 13px;
    font-weight: 600;
    line-height: normal;
    letter-spacing: 0.52px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
}
.swiper-container .swiper-pagination-bullets .swiper-pagination-bullet{
    background: #6A737C;
    width:10px;
    height:10px;
    opacity:1;
    margin: 0 10px;
    border-radius: 0;
}
.swiper-container .swiper-pagination-bullets .swiper-pagination-bullet-active{
    background: var(--c-main);
}


#relatedArticlesSection .swiper-wrapper{
    margin-bottom: 50px;
}

/* Related Articles Section */
.related-articles-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-articles-title {
    font-size: 18px;
    font-weight: 600;
    color: #1D2A3A;
    margin-bottom: 20px;
}

/* Modal Image Slider */
.modal-image-slider, .modal-related-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.modal-image-slider{
    margin-bottom: 30px;
}

.swiper-container .swiper-pagination-bullets {
    text-align: center;
    margin: 25px 0;
}

.modal-loading-container{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
    width: 860px;
}
 
@media (max-width: 1230px) {
    .projects-header {
        flex-direction: column;
        align-items: stretch;
    }
    .projects-search{
        justify-content: end;
    }
    .modal-body .modal-body-wrapper {
        padding: 25px;
    }
    .projects-filters{
        width: 100%;
        justify-content: center;
    }
	.modal-header-info .left-side h2{
		font-size:28px;
	}
	.modal-description {
		font-size:16px;
	}
}

@media (max-width: 1024px) {

    .modal-wrapper{
        max-width: 100%;
		max-height:75vh;
    }
    .modal-content{
        width: 100%;
    }
	.modal-loading-container{
        height: 75vh;
        width: 100%;
    }
	.testimonial-section .testimonial-content{
		font-size:19px;
	}
	h1.main-title span{
		font-size:28px;
		top:0;
	}
}


@media (max-width: 768px) {
    .projects-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .projects-filters {
        justify-content: center;
    }
    
    .projects-search {
        flex-direction: column;
        gap:20px;
    }
	.modal-header-info .left-side h2{
		font-size:26px;
	}
	
	.testimonial-section .testimonial-content{
		font-size:18px;
	}
    
    .search-input {
        width: 100%;
    }
    
    .modal-content {
        margin: 20px;
		top:25px;
    }
    
    .modal-icon {
        width: 80px;
        height: 80px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    .modal-body .modal-body-wrapper, .modal-header {
        padding: 20px;
    }
    .testimonial-section {
        padding: 40px 20px;
    }
    .testimonial-author{
        gap: 30px;
    }
    .testimonial-name, .elementor-kit-7 h4{
        font-size: 16px;
    }
    .testimonial-position{
        font-size: 14px;
    }
    .testimonial-author-info::before{
        left: -20px;
    }
    .related-article-title{
        margin: 11px 0;
    }
}

@media (max-width: 640px) {

    .modal-header {
        flex-direction: column;
    }

    .modal-icon {
        width: 65px;
        height: 65px;
    }
    .modal-body .modal-body-wrapper, .modal-header {
        padding: 15px;
    }
    .testimonial-section {
        padding: 32px 15px;
    }
	
	.modal-slider-prev,
	.modal-slider-next {
		top: 37%;
		width:36px;
		height:36px;
	}
	.modal-slider-next {
		right: 10px;
	}
	
	.modal-slider-prev {
		left: 10px;
	}
}


@media (max-width: 575px) {
    .modal-header-info{
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

