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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

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

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Header */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

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

.logo h1 {
    color: #e67e22;
    margin: 0;
}

.logo p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: #e67e22;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e67e22;
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #34495e;
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1100;
    padding: 80px 20px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 20px;
}

.mobile-menu a {
    text-decoration: none;
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #e67e22;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=urdu%20poetry%20calligraphy%20background&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #f1f1f1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Poetry Hero */
.poetry-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.poetry-hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 15px;
}

.poetry-hero p {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #e67e22;
}

.btn:hover {
    background-color: transparent;
    color: #e67e22;
    transform: translateY(-2px);
}

/* Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #e67e22;
}

/* Poetry Categories */
.poetry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.poetry-cat-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #34495e;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
}

.poetry-cat-btn:hover,
.poetry-cat-btn.active {
    background-color: #e67e22;
    color: #fff;
}

/* Poetry Intro */
.poetry-intro {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.poetry-intro h2 {
    color: #e67e22;
    margin-bottom: 15px;
}

.poetry-intro p {
    line-height: 1.8;
    margin-bottom: 0;
}

/* Poetry List */
.poetry-list {
    margin-bottom: 40px;
}

.poetry-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.poetry-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.poetry-item h3 {
    color: #e67e22;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.poetry-urdu {
    direction: ltr;
    font-family: 'Noto Nastaliq Urdu', 'Traditional Arabic', serif;
    font-size: 1.6rem;
    line-height: 2;
    margin-bottom: 15px;
    color: #2c3e50;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.poetry-urdu p {
    margin-bottom: 8px;
    color: #2c3e50;
    text-align: left;
}

.poetry-roman {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
    font-style: italic;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 8px;
}

.poetry-roman p {
    margin-bottom: 5px;
    color: #7f8c8d;
}

.poetry-translation {
    padding: 20px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0b2 100%);
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.poetry-translation p {
    margin-bottom: 5px;
    color: #34495e;
    font-weight: 500;
    line-height: 1.6;
}

/* Poetry Pagination */
.poetry-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-btn {
    display: inline-block;
    padding: 10px 18px;
    background-color: #fff;
    color: #34495e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.page-btn:hover,
.page-btn.active {
    background-color: #e67e22;
    color: #fff;
}

.page-btn.next {
    background-color: #34495e;
    color: #fff;
}

.page-btn.next:hover {
    background-color: #2c3e50;
}

/* Related Topics */
.related-topics {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.related-topics h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-tags a {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #34495e;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.topic-tags a:hover {
    background-color: #e67e22;
    color: #fff;
}

/* Featured Poems */
.featured-poems {
    padding: 80px 0;
    background-color: #fff;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    min-height: 200px;
}

.poem-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px;
}

.poem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.poem-card-image {
    height: 200px;
    overflow: hidden;
}

.poem-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.poem-card:hover .poem-card-image img {
    transform: scale(1.05);
}

.poem-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.poem-card-content h3 {
    margin-bottom: 15px;
}

.poem-card-content .poem-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.poem-card-content .read-more {
    align-self: flex-start;
}

.poem-excerpt {
    font-style: italic;
    margin-bottom: 20px;
    color: #666;
}

.read-more {
    display: inline-block;
    color: #e67e22;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.poem-card:hover .read-more {
    color: #d35400;
}

/* Categories */
.categories {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.category-card {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.4);
}

.category-card h3 {
    color: #fff;
    margin: 0;
}

/* Famous Poets */
.famous-poets {
    padding: 80px 0;
    background-color: #fff;
}

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

.poet-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.poet-info h3 {
    color: #e67e22;
    margin-bottom: 5px;
}

.poet-info p:first-of-type {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.poet-desc {
    line-height: 1.6;
    color: #555;
}

/* Poetry Quotes */
.poetry-quotes {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.quotes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.quote-item {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #34495e;
}

.quote-author {
    font-weight: 500;
    color: #e67e22;
    margin: 0;
}

/* Latest Updates */
.latest-updates {
    padding: 80px 0;
    background-color: #fff;
}

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

.update-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.update-card h3 {
    color: #e67e22;
    margin-bottom: 15px;
}

.update-card p {
    margin-bottom: 20px;
    color: #555;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: #e67e22;
    margin-bottom: 20px;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 15px;
}

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

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

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e67e22;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Poetry Page Base */
.poetry-page {
    padding: 50px 0;
    background-color: #f5f5f5;
}

/* About Page */
.about-page {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.about-content h3 {
    color: #e67e22;
    margin-top: 40px;
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.about-content li {
    margin-bottom: 10px;
    color: #555;
}

/* Contact Page */
.contact-page {
    padding: 80px 0;
    background-color: #fff;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

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

/* Legal Pages */
.legal-page {
    padding: 80px 0;
    background-color: #fff;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h3 {
    color: #e67e22;
    margin-top: 30px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .poems-grid,
    .poets-grid,
    .quotes-container,
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .poetry-hero h1 {
        font-size: 2rem;
    }
    
    .poetry-categories {
        flex-direction: column;
        align-items: stretch;
    }
    
    .poetry-cat-btn {
        text-align: center;
    }
    
    .poetry-urdu {
        font-size: 1.3rem;
        padding: 15px;
    }
    
    .poetry-roman,
    .poetry-translation {
        padding: 15px;
    }
    
    .poetry-item {
        padding: 20px;
    }
    
    /* Mobile-specific adjustments */
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .poem-card-content {
        padding: 20px;
    }
    
    .poem-card-image {
        height: 180px;
    }
    
    .poetry-main {
        padding: 25px;
    }
    
    .poetry-sidebar {
        padding: 25px;
    }
    
    .multilingual-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .featured-poems,
    .categories,
    .famous-poets,
    .poetry-quotes,
    .latest-updates,
    .about-preview,
    .poetry-page,
    .about-page,
    .contact-page,
    .legal-page {
        padding: 60px 0;
    }
    
    .poem-card-content,
    .poetry-item,
    .contact-form,
    .poet-card,
    .quote-item,
    .update-card {
        padding: 20px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .poetry-pagination {
        flex-wrap: wrap;
    }
    
    .topic-tags {
        flex-direction: column;
    }
    
    .topic-tags a {
        text-align: center;
    }
    
    /* Mobile-specific adjustments */
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .main-header {
        padding: 15px 0;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .poem-card-content {
        padding: 15px;
    }
    
    .poem-card-image {
        height: 150px;
    }
    
    .poetry-main {
        padding: 20px;
    }
    
    .poetry-sidebar {
        padding: 20px;
    }
    
    .multilingual-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .urdu-content,
    .roman-content,
    .english-content {
        padding: 10px;
    }
    
    .poetry-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .prev-poem,
    .next-poem {
        padding: 10px 20px;
        text-align: center;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section {
        padding: 10px;
    }
}

/* Poetry Detail Page Styles */
.poetry-detail {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.poetry-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.poetry-detail-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.poetry-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.poetry-detail-image:hover img {
    transform: scale(1.02);
}

.poetry-detail-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #34495e;
}

.poetry-category {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
}

.poetry-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.poetry-main {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.poetry-urdu,
.poetry-roman,
.poetry-translation {
    margin-bottom: 40px;
}

.poetry-urdu h2,
.poetry-roman h2,
.poetry-translation h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #34495e;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.poetry-text {
    line-height: 1.8;
    font-size: 1.1rem;
}

.poetry-urdu .poetry-text {
    font-size: 1.2rem;
}

/* Poetry TOC Styles */
.poetry-toc {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #e67e22;
}

.poetry-toc h3 {
    margin-bottom: 15px;
    color: #34495e;
}

.poetry-toc ul {
    list-style: none;
    padding: 0;
}

.poetry-toc li {
    margin-bottom: 10px;
}

.poetry-toc a {
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
}

.poetry-toc a:hover {
    color: #e67e22;
    background-color: #f0f0f0;
    padding-left: 15px;
}

.poem-toc-sidebar {
    margin-top: 30px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #e67e22;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.poem-toc-sidebar h3 {
    margin-bottom: 15px;
    color: #34495e;
}

.poem-toc-sidebar ul {
    list-style: none;
    padding: 0;
}

.poem-toc-sidebar li {
    margin-bottom: 10px;
}

.poem-toc-sidebar a {
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 10px;
    border-radius: 5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.poem-toc-sidebar a:hover {
    color: #e67e22;
    background-color: #f0f0f0;
    padding-left: 15px;
}

/* Poetry Analysis and Themes Styles */
.poem-analysis,
.themes,
.literary-devices {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.poem-analysis h2,
.themes h2,
.literary-devices h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #34495e;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.analysis-content,
.themes-content,
.devices-content {
    line-height: 1.8;
}

.themes-content ul,
.devices-content ul {
    margin-left: 20px;
    margin-top: 15px;
}

.themes-content li,
.devices-content li {
    margin-bottom: 10px;
    color: #555;
}

.themes-content strong,
.devices-content strong {
    color: #e67e22;
}

/* Additional Content Styles */
.related-quotes,
.seasonal-quotes,
.spiritual-quotes,
.romantic-quotes,
.autumn-activities,
.spiritual-practices,
.romantic-ideas,
.love-tips,
.autumn-tips,
.soul-care,
.romance-tips {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.related-quotes h2,
.seasonal-quotes h2,
.spiritual-quotes h2,
.romantic-quotes h2,
.autumn-activities h2,
.spiritual-practices h2,
.romantic-ideas h2,
.love-tips h2,
.autumn-tips h2,
.soul-care h2,
.romance-tips h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #34495e;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.quotes-content h3,
.activities-content h3,
.practices-content h3,
.ideas-content h3,
.tips-content h3,
.care-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #e67e22;
}

.quotes-content ul,
.activities-content ul,
.practices-content ul,
.ideas-content ul,
.tips-content ul,
.care-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.quotes-content li,
.activities-content li,
.practices-content li,
.ideas-content li,
.tips-content li,
.care-content li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.quotes-content li strong,
.activities-content li strong,
.practices-content li strong,
.ideas-content li strong,
.tips-content li strong,
.care-content li strong {
    color: #e67e22;
    font-weight: 600;
}

/* Multilingual Content Styles */
.multilingual-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.urdu-content,
.roman-content,
.english-content {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 100%;
    box-sizing: border-box;
}

.urdu-content h4,
.roman-content h4,
.english-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-bottom: 15px;
    color: #e67e22;
    text-align: center;
    border-bottom: 1px solid #e67e22;
    padding-bottom: 5px;
}

.urdu-content ul,
.roman-content ul,
.english-content ul {
    margin-left: 15px;
}

.urdu-content li,
.roman-content li,
.english-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.urdu-content {
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

@media (max-width: 768px) {
    .multilingual-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .urdu-content,
    .roman-content,
    .english-content {
        margin-bottom: 15px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .multilingual-content {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .urdu-content,
    .roman-content,
    .english-content {
        margin-bottom: 10px;
        padding: 8px;
    }
}

.poetry-sidebar {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.related-poems {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.related-poems h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #34495e;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.related-poems ul {
    list-style: none;
    padding: 0;
}

.related-poems li {
    margin-bottom: 15px;
}

.related-poems a {
    color: #34495e;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.related-poems a:hover {
    color: #e67e22;
    padding-left: 10px;
}

.poetry-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.prev-poem,
.next-poem {
    display: inline-block;
    padding: 12px 24px;
    background-color: #34495e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.prev-poem:hover,
.next-poem:hover {
    background-color: #2c3e50;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poem-card,
.category-card,
.poet-card,
.quote-item,
.update-card,
.poetry-item {
    animation: fadeIn 0.5s ease-out;
}

.poem-card:nth-child(2),
.poet-card:nth-child(2),
.quote-item:nth-child(2),
.update-card:nth-child(2),
.poetry-item:nth-child(2) {
    animation-delay: 0.1s;
}

.poem-card:nth-child(3),
.poet-card:nth-child(3),
.quote-item:nth-child(3),
.update-card:nth-child(3),
.poetry-item:nth-child(3) {
    animation-delay: 0.2s;
}

.poem-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive for Poetry Detail */
@media (max-width: 992px) {
    .poetry-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .poetry-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .poetry-detail {
        padding: 40px 0;
    }
    
    .poetry-detail-header h1 {
        font-size: 2rem;
    }
    
    .poetry-detail-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .poetry-main {
        padding: 20px;
    }
    
    .poetry-sidebar {
        padding: 20px;
    }
    
    .poetry-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-poem,
    .next-poem {
        text-align: center;
    }
}