/* Blog Dark Theme CSS */

/* Hero Section - Dark Premium */
.blog-hero {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    padding: 150px 0 80px;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(85, 155, 204, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(85, 155, 204, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    color: #ffffff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(135deg, #ffffff, #559bcc);
 background-clip: text;              /* Standard property */
-webkit-background-clip: text;      /* Chrome, Safari */
-webkit-text-fill-color: transparent;
color: transparent;                 /* Fallback */

}

.blog-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Featured Blog Section - Dark */
.featured-blog-section {
    padding: 60px 0;
    background: #0b1120;
    position: relative;
}

.featured-blog-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(24, 60, 85, 0.3), transparent);
}

.featured-blog {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(85, 155, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #559bcc, #4a90e2, #559bcc);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.featured-blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(85, 155, 204, 0.25);
    border-color: rgba(85, 155, 204, 0.4);
}

.featured-blog-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.featured-blog:hover .featured-blog-image img {
    transform: scale(1.05);
    opacity: 1;
}

.featured-blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.4) 100%);
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--heading-font);
    box-shadow: 0 10px 30px rgba(238, 90, 111, 0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse2 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse2 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-badge i {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-blog-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
}

.featured-title {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-title a {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(90deg, #559bcc, #4a90e2);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
    display: inline;
    padding-bottom: 2px;
}

.featured-title a:hover {
    background-size: 100% 3px;
    color: #559bcc;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(85, 155, 204, 0.15);
    border-radius: 25px;
    border: 1px solid rgba(85, 155, 204, 0.2);
}

.featured-meta i {
    color: #559bcc;
    font-size: 1rem;
}

.btn-read-featured {
    background: linear-gradient(135deg, #559bcc, #4a90e2);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: var(--nav-font);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(85, 155, 204, 0.4);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-read-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-read-featured:hover::before {
    left: 100%;
}

.btn-read-featured:hover {
    background: linear-gradient(135deg, #4a90e2, #3a7bc8);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(85, 155, 204, 0.5);
    color: white;
}

.btn-read-featured i {
    transition: transform 0.3s ease;
}

.btn-read-featured:hover i {
    transform: translateX(5px);
}
/* Blog Grid Section - Dark */
.blog-grid-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #0b1120 0%, #1e293b 100%);
    position: relative;
}

.section-title-blog {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-blog h2 {
    font-family: var(--heading-font);
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title-blog h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #559bcc, #4a90e2);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(85, 155, 204, 0.5);
}

.section-title-blog p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 25px;
}
/* Blog Cards Section - Dark */
.blog-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(85, 155, 204, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(85, 155, 204, 0.25);
    border-color: rgba(85, 155, 204, 0.4);
}

.blog-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
}

.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.3) 100%);
    pointer-events: none;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
    opacity: 1;
}

.blog-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(5px);
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: #559bcc;
}

.blog-title {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 63px;
}

.blog-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline;
    background: linear-gradient(90deg, #559bcc, #4a90e2);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.blog-title a:hover {
    color: #559bcc;
    background-size: 100% 2px;
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(85, 155, 204, 0.15), rgba(74, 144, 226, 0.15));
    color: #559bcc;
    font-weight: 600;
    font-family: var(--nav-font);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(85, 155, 204, 0.3);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    gap: 8px;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(85, 155, 204, 0.2), transparent);
    transition: left 0.5s;
}

.read-more-btn:hover::before {
    left: 100%;
}

.read-more-btn:hover {
    background: linear-gradient(135deg, rgba(85, 155, 204, 0.25), rgba(74, 144, 226, 0.25));
    border-color: rgba(85, 155, 204, 0.5);
    transform: translateX(3px);
    color: #4a90e2;
    box-shadow: 0 5px 15px rgba(85, 155, 204, 0.2);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Featured Blog Section - Dark */
.featured-blog-section {
    padding: 60px 0;
    background: #0b1120;
    position: relative;
}

.featured-blog-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(24, 60, 85, 0.3), transparent);
}

.featured-blog {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(85, 155, 204, 0.2);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.featured-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #559bcc, #4a90e2, #559bcc);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.featured-blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(85, 155, 204, 0.25);
    border-color: rgba(85, 155, 204, 0.4);
}

.featured-blog-image {
    position: relative;
    height: 450px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
}

.featured-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 1;
}

.featured-blog:hover .featured-blog-image img {
    transform: scale(1.05);
    opacity: 1;
}

.featured-blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 17, 32, 0.4) 100%);
    pointer-events: none;
}

