body {
    background-color: #f8f9fa; /* Background almost White*/
    font-family: Arial, sans-serif;
    background-image: url('/static/images/background_white.jpg');
    background-repeat: repeat; /* or repeat-x, repeat-y, no-repeat */
    background-attachment: fixed;
}

.custom-navbar {
	min-height: 65px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
    /*background-color: #212A37 !important;*/
    background-color: rgba(33, 42, 55, 1) !important; /* Navbar background Oxford Blue with transparency*/
}

.navbar-brand {
    font-weight: bold;
    color: #FFC0A0 !important; /* My Brain Dump text*/
}

.navbar-brand.active {
    font-weight: bold;
    color: #FFC0A0 !important; /* Text*/
}

.navbar-dark .navbar-nav .nav-link {
    color: #f8f9fa !important; /* Text almost White*/
}

.navbar-nav .nav-link.active {
#	font-weight: bold;
	color: #FFC0A0 !important;
#   text-decoration: underline;
#   text-decoration-color: #FFC0A0; /* Underline color Brown*/
}

.navbar-nav {
	margin-left: auto;
    margin-right: auto;
	padding-right: 20px;
}

/* Subtle hover for nav and footer links */
.navbar a:hover,
.footer a:hover {
    transform: translateY(-3px)!important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15)!important;
    transition: all 0.2s ease-in-out;
}

.navbar-toggler {
    color: #FFC0A0
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.03);
}

.container {
    max-width: 1200px;
	padding-top: 65px;
}

.container h1 {
    margin-top: 0; /* Remove the default top margin of the h1 */
}

.mt-4 {
    margin-top: 24px !important;
}	

.footer {
    background-color: rgba(33, 42, 55, 1); /* Footer background Oxford Blue with transparency*/
    color: #f8f9fa;
    padding: 5px;
    text-align: left;
	text-indent: 5px;
	height: 60px; /* Example: Give the footer a fixed height. Adjust as needed. */
    line-height: 60px; /* Set line height equal to the height for vertical centering */
}

.footer p {
    margin: 0; /* removes top & bottom margin */
    line-height: 1.5; /* optional: makes lines closer */
}

ul, ol {
    /* Reduce the default left padding */
    padding-left: 0px; /* Adjust this value as needed */
    /* You might also need to adjust margin-left if it's contributing to the space */
    /* margin-left: 0; */
}

/* Content Formatting Styles */
.content h2 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #333;
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.content ul, .content ol {
    margin-left: 1em;
    margin-bottom: 1em;
}

.content img {
    max-width: 40%;
    height: auto;
    margin: 1em 0;
	display: block; /* Make the image a block-level element */
    margin-left: auto;
    margin-right: auto;
}

.content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin-left: 0;
    color: #555;
}

/* Styling for AI-generated content sections */

.main-container {
	margin-top: 10px;
}

.ai-content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.ai-content-section:last-child {
    border-bottom: none;
}

/* For all h1 elements */
h1 {
    font-size: 1.4rem;	/* Adjust this value as needed */
	font-weight: 600;
	font-family: Arial, sans-serif;
	text-align: center;
    /*padding-bottom: 10px;*/   
}

/* For all h2 elements */
h2 {
    font-size: 1.4rem; /* Adjust this value as needed */
}

/* For all h3 elements */
h3 {
    font-size: 1rem; /* Adjust this value as needed */
	font-weight: 600;
	text-align: center;
}

/* Targets ONLY section titles in AI content blocks */
.ai-content-section h2 {
    font-size: 1.4rem; /* Adjust size */
    color: #212A37;           /* Oxford Blue from your palette */
    font-weight: 600;
    margin: 0em 0 0em 0;   /* Top Right Bottom Left */
    /*padding-bottom: 0.5em;*/
}

