Template:MalayalamArticle/styles.css

From AbhiprayaVedi
/* ================ MALAYALAM ARTICLE STYLES ================ */

.article-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.article-byline {
    color: #333;
    font-size: 1.16em;
}

.author-name {
    font-weight: bold;
    font-size: 1.48em;
    color: #1e3a8a;
}

.meta-separator {
    margin: 0 10px;
    color: #888;
}

.article-date {
    font-size: 1.18em;
    color: #555;
}

.article-meta-category {
    color: #2c5282;
    font-weight: 600;
}

/* Intro Box - Slightly warmer tone for Malayalam */
.intro-box {
    margin: 20px 0 32px 0;
    padding: 22px 26px;
    background: #f0f9f4;           /* Soft green tint */
    border-left: 6px solid #4a9c6e;
    border-top: 1px solid #b0e0c8;
    font-size: 1.18em;
    line-height: 1.68;
}

.intro-box p {
    margin: 0 !important;
}

/* Sidebar */
.article-sidebar {
    float: right;
    width: 310px;
    margin: 0 0 30px 25px;
    padding: 16px 14px 18px 14px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

/* Highlights - Warm earthy tone */
.highlight-box {
    margin: 14px 0;
    padding: 16px;
    background: #fff4e6;
    border-left: 5px solid #e67e22;
    color: #333;
    line-height: 1.6;
}

/* Image */
.article-image1 {
    margin: 12px 24px 24px 0;
    float: left;
    max-width: 310px;
}

.image-caption {
    font-size: 1.04em !important;
    color: #444;
    margin-top: 10px;
    line-height: 1.5;
}

/* Fix thumbnail caption alignment */
.article-sidebar .thumbcaption::before,
.article-sidebar figcaption::before {
    content: none !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure clean centered caption */
.article-sidebar .thumbcaption,
.article-sidebar figcaption {
    text-align: center !important;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 4px;
    color: #333;
}

/* Content */
.article-content {
    line-height: 1.85;
    font-size: 1.04em;
    margin-right: 20px;
}

/* Malayalam Font Priority */
:lang(ml) .article-content,
:lang(ml) .intro-box,
:lang(ml) .highlight-box {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-sidebar {
        margin-left: 20px;
        width: 290px;
    }
}

@media (max-width: 720px) {
    .article-sidebar {
        float: none;
        width: 100%;
        margin: 20px 0 25px 0;
    }
}
/* Malayalam Font Enforcement */
.article-content,
.intro-box,
.highlight-box {
    font-family: 'Manjari', 'Meera', 'Rachana', 'Noto Sans Malayalam', sans-serif !important;
}

/* ================ AUTHOR PROFILE BOTTOM BLOCK ================ */
.author-profile-bottom {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 40px 0 30px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.author-profile-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar-box img {
    border-radius: 50% !important; /* ഫോട്ടോ വട്ടത്തിലാക്കുന്നു */
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.author-details-box {
    flex-grow: 1;
}

.author-heading {
    margin: 0 0 4px 0;
    font-size: 0.85em;
    text-transform: uppercase;
    color: #718096;
    letter-spacing: 0.5px;
    font-family: 'Manjari', sans-serif !important;
}

.author-profile-name a {
    font-family: 'Manjari', sans-serif !important;
    font-size: 1.3em;
    font-weight: bold;
    color: #1a202c !important;
    text-decoration: none;
}

.author-bio-placeholder {
    margin: 6px 0 0 0;
    font-family: 'Manjari', sans-serif !important;
    font-size: 0.95em;
    color: #4a5568;
    line-height: 1.5;
}

/* ================ RELATED ARTICLES SECTION ================ */
.related-articles-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.related-heading {
    font-family: 'Manjari', sans-serif !important;
    font-size: 1.3em;
    color: #2d3748;
    margin-bottom: 20px;
}

/* 3 കാർഡുകൾ ഒതുക്കത്തിൽ കാണിക്കാൻ ചെറിയൊരു ഗ്രിഡ് */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
}

/* റിലേറ്റഡ് സെക്ഷനിലെ കാർഡുകൾ കൂടുതൽ ഒതുക്കമുള്ളതാക്കാൻ */
.related-articles-grid .article-thumbnail {
    max-height: 120px;
}
.related-articles-grid .article-title {
    font-size: 1.1em !important;
}
.related-articles-grid .article-intro-wrapper {
    max-height: 3.2em !important; /* 2 വരികളിൽ ഒതുക്കുന്നു */
}

/* മൊബൈൽ ക്രമീകരണം */
@media (max-width: 600px) {
    .author-profile-flex {
        flex-direction: column;
        text-align: center;
    }
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}