/* --- Import Signature Font --- */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* --- Global Variables --- */
:root {
    --primary: #00B98E;
    --primary-hover: #009673;
    --bg-light: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 12px 40px 0 rgba(0, 185, 142, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; } 
.text-left { text-align: left !important; } 
.text-justify { text-align: justify; text-justify: inter-character; }
.text-muted { color: var(--text-muted); } 
.text-primary { color: var(--primary); } 
.text-main { color: var(--text-main); }
.text-sm { font-size: 0.9rem; } 
.text-md { font-size: 1.1rem; } 
.text-lg { font-size: 1.2rem; } 
.text-xl { font-size: 1.45rem; line-height: 1.7; } 
.text-3xl { font-size: 3.5rem; letter-spacing: -1.5px; line-height: 1.2; } 
.text-5xl { font-size: 6.8rem; letter-spacing: -2.5px; line-height: 1.05; } 
.font-bold { font-weight: 700; } 
.font-semibold { font-weight: 600; }
.uppercase-spaced { text-transform: uppercase; letter-spacing: 1.5px; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-4 { margin-top: 2rem; } .mt-auto { margin-top: auto; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; } .mb-5 { margin-bottom: 2.5rem; } .mb-6 { margin-bottom: 3rem; } .mb-8 { margin-bottom: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-0 { padding-top: 0; } .pt-10 { padding-top: 10px; } .pt-80 { padding-top: 80px; } .pt-120 { padding-top: 120px; } .pt-140 { padding-top: 140px; } .pt-160 { padding-top: 160px; }
.pb-20 { padding-bottom: 20px; } .pb-60 { padding-bottom: 60px; } .pb-80 { padding-bottom: 80px; } .pb-120 { padding-bottom: 120px; }

.w-full { width: 100%; }
.max-w-600 { max-width: 600px; } 
.max-w-800 { max-width: 800px; } 

.flex { display: flex; } 
.flex-col { flex-direction: column; } 
.flex-row { flex-direction: row; }
.items-center { align-items: center; } 
.justify-between { justify-content: space-between; } 
.justify-center { justify-content: center; } 
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-10px { gap: 10px; } .gap-15px { gap: 15px; }

.line-height-18 { line-height: 1.8; }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }

/* --- SEMANTIC COMPONENTS --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; width: 100%; }
section { padding: 120px 0 0 0; }
.section-title { font-size: 3rem; margin-bottom: 1rem; text-align: center; letter-spacing: -1px; }
.highlight { color: var(--primary); }

.site-footer { background: var(--primary); color: white; padding: 0.8rem 0; text-align: center; margin-top: auto; width: 100%; position: relative; z-index: 10; overflow: hidden; }
.site-footer p { margin: 0; }

.hero { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { position: relative; z-index: 1; text-align: left; }

.nav-brand-link { text-decoration: none; }
.meta-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

.admin-form-group { display: flex; flex-direction: column; }
.admin-label { font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.admin-logo { height: 50px; margin-bottom: 1rem; }

/* Desktop Grid Logic */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
#project-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 992px) { .grid, #project-grid { grid-template-columns: repeat(2, 1fr); } }

.card { background: #ffffff; border-radius: 16px; padding: 1.5rem; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: var(--card-shadow); transition: var(--transition); display: flex; flex-direction: column; position: relative; z-index: 2; }
.card:hover { transform: translateY(-8px); border-color: rgba(0, 185, 142, 0.4); box-shadow: var(--card-shadow-hover); }

.card-img-top { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; border: 2px solid rgba(0, 185, 142, 0.3); }

.card-info { display: flex; flex-direction: column; flex: 1; height: 100%; }
.card-info .mt-auto { margin-top: auto; }

.card-date { font-size: 0.9rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.card-excerpt { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1.5rem; text-align: justify; text-justify: inter-character; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: -0.5px; }

.tag-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.tag { font-size: 0.8rem; background: var(--bg-light); padding: 6px 12px; border-radius: 20px; color: var(--text-muted); font-weight: 600; border: 1px solid var(--border-color); }
.card-link { color: var(--primary); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.card-link:hover { color: var(--primary-hover); }

/* --- ANIMATIONS & CORE UI --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.animate-up { opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.btn { display: inline-flex; justify-content: center; align-items: center; padding: 14px 32px; border-radius: 50px; font-weight: 500; text-decoration: none; transition: var(--transition); border: 2px solid transparent; cursor: pointer; }
.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 185, 142, 0.2); }
.btn-outline { background-color: transparent; border-color: var(--border-color); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); }

/* --- GRADIENT BUTTON (Orange/Red) --- */
.btn-gradient { background: linear-gradient(270deg, #ff4e50, #f9d423, #ff4e50); background-size: 300% 300%; color: white !important; border: none; animation: gradientShift 4s ease infinite; display: inline-flex; padding: 12px 32px; font-weight: 600; }
.btn-gradient:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(255, 78, 80, 0.3); }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

header { position: fixed; width: 100%; top: 0; background: linear-gradient(90deg, #ffffff 0%, rgba(0, 185, 142, 0.08) 100%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border-color); transition: var(--transition); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: var(--transition); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--primary); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.hamburger span { display: block; width: 25px; height: 2px; background: var(--text-main); margin: 6px 0; transition: 0.3s; }

.mobile-follow-us { display: none; }

.page-header { padding: 160px 0 60px; position: relative; z-index: 2; }
.page-header h1 { font-size: 3.5rem; letter-spacing: -1.5px; margin-bottom: 1rem; }
.page-header p { font-size: 1.2rem; color: var(--text-muted); max-width: 600px; margin: 0; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 4rem; margin-bottom: 2rem; position: relative; z-index: 2; }

.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 3rem; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; width: 2px; height: 100%; background: rgba(0, 0, 0, 0.08); }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: -41px; top: 30px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 4px solid #ffffff; box-shadow: 0 0 0 4px rgba(0, 185, 142, 0.1); }
.timeline-date { display: inline-block; padding: 6px 16px; background: rgba(0, 185, 142, 0.1); color: var(--primary); border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.5rem; border: 1px solid rgba(0, 185, 142, 0.2); }

/* --- COLORFUL SOCIAL ICONS --- */
.social-icon, .share-btn { display: inline-flex; justify-content: center; align-items: center; border-radius: 50%; color: white !important; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; border: none; cursor: pointer; }
.social-icon { width: 55px; height: 55px; font-size: 1.6rem; }
.share-btn { width: 36px; height: 36px; font-size: 1.1rem; }
.social-icon:hover, .share-btn:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.2); }

.social-facebook, .share-fb { background: #1877F2 !important; } 
.social-twitter, .share-x { background: #14171A !important; } 
.social-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; } 
.social-youtube { background: #FF0000 !important; } 
.social-linkedin, .share-in { background: #0A66C2 !important; } 
.social-whatsapp, .share-wa { background: #25D366 !important; }
.share-email, .social-email { background: #EA4335 !important; } 
.share-copy { background: #6b7280 !important; }

/* Admin UI */
.auth-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.auth-container { background: #fff; padding: 3rem; border-radius: 16px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); width: 100%; max-width: 400px; text-align: center; }
.auth-input { width: 100%; padding: 14px; margin-bottom: 1rem; border: 1px solid var(--border-color); border-radius: 8px; font-family: inherit; }
.admin-dashboard { display: none; min-height: 100vh; padding-top: 80px; position: relative; z-index: 2; }
.admin-sidebar { width: 250px; background: #fff; height: calc(100vh - 80px); position: fixed; padding: 2rem; border-right: 1px solid var(--border-color); }
.admin-sidebar ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.admin-sidebar a { text-decoration: none; color: var(--text-muted); font-weight: 500; display: block; padding: 10px; border-radius: 8px; transition: var(--transition); }
.admin-sidebar a:hover { background: rgba(0, 185, 142, 0.1); color: var(--primary); }
.admin-main { margin-left: 250px; padding: 3rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.editor-box { background: #fff; padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 2rem; box-shadow: var(--card-shadow); }
.ql-container { font-family: 'Inter', sans-serif !important; font-size: 1rem !important; border-radius: 0 0 8px 8px; }
.ql-toolbar { border-radius: 8px 8px 0 0; background: #f9fafb; }
.ql-editor { min-height: 300px; max-height: 600px; overflow-y: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.5rem 2rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--primary); }
.stat-card h4 { color: var(--text-muted); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.stat-card .number { font-size: 2.5rem; font-weight: 700; color: var(--text-main); line-height: 1; }
.chart-container { background: #fff; padding: 2rem; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); margin-bottom: 2rem; width: 100%; max-height: 400px; }

/* Admin Panel List Items */
.admin-list-item { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 2rem; background: #ffffff; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: all 0.2s ease; }
.admin-list-item:hover { border-color: rgba(0, 185, 142, 0.3); box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.admin-list-info { display: flex; flex-direction: column; gap: 6px; }
.admin-list-type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); font-weight: 700; }
.admin-list-title { font-size: 1.25rem; margin: 0; color: var(--text-main); font-weight: 700; }
.admin-list-date { font-size: 0.85rem; color: var(--text-muted); }
.admin-list-actions { display: flex; gap: 12px; align-items: center; }
.admin-list-actions .btn { padding: 10px 20px; font-size: 0.9rem; }
.btn-danger { background-color: #ef4444; color: white; border: 2px solid transparent; }
.btn-danger:hover { background-color: #dc2626; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(239, 68, 68, 0.2); }

/* --- THE GLOBAL BACKGROUND --- */
.global-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; overflow: hidden; background: #ffffff; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.15; will-change: transform; transform: translateZ(0); }
.orb-1 { width: 600px; height: 600px; background: var(--primary); top: -10%; left: -10%; animation: wander1 20s infinite ease-in-out alternate; }
.orb-2 { width: 500px; height: 500px; background: #0A66C2; bottom: -10%; right: -10%; animation: wander2 25s infinite ease-in-out alternate; }
.orb-3 { width: 400px; height: 400px; background: #00e5ff; top: 40%; left: 30%; animation: wander3 22s infinite ease-in-out alternate; }

@keyframes wander1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(60vw, 40vh) scale(1.2); } }
@keyframes wander2 { 0% { transform: translate(0, 0) scale(1.1); } 100% { transform: translate(-50vw, -40vh) scale(0.9); } }
@keyframes wander3 { 0% { transform: translate(0, 0) scale(0.9); } 100% { transform: translate(40vw, -30vh) scale(1.3); } }

/* --- Bouncing "i" & Logo --- */
.custom-i-wrapper { position: relative; display: inline-block; }
.i-dot { position: absolute; top: 0.1em; left: 50%; transform: translateX(-50%); width: 0.15em; height: 0.15em; background-color: currentColor; border-radius: 50%; animation: bounceDot 0.6s ease-in-out backwards; }
@keyframes bounceDot { 0% { transform: translate(-50%, 0) scale(1); background-color: currentColor; } 40% { transform: translate(-50%, -20px) scale(1.4); background-color: currentColor; } 100% { transform: translate(-50%, 0) scale(1); background-color: currentColor; } }

.text-logo { font-family: 'Dancing Script', cursive; font-size: 2.5rem; font-weight: 700; letter-spacing: 1px; white-space: nowrap; color: var(--text-main); display: inline-block; transition: color 0.3s; }
.text-logo:hover { background: radial-gradient(circle 45px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--primary) 0%, #00B98E 60%, var(--text-main) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================
   EDITORIAL "NEWS APP" DETAILS PAGE CSS 
========================================================== */
.wide-container { max-width: 1200px !important; margin: 0 auto; padding: 0 40px; width: 100%; box-sizing: border-box; }
.news-title { font-size: 2.2rem; letter-spacing: -0.5px; line-height: 1.25; margin-bottom: 0.8rem; color: var(--text-main); font-weight: 700; }
.news-meta { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.5rem; display: flex; align-items: center; }
.news-author { color: var(--text-main); font-weight: 600; text-transform: capitalize; }
.news-divider { margin: 0 10px; color: #d1d5db; }

.article-content { width: 100%; display: block; font-size: 1.15rem; line-height: 1.8; color: var(--text-main); text-align: left; word-wrap: break-word; overflow-wrap: break-word; max-width: 100%; }
.article-content p { margin-bottom: 1.5rem; width: 100%; max-width: 100%; }
.article-content img, .article-content iframe, .article-content video { max-width: 100% !important; height: auto; display: block; margin: 2rem auto !important; border-radius: 8px; border: 1px solid var(--border-color); box-sizing: border-box; }
.detail-hero-img { max-width: 100% !important; height: auto !important; box-sizing: border-box; display: block; margin: 0 auto; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 2rem; max-width: 100%; }
.article-content h1, .article-content h2, .article-content h3 { margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-main); }
.article-content a { color: var(--primary); font-weight: 600; text-decoration: none; }

/* ==========================================================
   INTERACTION BAR (Desktop & Global)
========================================================== */
.meta-share-wrapper { display: block; }
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    width: 100%;
}

/* FIXED: This class acts like a spring, pushing the reactions far to the right */
.reaction-container { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    margin-left: auto; /* Magic line that forces gap between social and reactions */
}

.reaction-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 50px;
    border: 1px solid var(--border-color); background: #ffffff; color: var(--text-muted);
    font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.reaction-btn i { font-size: 1.1rem; }
.reaction-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

.reaction-btn:hover, .reaction-btn.active-like { background: #e0f2fe; color: #0ea5e9; border-color: #0ea5e9; }
.reaction-btn#btn-dislike:hover, .reaction-btn.active-dislike { background: #f3f4f6; color: #4b5563; border-color: #4b5563; }
.reaction-btn#btn-love:hover, .reaction-btn.active-love { background: #fce7f3; color: #e11d48; border-color: #e11d48; }

/* ==========================================================
   HOMEPAGE SWIPER & SKELETON CARDS
========================================================== */
.swiper-fade-section .swiper { width: 100%; padding: 10px 5% 40px 5% !important; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%); }
.swiper-slide { height: auto; }
.h-full { height: 100%; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: var(--text-muted); opacity: 0.5; transition: all 0.3s ease; border-radius: 10px; }
.swiper-pagination-bullet-active { width: 25px; background: var(--primary); opacity: 1; }
.skeleton-img { background: rgba(0, 0, 0, 0.03) !important; border: 2px dashed rgba(0, 0, 0, 0.1) !important; }
.skeleton-img span { letter-spacing: 0.5px; opacity: 0.6; }

/* ==========================================================
   ABOUT PAGE PULL-UP & HERO IMAGE
========================================================== */
.about-hero-layout { gap: 2rem; }
.about-text-col { flex: 1; }
.about-image-col { flex: 0 0 auto; width: 350px; }
.about-hero-img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 16px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); transition: var(--transition); }
.about-hero-img:hover { transform: translateY(-5px); box-shadow: var(--card-shadow-hover); border-color: rgba(0, 185, 142, 0.3); }
.journey-pull-up { margin-top: -140px; position: relative; z-index: 2; }

/* ==========================================================
   QUILL EDITOR INLINE IMAGES (Newspaper Float Layout)
========================================================== */
.article-content .custom-article-img,
.ql-editor .custom-article-img { border-radius: 8px; border: 1px solid var(--border-color); box-shadow: var(--card-shadow); }
.article-content .media-layout-full,
.ql-editor .media-layout-full { width: 100% !important; display: block !important; margin: 1.5rem auto !important; clear: both; height: auto; }
.article-content .media-layout-left,
.ql-editor .media-layout-left { float: left !important; width: 45% !important; max-width: 500px !important; margin: 0.5rem 1rem 1rem 0 !important; clear: both; height: auto; }
.article-content .media-layout-right,
.ql-editor .media-layout-right { float: right !important; width: 45% !important; max-width: 500px !important; margin: 0.5rem 0 1rem 1rem !important; clear: both; height: auto; }
.article-content::after, .ql-editor::after { content: ""; display: table; clear: both; }

/* ==========================================================
   FLEXBOX LAYOUT REORDERING (Top-Down Flow)
========================================================== */
.details-layout-wrapper { display: flex; flex-direction: column; }
.details-back { order: 1; }
.details-title { order: 2; }
.meta-share-wrapper { order: 3; }
.details-hero { order: 4; }
.details-action { order: 5; }
.details-content { order: 6; }

/* ==========================================================
   MOBILE RESPONSIVENESS (Strict Layout Rules)
========================================================== */
@media (max-width: 768px) {
    .container, .wide-container { padding: 0 20px; max-width: 100%; overflow-x: hidden; }
    
    .logo-hidden { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .text-logo { font-size: 1.8rem; }
    .page-header { padding: 100px 0 30px; } 
    
    .text-5xl, .page-header h1, .section-title { font-size: 2.2rem; letter-spacing: -1px; line-height: 1.2; }
    .text-3xl { font-size: 1.8rem; letter-spacing: -0.5px; }

    .hero-content p.text-muted { max-width: 285px !important; font-size: 0.95rem; line-height: 1.6; text-align: left !important; margin-right: auto; margin-left: 0; }
    
    .home-single-btn { padding: 10px 24px !important; font-size: 0.9rem !important; width: fit-content !important; display: inline-flex; }
    .page-header p, .timeline-item p, .card-excerpt { font-size: 1rem; line-height: 1.6; text-align: left !important; }
    
    .about-image-col { display: none !important; }
    .about-hero-layout { display: block; }
    
    .journey-pull-up { margin-top: 20px !important; }
    
    .nav-links { position: fixed; right: -100%; top: 0; height: 100vh; width: 100%; background: #ffffff; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 70px 20px 20px 20px; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); gap: 0; box-shadow: none; border-top: none; z-index: 1001; overflow-y: auto; }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.1rem; font-weight: 500; color: #111827; display: block; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.06); width: 100%; border-radius: 0; }
    .nav-links a::after { display: none; }
    
    .mobile-follow-us { display: block !important; margin-top: 2rem; text-align: left; border-bottom: none !important; width: 100%; }
    .mobile-follow-us .follow-text { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
    .menu-social-icons { display: flex; justify-content: flex-start; gap: 12px; }
    .menu-social-icons .social-icon { width: 36px; height: 36px; font-size: 1.3rem; background: transparent !important; color: #4b5563 !important; border: none !important; box-shadow: none !important; padding: 5px; }
    .menu-social-icons .social-icon:hover { color: #111827 !important; background: transparent !important; }
    
    .hamburger { display: block; z-index: 1002; position: relative; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: var(--text-main); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); background-color: var(--text-main); }

    .news-title { font-size: 1.65rem; }
    .news-meta { font-size: 0.85rem; margin-bottom: 1rem; }
    .article-content { font-size: 1rem !important; line-height: 1.65 !important; text-align: left !important; overflow-x: hidden; max-width: 100%; width: 100%; }
    .article-content p { margin-bottom: 1.1rem; max-width: 100%; }

    #social-icons-display .social-icon { width: 36px; height: 36px; font-size: 1rem; }

    .site-footer { padding: 0.8rem 10px; }
    .site-footer p { font-size: 0.7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.2px; }

    /* ==========================================================
       MOBILE LIST VIEW (Times of India Style)
    ========================================================== */
    .grid, #project-grid { gap: 0; display: block; }
    
    .card.featured-card { 
        padding: 1.2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
        border: 1px solid rgba(0,0,0,0.08); max-width: 100%; width: 100%; box-sizing: border-box; 
        margin-bottom: 1.5rem;
    }
    .card.featured-card .card-img-top { height: 200px; margin-bottom: 1rem; border-radius: 8px; }
    .card.featured-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; line-height: 1.3; }

    .card.list-card { padding: 0.8rem; border: 1px solid rgba(0, 185, 142, 0.2); border-radius: 12px; box-shadow: 0 0 12px rgba(0, 185, 142, 0.1); flex-direction: row; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 12px; }
    .card.list-card:last-child { margin-bottom: 0; }
    .card.list-card .card-img-top { width: 110px; height: 80px; order: 2; margin-bottom: 0; border-radius: 8px; border: 1px solid rgba(0,0,0,0.05); }
    .card.list-card .card-info { order: 1; justify-content: center; }
    .card.list-card h3 { font-size: 1.05rem; margin-bottom: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .card.list-card .card-date, .card.list-card .tag-container, .card.list-card .card-excerpt, .card.list-card .card-link { display: none; }

    .timeline { padding-left: 1.5rem; }
    .timeline::before { left: 8px; }
    .timeline-dot { left: -21px; width: 16px; height: 16px; top: 32px; border-width: 3px; }
    
    .detail-hero-img { border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 8px !important; margin-bottom: 1.5rem !important; box-shadow: none !important; max-width: 100% !important; box-sizing: border-box; }

    .admin-list-item { flex-direction: column; align-items: flex-start; gap: 15px; padding: 1.5rem; }
    .admin-list-actions { width: 100%; display: flex; }
    .admin-list-actions .btn { flex: 1; text-align: center; justify-content: center; }

    .orb-1 { width: 300px; height: 300px; } .orb-2 { width: 250px; height: 250px; } .orb-3 { width: 200px; height: 200px; filter: blur(60px); }
    .admin-sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); }
    .admin-main { margin-left: 0; padding: 1.5rem; }
    .swiper-fade-section .swiper { padding-left: 0 !important; padding-right: 0 !important; mask-image: none; -webkit-mask-image: none; }

    .article-content .media-layout-left, 
    .ql-editor .media-layout-left,
    .article-content .media-layout-right, 
    .ql-editor .media-layout-right { float: none !important; width: 100% !important; max-width: 100% !important; margin: 1.5rem 0 !important; }

    /* ==========================================================
       FIXED: INLINE MOBILE META & SHARE BAR
    ========================================================== */
    .meta-share-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap; 
        gap: 10px;
        margin-bottom: 1.5rem;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .news-meta.details-meta { margin-bottom: 0; font-size: 0.8rem; flex-shrink: 0; }
    
    /* Makes sure share bar uses rest of the space, allowing margin-left: auto to work */
    .share-buttons.details-share {
        flex: 1; 
        display: flex;
        margin-bottom: 0;
        padding: 0;
        border: none;
        gap: 8px;
        min-width: 250px; 
    }
    
    .share-buttons .social-wrapper { gap: 5px; }
    
    /* Safely shrinks only the social sharing icons down on mobile */
    .share-buttons .share-btn, .share-buttons .social-icon { width: 26px !important; height: 26px !important; font-size: 0.8rem !important; }
    
    .reaction-container { gap: 5px; margin-left: auto; }
    .reaction-btn { padding: 4px 8px; font-size: 0.75rem; gap: 4px; }
    .reaction-btn i { font-size: 0.8rem; }
}