.maincetdiv {
    width: 70%;
    margin: auto;    
    background: var(--color-white, #ffffff);
    border-radius: var(--radius-lg, 10px);
    font-family: var(--font-primary, 'Segoe UI', sans-serif);
    box-shadow: var(--shadow-lg, 0 10px 25px rgba(0, 0, 0, 0.15));
}

.main-news {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    font-family: var(--font-primary, 'Segoe UI', sans-serif);
}

.sidebar {
    background: var(--color-white, white);
    border-radius: var(--radius-lg, 10px);
    padding: 5px;
    margin-bottom: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.widget {
    margin-bottom: 10px;
    background: var(--color-white, #fff);
    padding: 5px;
    border-radius: 8px;
}

.widget h4 {
    font-size: 18px;
    color: var(--color-text, #333);
    border-bottom: 1px solid var(--color-gray, #eee);
}

.news-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.news-list li {
   font-size: 14px;
}

.news-list strong {
    color: #222;
    display: block;
}

.news-list small {
    color: #888;
    font-size: 12px;
}

/* ───────────────────────────────────────────────────────── */
/* 3. NEWS CARD COMPONENTS                                   */
/* ───────────────────────────────────────────────────────── */

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px;
}

.dosunewscard {
    flex: 0 0 310px;
    height: 500px;
    background: var(--color-white, #fff);
    border-radius: var(--radius-lg, 10px);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--font-primary, 'Segoe UI', sans-serif);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.dosunewsimg {
    position: relative;
    overflow: hidden;
}

.dosunewsimg img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.dosunewscap {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary, #ff5e57);
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.dosunewstit {
    font-size: 20px;
    font-weight: 600;
    padding: 15px 20px 10px;
    color: var(--color-text, #333);
}

.dosunewstxt {
    max-height: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 20px 15px;
    font-size: 15px;
    color: var(--color-text-light, #555);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.dosunewslnk {
    padding: 10px 20px 20px;
    text-align: right;
}

.dosunewslnk a {
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    font-size: 14px;
    position: relative;
}

.dosunewslnk a span::after {
    content: "→";
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}

.dosunewslnk a:hover span::after {
    margin-left: 10px;
}

.chat-area header {
    display: flex;
    align-items: center;
    padding: 5px 20px;
}

.chat-area header .back-icon {
    color: var(--color-text, #333);
    font-size: 18px;
}

.chtimg {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    display: inline-block;
}

.chtdetails {
    font-size: 17px;
    font-weight: 500;
    margin: 0 25px;
    display: inline-block;
}

.chat-box {
    position: relative;
    min-height: 250px;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px 10px 5px 10px;
    background: var(--color-bg, #f7f7f7);
}

.chat-box .text {
    position: absolute;
    top: 45%;
    left: 50%;
    width: calc(100% - 50px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.chat-box .chat {
    margin: 15px 0;
}

.chat-box .chat p {
    word-wrap: break-word;
    padding: 8px 16px;
}

.chat-box .outgoing {
    display: flex;
}

.chat-box .outgoing .details {
    margin-left: auto;
    max-width: calc(100% - 130px);
}

.outgoing .details p {
    background: var(--color-text, #333);
    color: var(--color-white, #fff);
    border-radius: 18px 18px 0 18px;
}

.chat-box .incoming {
    display: flex;
    align-items: flex-end;
}

.chat-box .incoming img {
    height: 35px;
    width: 35px;
}

.chat-box .incoming .details {
    margin-right: auto;
    margin-left: 10px;
    max-width: calc(100% - 130px);
}

.incoming .details p {
    background: var(--color-white, #fff);
    color: var(--color-text, #333);
    border-radius: 18px 18px 18px 0;
}

.typing-area {
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
}

.typing-area input {
    height: 45px;
    width: calc(100% - 58px);
    font-size: 16px;
    padding: 0 10px;
    border: 1px solid var(--color-gray, #e6e6e6);
    outline: none;
    border-radius: 5px 0 0 5px;
}

.typing-area button {
    color: var(--color-white, #ffffff);
    width: 95px;
    border: none;
    outline: none;
    font-size: 16px;
    cursor: pointer;
    pointer-events: none;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
    background: var(--color-primary, #590635);
}

.typing-area button.active {
    opacity: 1;
    pointer-events: auto;
}

/* ───────────────────────────────────────────────────────── */
/* 5. MESSAGE BUBBLES (from getcomment.php inline styles)    */
/* ───────────────────────────────────────────────────────── */

.msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 5px;
}

.msg:last-of-type {
    margin: 0;
}

.msg-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background: var(--color-gray, #ddd);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}

.msg-bubble {
    max-width: 500px;
    padding: 10px;
    border-radius: 15px;
    background: #ececec;
}

.msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.msg-info-name {
    margin-right: 5px;
    font-weight: bold;
}

.msg-info-time {
    font-size: 12px;
}

.left-msg .msg-bubble {
    border-bottom-left-radius: 0;
}

.right-msg {
    flex-direction: row-reverse;
}

.right-msg .msg-bubble {
    background: #579ffb;
    color: var(--color-white, #fff);
    border-bottom-right-radius: 0;
}

.right-msg .msg-img {
    margin: 0 0 0 5px;
}

/* ───────────────────────────────────────────────────────── */
/* 6. NO RESULTS                                             */
/* ───────────────────────────────────────────────────────── */

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--color-dark-gray, #6c757d);
    font-size: 0.95rem;
}

/* ───────────────────────────────────────────────────────── */
/* 7. RESPONSIVE                                             */
/* ───────────────────────────────────────────────────────── */

/* ───────────────────────────────────────────────────────── */
/* 8. PREMIUM GLASSMORPHIC NEWS STYLES                       */
/* ───────────────────────────────────────────────────────── */

:root {
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --primary-gradient: linear-gradient(135deg, #36011f 0%, #590635 100%);
    --accent-gradient: linear-gradient(135deg, #001d4d 0%, #003366 100%);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

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

/* Single Article */
.article-container {
    max-width: 800px;
    margin: 4rem auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-category {
    background: var(--color-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin: 1.5rem 0;
    color: var(--color-secondary);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
}

.article-featured-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 1.25rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

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

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 4rem 0;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-excerpt {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 2rem;
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
}

/* Ticker */
.trending-ticker-container {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 1rem;
    overflow: hidden;
}

.trending-label {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.ticker-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    padding-left: 2rem;
}

.ticker-item {
    padding: 0 2rem;
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.ticker-item:hover {
    color: var(--color-primary);
}

/* Featured Focus */
.focus-grid-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 2rem;
    scrollbar-width: none;
}

.focus-card {
    min-width: 300px;
    height: 200px;
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    flex-shrink: 0;
}

.focus-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.focus-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.focus-card:hover img {
    transform: scale(1.1);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    margin: 4rem 0 2rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

/* Grid Posts */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: white;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

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

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    line-height: 1.4;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* Modal Styles */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.article-modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 2rem;
    position: relative;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-modal-overlay.active .article-modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.modal-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Additional Premium Touches */
.login-btn {
    background: var(--primary-gradient) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 3rem !important;
    box-shadow: 0 4px 15px rgba(54, 1, 31, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(54, 1, 31, 0.4);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.read-more:hover {
    gap: 0.75rem;
}

.site-footer {
    display: none !important;
}

.spotlight-badge {
    background: #f9bf14 !important;
    color: #36011f !important;
}
