/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e; /* Dark graphite/deep purple base */
    color: #e0e0e0; /* Light grey for standard text */
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
    padding-top: 80px; /* Space for fixed header */
    padding-bottom: 80px; /* Space for fixed footer */
}

/* Retro-Vintage Theme Colors */
:root {
    --primary-color: #8A2BE2; /* Violet */
    --secondary-color: #6A0DAD; /* Darker Violet */
    --accent-color-warm: #FFD700; /* Gold */
    --accent-color-muted: #BDB76B; /* Dark Khaki */
    --bg-dark: #2A2A3D; /* Deep graphite */
    --bg-light: #3A3A50; /* Slightly lighter graphite */
    --bg-block-dark: #2A2A3D; /* Main content block dark */
    --bg-block-light: #3A3A50; /* Main content block light */
    --text-color-primary: #e0e0e0;
    --text-color-secondary: #c0c0c0;
    --text-color-highlight: #FFD700; /* Gold for highlights */
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Global Text Colors */
body {
    color: var(--text-color-primary);
}

.text-muted {
    color: var(--text-color-secondary) !important;
}

.highlight {
    color: var(--text-color-highlight);
    font-weight: 600;
}

/* Typewriter Effect for Headings */
.typewriter-effect, .typewriter-effect-sub {
    font-family: 'Poppins', sans-serif; /* Keep Poppins, simulate typewriter with styling */
    color: var(--accent-color-warm);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em; /* Slightly wider spacing */
    position: relative;
    display: inline-block; /* For the cursor effect */
}

.typewriter-effect::after, .typewriter-effect-sub::after {
    content: '|';
    animation: blink-caret .75s step-end infinite;
    display: inline-block;
    margin-left: 5px;
    color: var(--text-color-highlight);
}

@keyframes blink-caret {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* Header Styles */
.header .navbar {
    background-color: rgba(26, 26, 46, 0.95); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    z-index: 1030; /* Ensure it's above other content */
}

.navbar-brand .logo {
    height: 40px;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow for logo */
}

.navbar-brand .site-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color-warm) !important;
}

.navbar .display-4 {
    font-size: 2rem; /* Adjust for header */
}

.navbar .lead {
    font-size: 1rem; /* Adjust for header */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh; /* Full viewport height */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-primary);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

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

.hero-section h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-color-warm);
}

.hero-section .blockquote {
    font-style: italic;
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    border-left: 5px solid var(--accent-color-warm);
    padding-left: 15px;
}

.hero-section .blockquote-footer {
    color: var(--text-color-secondary);
}

/* Section Padding */
.section-padding {
    padding: 80px 0;
    position: relative;
}

.bg-block-dark {
    background-color: var(--bg-block-dark);
}

.bg-block-light {
    background-color: var(--bg-block-light);
}

/* Old Paper Texture Effect for Sections */
.bg-block-dark, .bg-block-light, .modal-retro-bg {
    background-image: url('graphics/uploads/vintage-paper-texture.jpg'); /* Old paper texture */
    background-size: cover;
    background-blend-mode: overlay; /* Blend with background color */
    position: relative;
}

.bg-block-dark::before, .bg-block-light::before, .modal-retro-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.85); /* Dark overlay for readability */
    z-index: 0;
}

.bg-block-dark > .container, .bg-block-light > .container, .modal-retro-bg > .modal-body {
    position: relative;
    z-index: 1;
}

/* Blog Card Styles */
.blog-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.blog-card img {
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim images */
    transition: filter 0.3s ease;
}

.blog-card:hover img {
    filter: brightness(1);
}

.blog-card .card-title {
    color: var(--accent-color-warm);
    font-weight: 600;
    font-size: 1.25rem;
}

.blog-card .card-text {
    color: var(--text-color-secondary);
}

.blog-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



/* Modals */
.modal-content {
    background-color: var(--bg-block-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.modal-retro-bg {
    background-image: url('graphics/uploads/vintage-paper-texture.jpg'); /* Old paper texture */
    background-size: cover;
    background-blend-mode: overlay; /* Blend with background color */
    position: relative;
}

.modal-retro-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.85); /* Dark overlay for readability */
    z-index: 0;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color-warm);
}

.modal-title {
    color: var(--accent-color-warm);
}

.btn-close-white {
    filter: invert(1); /* Makes the close button white */
}

.modal-body {
    color: var(--text-color-primary);
}

.modal-body img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.modal-body ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

