﻿
body {
  
    background: var(--white-ivory);
    overflow-x: hidden;
}

/*.hero-section {
    background: linear-gradient(90deg, var(--navy-blue) 0%, var(--navy-blue-dark) 50%, var(--blue) 100%);
    position: relative;
    overflow: hidden;
    min-height: 42vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
    width: 100vw;
    margin-top: -25px;
    margin-left: calc(50% - 50vw);
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.15)"/></svg>');
        animation: sparkle 20s linear infinite;
        will-change: transform;
    }
*/
/*@keyframes sparkle {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}
*/
.animated-heading {
    background: linear-gradient(45deg, var(--white-ivory), var(--white-ivory), var(--teal-accent));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-enhanced {
    transition: all 0.3s ease;
}

    .btn-enhanced:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

.btn-text-change {
    position: relative;
    overflow: hidden;
}

.btn-text, .btn-text-hover {
    transition: opacity 0.3s ease;
}

.btn-text-hover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-text-change:hover .btn-text {
    opacity: 0;
}

.btn-text-change:hover .btn-text-hover {
    opacity: 1;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-blue-dark);
    margin-bottom: 20px;
    position: relative;
    text-align:center;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(45deg, var(--teal-accent), var(--navy-blue-dark));
        border-radius: 2px;
    }

/* Search container */
.search-container {
    max-width: 600px;
    margin: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.search-input-group {
    flex-grow: 1;
    position: relative;
    max-width: 400px;
}

.search-input {
    border: 2px solid rgba(45, 184, 163, 0.2);
    border-radius: 25px;
    padding: 5px 60px 5px 40px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white-ivory);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--navy-blue-dark);
}

    .search-input::placeholder {
        color: var(--grey);
    }

    .search-input:focus {
        border-color: var(--teal-accent);
        box-shadow: 0 0 0 0.2rem rgba(45, 184, 163, 0.25);
        outline: none;
    }

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grey);
    font-size: 1.2rem;
}

.search-input-group .clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--grey);
    font-size: 1.2rem;
    padding: 0;
    transition: all 0.3s ease;
}

    .search-input-group .clear-btn:hover {
        color: var(--teal-accent);
    }

/* Blog Card Styles */
.blog-custom-card {
    background: var(--white-ivory);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

    .blog-custom-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(30, 58, 138, 0.2);
    }

.blog-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .blog-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* default for desktop */
        transition: transform 0.6s ease;
    }

    .blog-img-wrapper:hover img {
        transform: scale(1.1);
    }

.category-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy-blue-dark);
    padding: 3px 6px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
}

.card-date {
    color: var(--navy-blue-dark);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 0.9rem;
    color: var(--grey);
    margin-bottom: 10px;
}

.card-preview {
    color: var(--grey);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--navy-blue-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

    .read-more:hover {
        color: var(--teal-accent);
        transform: translateX(3px);
    }

    .read-more::after {
        content: '→';
        transition: transform 0.3s ease;
    }

    .read-more:hover::after {
        transform: translateX(3px);
    }

.social-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.social-icon {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-blue-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .social-icon:hover {
        background: var(--teal-accent);
        color: var(--white-ivory);
        transform: scale(1.1);
    }

    .social-icon.fav-active {
        color: var(--profit-highlight);
    }

/* Pagination */
.pagination {
    padding: 5px;
    margin-top: 40px;
}



.btn-custom {
    background: linear-gradient(45deg, var(--teal-accent), var(--navy-blue-dark));
    border: none;
    color: var(--white-ivory);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        color: var(--white-ivory);
    }




.btn-custom-new {
    background: linear-gradient(45deg, var(--navy-blue-dark), var(--teal-accent));
    color: var(--white-ivory);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .btn-custom-new:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        color: var(--white-ivory);
    }

.page-link {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border: 1px solid #ddd;
    color: var(--navy-blue-dark);
    border-radius: 15px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background: var(--teal-accent);
    color: var(--white-ivory);
    border-color: var(--teal-accent);
}

.page-link:hover {
    background: var(--teal-accent);
    color: var(--white-ivory);
    transform: translateY(-2px);
}

.page-item.disabled .page-link {
    color: var(--grey);
    background: #e9ecef;
    cursor: not-allowed;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--teal-accent);
    width: 0;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
/*    .hero-section {
        min-height: 60vh;
        padding: 40px 0;
    }
*/
    .display-4 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .blog-img-wrapper img {
        object-fit: contain;
        background: #f8f9fa; /* optional: adds background padding if aspect ratio doesn’t match */
    }

    .card-title {
        font-size: 1rem;
    }

    .card-preview {
        font-size: 0.8rem;
    }

    .search-container {
        flex-direction: column;
        gap: 15px;
    }
}


.blog-custom-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .blog-custom-card:hover {
        transform: translateY(-5px);
    }

.social-icons {
    pointer-events: auto; /* Allow clicks on icons */
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}