:root {
    /* Your existing color variables */
    --primary-blue: #0A66C2;
    --dark-blue: #084484;
    --pure-white: #FFFFFF;
    --success-green: #2E8B57;
    --premium-gold: #FFD700;
    --light-gold: #ffe033;
    --alert-coral: #FF6B6B;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --soft-gray: #E0E0E0;
    --dark-text-general: #333;
    --light-text-general: #ccc;
    --text-dark: #1D2226;
    --text-medium: #666666;
    --text-light: #999999;
    --radius: 4px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --mobile-horizontal-padding: 12px;
    --desktop-horizontal-padding: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text-general);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--mobile-horizontal-padding);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--desktop-horizontal-padding);
    }
}

header {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
}

header a {
    color: var(--pure-white);
    text-decoration: none;
}

.blog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-header h1 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.blog-header p {
    color: var(--text-medium);
}

.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .post-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .post-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background-color: var(--pure-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--ad-image-placeholder);
}

.post-card-content {
    padding: 1.5rem;
}

.post-card h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.post-card p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.post-card .date {
    color: var(--text-light);
    font-size: 0.875rem;
}

.post-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.post-card a:hover {
    text-decoration: underline;
}

.single-post {
    background-color: var(--pure-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.single-post h1 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.single-post .meta {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.single-post .content {
    line-height: 1.8;
}

.single-post .content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: var(--radius);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background-color: var(--pure-white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--medium-gray);
}

.pagination a:hover {
    background-color: var(--light-gray);
}

.pagination a.active {
    background-color: var(--primary-blue);
    color: var(--pure-white);
    border-color: var(--primary-blue);
}


.post-image {
    width: 100%;
    height: auto;
    max-height: 70vh; /* Limits height to 70% of viewport height */
    object-fit: contain;
    border-radius: var(--radius);
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Maintain aspect ratio container */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---------------------------------------------------------------------------------  /*
/* --- Floating "List Your Tuition" Button --- */
.floating-list-button {
    position: fixed; /* Makes the element float relative to the viewport */
    bottom: 20px;    /* 20px from the bottom of the screen */

    left: 50%;       /* Start from the horizontal center */
    transform: translateX(-50%); /* Pull it back by half its own width to truly center */

    background-color: var(--warm-gold);
    color: black;  
    padding: 15px 25px; /* Comfortable padding */
    border-radius: 50px; /* Makes it pill-shaped */
    text-decoration: none; /* Removes underline */
    font-size: 1.1em; /* Slightly larger text */
    font-weight: bold; /* Bold text */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    z-index: 1000;   /* Ensures it stays on top of other content */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effect */
    display: flex; /* Use flexbox for centering text if needed (though not strictly necessary here) */
    align-items: center;
    justify-content: center;
}

.floating-list-button:hover {
    background-color: var(--light-gold); 
    /* Combine transforms: first translateX for centering, then translateY for lift */
    transform: translateX(-50%) translateY(-2px);
}

/* --- Responsive Adjustments for the Floating Button --- */
@media (max-width: 767px) {
    .floating-list-button {
        bottom: 15px; /* Slightly closer to the bottom on smaller screens */
        padding: 12px 20px; /* Slightly smaller padding */
        font-size: 1em; /* Slightly smaller font size */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Smaller shadow */

        /* These should inherit from above, but explicitly reset if needed */
        left: 50%;
        transform: translateX(-50%);
    }

    .floating-list-button:hover {
        /* Combine transforms for mobile hover */
        transform: translateX(-50%) translateY(-2px);
    }
}