:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

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

header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
}

.logo span { color: var(--primary); }

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

.admin-btn {
    background: var(--primary);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.logout-btn:hover { background: #d9381e; }

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('https://images.unsplash.com/photo-1436491865332-7a61a109c05d?auto=format&fit=crop&w=1200');
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.search-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover { opacity: 0.9; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card:hover { transform: translateY(-5px); }

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content { padding: 20px; }

.news-section { margin: 50px 0; }

.news-item {
    background: #e2e8f0;
    padding: 15px;
    border-left: 4px solid var(--primary);
    margin-bottom: 10px;
    border-radius: 0 5px 5px 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    width: 400px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
}

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

#newsForm input, #newsForm textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
}

/* შეტყობინებების ბლოკი */
.message-box {
    text-align: center;
    padding: 15px;
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
    margin: 10px auto;
    max-width: 1200px;
    border-radius: 5px;
}