:root {
    --color-primary: #ff184e;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
}
.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-.5 * var(--bs-gutter-x));
    margin-left: calc(-.5 * var(--bs-gutter-x));
}
.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}
/* Main Menu */
.header-navigation ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}
/* ===== Magazine Skin ===== */
.home-mag { --soft: 14px; --rad: 16px; --shadow: 0 10px 24px rgba(0,0,0,.08); }

.featured-area { display: grid; gap: 28px; }

/* Featured Card */
.featured-card { position: relative; border-radius: var(--rad); overflow: hidden; box-shadow: var(--shadow); }
.featured-figure { position: relative; margin: 0; aspect-ratio: 16/9; background: #f3f4f6; }
.featured-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,.7) 90%);
}
.featured-caption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; z-index: 2;
}
.badge-cat {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing:.3px;
  padding: 6px 10px; border-radius: 999px; background: #111827; color: #fff; margin-bottom: 8px;
}
.featured-title { font-size: clamp(20px, 2.6vw, 34px); line-height: 1.15; margin: 2px 0 6px; }
.featured-excerpt { opacity: .9; font-size: 14px; max-width: 720px; color: #fff;}

/* Grid of 3 */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
@media (max-width: 991.98px) {.posts-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 575.98px) {.posts-grid{ grid-template-columns: 1fr; } }

.grid-card { border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background:#fff; transition: transform .2s ease, box-shadow .2s ease; }
.grid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card-thumb { display:block; aspect-ratio: 4/3; background:#f5f5f5; }
.card-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.card-body { padding: 14px 14px 16px; }
.card-title { font-size: 18px; line-height: 1.25; margin: 6px 0 8px; }
.card-title a { color:#111827; text-decoration:none; }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { color:#4b5563; font-size: 14px; margin:0; }

/* Sidebar */
.sidebar-block { border: 1px solid #e5e7eb; border-radius: 14px; padding: 16px; background:#fff; box-shadow: 0 2px 10px rgba(0,0,0,.03); }
.sb-title { font-size: 18px; font-weight: 800; margin: 0 0 12px; }

.rank-item {
  position: relative; display: grid; grid-template-columns: 28px 88px 1fr; gap: 10px;
  align-items: center; padding: 10px; border-radius: 12px; transition: background .2s ease;
}
.rank-item:hover { background: #f9fafb; }
.rank-num {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background:#111827; color:#fff; font-weight: 800; font-size: 14px;
}
.rank-thumb { display:block; width: 88px; height: 66px; border-radius: 10px; overflow:hidden; background:#f3f4f6; }
.rank-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.rank-meta { min-width: 0; }
.rank-title { font-size: 15px; margin: 0 0 4px; line-height: 1.25; }
.rank-title a { color:#111827; text-decoration:none; }
.rank-title a:hover { text-decoration: underline; }
.rank-date { font-size: 12px; color:#6b7280; }

/* Global helpers */
.gx-4 { --bs-gutter-x: 1.5rem; } /* if not using Bootstrap 5, keep spacing consistent */

.header-navigation ul.menu > li {
  position: relative;
}

.header-navigation ul.menu > li > a {
  text-decoration: none;
  padding: 12px 18px;
  display: block;
  font-weight: 600;
  color: #222;
  transition: background 0.3s, color 0.3s;
}

.header-navigation ul.menu > li > a:hover {
  background: #f5f5f5;
  border-radius: 4px;
}

/* Dropdown menu */
.header-navigation ul.sub-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px 0;
  margin: 0;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.header-navigation ul.sub-menu li {
  position: relative;
}

.header-navigation ul.sub-menu li a {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  color: #333;
  transition: background 0.3s;
}

.header-navigation ul.sub-menu li a:hover {
  background: #f0f0f0;
}

/* Show dropdown on hover (desktop) */
.header-navigation ul.menu > li:hover > .sub-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Add small arrow indicator for dropdowns */
.header-navigation ul.menu > li.menu-item-has-children > a::after {
  content: " ▼";
  font-size: 0.6em;
  margin-left: 5px;
}
.row>* {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-top: var(--bs-gutter-y);
    flex-grow: 1;
}
*, *::before, *::after {
  box-sizing: border-box;
}

@media only screen and (min-width:992px){
    .col-lg-9 {
        flex: 0 0 auto;
        width: 75%;
    }
    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-lg-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .col-lg-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }
    .col-lg-5{
        flex: 0 0 auto;
        width: 41.6667%;
    }
    .col-lg-7{
        flex: 0 0 auto;
        width: 58.3333%;
    }
}
p {
    line-height: 1.4;
    font-weight: 400;
    color: #565656;
    font-family: "Montserrat", sans-serif !important;
}
.main-sec {
    padding: 60px 0px 40px;
}
.featured-interal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.featured-post .featured-category {
    font-size: 12px;
    color: #d84315;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.featured-post .featured-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 10px;
}
.featured-post .featured-title a {
    text-decoration: none;
    color: #000;
}
.featured-post .featured-excerpt {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}
.featured-post .featured-image {
    position: relative;
}
.featured-post .featured-image img {
    width: 100%;
    border-radius: 0px;
    object-fit: cover;
}
.dotted-border {
    border-bottom: 1px dashed #ccc;
    margin: 20px 0px;
}
.threepost-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.threepost-main-interal .post-category {
    font-size: 12px;
    color: #d84315;
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.threepost-main-interal .post-title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    margin: 10px 0 5px;
}
.threepost-main-interal .post-title a {
    text-decoration: none;
    color: #000;
}
.threepost-main-interal .post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0px;
}
.latest-posts .latest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #ccc;
}
.latest-posts .post-title {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 5px;
}
.latest-posts .post-title a {
    text-decoration: none;
    color: #000;
}
.latest-posts .post-author {
    font-size: 14px;
    color: #555;
}
.latest-posts .post-thumbnail img {
    width: 175px;
    height: 120px;
    object-fit: cover;
    max-width: none;
}
.threepost-main-interal .threepost-image img {
    height: 185px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}
.threeposts-sec {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}
.threeposts-sec.four {
    grid-template-columns: repeat(4, 1fr);
}
.threeposts-sec .single-post {
    width: 100%;
}
.bottom-section .threeposts-sec img {
    margin-bottom: 10px;
    width: 100%;
    object-fit: cover;
    height: 250px;
}
.threeposts-sec.four .single-post img {
    height: 200px;
}
.bottom-section .post-title {
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0px 0px 10px;
    display: block;
}
.bottom-section a.post-title {
    height: 50px;
    overflow: hidden;
}
.section-title {
    font-size: 30px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 30px;
    margin-top: 0px;
    text-transform: uppercase;
}
.bottom-section.dark{
    background-color: #1e1e1e;
}
.bottom-section.dark .featured-interal,
.horizontal .featured-interal{
    flex-direction: row;
}
.bottom-section.dark .featured-interal .content-featured,
.horizontal .featured-interal .content-featured {
    width: 55%;
}
.latest-posts.horizontal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.latest-posts.horizontal .latest-item {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
    align-items: flex-start;
}
.bottom-section .post-title {
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
    font-weight: 600;
    color: #1e1e1e;
    margin: 0px 0px 10px;
    display: block;
}
.threepost-main.four-grid {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 15px;
}
.four-grid .threepost-main-interal .threepost-image img {
    height: 135px;
}
.four-grid .threepost-main-interal .post-title {
    font-size: 15px;
}
.br-1 {
    border-right: 1px solid #ccc;
}
.dark .featured-post .featured-title a,
.dark .latest-posts .post-title a,
.dark .threepost-main-interal .post-title a,
.dark .section-title{
    color: #fff;
}
.dark .featured-post .featured-excerpt,
.dark .latest-posts .post-author{
    color: #ccc;
}


@media only screen and (max-width: 767px){
    .threepost-main {
        grid-template-columns: repeat(1, 1fr);
    }
    .main-sec > .col-lg-8{
        margin-bottom: 30px;
    }
    .threeposts-sec.four,
    .threeposts-sec{
        grid-template-columns: repeat(1, 1fr);
    }
    .bottom-section.dark .featured-interal, .horizontal .featured-interal {
        flex-direction: column;
    }
    .latest-posts.horizontal {
        grid-template-columns: repeat(1, 1fr);
    }
}