/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

/* Active menu item styles */
.primary-menu .menu-item.active > a {
	color: #0d6efd !important;
	font-weight: 600;
}

	.primary-menu .menu-item.active > a:after {
		content: '';
		position: absolute;
		bottom: -2px;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: #0d6efd;
		transform: scaleX(1);
		transition: transform 0.3s ease;
	}

/* Hover effect for menu items */
.primary-menu .menu-item > a {
	position: relative;
	transition: color 0.3s ease;
}

	.primary-menu .menu-item > a:after {
		content: '';
		position: absolute;
		bottom: -2px;
		left: 0;
		width: 100%;
		height: 2px;
		background-color: #0d6efd;
		transform: scaleX(0);
		transition: transform 0.3s ease;
		transform-origin: right;
	}

.primary-menu .menu-item:hover > a {
	color: #0d6efd !important;
}

	.primary-menu .menu-item:hover > a:after {
		transform: scaleX(1);
		transform-origin: left;
	}

/* Mobile menu active state */
@media (max-width: 991px) {
	.primary-menu .menu-item.active > a,
	.primary-menu .menu-item:hover > a {
		background-color: rgba(13, 110, 253, 0.1);
	}

	.primary-menu .menu-item > a:after {
		display: none;
	}
}

/* Footer Styles
-------------------------------------------------------------- */

/* Main Footer */
#footer {
    position: relative;
    background-color: #1a1a1a;
    color: #999;
    padding: 80px 0 0;
    margin-bottom: 0;
}

#footer .footer-widgets-wrap {
    padding-bottom: 40px;
    margin-bottom: 0;
}

/* Footer Widgets */
#footer .widget {
    margin-bottom: 30px;
}

#footer .widget h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

#footer .widget h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--bs-primary);
}

/* Footer Company Info */
.footer-company-info {
    color: #999;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-company-info p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-contact-info {
    margin-top: 1.5rem;
}

.footer-contact-info .d-flex {
    margin-bottom: 1rem;
}

.footer-contact-info i {
    color: var(--bs-primary);
    font-size: 1.2rem;
    width: 24px;
}

.footer-contact-info a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #fff;
}

/* Footer Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-links a:before {
    content: '›';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover:before {
    left: 0;
    opacity: 1;
}

/* Footer Copyright Section */
.footer-copyright {
    background-color: #0a0a0a;
    padding: 25px 0;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright .copyright-text {
    color: #666;
    margin: 0;
}

.footer-copyright .social-icons {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

.footer-copyright .social-icon {
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #666;
    transition: all 0.3s ease;
}

.footer-copyright .social-icon:hover {
    background-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-copyright .social-icon i {
    font-size: 0.9rem;
    line-height: inherit;
}

/* Responsive Footer Copyright */
@media (max-width: 991.98px) {
    .footer-copyright .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-copyright .social-icons {
        margin: 1rem 0 0 0;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer-copyright {
        padding: 20px 0;
    }

    .footer-copyright .copyright-text {
        font-size: 0.85rem;
    }
}

/* Responsive Footer */
@media (max-width: 991.98px) {
    #footer {
        padding: 60px 0 0;
    }
    
    .footer-widgets-wrap {
        padding-bottom: 20px;
    }
    
    #footer .widget {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    #footer {
        padding: 40px 0 0;
    }
    
    #copyrights {
        text-align: center;
    }
    
    #copyrights .text-md-end {
        margin-top: 1rem;
        text-align: center !important;
    }
    
    #copyrights .justify-content-md-end {
        justify-content: center !important;
    }
}

/* Add styles to ensure no white space at bottom */
body {
    margin-bottom: 0;
    padding-bottom: 0;
}

#wrapper {
    margin-bottom: 0;
    padding-bottom: 0;
}

.content-wrap {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Blog Section Styles */
.blog-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blog-image-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio for better fit in 4-column layout */
    overflow: hidden;
}

.blog-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.08);
}

