/* ============================================
   BLOGS PAGE STYLES
   ============================================ */

/* Hero Section */
.blogs-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../assets/images/11414176 2 (1).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 120px;
    padding-bottom: 120px;
    margin-top: 0;
    overflow: hidden;
}

/* Animated Background Shapes */
.blogs-hero-animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blogs-hero-floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    animation: blogsHeroFloat 25s infinite ease-in-out;
}

.blogs-hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.blogs-hero-shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.blogs-hero-shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

.blogs-hero-shape-4 {
    width: 180px;
    height: 180px;
    top: 30%;
    right: 25%;
    animation-delay: 9s;
}

@keyframes blogsHeroFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }
    25% {
        transform: translate(40px, -40px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translate(-30px, 30px) rotate(180deg);
        opacity: 0.5;
    }
    75% {
        transform: translate(30px, 40px) rotate(270deg);
        opacity: 0.7;
    }
}

.blogs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.75) 0%, rgba(13, 27, 42, 0.65) 100%);
    z-index: 1;
}

.blogs-hero-section .container {
    position: relative;
    z-index: 2;
}

.blogs-hero-content-wrapper {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Badge */
.blogs-hero-badge {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.blogs-hero-badge i {
    color: #4ade80;
}

.blogs-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.blogs-hero-subtitle {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.blogs-hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Blog Statistics */
.blogs-hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.blogs-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
}

.blogs-stat-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.blogs-stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.blogs-stat-content {
    text-align: left;
}

.blogs-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blogs-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.blogs-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.blogs-learn-btn {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 35px;
    border-radius: 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.blogs-learn-btn:hover {
    background-color: white;
    color: #00399E;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.blogs-cta-arrow {
    width: 45px;
    height: 45px;
    transition: transform 0.3s ease;
}

.blogs-hero-cta:hover .blogs-cta-arrow {
    transform: translateY(-5px);
}

/* Main Content Section */
.blogs-content-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Timeline Wrapper */
.blogs-timeline-wrapper {
    position: relative;
    padding-left: 15px;
    padding-right: 15px;
}

/* Add spacing around the timeline line */
.blogs-timeline-wrapper .col-lg-8 {
    padding-right: 50px;
    padding-left: 15px;
}

.blogs-timeline-wrapper .col-lg-4 {
    padding-left: 50px;
    padding-right: 15px;
}

/* Continuous Timeline Line */
.blog-timeline-line-continuous {
    position: absolute;
    left: calc(66.67% - 1.5px); /* Position at the boundary between col-lg-8 and col-lg-4 */
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #00399E;
    z-index: 1;
}

/* Timeline Dot - positioned relative to parent container */
.blog-timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #00399E;
    border-radius: 50%;
    border: 1px solid #00399E;
    box-shadow: 0 0 0 3px #00399E;
    z-index: 2;
}

/* For blog post cards (in col-lg-8), position dot at right edge */
.blog-post-card .blog-timeline-dot {
    right: -63px;
    left: auto;
}

/* For sidebar widgets (in col-lg-4), position dot at left edge */
.blog-sidebar-widget .blog-timeline-dot {
    left: -25px;
    right: auto;
}

.blog-timeline-dot-last {
    left: -25px;
    right: auto;
}

/* Blog Post Card */
.blog-post-card {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.blog-post-title {
    font-size: 2rem;
    font-weight: 700;
    /* color: #00399E; */
    margin-bottom: 1rem;
    padding: 2rem 2rem 0 2rem;
    line-height: 1.3;
}

.blog-post-meta {
    /* display: flex;
    align-items: center; */
    gap: 8px;
    padding: 0 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #666;
}

.blog-post-author {
    font-weight: 500;
}

.blog-post-separator {
    color: #999;
}

.blog-post-date {
    color: #666;
}

.blog-post-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    /* text-align: center; */
}

.blog-post-image {
    width: 635px;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    margin-left: 2rem;
}

.blog-post-image-overlay {
    position: absolute;
    width: 635px;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem;
    border-radius: 22px;
    text-align: center;
    margin-left: 2rem;
}

.blog-post-image-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-post-excerpt {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.blog-post-excerpt p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

.blog-read-more-btn {
    background-color: #00399E;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 2rem 2rem 2rem;
    transition: all 0.3s ease;
}

.blog-read-more-btn:hover {
    background-color: #002d7a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 57, 158, 0.3);
}

.blog-read-more-arrow {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transform: rotate(-45deg);
}

/* Load More Button */
.blogs-load-more-wrapper {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.blog-load-more-btn {
    background-color: #00399E;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.blog-load-more-btn:hover:not(:disabled) {
    background-color: #002d7a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 57, 158, 0.3);
}

.blog-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.blog-load-more-btn .btn-spinner {
    display: inline-flex;
    align-items: center;
}

.blog-load-more-btn .btn-spinner i {
    font-size: 1rem;
}

/* Pagination (kept for fallback) */
.blogs-pagination {
    display: flex;
    justify-content: center;
}

.blogs-pagination .pagination {
    margin: 0;
}

.blogs-pagination .page-link {
    color: #00399E;
    border-color: #dee2e6;
    padding: 0.5rem 1rem;
}

.blogs-pagination .page-link:hover {
    background-color: #00399E;
    color: white;
    border-color: #00399E;
}

.blogs-pagination .page-item.active .page-link {
    background-color: #00399E;
    border-color: #00399E;
}

/* Sidebar */
.blog-sidebar-widget {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: visible;
}

.blog-sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    /* color: #00399E; */
    margin-bottom: 1.5rem;
}

/* Search Form */
.blog-search-form {
    margin: 0;
}

.blog-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.blog-search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.blog-search-input:focus {
    outline: none;
    border-color: #00399E;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.blog-search-btn {
    /* position: absolute; */
    right: 8px;
    background-color: #00399E;
    color: white;
    border: none;
    border-radius: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 10px;
}

.blog-search-btn:hover {
    background-color: #002d7a;
}

.blog-search-btn i {
    font-size: 1rem;
}

/* Recent Posts */
.blog-recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-recent-post-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.blog-recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.blog-recent-post-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.blog-recent-post-link:hover {
    opacity: 0.8;
}

.blog-recent-post-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-recent-post-image-placeholder {
    width: 80px;
    height: 80px;
    background-color: #e9ecef;
    border-radius: 8px;
    flex-shrink: 0;
}

.blog-recent-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: black;
    line-height: 1.4;
    flex: 1;
}

.blog-recent-post-link:hover .blog-recent-post-title {
    text-decoration: underline;
}

/* Archives */
.blog-archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-archive-item {
    margin-bottom: 0.75rem;
}

.blog-archive-item:last-child {
    margin-bottom: 0;
}

.blog-archive-link {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.blog-archive-link:hover {
    color: #00399E;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blogs-hero-section {
        background-attachment: scroll;
    }
    
    .blogs-hero-title {
        font-size: 3.5rem;
    }
    
    .blogs-hero-subtitle {
        font-size: 1.5rem;
    }
    
    .blogs-hero-description {
        font-size: 1.05rem;
    }
    
    .blogs-hero-stats {
        gap: 2rem;
    }
    
    .blogs-stat-item {
        min-width: 160px;
        padding: 1rem 1.5rem;
    }
    
    .blogs-stat-number {
        font-size: 1.75rem;
    }
    
    .blogs-stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .blog-post-title {
        font-size: 1.75rem;
    }
    
    .blog-post-image-wrapper {
        height: 300px;
    }
    
    .blog-post-image {
        width: 100%;
        max-width: 635px;
    }
    
    .blog-post-image-overlay {
        width: 100%;
        max-width: 635px;
    }
}

@media (max-width: 768px) {
    .blogs-hero-section {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 80px;
    }
    
    .blogs-hero-title {
        font-size: 2.5rem;
    }
    
    .blogs-hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .blogs-hero-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .blogs-hero-badge {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .blogs-hero-stats {
        gap: 1.5rem;
        margin: 2.5rem 0 2.5rem;
    }
    
    .blogs-stat-item {
        min-width: 140px;
        padding: 1rem 1.25rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .blogs-stat-content {
        text-align: center;
    }
    
    .blogs-stat-number {
        font-size: 1.5rem;
    }
    
    .blogs-stat-label {
        font-size: 0.8rem;
    }
    
    .blogs-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .blogs-content-section {
        padding: 60px 0;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
        padding: 1.5rem 1.5rem 0 1.5rem;
    }
    
    .blog-post-meta {
        padding: 0 1.5rem;
        font-size: 0.9rem;
    }
    
    .blog-post-image-wrapper {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .blog-post-image {
        width: 100%;
        margin-left: 0;
        border-radius: 0;
    }
    
    .blog-post-image-overlay {
        width: 100%;
        margin-left: 0;
        border-radius: 0;
    }
    
    .blog-post-excerpt {
        padding: 0 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-read-more-btn {
        margin: 0 1.5rem 1.5rem 1.5rem;
    }
    
    .blog-sidebar-widget {
        padding: 1.5rem;
    }
    
    .blog-sidebar-title {
        font-size: 1.25rem;
    }
    
    /* Hide timeline on mobile */
    .blog-timeline-line-continuous,
    .blog-timeline-dot {
        display: none;
    }
    
    /* Reset padding on mobile for better spacing */
    .blogs-timeline-wrapper .col-lg-8,
    .blogs-timeline-wrapper .col-lg-4 {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 576px) {
    .blogs-hero-section {
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }
    
    .blogs-hero-title {
        font-size: 2rem;
    }
    
    .blogs-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blogs-hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .blogs-hero-badge {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .blogs-hero-stats {
        gap: 1rem;
        margin: 2rem 0 2rem;
    }
    
    .blogs-stat-item {
        min-width: calc(50% - 0.5rem);
        padding: 0.875rem 1rem;
    }
    
    .blogs-stat-number {
        font-size: 1.35rem;
    }
    
    .blogs-stat-label {
        font-size: 0.75rem;
    }
    
    .blogs-learn-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    .blogs-cta-arrow {
        width: 35px;
        height: 35px;
    }
    
    .blog-post-title {
        font-size: 1.25rem;
        padding: 1.25rem 1.25rem 0 1.25rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 0 1.25rem;
    }
    
    .blog-post-separator {
        display: none;
    }
    
    .blog-post-image-wrapper {
        height: 200px;
    }
    
    .blog-post-image {
        width: 100%;
        margin-left: 0;
        border-radius: 0;
    }
    
    .blog-post-image-overlay {
        width: 100%;
        margin-left: 0;
        border-radius: 0;
    }
    
    .blog-post-excerpt {
        padding: 0 1.25rem;
    }
    
    .blog-read-more-btn {
        width: calc(100% - 2.5rem);
        margin: 0 1.25rem 1.25rem 1.25rem;
        justify-content: center;
    }
    
    .blog-load-more-btn {
        padding: 12px 30px;
        font-size: 0.9rem;
        min-width: 130px;
    }
}

.blogs-read-more-btn {
    display: flex;
    min-height: 40px;
    min-width: 140px;
    border: 1px solid #00399E;
    border-radius: 20px;
    color: #00399E;
    align-items: center;
    justify-content: center !important;
}

.blogs-read-more-btn:hover {
    background-color: #002d7a;
    color: white;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 12px rgba(0, 57, 158, 0.3);
}