.featured-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--heading-font);
    box-shadow: 0 10px 30px rgba(238, 90, 111, 0.5);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse2 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse2 {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.featured-badge i {
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.featured-blog-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
}

.featured-title {
    font-family: var(--heading-font);
    font-size: 2.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-title a {
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(90deg, #559bcc, #4a90e2);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease, color 0.3s ease;
    display: inline;
    padding-bottom: 2px;
}

.featured-title a:hover {
    background-size: 100% 3px;
    color: #559bcc;
}

.featured-excerpt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 30px;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(85, 155, 204, 0.15);
    border-radius: 25px;
    border: 1px solid rgba(85, 155, 204, 0.2);
}

.featured-meta i {
    color: #559bcc;
    font-size: 1rem;
}

.btn-read-featured {
    background: linear-gradient(135deg, #559bcc, #4a90e2);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    font-family: var(--nav-font);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(85, 155, 204, 0.4);
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-read-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-read-featured:hover::before {
    left: 100%;
}

.btn-read-featured:hover {
    background: linear-gradient(135deg, #4a90e2, #3a7bc8);
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(85, 155, 204, 0.5);
    color: white;
}

.btn-read-featured i {
    transition: transform 0.3s ease;
}

.btn-read-featured:hover i {
    transform: translateX(5px);
}
/* Pagination - Dark */
.blog-pagination {
    margin-top: 60px;
}

.pagination {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    color: #559bcc;
    border: 2px solid rgba(85, 155, 204, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-family: var(--nav-font);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, #559bcc, #4a90e2);
    color: white;
    border-color: #559bcc;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(85, 155, 204, 0.4);
}

.pagination .active .page-link {
    background: linear-gradient(135deg, #559bcc, #4a90e2);
    border-color: #559bcc;
    box-shadow: 0 8px 20px rgba(85, 155, 204, 0.5);
    color: white;
}

.pagination .disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* No Blogs State - Dark */
.no-blogs {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(30, 41, 59, 0.3) 100%);
    border-radius: 24px;
    margin: 40px 0;
    border: 1px solid rgba(85, 155, 204, 0.2);
    backdrop-filter: blur(10px);
}

.no-blogs i {
    font-size: 6rem;
    background: linear-gradient(135deg, #559bcc, #4a90e2);
    background-clip: text;              /* Standard property */
-webkit-background-clip: text;      /* Chrome, Safari */
-webkit-text-fill-color: transparent;
color: transparent;                 /* Fallback */

    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.no-blogs h3 {
    font-family: var(--heading-font);
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.no-blogs p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Chat Styles - Dark Theme */
#chat-toggle-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #004272;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(90, 159, 212, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nav-font);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#chat-toggle-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(90, 159, 212, 0.7);
    background: linear-gradient(135deg, #004272, #3a7eb8);
}

#chat-window {
    position: fixed;
    top: 100px; /* Top se position set kiya */
    bottom: auto; /* Bottom ko auto rakha */
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 130px); /* Total height control */
    background: rgba(20, 30, 48, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 998;
    overflow: hidden;
    border: 1px solid rgba(90, 159, 212, 0.2);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column; /* Important for proper layout */
}

#chat-window.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.chat-header {
    background: linear-gradient(135deg, #5a9fd4, #4a8ec2);
    color: white;
    padding: 20px;
    font-weight: 600;
    font-family: var(--heading-font);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0; /* Header fixed size */
}

.chat-header button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.chat-header button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.chat-body {
    flex: 1; /* Available space le lega */
    overflow-y: auto;
    padding: 20px;
    background: rgba(15, 23, 38, 0.95);
    scroll-behavior: smooth;
    min-height: 300px; /* Minimum height */
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.3);
}

.chat-body::-webkit-scrollbar-thumb {
    background: #5a9fd4;
    border-radius: 10px;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #4a8ec2;
}

.bot-message, .user-message {
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 14px;
    max-width: 85%;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: rgba(35, 48, 68, 0.9);
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(90, 159, 212, 0.25);
    border-left: 3px solid #5a9fd4;
}

.user-message {
    background: linear-gradient(135deg, #5a9fd4, #4a8ec2);
    color: white;
    margin-left: auto;
    text-align: right;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(90, 159, 212, 0.3);
}

.chat-input-container {
    display: flex;
    padding: 18px 20px;
    background: rgba(20, 30, 48, 0.95);
    border-top: 1px solid rgba(90, 159, 212, 0.2);
    gap: 10px;
    flex-shrink: 0; /* Input container fixed size */
}

.chat-input-container input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid rgba(90, 159, 212, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-family: var(--default-font);
    background: rgba(15, 23, 38, 0.8);
    color: white;
}

.chat-input-container input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.chat-input-container input:focus {
    outline: none;
    border-color: #5a9fd4;
    background: rgba(15, 23, 38, 0.95);
    box-shadow: 0 0 20px rgba(90, 159, 212, 0.3);
}

.chat-input-container button {
    background: linear-gradient(135deg, #5a9fd4, #4a8ec2);
    color: white;
    border: none;
    padding: 12px 26px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-family: var(--nav-font);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.chat-input-container button:hover {
    background: linear-gradient(135deg, #4a8ec2, #3a7eb8);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(90, 159, 212, 0.5);
}

.chat-input-container button:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    #chat-toggle-button {
        bottom: 20px;
        right: 20px;
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    #chat-window {
        top: 80px;
        right: 20px;
        width: calc(100vw - 40px);
        max-height: calc(100vh - 100px);
    }

    .chat-body {
        min-height: 250px;
    }
    
    .bot-message, .user-message {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .featured-badge {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .featured-meta {
        gap: 15px;
        font-size: 0.85rem;
    }

    .btn-read-featured {
        padding: 14px 30px;
        font-size: 0.9rem;
    }

    .blog-grid-section {
        padding: 60px 0;
    }

    .section-title-blog h2 {
        font-size: 1.75rem;
    }
}
/* Responsive Media Queries */
@media (min-width: 768px) {
    .featured-blog-image {
        height: 400px;
    }
    
    .featured-title {
        font-size: 2.2rem;
    }
    
    .featured-blog-content {
        padding: 45px;
    }
}

@media (min-width: 1024px) {
    .featured-blog-image {
        height: 450px;
    }
    
    .featured-title {
        font-size: 2.4rem;
    }
    
    .featured-blog-content {
        padding: 50px;
    }
}