
/* ================= GLOBAL ================= */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    background: #f4f6f9;
    color: #111;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    border-bottom: 1px solid #eee;
}

.left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px;
}

.brand {
    font-size: 22px;
    font-weight: bold;
}

.menu {
    display: flex;
    gap: 25px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.2s;
}

.menu a:hover {
    color: #007bff;
}

/* RIGHT */
.right {
    display: flex;
    gap: 10px;
    align-items: center;
}

#search {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ================= HERO ================= */
.hero {
    height: 70vh;
    background: url("1.png") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    width:100%;
    height:100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-overlay {
    position: relative;
    color: white;
    text-align: center;
    animation: fadeIn 1.2s ease;
}

.hero-overlay h1 {
    font-size: 48px;
    margin: 0;
}

.hero-overlay p {
    font-size: 20px;
    margin-top: 10px;
}

/* ================= ANIMATION ================= */
@keyframes fadeIn {
    from {opacity:0; transform: translateY(20px);}
    to {opacity:1; transform: translateY(0);}
}

/* ================= RECENT POSTS ================= */
.recent-posts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px;
}

.recent-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.recent-card img {
    width: 100%;
}

.recent-card h3 {
    padding: 15px;
}

/* ================= CATEGORY STRIP ================= */
.categories-section {
    display: flex;
    gap: 20px;
    padding: 20px 30px;
    overflow-x: auto;
}

.category-card {
    min-width: 220px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    transition: 0.3s;
    cursor: pointer;
}

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

.category-card h4 {
    padding: 10px;
}

/* ================= MAIN GRID ================= */
.container {
    padding: 30px;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
}

.post img {
    width: 100%;
}

.post h3 {
    padding: 10px;
}

.post p {
    padding: 0 10px 10px;
}

/* ================= HOVER ================= */
.post:hover,
.recent-card:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= BUTTONS ================= */
.btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #0056b3;
}

/* ================= POPUP ================= */
.popup {
    display: none;
    position: fixed;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.5);
    justify-content:center;
    align-items:center;
}

.popup-content {
    background:white;
    padding:30px;
    border-radius:10px;
    animation: fadeIn 0.4s ease;
}

/* ================= POST PAGE ================= */
.post-page {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
}

.post-image {
    width: 100%;
    border-radius: 12px;
}

.post-page h1 {
    font-size: 34px;
}

.post-page p {
    font-size: 18px;
    line-height: 1.8;
}

/* ================= ADMIN ================= */
.admin-body {
    background: #f4f6f9;
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
}

.admin-container {
    background:white;
    padding:30px;
    border-radius:12px;
    width:420px;
    box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.admin-title {
    text-align:center;
    margin-bottom:20px;
}

.admin-container input,
.admin-container select,
.admin-container textarea {
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:6px;
}

#content {
    height:180px;
}

.post-btn {
    width:100%;
    background:#007bff;
    color:white;
    padding:12px;
    border:none;
    border-radius:6px;
}

.post-btn:hover {
    background:#0056b3;
}