.blog-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-title a:hover {
    color: var(--bs-primary);
}

.blog-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #6c757d;
    font-size: 0.85rem;
}

.blog-meta i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}

.blog-date {
    display: flex;
    align-items: center;
}

.blog-section .heading-block {
    margin-bottom: 3rem;
}

.blog-section .heading-block h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-section .heading-block span {
    color: #6c757d;
    font-size: 1.1rem;
}

/* View All Button Styles */
.view-all-btn {
    position: relative;
    padding: 0.8rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-width: 2px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: transparent;
}

.view-all-btn span {
    position: relative;
    z-index: 1;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.view-all-btn i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.view-all-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2c3e50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.view-all-btn:hover {
    border-color: #2c3e50;
    color: #fff;
}

.view-all-btn:hover:before {
    transform: translateX(0);
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Blog Styles */
@media (max-width: 1199.98px) {
    .blog-title {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .blog-section .heading-block h3 {
        font-size: 1.75rem;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .view-all-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

/* Blog List Page Styles */
.blog-list-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.blog-list-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-list-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.blog-list-header .category-header-name {
    color: var(--bs-primary);
}

.blog-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-list-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-list-image {
    position: relative;
    padding-top: 66.67%;
    overflow: hidden;
}

.blog-list-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-list-card:hover .blog-list-image img {
    transform: scale(1.1);
}

.blog-list-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-list-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-list-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-list-title a:hover {
    color: var(--bs-primary);
}

.blog-list-meta {
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.blog-list-meta i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}

.blog-list-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-list-readmore {
    display: inline-flex;
    align-items: center;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-list-readmore i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.blog-list-readmore:hover {
    color: #2c3e50;
}

.blog-list-readmore:hover i {
    transform: translateX(5px);
}

/* Blog Detail Page Styles */
.blog-detail-section {
    padding: 80px 0;
    background-color: #fff;
}

.blog-detail-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-detail-meta {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.blog-detail-meta i {
    color: var(--bs-primary);
    margin-right: 0.5rem;
}

.blog-detail-meta a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-detail-meta a:hover {
    color: var(--bs-primary);
}

.blog-detail-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
}

.blog-detail-content p {
    margin-bottom: 1.5rem;
}

.blog-detail-content h2, 
.blog-detail-content h3, 
.blog-detail-content h4 {
    color: #2c3e50;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.blog-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.blog-detail-tags {
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.blog-detail-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-detail-tags a:hover {
    background: var(--bs-primary);
    color: #fff;
}

/* Blog Sidebar Styles */
.blog-sidebar {
    padding-left: 2rem;
}

.blog-sidebar .widget {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-sidebar .widget h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bs-primary);
}

.recent-posts .post-item {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.recent-posts .post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts .post-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 1rem;
}

.recent-posts .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-posts .post-title {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.recent-posts .post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-posts .post-title a:hover {
    color: var(--bs-primary);
}

.recent-posts .post-date {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Blog Pagination Styles */
.blog-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.blog-pagination .btn {
    padding: 0.8rem 1.5rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.blog-pagination .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.blog-pagination .btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
}

.blog-pagination .btn-outline-dark {
    border-color: #2c3e50;
    color: #2c3e50;
}

.blog-pagination .btn-outline-dark:hover {
    background: #2c3e50;
    color: #fff;
}

/* Responsive Blog Styles */
@media (max-width: 1199.98px) {
    .blog-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .blog-list-section,
    .blog-detail-section {
        padding: 60px 0;
    }
    
    .blog-sidebar {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .blog-detail-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .blog-list-section,
    .blog-detail-section {
        padding: 40px 0;
    }
    
    .blog-list-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-list-header h3,
    .blog-detail-title {
        font-size: 1.75rem;
    }
    
    .blog-detail-content {
        font-size: 1rem;
    }
    
    .blog-pagination {
        flex-direction: column;
    }
    
    .blog-pagination .btn {
        width: 100%;
        text-align: center;
    }
}