/* ================================
   Pastel Minimal Template CSS
   ================================ */

/* === GLOBAL STYLES ===
   - font-family: modern, clean sans-serif
   - pastel gradient background
   - default text color and remove default margin/padding
*/
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background: linear-gradient(135deg, #ffe0f0, #e0f7ff);
}

/* === HEADER ===
   - Top title bar
   - Centered heading + subtext
   - Light pastel background with subtle shadow
*/
header {
  background-color: #f7d9e0;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2rem;
  margin: 0.2rem 0;
}

header p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

/* === MAIN CONTAINER ===
   - Flex layout: sidebar + content
   - gap for spacing
*/
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 1rem auto;
  gap: 1rem;
  padding: 0 1rem;
}

/* === SIDEBAR ===
   - Fixed width column
   - Sticky so it stays visible on scroll
   - Rounded corners + light pastel bg
*/
aside {
  width: 250px;
  background-color: #fff0f5;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  position: sticky;
  top: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Profile picture in sidebar */
aside img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid #ffb6c1;
  margin-bottom: 1rem;
}

/* Sidebar navigation links */
aside ul {
  list-style: none;
  padding: 0;
}

aside ul li {
  margin: 0.5rem 0;
}

aside ul li a {
  color: #ff69b4;
  font-weight: bold;
  text-decoration: none;
}

aside ul li a:hover {
  text-decoration: underline;
}

/* === CONTENT AREA ===
   - Flex-grow content section
*/
.content {
  flex: 1;
}

/* === BLOG BOX ===
   - Fixed height, scrollable box
   - Rounded corners, light pastel background
   - Padding for text readability
*/
.blog-post {
  border: 2px solid #ffb6c1;
  background-color: #fff0f5;
  margin-bottom: 1rem;
  height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
}

.blog-post h2 {
  background-color: #ffd6e8;
  padding: 0.5rem;
  margin: 0;
  text-align: center;
  flex-shrink: 0; /* keeps title always visible */
}

.blog-content {
  padding: 0.5rem;
  flex-grow: 1;
  font-size: 0.9rem;
  color: #444;
}

/* === GALLERY BOX ===
   - Same as blog: scrollable fixed height
*/
.gallery-box {
  border: 2px solid #add8e6;
  background-color: #e0f7ff;
  height: 250px;
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 10px;
}

.gallery-box h2 {
  background-color: #b3e0ff;
  padding: 0.5rem;
  margin: 0;
  text-align: center;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
}

.photo-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #add8e6;
  padding: 2px;
  box-sizing: border-box;
}

/* === FOOTER ===
   - Pastel footer with badge
*/
footer {
  background-color: #f7d9e0;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  border-top: 1px solid #ffb6c1;
}

footer .made-by {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

footer .made-by img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffb6c1;
}

/* === MOBILE RESPONSIVENESS ===
   - Stack sidebar above content on narrow screens
*/
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  aside {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
  }

  .content {
    width: 100%;
  }

  footer .made-by {
    position: static;
    display: block;
    margin: 0.5rem auto 0;
    transform: none;
  }
}
