/* ===============================
   Global Styles
=============================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Playfair+Display:wght@500&display=swap');

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

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
}


/* ===============================
   Navigation Bar
=============================== */

.navigation-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 40px;
    top: 0;
    margin-bottom: 20px;
}

.navigation-bar .logo {
    width: 150px;
    height: auto;
    margin-right: 1rem;
}

.navigation-bar ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    gap: 3rem;
}

.right-content {
    display: flex;
    align-items: center;
}

.login-button {
    font-family: 'Segoe UI', sans-serif;
    background-color: #234d23;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.login-button:hover {
    background-color: #1a3b1a;
}

@media (max-width: 768px) {
    .navigation-bar ul {
        gap: 1.5rem;
    }

    .navigation-bar a {
        font-size: 1rem;
    }
}

.navigation-bar a {
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navigation-bar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #666;
    transition: width 0.3s ease;
}

.navigation-bar a:hover::after {
    width: 100%;
}

.navigation-bar .active {
    color: #234d23;
}

.navigation-bar .active::after {
    width: 100%;
    background-color: #234d23;
}


@media (max-width: 768px) {
    .navigation-bar ul {
        gap: 1.5rem;
    }

    .navigation-bar a {
        font-size: 1rem;
    }
}


/* ===============================
   Container & Layout
=============================== */

.container {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    max-width: 100%;
    padding: 20px;
    flex-wrap: nowrap;
}

.main-content {
    flex: 0 0 1100;
    max-width: 75%;
    padding: 0 20px;
}

.news-bar {
    flex: 2 0;
    max-width: 600px;
    padding: 0 20px;
}

@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        max-width: 100%;
        padding: 20px;
    }

    .main-content {
        max-width: 100%;
    }

    .news-bar {
        flex-basis: auto;
        max-width: 100%;
    }
}


/* ===============================
   Featured Work Section
=============================== */

.featured-work {
    font-family: 'EB Garamond', serif;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-work h1 {
    font-size: 2rem;
    color: #333;
    margin: 0 auto;
}

.featured-work .work-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.featured-work .work-content p {
    font-size: 1.15rem;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.featured-work .work-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.featured-work .work-image img {
    width: 75%;
    height: auto;
    display: block;
}

.work-meta span {
    margin-right: 10px;
}

.work-content p {
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}


/* ===============================
   Read More Link
=============================== */

.read-more {
    text-align: right;
    margin-top: 20px;
}

.read-more-link {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #434343;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    max-width: 340px;
    display: inline-block;
    word-wrap: break-word;
    white-space: normal;
}

.read-more-link:hover {
    color: #095a09;
}


/* ===============================
   Top Authors Carousel
=============================== */

.top-authors {
    padding: 0;
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 60px;
    box-sizing: border-box;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.author-list {
    display: flex;
    gap: 20px;
}

.author-preview {
    min-width: 150px;
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.author-preview img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
}

.author-preview a {
    text-decoration: none; 
    color: inherit; 
    display: block; 
}

.author-preview img:hover,
.author-preview h3:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease; 
}

.author-preview img,
.author-preview h3 {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}


/* ===============================
   News Bar Sections
=============================== */

.quote-section,
.recent-release {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quote-section h2 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.quote-section blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin: 10px 0;
    position: relative;
    padding-left: 30px;
}

.quote-section blockquote p {
    display: inline;
}

.quote-section footer {
    text-align: right;
    font-size: 0.9rem;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.2rem;
    color: #333;
}

#sort-dropdown {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    color: #333;
}

#sort-dropdown:hover {
    background-color: #e0e0e0;
}

.work-list .work-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}

.work-preview {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.work-preview div {
    flex: 1;
}

.work-preview h3 {
    font-size: 1rem;
    margin: 0;
    color: #333;
}

.work-preview p {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0 0;
}

.recent-comments {
    padding: 0;
    background-color: transparent;
    box-shadow: none;
    margin-top: 20px;
}

.recent-comments h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.username {
    font-weight: bold;
    color: #333;
}

.time {
    font-size: 0.8rem;
    color: #666;
}

.comment-work {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
}

.comment p {
    font-size: 0.9rem;
    color: #333;
}


/* ===============================
   Other Works Section
=============================== */

.other-works {
    padding: 20px 0px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.other-works .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.other-works h2 {
    font-size: 1.2rem;
    color: #333;
}

#sort-dropdown-other {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #f0f0f0;
    color: #333;
}

#sort-dropdown-other:hover {
    background-color: #e0e0e0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.work-grid .work-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 250px;
}

.work-grid .work-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.work-grid .work-item .work-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-grid .work-item .work-link img {
    width: 200px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}

.work-grid .work-item .work-link h3 {
    font-size: 0.9rem;
    margin: 5px 0 0;
    color: #333;
    line-height: 1.2;
}

.work-grid .work-item .details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

.work-grid .work-item .details .published-time {
    text-align: left;
}

.work-grid .work-item .details .views {
    text-align: right;
}


/* ===============================
   About Me Section
=============================== */

.about-me {
    border-top: 1px solid #ccc;
    padding: 40px 0;
    margin-top: 40px;
    text-align: center;
}

.about-me h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
}

.about-me .profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    margin: 10px auto;
    display: block;
}

.about-me .name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.about-me .description {
    font-size: 0.9rem;
    color: #555;
    text-align: justify;
    margin: 0 auto;
    max-width: 600px;
}

.about-me .social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.about-me .social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

.about-me .social-icons img:hover {
    transform: scale(1.2);
}

/* ===============================
   Footer Section
=============================== */

.footer-container {
    background-color: #2d2d2d;
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 40px 20px;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-about h3 {
    font-size: 24px;
    color: #4bbf4b;
    margin-bottom: 10px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

.footer-links h4 {
    font-size: 18px;
    color: #4bbf4b;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #4bbf4b;
}

.footer-fun-facts h4 {
    font-size: 18px;
    color: #4bbf4b;
    margin-bottom: 15px;
}

.footer-fun-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-fun-facts ul li {
    font-size: 14px;
    color: #cccccc;
    margin-bottom: 8px;
}

.footer-about {
    max-width: 500px;
    text-align: justify;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #cccccc;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #444444;
}

.footer-bottom p {
    font-size: 14px;
    color: #cccccc;
}