/*
Theme Name: Malayalam Converter
Description: A custom WordPress theme for Malayalam Unicode Font To ML TT Font Converter and Malayalam Stylish Fonts Download with Manglish keyboard.
Version: 1.0
Author: Your Name
*/

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

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

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

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

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

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    width: 120px;
    height: 120px;
    margin-right: 1rem;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

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

.main-navigation li {
    margin-left: 2rem;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.main-navigation a:hover {
    color: #007cba;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Typing Tool */
.typing-section {
    background-color: #fff;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.typing-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.search-bar {
    display: flex;
    flex: 1;
    margin-right: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.search-bar button {
    padding: 0.5rem 1rem;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.convert-btn button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.typing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.toolbar-icons {
    display: flex;
    gap: 0.5rem;
}

.icon {
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.icon:hover {
    opacity: 1;
}

.script-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.script-options label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.script-options input {
    margin-right: 0.3rem;
}

.typing-area {
    margin-bottom: 1rem;
}

.typing-area textarea {
    width: 100%;
    height: 300px;
    padding: 1rem;
    border: 2px solid #007cba;
    border-radius: 5px;
    font-size: 1.2rem;
    font-family: 'Arial', sans-serif;
    resize: vertical;
}

.typing-footer {
    text-align: right;
}

.counters {
    font-size: 0.9rem;
    color: #666;
}

.counters span {
    margin-left: 1rem;
}

button {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
}

.faq-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

.faq-item {
    background-color: #fff;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 1rem;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

/* Latest Posts Section */
.latest-posts-section {
    padding: 3rem 0;
    background-color: #fff;
}

.latest-posts-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #333;
}

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

.post-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
}

/* Page Styles */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.page-featured-image-wrapper {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-area {
    background-color: #fff;
    padding: 4rem 0;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.entry-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.entry-content blockquote {
    border-left: 5px solid #007cba;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Single Post Styles */
.post-hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 0 0 15px 15px;
}

.post-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 3rem 0;
    color: white;
}

.post-categories {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.post-title {
    font-size: 3rem;
    font-weight: 300;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin: 3rem 0;
}

.post-content {
    background-color: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.entry-content blockquote {
    border-left: 5px solid #007cba;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.recent-posts-grid {
    display: grid;
    gap: 1rem;
}

.recent-post-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.recent-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.recent-post-thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.recent-post-content {
    padding: 1rem;
}

.recent-post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.recent-post-title a {
    text-decoration: none;
    color: #333;
}

.recent-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 1rem;
}

.nav-card {
    flex: 1;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.nav-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
}

.related-posts-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-post-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.related-post-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

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

.related-post-title a {
    text-decoration: none;
    color: #333;
}

.related-post-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.related-post-date {
    font-size: 0.8rem;
    color: #999;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    width: 120px;
    height: 120px;
    margin-right: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #007cba;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .site-logo {
        margin-bottom: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        margin-top: 1rem;
    }

    .main-navigation li {
        margin: 0.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .typing-header {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        margin-right: 0;
    }

    .typing-toolbar {
        flex-direction: column;
        gap: 1rem;
    }

    .script-options {
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .post-content {
        padding: 2rem;
    }

    .post-hero {
        height: 300px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }