/* ==================================================
   Blog Page Styles - SabioInfotech
   ================================================== */

/* Blog Banner Section */
.blog-banner {
    position: relative;
    padding: 140px 0 80px;
    margin-top: 60px;
    background: linear-gradient(135deg, rgba(10, 31, 63, 0.85) 0%, rgba(26, 58, 111, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

/* Soft Glow Background */
.blog-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle Mesh Pattern */
.blog-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;        
    right: 0;
    bottom: 0;
    background:  url('../images/bg5.png') no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
}

/* Decorative Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.25);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation: orbit 8s linear infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation: bounce-expand 6s cubic-bezier(0.36, 0, 0.66, -0.56) infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: spiral-pulse 7s ease-in-out infinite;
}

.blog-banner .container {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease;
}

.banner-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.banner-breadcrumb {
    font-size: 0.95rem;
    opacity: 0.8;
}

.banner-breadcrumb a {
    color: white;
    transition: var(--transition);
}

.banner-breadcrumb a:hover {
    text-decoration: underline;
}

/* Blog Section */
.blog-section {
    background: var(--light-color);
}

/* Blog Post Styles */
.blog-post {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-post:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.blog-post-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Post Content */
.blog-post-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #777777;
}

.post-date,
.post-author,
.post-read-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: "Elms Sans", sans-serif;
    font-size: 11px;
}

.post-date i,
.post-author i,
.post-read-time i {
    color: var(--primary-color);
}

.blog-post-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.blog-post:hover .blog-post-title {
    color: var(--primary-color);
}

.blog-post-excerpt {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
}

.btn-read-more:hover {
    color: var(--accent-color);
    gap: 12px;
}

.btn-read-more i {
    font-size: 0.8rem;
}

/* Sidebar Styles */
.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.widget-title {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

/* Search Widget */
.search-form {
    display: flex;
    gap: 5px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 44, 99, 0.1);
}

.search-btn {
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
}

.categories-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: #22488a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: "Noto Sans", sans-serif;
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-count {
    background: var(--light-color);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
}

.recent-posts-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: var(--dark-color);
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.recent-posts-list a:hover {
    color: var(--primary-color);
}

.recent-date {
    font-size: 0.85rem;
    color: #888888;
}

/* Newsletter Widget */
.widget-description {
    color: #777777;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 44, 99, 0.1);
}

.newsletter-btn {
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(14, 44, 99, 0.3);
}

/* Tags Widget */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 15px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Pagination */
.pagination-nav {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.page-item {
    transition: var(--transition);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    gap: 5px;
}

.page-link:hover:not(.disabled .page-link) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-banner {
        padding: 100px 0 50px;
    }

    .banner-content h1 {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

    .blog-post-image {
        height: 200px;
    }

    .blog-post-content {
        padding: 20px;
    }

    .blog-post-title {
        font-size: 1.4rem;
    }

    .post-meta {
        gap: 10px;
        flex-direction: column;
    }

    .sidebar-widget {
        margin-bottom: 20px;
    }

    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 2rem;
    }

    .blog-post-title {
        font-size: 1.2rem;
    }

    .blog-post-image {
        height: 150px;
    }

    .post-category {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
}

/* Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbit {
    0% {
        transform: rotate(0deg) translateX(40px) rotate(-0deg);
        opacity: 0.15;
    }
    25% {
        opacity: 0.25;
    }
    50% {
        transform: rotate(180deg) translateX(40px) rotate(-180deg);
        opacity: 0.35;
    }
    75% {
        opacity: 0.25;
    }
    100% {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
        opacity: 0.15;
    }
}

@keyframes bounce-expand {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.15;
    }
    25% {
        transform: scale(1.25) translateY(-30px);
        opacity: 0.3;
    }
    50% {
        transform: scale(0.8) translateY(0);
        opacity: 0.35;
    }
    75% {
        transform: scale(1.15) translateY(-15px);
        opacity: 0.25;
    }
}

@keyframes spiral-pulse {
    0%, 100% {
        transform: rotate(0deg) scale(0.8);
        opacity: 0.15;
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        opacity: 0.25;
    }
    50% {
        transform: rotate(180deg) scale(1.3);
        opacity: 0.35;
    }
    75% {
        transform: rotate(270deg) scale(1.05);
        opacity: 0.2;
    }
}
