:root {
    --yale-blue: #074575;
    /* Main Brand Color */
    --silver: #c0c0c0;
    /* Silver Color for borders/hover */
    --pale-blue: #e3f2fd;
    /* Light blue for pagination bg */
    --white: #ffffff;
    --light-gray: #f4f4f4;
    /* Background color */
    --dark-bg: #002347;
    /* Top bar dark blue */
    --border-color: #ddd;
}

@media (max-width: 992px) {

    /* மெனுவின் பின்னணியை முழுமையாக மாற்ற */
    #mainNav {
        display: none;
        width: 100%;
        /* Light Theme-ல் சுத்தமான வெள்ளை நிறம் வர இது அவசியம் */
        background-color: var(--white) !important;
        position: absolute;
        top: 65px;
        /* ஹெடர் உயரத்திற்கு ஏற்ப மாற்றவும் */
        left: 0;
        /* எல்லாவற்றிற்கும் மேலாக மெனு தெரிய மிக அதிக z-index */
        z-index: 999999 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        max-height: 80vh;
        overflow-y: auto;
        padding: 10px 0;
    }

    /* மெனு திறந்திருக்கும் போது */
    #mainNav.active {
        display: block !important;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
        background-color: var(--white) !important;
        /* உள்ளே இருக்கும் லிஸ்ட்டுக்கும் வெள்ளை நிறம் */
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li a {
        display: block;
        padding: 18px 25px;
        /* கருப்பு நிற எழுத்துக்கள் பளிச்சென்று தெரிய */
        color: #111111 !important;
        font-weight: 600;
        font-size: 16px;
        text-decoration: none;
        background-color: var(--white) !important;
    }

    /* Dark Theme-க்கான பிரத்யேக மாற்றம் */
    .dark-theme #mainNav,
    .dark-theme .nav-links,
    .dark-theme .nav-links li a {
        background-color: #111111 !important;
        color: #ffffff !important;
        border-bottom: 1px solid #333;
    }
}

/* News Page Wrapper */
.news-page-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

@media (max-width: 1024px) {
    .news-page-wrapper {
        margin: 20px auto;
        padding: 20px;
        width: 96%;
    }
}

@media (max-width: 768px) {
    .news-page-wrapper {
        margin: 10px auto;
        padding: 12px;
        width: 98%;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
}

/* ============================================================
   2. ARTICLE SECTION & HEADING FIX
   ============================================================ */

/* பிரதான பெட்டி - Desktop & Global */
.article-text-wrapper {
    flex: 2;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    box-sizing: border-box;
    /* இது பார்டர் கட் ஆகாமல் தடுக்கும் */

    /* Desktop Placement */
    margin-left: 70px;
    margin-right: 20px;
    max-width: 1000px;
}

.article-main-title {
    border-left: 6px solid var(--yale-blue);
    padding-left: 15px;
    font-size: 26px;
    font-weight: bold;
    color: var(--text-color);
    margin: 0 0 25px 0;
    line-height: 1.4;
    text-align: left;
    /* தலைப்பு எப்போதும் இடது பக்கம் இருக்க */
}

.content-part img[src*="/uploads/position/"],
.content-part img[src^="uploads/position/"] {
    display: block;
    width: 400px !important;
    max-width: 400px !important;
    height: auto !important;
    margin: 18px auto !important;
    border-radius: 10px;
    object-fit: contain;
}

.featured-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 20px;
}

/* ============================================================
   மொபைலில் பார்டர் மற்றும் எழுத்து இடைவெளி சரி செய்தல்
   ============================================================ */
