
    .flash-message {
        padding: 15px 20px;
        margin: 15px 0;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        animation: fadeInDown 0.5s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* Success (Green) */
    .flash-message.success {
        background: #3573D4; /* Bootstrap green */
        border-left: 6px solid #02055A;
    }

    /* Error (Red) */
    .flash-message.error {
        background: #dc3545; /* Bootstrap red */
        border-left: 6px solid #b02a37;
    }

    /* Animation */
    @keyframes fadeInDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .csr-gallery .gallery-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px; /* space between images */
    }

    .csr-gallery .gallery-item {
        width: 200px;  /* fixed width */
        height: 150px; /* fixed height */
        overflow: hidden; /* ensures images don't overflow */
    }

    .csr-gallery .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* crops/resizes image to fill container */
        display: block;
    }

    .modal-backdrop.show {
    opacity: 0 !important;
    }
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    :root {
        --primary: #3573D4;
        --secondary: #1F1A56;
        --light: #f8f9fa;
        --dark: #212529;
        --gray: #6c757d;
        --light-gray: #e9ecef;
        --text: #333333;
    }

    body {
        background-color: #f5f7fb;
        color: var(--text);
        line-height: 1.6;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }


    /* Blog Content */
    .blog-content {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 40px;
        padding: 30px 0 50px;
    }

    @media (max-width: 900px) {
        .blog-content {
            grid-template-columns: 1fr;
        }
    }

    .blog-article {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        padding: 30px;
    }

    .blog-header {
        margin-bottom: 30px;
    }

    .category {
        display: inline-block;
        background-color: #1F1A56;
        color: white;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 15px;
    }

    .blog-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
        color: var(--secondary);
        line-height: 1.3;
    }

    .blog-meta {
        display: flex;
        align-items: center;
        color: var(--gray);
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--light-gray);
    }

    .author {
        display: flex;
        align-items: center;
        margin-right: 20px;
    }

    .author-img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 10px;
    }

    .author-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .blog-hero {
        width: 100%;
        height: 400px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 30px;
    }

    .blog-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .article-content {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    .article-content h2 {
        font-size: 1.6rem;
        margin: 30px 0 15px;
        color: var(--secondary);
    }

    .article-content h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
        color: var(--secondary);
    }

    .article-content p {
        margin-bottom: 20px;
    }

    .article-content blockquote {
        border-left: 4px solid var(--primary);
        padding-left: 20px;
        margin: 25px 0;
        font-style: italic;
        color: var(--gray);
    }

    .article-content ul, .article-content ol {
        margin-left: 20px;
        margin-bottom: 20px;
    }

    .article-content li {
        margin-bottom: 8px;
    }

    .article-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 20px 0;
    }

    /* Sidebar */
    .sidebar {
        position: sticky;
        top: 90px;
        align-self: start;
    }

    .sidebar-widget {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        padding: 25px;
        margin-bottom: 30px;
    }

    .widget-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        color: #1F1A56;
        position: relative;
        padding-bottom: 10px;
    }

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: #1F1A56;
    }

    .author-widget {
        text-align: center;
    }

    .author-widget-img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto 15px;
    }

    .author-widget-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .author-widget h3 {
        margin-bottom: 8px;
        color: var(--secondary);
    }

    .author-widget p {
        color: var(--gray);
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .social-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--light-gray);
        color: var(--secondary);
        transition: all 0.3s;
    }

    .social-links a:hover {
        background-color: var(--primary);
        color: white;
    }

    .related-posts {
        list-style: none;
    }

    .related-post {
        display: flex;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--light-gray);
    }

    .related-post:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .related-post-img {
        width: 70px;
        height: 70px;
        border-radius: 8px;
        overflow: hidden;
        margin-right: 15px;
    }

    .related-post-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .related-post-content h4 {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .related-post-content h4 a {
        color: var(--dark);
        text-decoration: none;
        transition: color 0.3s;
    }

    .related-post-content h4 a:hover {
        color: #1F1A56;
    }

    .related-post-content .date {
        font-size: 0.8rem;
        color: var(--gray);
    }

    .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        display: inline-block;
        background-color: var(--light-gray);
        color: var(--gray);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        text-decoration: none;
        transition: all 0.3s;
    }

    .tag:hover {
        background-color: var(--primary);
        color: white;
    }

    /* Article Actions */
    .article-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid var(--light-gray);
    }

    .action-buttons {
        display: flex;
        gap: 15px;
    }

    .action-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        background-color: var(--light-gray);
        color: var(--gray);
        padding: 8px 16px;
        border-radius: 50px;
        border: none;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 0.9rem;
    }

    .action-btn:hover {
        background-color: var(--primary);
        color: white;
    }

    .share-btn {
        background-color: var(--primary);
        color: white;
    }

    .share-btn:hover {
        background-color: var(--secondary);
    }

    /* Comments Section */
    .comments-section {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        padding: 30px;
        margin-bottom: 50px;
    }

    .comments-section h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
        color: var(--secondary);
    }

    .comment {
        display: flex;
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid var(--light-gray);
    }

    .comment:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .comment-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 20px;
    }

    .comment-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .comment-content h4 {
        font-size: 1rem;
        margin-bottom: 5px;
        color: var(--secondary);
    }

    .comment-meta {
        font-size: 0.8rem;
        color: var(--gray);
        margin-bottom: 10px;
    }

    .comment-text {
        margin-bottom: 10px;
    }

    .comment-reply {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .comment-form textarea {
        width: 100%;
        height: 150px;
        padding: 15px;
        border: 1px solid var(--light-gray);
        border-radius: 8px;
        margin-bottom: 15px;
        resize: vertical;
    }

    .comment-form-inputs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    @media (max-width: 600px) {
        .comment-form-inputs {
            grid-template-columns: 1fr;
        }
    }

    .comment-form-inputs input {
        padding: 12px 15px;
        border: 1px solid var(--light-gray);
        border-radius: 8px;
    }

    .submit-btn {
        background-color: var(--primary);
        color: white;
        border: none;
        padding: 12px 25px;
        border-radius: 50px;
        cursor: pointer;
        font-weight: 600;
        transition: background-color 0.3s;
    }

    .submit-btn:hover {
        background-color: var(--secondary);
    }


    .social-icons a {
        display: inline-block;
        width: 38px;
        height: 38px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        margin-right: 10px;
        text-align: center;
        line-height: 38px;
        color: white;
        transition: background-color 0.3s;
    }

    .social-icons a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    .copyright {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.9rem;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .header-content {
            flex-direction: column;
            text-align: center;
        }

        nav ul {
            margin-top: 20px;
            justify-content: center;
        }

        nav ul li {
            margin: 0 10px;
        }

        .blog-title {
            font-size: 1.8rem;
        }

        .blog-hero {
            height: 300px;
        }
    }

    @media (max-width: 480px) {
        .logo {
            font-size: 1.5rem;
        }

        nav ul {
            flex-wrap: wrap;
        }

        nav ul li {
            margin: 5px;
        }

        .blog-meta {
            flex-direction: column;
            align-items: flex-start;
        }

        .author {
            margin-bottom: 15px;
        }

        .action-buttons {
            flex-wrap: wrap;
        }
    }

    .csr-gallery {
        margin: 40px 0;
    }

    .csr-gallery h3 {
        margin-bottom: 20px;
        font-size: 1.5rem;
        font-weight: bold;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        object-fit: cover;
        box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        transition: transform 0.3s ease;
    }

    .gallery-item img:hover {
        transform: scale(1.05);
    }
