/* ====== NOTICEBOARD PAGE STYLES ====== */

.notices-section {
    padding: 60px 40px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 55%),
                #f1f5f9;
    position: relative;
    overflow: hidden;
}

/* Floating bubbles for consistency */
.notices-section::before,
.notices-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #9b9bd1, #175996);
    opacity: 0.1;
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
    animation: floatBubble 20s ease-in-out infinite;
}

.notices-section::before {
    width: 300px;
    height: 300px;
    top: -60px;
    left: -60px;
    animation-delay: -5s;
}

.notices-section::after {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -60px;
    animation-delay: -12s;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e3a6a;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.6px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #175996, #9b9bd1);
    border-radius: 2px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-btn {
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn.active {
    background: linear-gradient(135deg, #175996 0%, #0d3a6b 100%);
    color: #ffffff;
    border-color: #175996;
    box-shadow: 0 4px 12px rgba(23, 89, 150, 0.2);
}

.filter-btn.active:hover {
    background: linear-gradient(135deg, #1f6bb8 0%, #12467a 100%);
    border-color: #1f6bb8;
}

/* Notices Grid */
.notices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.notice-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    transition:
        transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Soft glow ring on hover */
.notice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(55, 148, 255, 0.4), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.notice-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(129, 140, 248, 0.3);
}

.notice-card:hover::before {
    opacity: 0.8;
}

/* Top accent line on hover */
.notice-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #175996, #9b9bd1);
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.notice-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Card Content */
.notice-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.notice-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a6a;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.notice-message {
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notice-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #6b7280;
}

.notice-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
}

.notice-audience {
    background: linear-gradient(135deg, rgba(23, 89, 150, 0.1), rgba(155, 155, 209, 0.1));
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #175996;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #175996 0%, #0d3a6b 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(23, 89, 150, 0.2);
}

.read-more-btn:hover {
    background: linear-gradient(135deg, #1f6bb8 0%, #12467a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 89, 150, 0.3);
    gap: 10px;
}

.read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(3px);
}

/* Loading, Error, and Empty States */
.loading-state,
.error-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #175996;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-state i,
.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.error-state i {
    color: #dc2626;
}

.empty-state i {
    color: #6b7280;
}

.error-state h3,
.empty-state h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.error-state p,
.empty-state p {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Notice Modal */
.notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notice-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

@keyframes modalSlideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.modal-header {
    padding: 30px 40px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(to bottom, #f8fbff, #ffffff);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a6a;
    margin: 0 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.7px;
}

.modal-body {
    padding: 30px 40px;
    line-height: 1.5;
    color: #4e4b6d;
    font-family: 'Figtree', sans-serif;
    font-size: 0.97rem;
    letter-spacing: -0.2px;
}

.modal-body p {
    margin-bottom: 1.5em;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: 20px 40px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    background: #f9fafb;
    border-radius: 0 0 20px 20px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6b7280;
    transition: all 0.3s ease;
    z-index: 11;
}

.close-modal:hover {
    background: #dc2626;
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #6b7280;
}

.modal-audience {
    background: linear-gradient(135deg, rgba(23, 89, 150, 0.1), rgba(155, 155, 209, 0.1));
    padding: 6px 16px;
    border-radius: 15px;
    color: #175996;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .notices-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .notices-section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .filter-controls {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .notices-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 20px;
    }
    
    .notice-card {
        max-width: 100%;
    }
    
    .notice-card-content {
        padding: 20px;
    }
    
    .notice-title {
        font-size: 1.1rem;
    }
    
    .notice-message {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
    
    .modal-content {
        max-height: 80vh;
        margin: 10px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 25px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .notices-section {
        padding: 40px 10px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .filter-controls {
        justify-content: center;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .notices-grid {
        gap: 15px;
    }
    
    .notice-card-content {
        padding: 18px;
    }
    
    .notice-title {
        font-size: 1rem;
    }
    
    .notice-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .read-more-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        max-height: 75vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        font-size: 0.87rem;
    }
    
    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Animation for floating bubble */
@keyframes floatBubble {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1); 
    }
    33% { 
        transform: translate3d(20px, -25px, 0) scale(1.05); 
    }
    66% { 
        transform: translate3d(-15px, 15px, 0) scale(1.02); 
    }
}



/* ===========SINGLE BLOG POST STARTS HERE=============*/

/* ====== BLOG POST DETAIL PAGE ====== */

/* Blog Post Container */
.blog-post-container {
    padding: 25px 0;
    background: #f8f9fa;
    font-family: 'Figtree', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid Layout */
.blog-post-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 35px;
    align-items: start;
}

/* Main Content Area */
.blog-post-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
    overflow: hidden;
}

/* Subtle gradient overlay */
.blog-post-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #175996, #9b9bd1);
    border-radius: 16px 16px 0 0;
}

/* Loading States */
.loading-state, .loading-sidebar {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #175996;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner-small {
    width: 28px;
    height: 28px;
    border: 2.5px solid #f3f3f3;
    border-top: 2.5px solid #175996;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.error-state i {
    font-size: 52px;
    color: #dc2626;
    margin-bottom: 18px;
}

.error-state h3 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: #1e3a6a;
    font-weight: 600;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #175996 0%, #0d3a6b 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14.5px;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(23, 89, 150, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1f6bb8 0%, #12467a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 89, 150, 0.3);
}

/* Breadcrumb */
.post-breadcrumb {
    font-size: 13.5px;
    color: #4b5563;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.post-breadcrumb a {
    color: #175996;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.post-breadcrumb a:hover {
    color: #1f6bb8;
}

.separator {
    margin: 0 9px;
    color: #9ca3af;
}

/* Post Header */
.post-header {
    margin-bottom: 28px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13.5px;
    color: #6b7280;
    margin-bottom: 15px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta i {
    font-size: 12px;
    color: #175996;
}

#post-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 28px;
    line-height: 1.3;
    color: #1e3a6a;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.post-excerpt {
    font-size: 15.5px;
    line-height: 1.6;
    color: #4b5563;
    font-style: italic;
    background: linear-gradient(135deg, rgba(23, 89, 150, 0.05), rgba(155, 155, 209, 0.05));
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 3px solid #175996;
}

/* Featured Image */
.post-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.post-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-featured-image img:hover {
    transform: scale(1.05);
}

/* Post Body */
.post-body {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 35px;
    font-family: 'Figtree', 'Segoe UI', sans-serif;
    letter-spacing: -0.1px;
}

.post-body p {
    margin-bottom: 18px;
    font-weight: 400;
}

.post-body h2 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 22px;
    margin: 30px 0 18px;
    color: #1e3a6a;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.post-body h3 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    margin: 25px 0 16px;
    color: #1e3a6a;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.post-body ul, .post-body ol {
    margin-left: 22px;
    margin-bottom: 18px;
    color: #4b5563;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Post Footer */
.post-footer {
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
    margin-bottom: 28px;
}

.post-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    font-size: 14px;
}

.tag-label {
    color: #4b5563;
    font-weight: 600;
    white-space: nowrap;
}

.tags-list {
    color: #175996;
    line-height: 1.6;
    font-weight: 500;
}

.tags-list span {
    background: linear-gradient(135deg, rgba(23, 89, 150, 0.1), rgba(155, 155, 209, 0.1));
    padding: 4px 12px;
    border-radius: 15px;
    margin-right: 8px;
    font-size: 0.85rem;
}

.post-share {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }
.share-btn.whatsapp { background: #25d366; }

/* Navigation */
.post-navigation {
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #175996 0%, #0d3a6b 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 89, 150, 0.2);
}

.btn-back:hover {
    background: linear-gradient(135deg, #1f6bb8 0%, #12467a 100%);
    transform: translateY(-2px) translateX(-3px);
    box-shadow: 0 6px 20px rgba(23, 89, 150, 0.3);
    gap: 12px;
}

.btn-back i {
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* SIDEBAR STYLES */
.blog-sidebar {
    position: sticky;
    top: 25px;
    font-family: 'Figtree', 'Segoe UI', sans-serif;
}

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #175996, #9b9bd1);
    border-radius: 16px 16px 0 0;
}

.widget-title {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 17px;
    color: #1e3a6a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    letter-spacing: -0.4px;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 10px;
    position: relative;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

.quick-links a:hover {
    background: linear-gradient(135deg, #175996 0%, #0d3a6b 100%);
    color: white;
    transform: translateX(5px);
    border-color: #175996;
}

.quick-links i {
    width: 17px;
    text-align: center;
    font-size: 13px;
}

/* Latest Posts */
.latest-posts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.post-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 14px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.post-item:hover {
    transform: translateX(5px);
}

.post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-image {
    border-radius: 8px;
    overflow: hidden;
    height: 65px;
    position: relative;
}

.post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(23, 89, 150, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-item:hover .post-image::after {
    opacity: 1;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    flex: 1;
}

.post-title {
    margin: 0 0 6px 0;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14.5px;
    line-height: 1.4;
    font-weight: 600;
}

.post-title a {
    color: #1e3a6a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #175996;
}

.post-date {
    font-size: 12.5px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.post-date i {
    font-size: 11px;
    color: #175996;
}

.no-posts-sidebar {
    text-align: center;
    padding: 25px 0;
    color: #9ca3af;
}

.no-posts-sidebar i {
    font-size: 26px;
    margin-bottom: 12px;
    color: #d1d5db;
}

.no-posts-sidebar p {
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* PROMOTION WIDGET */
.promo-widget {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border: none;
}

.promo-widget::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 110px;
    height: 110px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: translate(35px, -35px);
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-icon {
    width: 55px;
    height: 55px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
    color: white;
}

.promo-widget h3 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 18px;
    margin-bottom: 12px;
    color: white;
    line-height: 1.3;
    font-weight: 600;
}

.promo-widget p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
    opacity: 0.9;
}

.promo-features {
    background: rgba(255,255,255,0.1);
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 22px;
    margin-top: 20px;
}

.promo-features p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    margin-bottom: 9px;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

.promo-features p:last-child {
    margin-bottom: 0;
}

.promo-features i {
    color: #68d391;
    font-size: 12px;
}

/* Contact Form */
.promo-form h4 {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 15.5px;
    margin-bottom: 18px;
    color: white;
    font-weight: 600;
}

.form-group {
    margin-bottom: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    font-size: 14px;
    color: #1e3a6a;
    transition: all 0.3s ease;
    font-family: 'Figtree', 'Segoe UI', sans-serif;
    font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.form-group textarea {
    min-height: 85px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #68d391 0%, #48bb78 100%);
    color: #1a365d;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    box-shadow: 0 4px 12px rgba(104, 211, 145, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #9ae6b4 0%, #68d391 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(104, 211, 145, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .blog-post-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .post-featured-image img {
        height: 340px;
    }
    
    .blog-post-main {
        padding: 25px;
    }
    
    #post-title {
        font-size: 26px;
    }
    
    .post-body {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .blog-post-main {
        padding: 22px;
    }
    
    .post-meta {
        gap: 15px;
        font-size: 13px;
    }
    
    #post-title {
        font-size: 24px;
    }
    
    .post-excerpt {
        font-size: 15px;
    }
    
    .post-featured-image img {
        height: 280px;
    }
    
    .post-body {
        font-size: 15px;
    }
    
    .post-body h2 {
        font-size: 20px;
        margin: 25px 0 16px;
    }
    
    .post-body h3 {
        font-size: 18px;
        margin: 20px 0 14px;
    }
    
    .post-share {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .blog-post-container {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .blog-post-main {
        padding: 20px;
    }
    
    #post-title {
        font-size: 22px;
    }
    
    .post-featured-image img {
        height: 220px;
    }
    
    .post-body {
        font-size: 14.5px;
    }
    
    .post-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .post-image {
        height: 160px;
    }
    
    .widget-title {
        font-size: 16px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

/* ============BLOG PAGE ============== */


.news-section {
    padding: 60px 40px;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 55%),
                radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 55%),
                #f1f5f9;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

/* Floating bubbles for news section */
.news-section::before,
.news-section::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #9b9bd1, #175996);
    opacity: 0.1;
    filter: blur(4px);
    pointer-events: none;
    z-index: 0;
    animation: newsFloatBubble 20s ease-in-out infinite;
}

.news-section::before {
    width: 300px;
    height: 300px;
    top: -60px;
    left: -60px;
    animation-delay: -5s;
}

.news-section::after {
    width: 350px;
    height: 350px;
    bottom: -80px;
    right: -60px;
    animation-delay: -12s;
}

/* Section Title for news */
.news-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e3a6a;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.6px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.news-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #175996, #9b9bd1);
    border-radius: 2px;
}

/* News counter */
.news-counter {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-weight: 500;
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* News card */
.news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
    transition:
        transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Soft glow ring on hover */
.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(55, 148, 255, 0.4), transparent 55%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(129, 140, 248, 0.3);
}

.news-card:hover::before {
    opacity: 0.8;
}

/* Top accent line on hover */
.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #175996, #9b9bd1);
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* News image */
.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

/* News content */
.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: #175996;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date::before {
    content: '📅';
    font-size: 0.9rem;
}

.news-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3a6a;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.news-excerpt {
    font-family: 'Figtree', sans-serif;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More Link for news */
.news-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #175996 0%, #0d3a6b 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(23, 89, 150, 0.2);
}

.news-read-more:hover {
    background: linear-gradient(135deg, #1f6bb8 0%, #12467a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 89, 150, 0.3);
    gap: 10px;
}

.news-read-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.news-read-more:hover i {
    transform: translateX(3px);
}

/* Loading Spinner for news */
.news-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.news-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #175996;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: newsSpin 1s linear infinite;
    margin: 0 auto 20px;
}

.news-loading p {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

@keyframes newsSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No News / Error States */
.news-empty,
.news-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.news-empty i,
.news-error i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.news-empty i.fa-newspaper {
    color: #9ca3af;
}

.news-error i.fa-exclamation-triangle {
    color: #dc2626;
}

.news-empty h3,
.news-error h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 10px;
}

.news-empty p,
.news-error p {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Animation for floating bubble (news specific) */
@keyframes newsFloatBubble {
    0%, 100% { 
        transform: translate3d(0, 0, 0) scale(1); 
    }
    33% { 
        transform: translate3d(20px, -25px, 0) scale(1.05); 
    }
    66% { 
        transform: translate3d(-15px, 15px, 0) scale(1.02); 
    }
}

/* Responsive Design for News */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 25px;
    }
    
    .news-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .news-section {
        padding: 50px 15px;
    }
    
    .news-section-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }
    
    .news-counter {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        gap: 20px;
    }
    
    .news-card {
        max-width: 100%;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .news-section {
        padding: 40px 10px;
    }
    
    .news-section-title {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }
    
    .news-counter {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .news-grid {
        gap: 15px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 18px;
    }
    
    .news-title {
        font-size: 1rem;
    }
    
    .news-date {
        font-size: 0.8rem;
    }
    
    .news-read-more {
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}