@media (max-width: 992px) {
    .article-expand-container {
        display: flex;
        flex-direction: column;
        /* மொபைலில் ஒன்றன் கீழ் ஒன்றாக */
    }

    .article-text-wrapper,
    .feedback-container {
        width: 100% !important;
        /* மொபைலில் முழு அகலம் */
        flex: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .feedback-container {
        order: 2;
        /* செய்திக்கு அடுத்து ஃபார்ம் வர */
        margin-top: 30px;
    }
}

.content-body {
    /* முக்கிய மாற்றம்: Justify-ஐ நீக்கிவிட்டு Left அலைன் செய்துள்ளேன் */
    text-align: left !important;
    line-height: 1.7 !important;
    font-size: 16px !important;
    word-spacing: normal !important;
    letter-spacing: normal !important;
}

/* News content-ல் bullet points வேண்டாம் - using ID for high specificity */
#newsContent ul,
#newsContent ol,
#newsContent li,
.content-body ul,
.content-body ol,
.content-body li,
.content-part ul,
.content-part ol,
.content-part li {
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.featured-image {
    height: 250px !important;
    /* மொபைலில் படம் அமுங்காமல் இருக்க */
    border-radius: 10px !important;
}

/* ==========================================
   FEEDBACK FORM - PERMANENT SHINING DESIGN
   ========================================== */
.feedback-container {
    flex-basis: 60%;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    /* பார்டர் ஆரம்பத்திலேயே தெளிவாக இருக்கும் */
    margin-top: 50px;
    order: 3;
    width: calc(100% - 320px);
    box-sizing: border-box;
    /* ஆரம்பத்திலேயே ஒரு மென்மையான Yale Blue ஷேடோ */
    box-shadow: 0 10px 40px rgba(7, 69, 117, 0.1);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
    gap: 12px;
}

/* லேபிள் ஆரம்பத்திலேயே Yale Blue-வில் மின்னும் */
.form-group label {
    font-weight: 700;
    color: var(--yale-blue);
    /* ஆரம்பத்திலேயே Yale Blue */
    font-size: 15px;
    text-shadow: 0 0 8px rgba(7, 69, 117, 0.2);
    /* லேசான ஷைனிங் */
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    /* இன்புட் பாக்ஸ் பார்டர் Yale Blue மற்றும் Silver கலந்து இருக்கும் */
    border: 2px solid rgba(7, 69, 117, 0.3);
    background: #fff;
    /* எப்போதும் ஒயிட் பேக்ரவுண்ட் (Shining Look) */
    color: #333;
    border-radius: 16px;
    outline: none;
    font-size: 15px;
    box-sizing: border-box;
    /* ஆரம்பத்திலேயே ஒரு Glow effect */
    box-shadow: 0 4px 12px rgba(7, 69, 117, 0.05);
    transition: all 0.3s ease;
}

/* கிளிக் பண்ணும்போது இன்னும் பிரகாசமாகும் */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--yale-blue);
    box-shadow: 0 0 20px rgba(7, 69, 117, 0.2);
    transform: translateY(-3px);
}

/* ==========================================
   DARK THEME - (Premium Blue/Gray)
   ========================================== */
body.dark-theme {
    background-color: #020c1b !important;
    color: #ccd6f6 !important;
}

.dark-theme .article-text-wrapper,
.dark-theme .feedback-container,
.dark-theme .user-comment-box,
.dark-theme .card,
.dark-theme .info-card {
    background: #0b1426 !important;
    border-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* Label colors */
.dark-theme .form-group label,
.dark-theme .feedback-list-title,
.dark-theme .article-main-title,
.dark-theme .article-sub-title {
    color: #e6f1ff !important;
}

/* Input box colors - Full Black as requested */
.dark-theme .form-group input,
.dark-theme .form-group textarea,
.dark-theme #searchInput {
    background: #000000 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

.dark-theme .form-group input::placeholder,
.dark-theme .form-group textarea::placeholder {
    color: #8892b0 !important;
}

.dark-theme .form-group input:focus,
.dark-theme .form-group textarea:focus {
    background: #112240 !important;
    border-color: #64ffda !important;
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.2) !important;
}

.dark-theme .comment-user-info {
    color: #8892b0;
    border-color: #112240;
}

.dark-theme .nav-item i,
.dark-theme .nav-item span {
    color: #64ffda !important;
}


/* ==========================================
   PREMIUM SHINING SUBMIT BUTTON
   ========================================== */
