/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    padding: 20px 0;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.site-title {
    font-weight: 700;
    font-size: 2rem;
    color: #222;
    text-align: center;
    margin-bottom: 10px;
}

nav {
    background-color: #007acc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.poem-wrapper {
    display: flex;
    justify-content: center;
}

.poem-wrapper pre {
    text-align: left;
    font-family: 'Georgia', serif;
    white-space: pre-wrap;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
}


.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
    background-color: #005a9e;
    color: #fff;
    outline: none;
}

.nav-list li a.active {
    background-color: #004080;
    color: #fff;
    box-shadow: 0 0 8px #004080;
}

main section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

main section h2 {
    margin-bottom: 15px;
    color: #007acc;
    font-weight: 700;
    font-size: 1.5rem;
}

footer {
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    color: #777;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f7f9;
    color: #333;
    padding: 20px 0;
    transition: background-color 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 2px solid #007acc;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-title {
    font-weight: 900;
    font-size: 2.8rem;
    color: #004080;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Segoe UI Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

nav {
    background-color: #007acc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 10px 10px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-list li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1.3rem;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
    background-color: #005a9e;
    color: #fff;
    outline: none;
    transform: scale(1.05);
}

.nav-list li a.active {
    background-color: #004080;
    color: #fff;
    box-shadow: 0 0 12px #004080;
    transform: scale(1.1);
}

/* Hamburger menu button */
.hamburger {
    display: none;
    position: absolute;
    top: 22px;
    right: 15px;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger div {
    background-color: #e0e0e0;
    height: 3px;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007acc, #004080);
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 122, 204, 0.3);
    margin-bottom: 40px;
    font-family: 'Segoe UI Semibold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Card Sections */
.card-section {
    margin-bottom: 40px;
}

.card-section h2 {
    color: #004080;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid #007acc;
    padding-bottom: 8px;
    letter-spacing: 1.5px;
}

/* Card List */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    list-style: none;
    padding: 0;
}

.card-list li {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-list li:hover,
.card-list li:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-list li a {
    color: #004080;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.card-list li a:hover,
.card-list li a:focus {
    color: #007acc;
    text-decoration: underline;
}

/* See all links */
.see-all-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    color: #007acc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.see-all-link:hover,
.see-all-link:focus {
    color: #004080;
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px 0;
    font-size: 1rem;
    color: #555;
    border-top: 2px solid #007acc;
    margin-top: 60px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Scroll to top button */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 45px;
    height: 45px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #005a9e;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Hamburger menu button */
    .hamburger {
        display: block;
        position: absolute;
        top: 18px;
        right: 20px;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1100;
    }

    .hamburger div {
        background-color: #e0e0e0;
        height: 3px;
        margin: 5px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hide nav list by default on small screens */
    nav {
        position: relative;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        display: none;
        background-color: #007acc;
        position: absolute;
        top: 50px;
        right: 0;
        width: 200px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        padding: 10px 0;
    }

    /* Show nav list when active */
    .nav-list.active {
        display: flex;
    }

    .nav-list li a {
        font-size: 1rem;
        padding: 10px 20px;
        display: block;
        border-radius: 0;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    main section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .site-title {
        font-size: 1.5rem;
    }

    main section h2 {
        font-size: 1.3rem;
    }

    .poet-name {
        font-size: 1rem;
    }

    .post-date {
        font-size: 0.8rem;
        margin-left: 10px;
    }
}

/* Smooth transitions for links */
.nav-list li a {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover and focus effects */
.nav-list li a:hover,
.nav-list li a:focus {
    background-color: #005a9e;
    color: #fff;
    outline: none;
}

/* Scroll to top button */
#scrollToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 45px;
    height: 45px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: #005a9e;
}

/* Add smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

.poet-name {
    font-weight: 400;
    font-size: 1.2rem;
    color: #555;
    font-style: italic;
    margin: 0;
}

.post-date {
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
    margin: 0 0 0 15px;
    align-self: center;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 30px;
    font-style: italic;
    color: #555;
}
