* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    min-height: 100vh;
    color: #333;
}

/* Header Styles */
.header {
    margin: 20px auto;
    max-width: 1041px;
    position: relative;
    height: 77px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    align-items: center;
}

.navbar li {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', Arial, sans-serif;
    text-align: center;
    line-height: 1.2;
}

.navbar a:hover {
    color: white;
}

.navbar .active-nav:hover {
    color: #ddd;
}


.navbar .active-nav {
    color: white;
    width: 125px;
    left: 5px;
    top: -1px;
    height: 80px;
    position: absolute;
}

.navbar .gentle {
    font-weight: 600;
    width: 160px;
    left: 20px;
    top: -1px;
    position: absolute;
    text-align: left;
    height: 80px;

}

.navbar .gentle:hover {
    background: url(/images/gentle-block.png);
}

.navbar .dreams {
    width: 128px;
    left:-47px;
    top: -1px;
    height: 80px;
    position: absolute;
}

.navbar .dreams:hover{
    background-image: url(/images/dreams-block.jpg);
}

.navbar .new-york {
    width: 125px;
    left: -92px;
    position: absolute;
    top: -1px;
    height: 80px;
}

.navbar .new-york:hover {
    background-image: url(/images/New-York-block.jpg);
}
.navbar .projects {
    width: 120px;
    left: -140px;
    position: absolute;
    top: -1px;
    height: 80px;
}

.navbar .projects:hover {
    background-image: url(/images/projects-block.jpg);
}
.navbar .other {
    width: 125px;
    position: absolute;
    left: -192px;
    top: -1px;
    height: 80px;
}

.navbar .other:hover {
    background-image: url(/images/other-block.jpg);
}

/* Main Container */

.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: center;
}

/* Sidebar */

.sidebar {
    width: 325px;
    flex-shrink: 0;
}

.blog-header {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 325px;
}

.blog-image {
    width: 325px;
    height: 115px;
    background: url(/images/blog-cover.png) ;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blog-title {
    position: absolute;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-title a {
    text-decoration: underline;
    color: white;
}

.blog-title a:hover {
    color: #ddd;
}

.topics-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 510px;
}

.topics-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-align: left;
    padding: 10px;
    background: #f5f5f5;
}

.topics-list {
    list-style: none;
}

.topics-list li {
    margin-bottom: 8px;

}

.topics-list a {
    display: block;
    width: 150px;
    padding: 12px 16px;
    text-decoration: none;
    color: #666;
    background: #f8f8f8;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: left;
}

.topics-list a:hover {
    background: url(/images/dreams-block.jpg);
    color: white;
    transform: translateX(5px);

}

/* Main Content */

.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 650px;
    min-width: 650px;
}

.content-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.content-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.content-text {
    line-height: 1.6;
    color: #666;
    font-size: 16px;
}

.content-text .end-p {
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    height: 365px;
}

.post-section h1 {
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.post-section h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    text-align: right;
    width: 500px;
    margin-left: auto;
    justify-content: right;
}

.post-section-content {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.post-section img {
    position: absolute;
    justify-content: center;
    display: block;
}

.post-section p {
    position: relative; /* Keeps it positioned relative to its parent */
    text-align: justify; /* Justifies the text inside the element */
    width: 400px; /* Sets the width of the element */
    margin-left: auto; /* Pushes the element to the right */
    display: block; /* Ensures it behaves like a block element */
    
}
/* Pagination */

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    align-items: flex-end;

}

.pagination {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination a:hover {
    background: #4CAF50;
    color: white;
    transform: translateY(-2px);
}

.pagination a.active {
    background: #4CAF50;
    color: white;
}

/* Footer */

.footer {
    height: 80px;
    max-width: 1000px;
    margin-top: 60px;
    background-image: url(/images/footer-gradient.png);
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    padding: 20px;
    display: flex;
    flex: 1;
    align-items: center; /* Ensures images and text are vertically aligned */
    gap: 10px; /* Adds spacing between items */
}

.footer-content img {
    height: 16px;
    width: 16px;
    display: inline-block; /* Ensures images behave like inline elements */
    
}
.footer-brand {
    font-weight: 600;
    color: #333;
    align-items: flex-start;
}

.footer-center {
    text-align: center;
    color: #666;
    display: flex;
    justify-content: center;
    flex: 1;
}

.footer-right {
    color: #666;
    font-size: 14px;
    margin-left: auto;
    display: flex;
    justify-content: flex-end;
}

.footer a {
    color: #333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Inter', Arial, sans-serif;
    text-decoration: none;
    /* Remove position: absolute to prevent overlapping */
    position: relative; /* Default positioning */
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 15px;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .main-content {
        order: 1;
        padding: 25px;
    }

    .navbar ul {
        flex-wrap: wrap;
    }

    .navbar li {
        flex: none;
        min-width: 120px;
    }

    .footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}