.shining-submit-btn {
    /* Yale Blue Gradient Base */
    background: linear-gradient(135deg, var(--yale-blue) 0%, #0b5a99 50%, var(--yale-blue) 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(7, 69, 117, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

/* பட்டனில் எப்போதும் ஓடிக்கொண்டிருக்கும் வெள்ளி ஒளி (Silver Shine) */
.shining-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
    animation: permanentShine 3s infinite linear;
}

/* சில்வர் ஒளி அனிமேஷன் */
@keyframes permanentShine {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* மவுஸை வைக்கும்போது (Hover) */
.shining-submit-btn:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 15px 30px rgba(7, 69, 117, 0.4);
    background-position: right center;
    /* Gradient அசைவு */
    filter: brightness(1.1);
}

/* கிளிக் செய்யும்போது (Active) */
.shining-submit-btn:active {
    transform: translateY(-2px);
}

/* பட்டன் உள்ளே இருக்கும் ஐகான் டிசைன் */
.shining-submit-btn i {
    font-size: 20px;
    transition: 0.3s;
}

.shining-submit-btn:hover i {
    transform: translateX(5px) rotate(-10deg);
}

/* Dark Mode-ல் Twitter (X) மட்டும் மாறுவதற்கான திருத்தம் */
.dark-theme .brand-item i.fa-x-twitter {
    filter: invert(1) brightness(2) !important;
}

/* ==========================================
   4. MOBILE RESPONSIVE (ORDER FIX)
   ========================================== */

/* 1100px-க்கு கீழே ஃபார்ம் முழு அகலத்தையும் எடுக்கும் */
/* 1100px-க்கு மேல் (Desktop) */
.article-expand-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
    align-items: stretch;
}

.article-text-wrapper {
    width: 100% !important;
    flex: none !important;
}

.feedback-container {
    width: 100% !important;
    flex: none !important;
    /* பெட்டிக்கும் சமமான இடம் (இப்போது அகலமாகத் தெரியும்) */
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 2px solid var(--border-color);
    margin-top: 20px;
    /* அதிகப்படியான 50px-ஐ குறைத்துள்ளேன் */
    box-sizing: border-box;
    box-shadow: 0 10px 40px rgba(7, 69, 117, 0.1);
}

.brand-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}


/* 768px-க்கு கீழே (Small Mobile) */
@media (max-width: 768px) {
    .feedback-container {
        padding: 25px 20px;
    }

    .shining-submit-btn {
        font-size: 17px;
        padding: 15px;
    }

    /* சப்-லேபிளுக்கும் மார்ஜின் நீக்கம் */
    .news-sub-label {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }
}

/* ==========================================
   MOBILE BOTTOM NAVIGATION (news.css)
   ========================================== */

/* டெஸ்க்டாப்பில் தெரியாமல் இருக்க */
.bottom-nav.mobile-only {
    display: none;
}

/* மொபைல் மற்றும் டேப்லெட் வியூ (992px-க்கு கீழே) */
@media (max-width: 992px) {
    .bottom-nav.mobile-only {
        display: flex;
        /* ஐட்டம்களை வரிசையாகக் காட்ட */
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white) !important;
        /* சுத்தமான வெள்ளை பின்னணி */
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
        z-index: 2000;
        justify-content: space-around;
        /* பட்டன்களுக்கு இடையே சமமான இடைவெளி */
        align-items: center;
        padding: 10px 0;
        border-top: 1px solid #eeeeee;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        /* ஐகான் மேலே, டெக்ஸ்ட் கீழே */
        align-items: center;
        text-decoration: none;
        gap: 4px;
        flex: 1;
        /* எல்லா பட்டன்களும் சம அளவு இருக்க */
    }

    /* ஐகான் மற்றும் எழுத்துக்கள் - Dark Blue (Yale Blue) */
    .nav-item i,
    .nav-item span {
        color: var(--yale-blue) !important;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-item span {
        font-size: 11px;
        font-weight: 700;
    }

    /* ==========================================
       DARK THEME SUPPORT
       ========================================== */
    .dark-theme .bottom-nav.mobile-only {
        background-color: #121212 !important;
        /* டார்க் பின்னணி */
        border-top: 1px solid #333333;
    }

    /* டார்க் தீமில் ஐகான் மற்றும் எழுத்துக்கள் லேசான நீல நிறத்தில் தெரியும் */
    .dark-theme .nav-item i,
    .dark-theme .nav-item span {
        color: #5da9e9 !important;
    }

    /* கன்டென்ட் பட்டன்களால் மறையாமல் இருக்க பாடிக்கு கீழே கேப் */
    body {
        padding-bottom: 70px !important;
    }
}

