/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --accent-color: #FFC914;
    --dark-color: #1A1A2E;
    --light-color: #F5F5F5;
    --text-color: #333;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    background: var(--dark-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Breadcrumbs */
.breadcrumbs {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.breadcrumbs span {
    color: #666;
}

.breadcrumbs .separator {
    color: #999;
}

/* Contextual Intro Section */
.contextual-intro {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.contextual-intro .container {
    max-width: 900px;
}

.contextual-intro h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contextual-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    margin-bottom: 1rem;
}

/* User Guide & FAQ Section */
.user-guide-faq {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
}

.user-guide-faq .container {
    max-width: 900px;
}

.user-guide-faq h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.user-guide-faq h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.user-guide-faq p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.faq-item h4 {
    color: var(--dark-color);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Latest Articles Section */
.latest-articles {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 4rem 0;
    color: white;
}

.latest-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.latest-articles > .container > p {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.latest-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.latest-article-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.latest-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.latest-article-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.latest-article-card p {
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.latest-article-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

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

/* Blog Index Page */
.blog-index {
    padding: 4rem 0;
    background: white;
}

.blog-index h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.blog-index > .container > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-list-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.blog-list-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.blog-list-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.blog-list-content h2 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.blog-list-content h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-list-content h2 a:hover {
    color: var(--primary-color);
}

.blog-list-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-list-content .read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.blog-list-content .read-more:hover {
    text-decoration: underline;
}

/* Static Pages (About, Contact, Privacy, Terms) */
.static-page {
    padding: 4rem 0;
    background: white;
}

.static-page .container {
    max-width: 900px;
}

.static-page h1 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.static-page h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.static-page h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.static-page p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.static-page ul, .static-page ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.static-page li {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.7;
}

.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-info-item h3 {
    margin-top: 0;
}

.contact-info-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Related Posts Section in Blog */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-post-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-post-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-post-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
}

.related-post-card h3 a:hover {
    color: var(--primary-color);
}

.related-post-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Tool CTA in Blog Posts */
.tool-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    text-align: center;
}

.tool-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.tool-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.tool-cta .btn {
    background: white;
    color: var(--primary-color);
}

.tool-cta .btn:hover {
    background: var(--accent-color);
    color: var(--dark-color);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.5s ease-out;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Hero Section */
.hero {
    padding: 3rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.joke-counter {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-in;
}

/* Joke Display Section */
.joke-display {
    padding: 2rem 0;
}

.joke-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.joke-card:hover {
    transform: translateY(-5px);
}

.joke-content {
    margin-bottom: 2rem;
}

.joke-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.punchline {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.punchline.visible {
    opacity: 1;
    max-height: 200px;
    margin-top: 1rem;
}

/* Buttons */
.joke-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Popular Jokes Section */
.popular-jokes {
    padding: 4rem 0;
    background: white;
}

.popular-jokes h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.jokes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.joke-item {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.joke-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.joke-item h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.joke-item p {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Categories Section */
.categories {
    padding: 4rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card:hover h3,
.category-card:hover p {
    color: white;
}

.category-card.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.category-card.active h3,
.category-card.active p {
    color: white;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Category Jokes Display Section */
.category-jokes-display {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    animation: fadeIn 0.5s ease-in;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-header h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
    margin: 0;
}

.category-jokes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.category-joke-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-color);
    animation: slideUp 0.4s ease-out;
}

.category-joke-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.category-joke-setup {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.category-joke-punchline {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 1rem;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d6 100%);
    border-radius: 8px;
    font-style: italic;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background: white;
}

.blog-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.blog-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.blog-image {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.blog-card h3 {
    color: var(--dark-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Blog Post Page Styles */
.blog-post {
    padding: 4rem 0;
    background: white;
}

.blog-post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.blog-post-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-meta {
    color: #666;
    font-size: 1rem;
}

.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-post-content h2 {
    color: var(--dark-color);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-post-content h3 {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: #444;
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-post-content li {
    margin-bottom: 0.8rem;
    color: #444;
}

.blog-post-content strong {
    color: var(--primary-color);
}

.back-to-home {
    display: inline-block;
    margin-top: 3rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* About Dad Jokes Section */
.about-dad-jokes {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-dad-jokes h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    text-align: justify;
}

/* Footer Styles */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.8;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .joke-text {
        font-size: 1.4rem;
    }

    .punchline {
        font-size: 1.2rem;
    }

    .joke-card {
        padding: 2rem 1.5rem;
    }

    .jokes-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-color);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-toggle {
        display: flex;
    }

    .blog-list-item {
        flex-direction: column;
        gap: 1rem;
    }

    .blog-list-icon {
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .joke-text {
        font-size: 1.2rem;
    }

    .joke-controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .static-page h1,
    .blog-index h1 {
        font-size: 2rem;
    }

    .contextual-intro h2,
    .user-guide-faq h2 {
        font-size: 1.5rem;
    }
}
