/* ===================================================
   RESET + BASE
=================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f9fb;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===================================================
   LAYOUT
=================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

main {
  padding: 30px 0;
}

/* ===================================================
   HEADER
=================================================== */
header {
  background: #1a2a44;
  color: #fff;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: relative;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo img {
  height: 50px;
}

header .menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 10px;
}

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

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover { color: #ffdd57; }

/* --- Mobile Menu --- */
@media (max-width: 768px) {
  header .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #1a2a44;
    padding: 20px;
    flex-direction: column;
    z-index: 1000;
  }
  nav.active { display: flex; }
  nav ul { flex-direction: column; gap: 15px; width: 100%; }
  nav ul li a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.2rem;
  }
}

/* ===================================================
   FEATURED IMAGE
=================================================== */
.featured-image {
  margin-bottom: 20px;
  text-align: center;
}

.featured-image img {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.featured-image img:hover {
  transform: scale(1.02);
}

/* ===================================================
   MAIN CONTENT
=================================================== */
.article, .page {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 { font-size: 2rem; margin-bottom: 20px; color: #1a2a44; }
h2 { font-size: 1.5rem; margin-bottom: 15px; }
p  { margin-bottom: 15px; }

/* ===================================================
   BUTTONS
=================================================== */
a.btn {
  background: #e63946;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
a.btn:hover { background: #d62828; }

/* ===================================================
   FORMS
=================================================== */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
}
form label { margin-bottom: 5px; }
form input, form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form textarea { height: 150px; resize: vertical; }
form button {
  background: #1a2a44;
  color: white;
  padding: 10px;
  border: none; border-radius: 5px;
  cursor: pointer; transition: background 0.3s;
}
form button:hover { background: #0a1f36; }

/* ===================================================
   FOOTER
=================================================== */
footer {
  background: #0a1f36;
  color: white;
  text-align: center;
  padding: 20px 10px;
  margin-top: 30px;
  border-top: 3px solid #e63946;
}
footer a { color: #ffdd57; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ===================================================
   DASHBOARD
=================================================== */
.dashboard-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.dashboard-container h1 { font-size: 28px; margin-bottom: 10px; color: #1a2a44; }
.dashboard-container p  { font-size: 16px; margin-bottom: 25px; color: #555; }

.dashboard-menu {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.dashboard-menu li {
  background: #1a2a44;
  border-radius: 10px;
  transition: all 0.3s ease;
}
.dashboard-menu li:hover {
  background: #2c3e60;
  transform: translateY(-3px);
}
.dashboard-menu a {
  display: block;
  color: #fff;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}
.dashboard-menu a.logout { background: #c0392b; }
.dashboard-menu a.logout:hover { background: #e74c3c; }
/* =======================
   MEDIA LIBRARY
======================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.media-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.media-item img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.media-item p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #333;
}
.media-item .btn-danger {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.media-item .btn-danger:hover {
  background: #c0392b;
}