/* ============================================================
   1. DESKTOP VIEW: பெட்டி நீக்கம் மற்றும் கச்சிதமான அலைன்மென்ட்
   ============================================================ */
@media (min-width: 1101px) {
    .share-box-left-sticky {
        position: fixed !important;
        left: 10px !important;
        top: 55% !important;
        /* உங்கள் விருப்பத்திற்கு ஏற்ப உயரத்தை மாற்றலாம் */
        transform: translateY(-50%) !important;
        z-index: 9999 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        width: 45px !important;
        /* அகலத்தை நிலையாக்குவதால் ஐகான்கள் சிதறாது */
    }

    .brand-column {
        display: flex !important;
        flex-direction: column !important;
        /* செங்குத்து வரிசை */
        align-items: center !important;
        gap: 2px !important;
        /* மிக நெருக்கமான இடைவெளி */
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .brand-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        text-decoration: none !important;
    }
}

/* ============================================================
   2. MOBILE VIEW: படிவத்திற்கு கீழே கிடைமட்டமாக (Perfect)
   ============================================================ */
@media (max-width: 1100px) {
    .share-box-left-sticky {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 25px 0 80px 0 !important;
        /* பாட்டம் நேவிகேஷனுக்காக 80px கேப் */
        background: transparent !important;
        box-shadow: none !important;
        order: 99 !important;
        /* படிவத்திற்கு கீழே வர உதவும் */
    }

    .brand-column {
        display: flex !important;
        flex-direction: row !important;
        /* கிடைமட்ட வரிசை */
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        /* மொபைலில் மட்டும் லேசான இடைவெளி */
        background: transparent !important;
    }

    .brand-item {
        width: 45px !important;
        height: 45px !important;
        margin: 0 !important;
    }
}

