:root {
    --primary-color: #2F4F4F; /* Darker, more corporate Slate Gray/Green */
    --primary-dark: #1C2E2E;
    --primary-light: #4A7A7A;
    --secondary-bg: #f5f7f8;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #555555;
    --accent-gold: #B8860B; /* Dark Goldenrod for a classic institutional touch */
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.08);
    --radius-lg: 4px; /* More corporate, sharper edges */
    --radius-md: 3px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Standard institutional font */
    line-height: 1.7;
    color: var(--text-main);
    background-color: #f0f2f5;
    background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    overflow-x: hidden;
}

.btn-more {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.btn-more:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #fff;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Corporate Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.antet-top {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.antet-img {
    width: 100%;
    max-height: 160px; /* Increased size */
    object-fit: contain;
    padding: 15px 0;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    max-height: 95px;
    transition: var(--transition);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2px;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}

nav ul li a:hover {
    color: var(--primary-color);
    background: #f9f9f9;
    border-bottom: 3px solid var(--primary-color);
}

/* Mega Dropdown Style */
nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 10px 0;
    z-index: 1001;
    border: 1px solid #e0e0e0;
    border-top: 3px solid var(--primary-color);
}

nav ul li:hover > ul {
    display: block;
    animation: slideUp 0.3s ease;
}

nav ul li ul li ul {
    top: -3px;
    left: 100%;
    border-top: 3px solid var(--primary-color);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

nav ul li ul li a {
    padding: 12px 25px;
    font-size: 0.85rem;
    text-transform: none;
    border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
}

nav ul li ul li a:hover {
    background: #f9f9f9;
    padding-left: 30px;
    border-bottom: 1px solid var(--primary-color);
}

/* Login Page */
.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.login-card {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
}

/* Layout with Sidebar */
.grid-sidebar {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    border-top: 4px solid var(--primary-color);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget-list li:last-child { border: none; }

.widget-list a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.widget-list a:hover {
    color: var(--primary-color);
}

/* Advanced Visual Editor (Elementor Style) */
.visual-editor-canvas {
    background: #f0f2f5;
    padding: 40px;
    border: 2px dashed #ccc;
    min-height: 600px;
    border-radius: var(--radius-lg);
}

.ve-section {
    background: #fff;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    position: relative;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.ve-section:hover {
    border-color: var(--primary-color);
}

.ve-section-tools {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 2px 15px;
    border-radius: 20px;
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    z-index: 10;
    opacity: 0;
    transition: 0.3s;
}

.ve-section:hover .ve-section-tools { opacity: 1; }

.ve-grid {
    display: grid;
    gap: 20px;
}

.ve-column {
    background: #fdfdfd;
    border: 1px dashed #eee;
    min-height: 100px;
    padding: 15px;
    border-radius: 4px;
}

.ve-widget {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    cursor: default;
}

.ve-widget:hover { box-shadow: var(--shadow-soft); }

.ve-widget-tools {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.ve-tool-btn {
    width: 24px;
    height: 24px;
    background: #eee;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
}

.ve-tool-btn:hover { background: var(--primary-color); color: #fff; }

/* Rich Text Area (Word Style) */
.ve-text-editor {
    min-height: 50px;
    outline: none;
    line-height: 1.6;
}

.ve-text-editor b { font-weight: bold; }
.ve-text-editor i { font-style: italic; }

.ve-add-section-btn {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 2px dashed #ddd;
    color: #888;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
}

.ve-add-section-btn:hover {
    background: #f8f9fa;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ve-placeholder {
    color: #ccc;
    font-style: italic;
}

/* Modal Layout Choice */
.layout-choice {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.layout-box {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

.layout-box:hover { background: #f0f0f0; }

.layout-box div {
    height: 30px;
    background: #ccc;
    margin-bottom: 5px;
}

/* Sidebar */
.media-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.media-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}

/* Modern Hero Section */
.hero {
    position: relative;
    height: 750px;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

/* Section Cards & Layout */
.section-modern {
    padding: 100px 0;
}

.card-modern {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.section-title-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 50px;
    text-align: center;
}

.section-title-modern span {
    color: var(--primary-color);
}

/* Feature Boxes */
.feature-box {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    box-shadow: 0 8px 20px rgba(85, 107, 47, 0.3);
}

/* Improved Post Cards */
.post-card-modern {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.post-card-modern:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.post-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-tag {
    background: rgba(85, 107, 47, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-btn {
    margin-top: auto;
    padding-top: 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modern Footer */
footer {
    background: #1a1e12; /* Darker Forest Green */
    color: #f1f1f1;
    padding: 100px 0 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 8px;
}

.footer-bottom-modern {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
}

/* Mobile Fixes */
@media (max-width: 992px) {
    .header-main { flex-direction: column; gap: 20px; }
    .hero { height: 500px; }
    .hero-content h1 { font-size: 2.2rem; }
    .grid-3 { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 992px) {
    .header-main { flex-direction: column; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .leader-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}