/* Popular Posts Block (Floating) */
.popular-posts-block {
    z-index: 1020;
    max-width: 300px;
    background-color: transparent; /* Card handles its own background */
}

.popular-posts-block .card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    background-color: var(--bg-dark);
}

.popular-posts-block .card-title {
    font-size: 1rem;
    color: var(--accent-color-warm);
}

.popular-posts-block .card-text {
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

.popular-posts-block .carousel-control-prev-icon,
.popular-posts-block .carousel-control-next-icon {
    filter: invert(1) brightness(0.8); /* Make icons visible on dark background */
}

/* Featured Article Section */
.category-badge {
    background-color: var(--accent-color-warm) !important;
    color: var(--bg-dark) !important;
    padding: 0.5em 1em;
    font-size: 0.9em;
    font-weight: 700;
    border-radius: 5px;
}

.author-info .author-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--accent-color-warm);
}

.author-info h6 {
    color: var(--accent-color-warm);
    font-weight: 600;
}

.featured-article-image {
    max-height: 400px;
    width: 100%;
    object-fit: cover;
}

/* Tags Cloud Section */
.tags-cloud .custom-tag {
    background-color: var(--secondary-color);
    color: var(--text-color-primary);
    padding: 0.7em 1.2em;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tags-cloud .custom-tag:hover {
    background-color: var(--primary-color);
    color: var(--accent-color-warm);
    transform: scale(1.1) rotate(0deg) !important; /* Override random rotation on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Random rotations for tags */
.rotate-n-5 { transform: rotate(-5deg); }
.rotate-p-10 { transform: rotate(10deg); }
.rotate-n-10 { transform: rotate(-10deg); }
.rotate-p-5 { transform: rotate(5deg); }
.rotate-n-8 { transform: rotate(-8deg); }
.rotate-p-15 { transform: rotate(15deg); }
.rotate-n-3 { transform: rotate(-3deg); }
.rotate-p-8 { transform: rotate(8deg); }
.rotate-n-12 { transform: rotate(-12deg); }
.rotate-p-3 { transform: rotate(3deg); }
.rotate-n-7 { transform: rotate(-7deg); }
.rotate-p-12 { transform: rotate(12deg); }

/* Shadows for tags */
.shadow-sm { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); }
.shadow-md { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); }


/* Newsletter Form */
.newsletter-form {
    background-color: var(--bg-block-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-color-primary);
    padding: 0.75rem 1rem;
}

.newsletter-form .form-control::placeholder {
    color: var(--text-color-secondary);
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color-warm);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
    color: var(--text-color-primary);
}

.newsletter-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.newsletter-form .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer Section */
.footer {
    background-color: rgba(26, 26, 46, 0.95); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1030;
}

.footer .footer-link {
    color: var(--text-color-secondary);
    font-size: 0.85rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer .footer-link:hover {
    color: var(--accent-color-warm);
    transform: translateY(-3px);
}

.footer .footer-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-color-secondary);
    transition: color 0.3s ease;
}

.footer .footer-link:hover .footer-icon {
    color: var(--accent-color-warm);
}

.footer .footer-logo {
    height: 25px;
    transition: filter 0.3s ease;
}

.footer .footer-link:hover .footer-logo {
    filter: invert(0) brightness(1) sepia(1) hue-rotate(200deg) saturate(500%); /* Example hover effect for logo */
}


/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar .display-4 {
        font-size: 1.5rem;
        margin-right: 1rem !important;
    }
    .navbar .lead {
        font-size: 0.8rem;
        display: none; /* Hide subtitle on smaller screens for brevity */
    }
    .hero-section h2 {
        font-size: 2.5rem;
    }
    .hero-section .blockquote {
        font-size: 1.2rem;
    }
    .popular-posts-block {
        max-width: 90%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 10px;
    }
    body {
        padding-top: 70px; /* Adjust for smaller header */
        padding-bottom: 70px; /* Adjust for smaller footer */
    }
    .footer .footer-link small {
        display: none; /* Hide text labels on mobile footer to save space */
    }
    .footer .footer-icon {
        font-size: 1.8rem; /* Larger icons when text is hidden */
    }
}

