/* ===== Full-width front page wrapper ===== */
.em-frontpage-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 2rem 1rem;
  box-sizing: border-box;
  clear: both;
}

/* ===== Featured Story ===== */
.em-featured-section {
  text-align: center !important;
  margin: 0 auto 3rem !important;
  float: none !important;
  clear: both;
}
.em-featured-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .3s ease;
}
.em-featured-link:hover { transform: scale(1.02); }
.em-featured-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}
.em-featured-headline {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 1rem auto 0.5rem;
  line-height: 1.2;
  max-width: 800px;
}
.em-featured-excerpt {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* ===== Category Grid ===== */
.em-category-grid-section { margin-bottom: 3rem; clear: both; }
.em-category-grid-title {
  text-align: center;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.em-grid-two-col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
  justify-items: center !important;
  max-width: 1000px;
  margin: 0 auto !important;
}
.em-category-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.em-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.em-category-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.em-category-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
}
.em-category-info { padding: 1rem; text-align: left; }
.em-category-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  border-top: 2px solid #000;
  padding-top: 0.3rem;
}
.em-category-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ===== Responsive ===== */
@media(max-width: 900px) {
  .em-featured-headline { font-size: 2rem; }
  .em-featured-excerpt { font-size: 1rem; }
  .em-grid-two-col {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .em-category-thumb { height: 200px; }
}
/* =========================
   Sidebar Widgets Styling
   ========================= */
.em-sidebar-menu .widget,
.frontpage-sidebar-widget,
.frontpage-widget {
    margin-bottom: 30px;           /* Space between widgets */
    padding: 15px;                 /* Inner padding */
    background-color: #f9f9f9;     /* Light background for readability */
    border-radius: 6px;            /* Rounded corners */
    box-sizing: border-box;
}

/* Widget Titles */
.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================
   Main Content + Sidebar Layout
   ========================= */
.em-frontpage-wrapper,
.em-inner-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;                     /* Space between main content and sidebar */
}

.em-main-content {
    flex: 1 1 800px;
    max-width: 900px;
}

.em-sidebar-menu {
    flex: 0 0 280px;               /* Fixed sidebar width */
    margin-left: 2rem;
    position: relative;
    z-index: 1;
    clear: both;
}

/* =========================
   Featured Story Styling
   ========================= */
.em-featured-section {
    margin-bottom: 30px;
}

.em-featured-title a {
    font-size: 28px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.em-featured-title a:hover {
    color: #0073aa; /* subtle hover */
}

/* =========================
   Category Grid Styling
   ========================= */
.em-category-grid {
    margin-top: 20px;
}

.em-grid-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.em-cat-card {
    flex: 1 1 calc(33% - 20px);
    box-sizing: border-box;
    background-color: #fff;
    padding: 10px;
    border-radius: 6px;
    overflow: hidden;
}

.em-cat-card .em-cat-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.em-cat-card .em-cat-link {
    text-decoration: none;
    color: #000;
}

.em-cat-card .em-cat-link:hover .em-cat-title {
    color: #0073aa;
}

/* =========================
   Main Menu Styling (Caps & White)
   ========================= */
.dt-nav-menu li a {
    color: #fff;                 /* White menu items */
    text-transform: uppercase;   /* All caps */
    padding: 15px 20px;          /* Bigger clickable area */
    text-decoration: none;
}

.dt-nav-menu li a:hover {
    background-color: #444;      /* Slight hover effect */
    border-radius: 4px;
}

.dt-menu-bar {
    background: #000;
    height: 70px;
    display: flex;
    align-items: center;
}

/* =========================
   Responsive Adjustments
   ========================= */
@media (max-width: 1024px) {
    .em-frontpage-wrapper,
    .em-inner-wrapper {
        flex-direction: column;
    }
    .em-sidebar-menu {
        margin-left: 0;
        flex: 1 1 100%;
    }
    .em-main-content {
        max-width: 100%;
    }
    .dt-nav-menu ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .dt-menu-bar {
        height: auto;
        padding: 15px 0;
    }
    .em-cat-card {
        flex: 1 1 100%;
    }
}

/* Optional: Small tweaks for featured image responsiveness */
.em-featured-image {
    width: 100%;
    height: auto;
}
/* Ensure inner page wrapper properly contains content and sidebar */
.em-inner-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; /* Space between main content and sidebar */
}

/* Main content takes remaining width */
.em-main-content {
    flex: 1 1 700px;
    max-width: 900px;
}

/* Sidebar fixed width, does not overlap */
.em-sidebar-menu {
    flex: 0 0 280px;
    margin-left: 2rem;
    position: relative;
    z-index: 1;
    clear: both;
}

/* Inner page sidebar widgets */
.em-sidebar-menu .widget {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Responsive: sidebar stacks below content on smaller screens */
@media (max-width: 1024px) {
    .em-inner-wrapper {
        flex-direction: column;
    }
    .em-sidebar-menu {
        margin-left: 0;
        flex: 1 1 100%;
    }
    .em-main-content {
        max-width: 100%;
    }
}

