:root {
  --bg: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --brand: #0b4b8c; /* deep blue */
  --brand-2: #c81e1e; /* accent red closer to magazine */
  --border: #e5e7eb;
  --serif: 'Libre Baskerville', serif;
}
html, body { font-family: 'Libre Baskerville', serif; color: var(--text); background: var(--bg); }
a { color: var(--text); }
a:hover { color: var(--brand); }

/* Remove topbar (not used in gfmag header) */

/* Header (gfmag style) */
.gf-header { background:#fff; }
.gf-brand { position: relative; display: inline-block; }
.gf-logo-text { font-family: var(--serif); font-weight: 900; font-size: 2.2rem; color: #1f2937; display:block; }
.gf-logo-text .fin { letter-spacing: 0.01em; }
.gf-swoosh { display:block; width: 140px; height: 6px; background: var(--brand-2); border-radius: 999px; margin-top: 6px; }
.gf-search-input { min-width: 340px; }
.gf-search .input-group { align-items: center; }
.gf-search-btn { background: var(--brand-2); color:#fff; border-color: var(--brand-2); padding: 8px 14px; }
.gf-search-btn:hover { background: #a4161a; border-color: #a4161a; }
.gf-tagline { font-family: var(--serif); font-weight: 700; font-size: 25px; color: #374151; text-align: end; margin: -2rem 0 12px; }
/* Logo image */
.gf-logo-img { display:block; width:auto; }
/* Mobile header actions */
.gf-mobile-actions { display:flex; align-items:center; gap: 14px; }
.gf-icon-btn { background: transparent; border: none; color: #374151; font-size: 1.25rem; padding: 6px; }
.gf-icon-btn:focus { outline: 2px solid #d1d5db; outline-offset: 2px; }

/* Nav (gfmag categories) */
.gf-navbar { background: #fff;  }
.gf-menu { gap: 1.5rem; list-style: none; padding: 10px 0; justify-content: space-between; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gf-menu-item { }
.gf-link { color: #374151; text-decoration: none; font-weight: 600; }
.gf-link:hover { color: var(--brand-2); }
.gf-chev { color: #9ca3af; margin-left: 6px; }

/* Desktop dropdown menu */
.gf-menu-item { position: relative; }
.gf-dropdown { position: absolute; top: 100%; left: 0; min-width: 320px; max-height: calc(100vh - 200px); overflow:auto; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,0.08); display: none; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .15s ease, transform .15s ease; z-index: 1050; padding: 12px 16px; }
.gf-dropdown a { display: block; padding: 8px 0; color: #374151; text-decoration: none !important; font-weight: 600; }
.gf-dropdown a:hover { color: var(--brand-2); }
.gf-menu-item:hover > .gf-dropdown { display: block; visibility: visible; opacity: 1; transform: translateY(0); }
.gf-navbar .gf-menu { overflow: visible; }

/* Mobile Menu */
/* Offcanvas slide-out menu */
.gf-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.45); opacity: 0; visibility: hidden; transition: opacity 0.2s ease; z-index: 1030; }
.gf-overlay.show { opacity: 1; visibility: visible; }
.gf-offcanvas { position: fixed; top: 0; right: 0; height: 100vh; width: 300px; max-width: 90vw; background: #fff; border-left: 1px solid var(--border); box-shadow: -2px 0 12px rgba(0,0,0,0.08); transform: translateX(100%); transition: transform 0.3s ease-in-out; z-index: 1040; padding: 16px; overflow-y: auto; }
.gf-offcanvas.open { transform: translateX(0); }
.gf-offcanvas-list li { border-bottom: 1px solid var(--border); }
.gf-offcanvas-link { display:block; padding: 12px 2px; color: var(--text); text-decoration: none; font-weight: 600; }
.gf-offcanvas-link:hover { color: var(--brand-2); }
.offcanvas-search .form-control { min-width: 0; }

/* Offcanvas dropdown submenu */
.gf-toggle { display:flex; align-items:center; justify-content:space-between; }
.gf-toggle .chev { color:#9ca3af; transition: transform 0.2s ease; }
.gf-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.gf-submenu { list-style:none; margin:0 0 8px; padding:0 0 8px 8px; border-left:2px solid var(--border); max-height:0; overflow:hidden; transition:max-height 0.25s ease; }
.gf-submenu.open { max-height: 340px; overflow:auto; }
.gf-submenu li { border-bottom:none; }
.gf-submenu a { display:block; padding:8px 0; color: var(--text); text-decoration:none; font-weight:500; }
.gf-submenu a:hover { color: var(--brand-2); }

/* Hero */
.hero { background: #fff; }
.object-cover { object-fit: cover; }
.bg-category { background: var(--brand-2); }
.hero-feature .card-body .card-title { font-family: var(--serif); font-weight: 900; font-size: 1.85rem; line-height: 1.2; }
.sub-feature .card-title { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }

/* Content */
.section-title { font-family: var(--serif); font-weight: 900; letter-spacing: 0.01em; }
.see-all { font-size: 0.95rem; color: var(--brand); text-decoration: none; }
.see-all:hover { text-decoration: underline; }
.news-card .card-title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.news-card .card-text { color: var(--muted); }
.trending-list .trend-thumb { border-radius: 4px; }
.trend-link { text-decoration: none; }
.trend-link:hover { color: var(--brand); }

/* Sidebar */
.sidebar-widget { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.widget-title { font-weight: 700; font-size: 1rem; }
.newsletter { background: #f8fafc; border-radius: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background:#fff; }
.social-links a { color: var(--muted); }
.social-links a:hover { color: var(--brand); }

.gf-foot { background:#fff; }
.gf-foot .footer-top h6 { font-family: var(--serif); font-weight: 700; }
.gf-foot .footer-links li { margin-bottom: 6px; }
.gf-foot .footer-links a { color: var(--text); text-decoration: none; }
.gf-foot .footer-links a:hover { color: var(--brand-2); }
.gf-footer-logo { height: 40px; }
@media (min-width: 768px) {
  .gf-foot .col-md-4 + .col-md-4 { border-left: 1px solid var(--border); }
}

/* Cards visual tweaks for magazine style */
.card { border: none; }
.card .card-body { padding: 12px; }
.ratio img.card-img-top { border-radius: 4px; }

.feature-title {
    font-family: Open Sans, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5rem;
    margin-left: 1.5rem;
    padding: .75rem 3rem;
    position: absolute;
    text-align: center;
    text-transform: uppercase;
    top: -1.5rem;
    z-index: 10;
    background-color: #E30613;
    color: #fff;
}

.feature-card {
    margin-left: 1.5rem;
    margin-top: -4rem;
    padding: 1.5rem;
    position: relative;
    z-index: 10;
    background-color: #fff;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.feature-category {
    color:#E30613;
    font-family: Open Sans, sans-serif;
    font-size: .8125rem;
    font-weight: 400;
    letter-spacing: .025em;
    line-height: 1.5rem;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.feature-date {
    color: #868991;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5rem;
    margin-bottom: .5rem;
    margin-top: .75rem;
}

.feature-right {
  margin-top: 175px;
  z-index: 1;
  position: relative;
}

.feature-right .heading {
  display: grid;
  gap: .75rem;
  grid-template-columns: min-content 1fr;
  margin-bottom: 2rem;
}

.feature-right .heading h2 {
  font-size: 39px;
  color: #fff;
}

.feature-wrapper {
  margin: 180px 0 120px;
}

.feature-right .heading .c-border {
  border-width: 0 0 4px;
  border-color: #E30613;
  border-style: solid;
  width: auto;
  margin-bottom: 10px;
}

#feature-carousel .feature-content {
  padding: 12px 16px;
  background-color: #fff;
}

#feature-carousel h3 {
  font-size: 18px;
}

#feature-carousel .feature-category {
  font-size: 13px;
  color: #E30613;
  text-decoration: none;
}

.owl-nav .owl-prev {
  display: none !important;
}

.owl-nav .owl-next span{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 34px;
  height: 38px;
  background-color: #E30613;
  color: #fff;
  font-size: 27px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.v-article {
  font-size: 18px;
  background-color: #E30613;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1;
}

.btn-gray {
  font-size: 18px;
  background-color: #353A47;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  z-index: 1;
}

.v-article:hover {
  color: #fff;
  background-color: #b6050f;
}

.feature-background {
  background-color: #353A47;
  display: block;
  height: 600px;
  margin-right: calc(50% - 50vw);
  position: absolute;
  right: 0;
  top: 3rem;
  width: 100%;
  z-index: 0;
}

.news-title-wrap {
  column-gap: 8px;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 60px;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  grid-template-columns: 1fr min-content 1fr;
}

.news-title-wrap.related-content {
  grid-template-columns: 1fr min-content 4fr;
}

.news-title-wrap .news-title{
  font-size: 39px;
  color: #353A47;
  font-weight: bold;
  align-self: center;
  grid-column: span 1 / span 1;
  grid-row: span 2 / span 2;
  white-space: nowrap;
}

.news-title-wrap .l-border{
  border-left-width: 2px;
  border-top-width: 2px;
  grid-column-start: 1;
  grid-row-start: 2;
  border-color: #c5c5c5;
  border-top: 1px solid;
  border-left: 1px solid;
}

.news-title-wrap .r-border{
  border-right-width: 2px;
  border-bottom-width: 2px;
  grid-column-start: 3;
  grid-row-start: 2;
  border-color: #c5c5c5;
  border-top: 1px solid;
  border-right: 1px solid;
}

.news-title-wrap.related-content .r-border{
  border-right-width: 2px;
  border-top-width: 2px;
  grid-column-start: 3;
  grid-row-start: 2;
  border-color: #E30613;
}

.item .feature-content {
  padding: 16px;
}

.item .feature-content h3 {
  font-size: 18px;
}

.item img {
  width: 528px;
  height: 170px;
  object-fit: cover;
}

.breadcrumbs {
  margin: 20px 0;
  display: flex;
  align-items: center;
  font-family: Open Sans, sans-serif;
}

.breadcrumbs i {
  margin: 0 15px;
}

.banner-section .content-wrap {
  padding: 2rem;
  background-color: #E30613;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 120%;
}

.banner-section .content-wrap .category {
  font-size: 22px;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
}

.banner-section .content-wrap .title {
  font-size: 45px;
  line-height: 1;
  margin-bottom: 12px;
  font-weight: bold;
}

.banner-section .content-wrap .date {
  font-size: 22px;
  font-weight: bold;
  text-transform: uppercase;
  font-family: Open Sans, sans-serif;
}

.content-section {
  margin: 80px 0;
}

.content-section .authors{
  font-size: 22px;
  font-family: Open Sans, sans-serif;
  color: #5f5f5f;
  margin-bottom: 12px;
}

.content-section .title {
  font-size: 40px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .search input { min-width: 140px; }
  .gf-navbar { display: none; }
  .gf-search { display: none !important; }
  .gf-logo-img { height: 48px; }
  .gf-tagline {
    font-size: 16px;
    text-align: center;
    margin: 0;
    padding: .25rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .banner-section .content-wrap {
    position: relative;
    width: 100%;
  }

  .banner-content-wrap {
    order: 2;
  }

  .feature-background {
    top: 55%;
    left: 0;
    height: 550px;
  }

  .news-title-wrap .news-title {
    font-size: 28px;
  }
}
.gf-menu-item.align-right > .gf-dropdown { left: auto; right: 0; }