.section-title {
    font-family: Arial, sans-serif;
	font-weight: 600;
	text-align: center! important;	
    /*text-transform: uppercase;*/
    margin-top: 0;
    color: #212A37;
    /*border-bottom: 2px solid #FFC0A0;*/
    display: block;
}

.content-preview img {
	margin-top: 20px;
	width: 100%;
    max-width: 300px; /* adjust to your preferred size */
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.recent-updates-feed {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    min-width: 300px;
    width: 100%;
    box-sizing: border-box;
    display: inline-block;
    flex-direction: column;  /* ensures clean vertical flow */
    justify-content: space-between; /* spaces title, content, and footer nicely */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-updates-feed h3 {
	/*border-bottom: 2px solid #FFC0A0;*/
	line-height: 1.6;
	/*text-transform: uppercase;*/
}	

.recent-updates-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
    background-color: transparent;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.recent-updates-feed h3,
.recent-updates-feed p {
    margin-bottom: 10px;
}

.recent-updates-feed:last-child {
    margin-bottom: 0;
}


@media (max-width: 1000px) {
    .recent-updates-feed-grid {
        column-count: 2; /* tablet */
    }
}

@media (max-width: 600px) {
    .recent-updates-feed-grid {
        column-count: 1; /* mobile */
    }
}


.feed-item-image {
    max-width: 100%; /* Allow the image to be up to 100% of its container's width */
    width: 100%; /* Make the image try to take up 100% of its container's width */
    height: auto; /* Maintain the image's aspect ratio */
    padding-bottom: 10px;	
}

.page-container {
            position: relative;
            padding-bottom: 20px;		    	
        }

        .floating-reddit-container {
            position: fixed;
            bottom: 0px;
            right: 0px;
            width: 250px;
            max-width: 90%;
            /*background: #f8f9fa;*/
			background-image: url('/static/images/background_white.jpg');
            background-repeat: repeat; /* or repeat-x, repeat-y, no-repeat */
            background-attachment: fixed;
            border-radius: 10px 10px 0 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .reddit-header {
            position: relative;
            display: flex;
            justify-content: center; /* center the title horizontally */
            align-items: center; /* center both vertically */
            padding: 20px 10px;
            background: #212A37;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            user-select: none;
			transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
		
		.reddit-header h3 {
            margin: 0;
            font-size: 16px;
            font-weight: bold;
            color: #FFC0A0;
            text-align: center;
        }
		
		.reddit-header:hover {
            transform: translateY(-3px);
            box-shadow: 0 3px 6px rgba(0,0,0,0.15);
        }
		
        .reddit-header .toggle-icon {
            position: absolute;
            left: 15px; /* lock to left edge */
            font-size: 18px;
            font-weight: bold;
            color: #FFC0A0;
        }

        .reddit-content {
            max-height: 300px;
            overflow-y: auto;
            padding: 10px 15px;
            border-top: 1px solid #eee;
        }

        .reddit-post {
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
            font-size: 14px;
            line-height: 1.4;
        }

        .reddit-post:last-child {
            margin-bottom: 0;
            border-bottom: none;
        }

        .ai-content-section {
            padding-bottom: 20px;
            border: 1px solid #ccc; /* Add a 1-pixel solid grey border */
            padding: 15px; /* Add some padding so content doesn't touch the border */
            margin-bottom: 20px; /* Keep the margin-bottom for spacing between items */
            border-radius: 5px; /* Optional: Match the border-radius of the grid container */
            box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Optional: Add a subtle shadow to individual items */
        }

        .content-preview {
            position: relative;
            padding-bottom: 10px;
        }

        .read-more-container {
            margin-top: 15px;
        }

        .read-more-btn {
            display: inline-block;
            padding: 8px 16px;
            background-color: #212A37;
            color: #FFC0A0;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease-in-out;
        }

        .read-more-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 3px 6px rgba(0,0,0,0.15);
        }

.section-navigation {
            margin-top: 10px;
			margin-bottom: 10px;
        }

        .back-to-list {
            display: inline-block;
            padding: 6px 12px;
            color: #212A37;
            font-weight: 500;
            text-decoration: none;
            border: 1px solid #212A37;
            border-radius: 4px;
            transition: all 0.2s ease-in-out;
        }

        .back-to-list:hover {
            transform: translateY(-3px);
            box-shadow: 0 3px 6px rgba(0,0,0,0.15);;
        }

        .section-detail {
			border: 1px solid #ccc;
            background-color: transparent; /*#fff;*/
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }


@media (max-width: 800px) { /* Adjust 600px breakpoint if needed */

    .navbar-nav {
        text-align: center;
	    padding-right: 0,75px;
    }

    .footer {
        background-color: #212A37; /* Footer background Oxford Blue*/
        color: #f8f9fa;
        padding: 5px;
        text-align: left;
		text-indent: 5px;
        height: 60px; /* Example: Give the footer a fixed height. Adjust as needed. */
        line-height: 60px; /* Set line height equal to the height for vertical centering */
    }	
	
	.footer p {
        margin: 0; /* removes top & bottom margin */
        line-height: 1.5; /* optional: makes lines closer */
    }

    .floating-reddit-container {
        /* Override styles for screens 600px wide or less */
        /*width: 100%;  Use percentage width */
        max-width: 50%; /* Optionally set a smaller max-width for mobile */
        bottom: 0px; /* Slightly adjust bottom spacing */
        right: 0px; /* Center it a bit more, or use 'right: 10px;' */
        margin-left: auto;
        margin-right: auto;
		border-radius: 10px 10px 0 0;
    }

    .reddit-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
        color: #FFC0A0;
        text-align: center;
    }

    .reddit-content {
        max-height: 200px;
    }

    .content-preview img {
        max-width: 300px; /* adjust to your preferred size */
        height: auto;
        margin-left: auto;
        margin-right: auto;
        display: block;		
    }
	
	.content img {
        max-width: 100%;
        height: auto;
        margin: 1em 0;
	    display: block; /* Make the image a block-level element */
        margin-left: auto;
        margin-right: auto;
    }
}

/* =========================
   Comments Section Styling
   ========================= */

/* Wrapper for comments */
.comments-container {
	background-color: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
	margin-top: 10px
    /*padding: 10px;
    margin-bottom: 20px;*/
}

.comments, .comments-section {
    background-color: transparent;
}

/* Comments section styling */
.comments {
	padding: 15px;
	/*border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);*/
}

.comments h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #212A37;
    font-weight: 600;
	/*text-transform: uppercase;*/
}

/* Individual comment */
.comment {
    margin-bottom: 15px;
}

.comment p {
    margin: 4px 0;
}

.comment hr {
    border: none;
    border-top: 1px solid #eee;
}

/* Comment form */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form input {
    width: 50%;
    max-width: 100%;
    box-sizing: border-box;
	border-radius: 4px;
	border: 1px solid #ccc;
	text-indent: 5px;
}

.comment-form button.comment-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comment-form textarea {
    width: 50%;
    max-width: 100%;
    box-sizing: border-box;
	border-radius: 4px;
	border: 1px solid #ccc;
    min-height: 100px;
    resize: vertical;
	text-indent: 5px;
}

.comments button.comment-submit {
	width: 100%;
	box-sizing: border-box;
    display: inline-block;
    padding: 8px 16px;
    background-color: #212A37;
    color: #FFC0A0;
	border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
	font-size: 1rem;
	max-width: 120px;
    transition: all 0.2s ease-in-out;
}

.comments button.comment-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Success message */
.comment-success {
    margin-top: 10px;
    color: green;
    font-weight: 600;
}

/* Responsive adjustments for mobile */
@media (max-width: 800px) {
    .comment-form input {
        width: 100%;
    }

    .comment-form textarea {
        min-height: 100px;
		width: 100%;
    }
}

