* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
}

/* --- NEW COMPREHENSIVE HEADER STYLING --- */
.site-header {
    background-color: #1a252f;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo-img {
    max-height: 100px; /* Constrains the logo to your exact maximum target height */
    height: auto;      /* Automatically scales down if the header container is smaller than 100px */
    width: auto;       /* Keeps the original aspect ratio perfectly intact without distortion */
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 55px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text .highlight {
    color: #3498db;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #b4c5d6;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    border-bottom: 2px solid #3498db;
}

.btn-subscribe {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn-subscribe:hover {
    background-color: #2980b9;
}


/* --- MAIN WORKSPACE WORKFLOW --- */
.container {
    display: flex;
    max-width: 100%;       
    margin: 30px auto;
    gap: 30px;
    padding: 0 30px;       
}

/* LEFT SIDEBAR */
.sidebar {
    width: 30%;
    min-width: 30%;       
    max-width: 30%;       
    height: 800px;        
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow-y: auto;    
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.sidebar li a {
    text-decoration: none;
    color: #34495e;
    font-weight: 600;
    display: block;
}

.sidebar li a:hover { color: #3498db; }
.sidebar .date { font-size: 11px; color: #95a5a6; }

/* HEADLINES FRAME */
.main-content {
    flex: 1;              
    min-width: 0;         
}

.news-section {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.news-card {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.news-card-text {
    flex: 2;
}

.news-card h3 { margin-bottom: 10px; color: #2c3e50; }
.read-more { display: inline-block; margin-top: 10px; color: #3498db; text-decoration: none; font-weight: bold; }

/* PAGINATION ARCHITECTURE */
.pagination { margin-top: 20px; }
.pagination a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin-right: 5px;
    border-radius: 4px;
}
.pagination a.active { background-color: #3498db; color: white; border: 1px solid #3498db; }
.pagination a:hover:not(.active) { background-color: #ddd; }

/* CORE ARTICLE IMAGES */
.article-image-container {
    flex: 1;
    max-width: 200px;
    height: 140px;
    overflow: hidden;
    border-radius: 6px;
}

.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 5-LINE WEBKIT ENGINE CLAMP */
.line-clamp-5 {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;  
    overflow: hidden;
    line-height: 1.6;
    max-height: calc(1.6em * 5); 
}

.line-clamp-5 p {
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

/* EXECUTIVE SECTION STRETCHED TO 100% RUNNING ON BOTTOM LAYER */
.board-section {
    background: #fff;
    padding: 50px 30px;   
    box-shadow: 0 -2px 15px rgba(0,0,0,0.04); 
    width: 100%;          
    float: left;          
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px;
    max-width: 1400px;    
    margin: 0 auto;
}

.board-card {
    text-align: center;
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 6px;
    border: 1px solid #eef0f2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.board-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.board-card h4 { color: #2c3e50; margin-bottom: 5px; }
.board-card .role { font-size: 13px; color: #7f8c8d; margin-bottom: 15px; font-weight: 500; }

.bio-btn {
    display: inline-block;
    padding: 6px 15px;
    background: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
}
.bio-btn:hover { background: #34495e; }


/* --- NEW PRO COMPREHENSIVE FOOTER SECTION --- */
.site-footer {
    background-color: #1a252f;
    color: #ecf0f1;
    padding: 60px 0 0 0;
    float: left;
    width: 100%;
    font-size: 14px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 30px 40px 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background-color: #3498db;
}

.brand-col h4 span {
    color: #3498db;
}

.brand-col p {
    line-height: 1.6;
    color: #95a5a6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background-color: #2c3e50;
    color: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 16px;
}

.social-links a:hover {
    background-color: #3498db;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #95a5a6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #fff;
    padding-left: 4px;
}

.contact-col p {
    margin-bottom: 12px;
    line-height: 1.5;
    color: #95a5a6;
}

.contact-col strong {
    color: #fff;
}

.footer-bottom {
    background-color: #111a22;
    padding: 20px 30px;
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    border-top: 1px solid #2c3e50;
    width: 100%;
}


/* --- POP-UP MODAL DEFINITIONS --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.modal-overlay:target {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    text-decoration: none;
    color: #aaa;
}
.close-btn:hover { color: #333; }

.modal-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}
.modal-role { color: #3498db; margin-bottom: 15px; }
.bio-text { text-align: left; line-height: 1.6; font-size: 14px; color: #555; max-height: 250px; overflow-y: auto;}


/* SCREEN BREAKPOINT ADAPTATION LAYER */
@media(max-width: 1024px) {
    .container { flex-direction: column; }
    .sidebar { 
        width: 100%; 
        min-width: 100%; 
        max-width: 100%; 
        height: auto;     
    } 
    .board-grid, .footer-container { grid-template-columns: repeat(2, 1fr); }
    .header-container { flex-direction: column; gap: 15px; text-align: center; }
}

@media(max-width: 600px) {
    .board-grid, .footer-container { grid-template-columns: 1fr; }
    .news-card { flex-direction: column; }
    .article-image-container { max-width: 100%; width: 100%; }
    .main-nav { flex-direction: column; gap: 10px; }
}

/* --- ADMIN PANEL SYSTEM EXTENSIONS --- */
.admin-body {
    background-color: #eef2f5;
}

.admin-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 30px;
    gap: 30px;
}

.admin-main {
    flex: 2;
    min-width: 0;
}

.admin-sidebar {
    flex: 1;
    min-width: 0;
}

.admin-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.admin-card h2 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* ADMIN FORM CONFIGURATION */
.admin-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.admin-form input[type="text"],
.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #334155;
    background-color: #f8fafc;
    transition: border-color 0.2s, background-color 0.2s;
}

.admin-form input[type="text"]:focus,
.admin-form textarea:focus {
    border-color: #3498db;
    background-color: #fff;
    outline: none;
}

.admin-form input[type="file"] {
    padding: 8px 0;
    font-size: 14px;
}

.form-help {
    font-size: 12px;
    color: #64748b;
}

.btn-publish {
    background-color: #2ecc71;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-publish:hover { background-color: #27ae60; }

/* ALERT NOTIFICATION BANNERS */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.alert.success { background-color: #def7ec; color: #03543f; border: 1px solid #bcf0da; }
.alert.error { background-color: #fde8e8; color: #9b1c1c; border: 1px solid #fbd5d5; }

/* RECENT POST MANAGEMENT ROW ITEM */
.article-log-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 650px;
    overflow-y: auto;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    gap: 15px;
}

.log-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.log-info strong {
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.log-date {
    font-size: 11px;
    color: #94a3b8;
}

.btn-delete {
    background-color: #e74c3c;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.btn-delete:hover { background-color: #c0392b; }

@media(max-width: 1024px) {
    .admin-wrapper { flex-direction: column; }
}

/* --- SOCIAL SHARE BUTTONS --- */
.share-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: -10px 0 30px 0; /* Sits nicely right between meta-info and content */
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.share-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #5c3a41; /* Matches your dark onion palette */
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.9);
}

/* Platform Branding Colors */
.x-btn {
    background-color: #000000;
}

.linkedin-btn {
    background-color: #0077b5;
}

.facebook-btn {
    background-color: #1877f2;
}