@media (max-width: 767.98px) {
    .navbar-brand .site-name {
        font-size: 1.5rem;
    }
    .navbar .display-4 {
        font-size: 1.2rem;
    }
    .hero-section {
        height: 70vh;
    }
    .hero-section h2 {
        font-size: 2rem;
    }
    .hero-section .blockquote {
        font-size: 1rem;
        padding-left: 10px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .blog-card img {
        height: 180px;
    }
    .blog-card .card-title {
        font-size: 1.1rem;
    }
    .tags-cloud .custom-tag {
        font-size: 0.8rem;
        padding: 0.6em 1em;
    }
}/* Styles for the .rightsFieldUnit container */
.rightsFieldUnit {
    /* Top padding for separation from preceding content */
    padding-top: 40px; 
    /* Horizontal padding to prevent content from touching edges */
    padding-left: 25px;
    padding-right: 25px;
    /* Max width for optimal reading line length */
    max-width: 800px; 
    /* Center the block on the page */
    margin-left: auto;
    margin-right: auto;
    /* Bottom margin for separation from subsequent content */
    margin-bottom: 40px; 
}

/* Heading 1 styles within .rightsFieldUnit */
.rightsFieldUnit h1 {
    font-size: 2.2rem; /* Moderate size for main headings */
    font-weight: 700; /* Bold font weight */
    color: var(--accent-color-warm); /* Highlight color for headings */
    margin-top: 2.5rem; /* Top margin for spacing */
    margin-bottom: 1.5rem; /* Bottom margin for spacing */
    line-height: 1.2; /* Tighter line height for headings */
}

/* Heading 2 styles within .rightsFieldUnit */
.rightsFieldUnit h2 {
    font-size: 1.8rem; /* Slightly smaller than h1 */
    font-weight: 600; /* Semi-bold font weight */
    color: var(--primary-color); /* Primary theme color for sub-headings */
    margin-top: 2rem; /* Top margin */
    margin-bottom: 1.2rem; /* Bottom margin */
    line-height: 1.3;
}

/* Heading 3 styles within .rightsFieldUnit */
.rightsFieldUnit h3 {
    font-size: 1.5rem; /* Further reduced size */
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Heading 4 styles within .rightsFieldUnit */
.rightsFieldUnit h4 {
    font-size: 1.3rem; /* Smaller heading */
    font-weight: 500; /* Medium font weight */
    color: var(--text-color-primary); /* Standard text color for less prominent headings */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

/* Heading 5 styles within .rightsFieldUnit */
.rightsFieldUnit h5 {
    font-size: 1.1rem; /* Smallest heading, close to body text */
    font-weight: 500;
    color: var(--text-color-primary);
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

/* Paragraph styles within .rightsFieldUnit */
.rightsFieldUnit p {
    font-size: 1rem; /* Standard body text size */
    margin-bottom: 1rem; /* Spacing between paragraphs */
    line-height: 1.7; /* Good line height for readability */
    color: var(--text-color-primary); /* Main text color */
}

/* Unordered list styles within .rightsFieldUnit */
.rightsFieldUnit ul {
    list-style-type: disc; /* Default disc bullet points */
    padding-left: 25px; /* Indentation for list items */
    margin-top: 1rem; /* Top margin for lists */
    margin-bottom: 1rem; /* Bottom margin for lists */
    color: var(--text-color-primary);
}

/* List item styles within .rightsFieldUnit */
.rightsFieldUnit li {
    font-size: 1rem; /* Same size as paragraph text */
    margin-bottom: 0.5rem; /* Spacing between list items */
    line-height: 1.6; /* Line height for list items */
    color: var(--text-color-primary);
}

/* Optional: Add a subtle border or background to .rightsFieldUnit for visual separation */
.rightsFieldUnit {
    /* Example: border and background for content blocks */
    /* border: 1px solid var(--border-color); */
    /* border-radius: 8px; */
    /* background-color: var(--bg-block-dark); */
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
    /* padding: 30px; */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 767.98px) {
    .rightsFieldUnit {
        padding-top: 30px;
        padding-left: 15px;
        padding-right: 15px;
        margin-bottom: 30px;
    }

    .rightsFieldUnit h1 {
        font-size: 1.8rem;
        margin-top: 2rem;
        margin-bottom: 1.2rem;
    }

    .rightsFieldUnit h2 {
        font-size: 1.6rem;
        margin-top: 1.8rem;
        margin-bottom: 1rem;
    }

    .rightsFieldUnit h3 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .rightsFieldUnit h4 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .rightsFieldUnit h5 {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .rightsFieldUnit p,
    .rightsFieldUnit li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .rightsFieldUnit ul {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {

    .navbar-brand {
        margin: auto;
    }

    .hdr-txt {
        display: none !important;
    }
}