/* --- Desktop: Premium Floating Sidebar (Right Side) --- */
@media (min-width: 992px) {
    .sticky-social-bar {
        position: fixed;
        /* இடதுபுறத்தில் இருந்து வலதுபுறத்திற்கு மாற்றப்பட்டது */
        right: 15px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 20px;
        z-index: 9999;
    }

    .social-icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        text-decoration: none;
        font-size: 18px;
        border-radius: 10px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        opacity: 0.8;
    }

    /* மவுஸ் வைக்கும்போது வலதுபுறம் இருப்பதால் இடதுபுறம் (-5px) நகரும் */
    .social-icon:hover {
        opacity: 1;
        transform: scale(1.15) translateX(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

/* --- Mobile View (மாற்றம் எதுவும் செய்யப்படவில்லை) --- */
@media (max-width: 991px) {
    .sticky-social-bar {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        padding: 25px 0;
        margin-top: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .social-icon {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white !important;
        font-size: 18px;
    }
}

/* பிராண்ட் நிறங்கள் */
.facebook {
    background: linear-gradient(45deg, #3b5998, #4e71ba);
}

.whatsapp {
    background: linear-gradient(45deg, #25d366, #34e073);
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.linkedin {
    background: linear-gradient(45deg, #0077b5, #00a0dc);
}

.youtube {
    background: linear-gradient(45deg, #ff0000, #ff4d4d);
}

/* ============================================================
   FEEDBACK LIST - ENHANCED DESIGN
   ============================================================ */

.existing-feedbacks {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.feedback-list-title {
    font-size: 1.3rem;
    color: var(--yale-blue);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

/* கருத்துக்கள் பெட்டி - நீளமாகவும் எடுப்பாகவும் */
.feedback-display-area {
    display: flex;
    flex-direction: column;
    /* நீளமாகத் தெரிய ஒவ்வொன்றும் வரிசையாக வரும் */
    gap: 20px;
}

.user-comment-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 20px 25px;
    /* உட்புற இடைவெளி அதிகரிப்பு */
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* லேசான நிழல் */
    transition: transform 0.2s ease;
    width: 100%;
    /* முழு நீளம் */
}

.user-comment-box:hover {
    transform: translateX(5px);
    /* ஹோவர் செய்யும்போது லேசான அசைவு */
    border-left: 4px solid var(--yale-blue);
}

.comment-user-info {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.comment-user-info strong {
    color: var(--yale-blue);
    font-size: 1rem;
}

/* --- PREMIUM DARK THEME OVERRIDES --- */
body.dark-theme {
    background-color: #030712 !important;
    color: #9ca3af !important;
}

body.dark-theme .article-text-wrapper,
body.dark-theme .feedback-container,
body.dark-theme .user-comment-box,
body.dark-theme .card,
body.dark-theme .info-card,
body.dark-theme .article-expand-container {
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    color: #9ca3af !important;
}

body.dark-theme .article-main-title,
body.dark-theme .article-sub-title,
body.dark-theme .feedback-list-title,
body.dark-theme label {
    color: #ffffff !important;
}

body.dark-theme .comment-user-info {
    color: #6b7280 !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}


/* மொபைல் வியூ மாற்றங்கள் */
@media (max-width: 850px) {
    .user-comment-box {
        padding: 15px;
    }

    .feedback-list-title {
        font-size: 1.15rem;
    }

    /* தலைப்பு ஒரே வரியில் வர */
    .article-sub-title {
        font-size: 1.25rem !important;
    }
}

/* மெயின் கண்டெய்னர் - எல்லா பக்கங்களுக்கும் */
.article-expand-container {
    display: flex;
    flex-direction: column;
    /* டெஸ்க்டாப்பில் கீழே வர */
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    /* பக்கத்தின் நடுவில் வர */
    padding: 25px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

/* செய்தி பகுதி */
.article-text-wrapper {
    width: 100%;
    margin: 0 !important;
}

/* கருத்துப் பெட்டி */
.feedback-container {
    width: 100%;
    margin-top: 20px !important;
}

/* 📱 மொபைல் வியூ - அலைன்மென்ட் மாற்றம் */
@media (max-width: 992px) {
    .article-expand-container {
        flex-direction: column;
        /* ஒன்றன் கீழ் ஒன்றாக */
        margin: 0;
        padding: 5px;
        border: none;
        box-shadow: none;
        width: 100%;
    }
}

/* Image Position Styles - Applied from refer.php */
.position-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
}

.position-image.top-position {
    margin-top: 0;
    margin-bottom: 30px;
}

.position-image.center-position {
    margin: 40px 0;
    text-align: center;
}

.position-image.bottom-position {
    margin-top: 40px;
    margin-bottom: 0;
}

.position-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted, #666);
    margin-top: 8px;
    font-style: italic;
    padding: 0 10px;
    opacity: 0.8;
}

.content-part {
    margin-bottom: 20px;
}

/* Position Images Row - Multiple Images Display */
.position-images-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.position-image-item {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-color);
}

.position-image-item.position-center {
    max-width: 320px;
    width: 100%;
    justify-self: center;
}

.position-image-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.position-image-item.position-center img {
    height: 140px;
    object-fit: contain;
    background: #f7f7f7;
}

.position-image-item p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
    padding: 0 10px;
}

/* Mobile Responsive - Stack Images as Column */
@media (max-width: 768px) {
    .position-images-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    /* Show only the first image in mobile view */
    .position-image-item:nth-child(n+2) {
        display: none !important;
    }

    .position-image-item img {
        height: 220px;
    }

    .position-image-item.position-center {
        max-width: 100%;
    }

    .position-image-item.position-center img {
        height: 180px;
    }

    .content-part img[src*="/uploads/position/"],
    .content-part img[src^="uploads/position/"] {
        width: min(100%, 200px) !important;
        max-width: min(100%, 200px) !important;
    }
}
