/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* Hero */
/* Nav */
.nav {
  background: linear-gradient(to right, #4a90e2, #50e3c2);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
  border-radius: 8px;
}

.nav .container {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 2rem;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(to right, #4a90e2, #50e3c2);
  color: #0f0d0d;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 8px;
  margin-bottom: -1rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: #f9f9f9;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: #f9f9f9;
}


.nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: #f9f9f9;
  font-weight: 600;
}

.nav a:hover {
  color: #133bc1;
}
/* Main Grid */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Posts */
.post-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  margin-bottom: 2rem;
  transition: transform 0.2s;
}

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

.post-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.post-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.post-card .meta {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 1rem;
}

.post-card .read-more {
  text-decoration: none;
  color: #16599b;
  font-weight: 600;
}

.post-card .read-more:hover {
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Widget Container */
.widget {
  background: linear-gradient(145deg, #4a90e2, #50e3c2); /* two-tone gradient */
  color: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.widget h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.5rem;
}

.widget ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.widget ul li {
  margin-bottom: 0.5rem;
}

.widget ul li a {
  text-decoration: none;
  color: #e0f7fa; /* light color for readability */
  font-weight: 500;
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.widget ul li a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}


/* Footer */
footer {
  background: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  color: #777;
}

/* Responsive */
@media(max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* Post Detail (Flat Page Style) */
.post-detail-card {
  background: transparent; /* no separate card background */
  padding: 0; /* remove card padding */
  border-radius: 0; /* no rounded corners */
  box-shadow: none; /* remove shadow */
  margin-bottom: 2rem; /* keep some spacing below */
}

.post-detail-img {
  width: 100%;
  border-radius: 0; /* remove image rounding if you want full-width */
  margin-bottom: 1rem;
}

.post-detail-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000408;
}

.post-detail-content .meta {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c3e50;
}

/* Right-align nav only on post detail page */
.post-detail-page .nav .container {
  justify-content: flex-end;
}
.post-detail-page .nav .container a:hover {
  color: #11c84e; /* Yellow hover */
}

.hero-top .logo {
    display: inline-block;         /* like the social links */
    background: #dcebfc;           /* same blue background */
    padding: 5px 15px;            /* space around the logo */
    border-radius: 4px;            /* rounded corners */
    transition: transform 0.3s, box-shadow 0.3s;  /* smooth hover effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);       /* subtle shadow */
    max-height: 80px;              /* control size */
}

.hero-top .logo:hover {
    transform: scale(1.05);        /* slight grow on hover */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);       /* stronger shadow */
}

.logo {
  position: absolute;
  top: -10px;    /* distance from top of header */
  left: 10px;   /* distance from left of header */
  height: 100px; /* increase as needed */
  width: auto;  /* keep aspect ratio */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-container .nav-logo {
   position: absolute;
  height: 100px; /* adjust size */
  width: auto;
}
a {
  color: #0073e6;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #0056b3;
  text-decoration: underline;
}



