/* ==========================================================================
   Houston Medical Times — recreated from the original WordPress theme
   Fonts:  Merriweather (headlines) / Open Sans (UI + body)
   Accent: red gradient #c22a27 -> #a12320   Nav: #5d5b5d   Bands: #f1f1f2
   ========================================================================== */

:root {
  --red: #c22a27;
  --red-dark: #a12320;
  --nav-gray: #5d5b5d;
  --ink: #25272b;
  --ink-dark: #242021;
  --band: #f1f1f2;
  --band-2: #f2f2f2;
  --line: #bcbcbc;
  --muted: #777;
  --btn-gray: #696a6d;
  --serif: 'Merriweather', Georgia, serif;
  --sans: 'Open Sans', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

.container {
  max-width: 1310px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ------------------------------ header: top strip ------------------------ */
.row-top { background: var(--band); }
.row-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 25px;
}
.top-slogan .slogan-text {
  font-family: var(--serif);
  font-size: 13px;
  color: #000;
}
.top-slogan i { font-style: italic; }
.social-icons { display: flex; align-items: center; gap: 12px; }
.social-icons .follow-label { font-size: 12px; color: #73757a; }
.social-icons a { color: #a7a7a7; display: inline-flex; }
.social-icons a:hover { color: var(--red); }
.social-icons svg { width: 14px; height: 14px; }

/* ------------------------------ header: logo row ------------------------- */
.row-header { background: #fff; }
.row-header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 18px 15px;
}
.site-logo img { width: 460px; max-width: 100%; }
.header-search { flex: 1; display: flex; justify-content: center; }
.search-form { position: relative; width: 300px; max-width: 100%; }
.search-field {
  width: 100%;
  height: 34px;
  padding: 0 38px 0 13px;
  border: 1px solid #c8c9cb;
  border-radius: 2px;
  background: var(--band);
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
}
.search-form button {
  position: absolute; right: 0; top: 0;
  width: 34px; height: 34px;
  color: #73757a;
  display: flex; align-items: center; justify-content: center;
}
.search-form svg { width: 15px; height: 15px; }
.header-phone {
  display: flex; align-items: center; gap: 10px;
  font-size: 28px; color: #000; white-space: nowrap;
}
.header-phone .phone-icon { color: var(--red); display: inline-flex; }
.header-phone svg { width: 24px; height: 24px; }

/* ------------------------------ header: nav ------------------------------ */
.row-menu { background: var(--nav-gray); }
.row-menu .container { padding: 0 15px; }
.menu-toggle { display: none; }
.main-menu { display: flex; align-items: stretch; }
.main-menu li a {
  display: block;
  position: relative;
  padding: 0;
  margin-right: 65px;
  line-height: 40px;
  color: #dbdcde;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}
.main-menu li a:hover, .main-menu li a:focus { color: #fff; }
.main-menu li.current-menu-item a { color: #fff; }
/* animated underline on hover: grows from the left, sits inside the gray bar
   7px above its bottom edge (matches original theme exactly) */
.main-menu li a span::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 7px;
  left: 0;
  height: 2px;
  width: 0;
  background: #fff;
  transition: 0.3s;
}
.main-menu li a:hover span::before, .main-menu li a:focus span::before { width: 100%; }
.main-menu li.contact-us { margin-left: auto; }
.main-menu li.contact-us a {
  background: linear-gradient(#c22a27 0%, #a12320 100%);
  padding: 0 32px;
  margin-right: 0;
  color: #fff;
}
.main-menu li.contact-us a:hover { background: #000; }
.main-menu li.contact-us a span::before { display: none; }

/* ------------------------------ hero slider ------------------------------ */
.slider-wrapper { background: var(--band-2); padding: 10px 0; }
.hero-slider { position: relative; background: #f3f3f3; overflow: hidden; }
.hero-slider .slides { position: relative; min-height: 200px; }
.hero-slider .slide {
  display: none;
  position: relative;
  animation: heroFade 0.6s ease;
}
.hero-slider .slide.current { display: block; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-slider .slide img {
  margin-left: auto;
  width: 721px;
  max-width: 100%;
}
.caption-wrap {
  position: absolute;
  left: 0;
  top: 58px;
  width: 512px;
  max-width: 45%;
  padding-left: 24px;
}
.flex-caption h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-dark);
  margin-bottom: 22px;
}
.btn-more {
  display: inline-block;
  background: var(--btn-gray);
  color: #fff;
  font-size: 14px;
  line-height: 42px;
  height: 44px;
  padding: 0 24px;
  border-radius: 2px;
  position: relative;
}
.btn-more .arr { margin-left: 14px; font-size: 18px; }
.btn-more:hover { background: var(--red); }
.control-nav {
  position: absolute;
  right: 18px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.control-nav a {
  display: block;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fcfcfc;
  border: 1px solid #bbb;
  text-indent: -9999px;
  overflow: hidden;
}
.control-nav a.active { background: var(--red); border-color: var(--red); }
.pauseplay {
  position: absolute;
  left: 18px;
  bottom: 8px;
  z-index: 5;
  font-size: 12px;
  color: #4b7aa8;
  text-transform: capitalize;
}

/* ------------------------------ layout ---------------------------------- */
.site-content { background: #fafafa; padding-bottom: 85px; padding-top: 10px; }
.content-row { display: flex; gap: 40px; align-items: flex-start; }
.main-col { flex: 1; min-width: 0; }
.sidebar { width: 320px; flex-shrink: 0; padding-top: 8px; }

.horizontal-banner { margin: 8px 0 4px; }
.horizontal-banner img { width: 100%; }

/* ------------------------------ posts list ------------------------------- */
.home-posts-title {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  color: #000;
  margin: 24px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.post-holder {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #e3e3e3;
}
.post-holder:first-child { padding-top: 8px; }
.featured-thumbnail { width: 178px; flex-shrink: 0; }
.featured-thumbnail img { width: 178px; height: 140px; object-fit: cover; }
.post-body { flex: 1; min-width: 0; }
.entry-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  margin-bottom: 10px;
}
.entry-title a { color: var(--ink-dark); }
.entry-title a:hover { color: var(--red); }
.post-excerpt { font-size: 16px; line-height: 24px; color: var(--ink); margin-bottom: 10px; }
.read-more {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.read-more:hover { color: var(--red); }
.read-more .arr { color: var(--red); font-style: normal; }
.all-posts-link { text-align: center; padding: 30px 0 10px; }

.pagination { display: flex; gap: 8px; justify-content: center; padding: 26px 0 6px; }
.page-num {
  display: inline-block;
  min-width: 36px; height: 36px;
  line-height: 34px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 14px;
}
.page-num.current, .page-num:hover { background: var(--red); border-color: var(--red); color: #fff; }
.no-results { padding: 30px 0; color: var(--muted); }

/* ------------------------------ page-title band -------------------------- */
.page-title-row {
  position: relative;
  height: 146px;
  background: var(--band-2);
}
.page-title-row.band-post { height: 174px; }
.band-container { position: relative; height: 100%; }
.band-breadcrumbs {
  position: absolute;
  top: 0;
  left: 15px;
  right: 15px;
  padding: 15px 0 12px;
  font-size: 13px;
  line-height: 1;
  color: #72757c;
}
.band-breadcrumbs a:hover { color: var(--red); }
.band-breadcrumbs i { font-style: italic; margin: 0 12px; }
.band-title {
  position: absolute;
  bottom: 32px;
  left: 15px;
  right: 15px;
}
.band-title h1 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1;
  color: #000;
  font-weight: 600;
  font-style: italic;
}
.band-post .band-title { bottom: 26px; }
.band-post .band-title h1 {
  font-size: 24px;
  line-height: 1.5;
  font-style: normal;
  font-weight: 400;
}

/* ------------------------------ page & article --------------------------- */
.page-content, .article-content {
  font-size: 16px;
  line-height: 24px;
  padding: 30px 0 10px;
  max-width: 900px;
}
.page-content-full { max-width: none; }
.page-content h1 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  text-transform: uppercase;
  color: #2e2e2e;
  margin-bottom: 14px;
}
.page-content h2, .article-content h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink-dark);
  margin: 22px 0 14px;
}
.page-content img.alignleft {
  float: left;
  width: 300px;
  max-width: 45%;
  margin: 5px 26px 14px 0;
}
.page-content .spacer { height: 22px; clear: both; }
.page-content::after { content: ""; display: table; clear: both; }
.page-content p, .article-content p { margin-bottom: 16px; }
.page-content a, .article-content a { color: var(--red); }
.page-content a:hover, .article-content a:hover { text-decoration: underline; }
.article-content img { margin: 10px 0 18px; height: auto; }
.article-content figure { margin: 10px 0 18px; }
.article-content figure img { margin: 0; }
.article-featured { margin: 26px 0 6px; }
.article-featured img { width: 100%; max-height: 440px; object-fit: cover; }

.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  border-top: 1px solid #e3e3e3;
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
}
.post-nav a:hover { color: var(--red); }
.post-nav-next { margin-left: auto; }

/* ------------------------------ forms ------------------------------------ */
/* Single-column form layout matching the original Contact Form 7 styling:
   label above field, one field per row, ~625px wide fields */
.form-intro {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-dark);
  margin-bottom: 16px;
}
.site-form { max-width: 625px; margin-top: 4px; }
.required-note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.form-rows label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #272829;
  margin-bottom: 14px;
}
.form-rows input[type=text], .form-rows input[type=email], .form-rows input[type=tel],
.form-rows select, .form-rows textarea {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 5px;
  padding: 6px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 5px;
  background: transparent;
  font: 400 14px var(--sans);
  color: var(--ink);
}
.form-rows textarea { height: auto; min-height: 150px; resize: vertical; }
.form-rows input:focus, .form-rows select:focus, .form-rows textarea:focus {
  outline: none;
  border-color: var(--nav-gray);
}
.form-rows .file-input { margin-top: 8px; font-size: 13px; }
.form-choice { margin: 4px 0 18px; font-size: 14px; color: #272829; }
.form-choice .choice-label { display: block; margin-bottom: 8px; }
.form-choice .choice { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; font-size: 14px; }
.form-submit {
  display: inline-block;
  background: var(--btn-gray);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  height: 44px;
  padding: 0 34px;
  border-radius: 2px;
  transition: 0.2s ease-in-out;
}
.form-submit:hover { background: #000; }
/* honeypot: invisible to people, tempting to spam bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  background: #e8f5e2;
  border: 1px solid #9fd28a;
  color: #2f6b1a;
  padding: 12px 16px;
  border-radius: 2px;
  margin-bottom: 18px;
}

/* ------------------------------ sidebar ---------------------------------- */
.widget-title-lg {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: #252122;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}

/* Outer holds the (hidden) background image only — no border, no padding.
   The solid-white inner wrapper covers it, exactly like the original theme,
   so nothing bleeds around the border. */
.digital-edition {
  background-size: cover;
  background-position: top center;
  padding: 0;
}
.de-inner {
  background: #fff;
  padding: 2px;
  border: 1px solid #d8d9db;
}
.de-top {
  background: #252122;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.de-text { color: #d8d9db; font-size: 18px; font-weight: 600; }
.de-link {
  color: #d8d9db;
  border: 2px solid #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 30px;
  height: 34px;
  padding: 0 22px;
  display: inline-block;
}
.de-link:hover { background: #fff; color: #252122; }
.de-cover { text-align: center; margin-top: 20px; }
.de-cover img { width: 317px; max-width: 100%; display: inline-block; }

.subscribe-box {
  background: var(--band-2);
  padding: 15px 17px 19px 18px;
  margin-top: 22px;
}
.subscribe-box .widget-title-lg { border-bottom-color: #d4d4d4; }
.subscribe-box form { display: flex; gap: 8px; }
.subscribe-box input {
  flex: 1;
  min-width: 0;
  border: 1px solid #c8c9cb;
  border-radius: 2px;
  padding: 8px 10px;
  font: 400 14px var(--sans);
}
.btn-gray {
  background: var(--btn-gray);
  color: #fff;
  font-size: 13px;
  padding: 0 16px;
  border-radius: 2px;
}
.btn-gray:hover { background: var(--red); }
.subscribe-thanks { font-size: 13px; color: #2f6b1a; margin-top: 8px; }

.categories-box { margin-bottom: 26px; }
.categories-list li { padding: 6px 0; border-bottom: 1px solid #e3e3e3; font-size: 14px; color: var(--muted); }
.categories-list a:hover { color: var(--red); }

.advertising-box { margin-top: 26px; }
.categories-box + .advertising-box { margin-top: 0; }
.ad-stack { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.ad-item { width: 315px; max-width: 100%; }
.ad-item img { width: 100%; }
/* small 2-up ads on inner pages */
.ad-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ad-grid-item { width: calc(50% - 5px); }
.ad-grid-item img { width: 100%; }

.weather-box {
  margin-top: 26px;
  background: #fff;
  border: 1px solid #e3e3e3;
  padding: 16px 18px;
}
.weather-head { display: flex; align-items: baseline; gap: 12px; }
.weather-temp { font-size: 34px; font-weight: 300; color: var(--ink-dark); }
.weather-temp small { font-size: 16px; }
.weather-cond { font-size: 14px; color: var(--muted); }
.weather-city { font-size: 13px; color: var(--muted); margin-top: 4px; }
.weather-link { display: inline-block; font-size: 11px; color: #4b7aa8; margin-top: 10px; }
.weather-link:hover { text-decoration: underline; }

/* ------------------------------ footer ----------------------------------- */
.site-footer { margin-top: 0; }
.row-footer-blocks { background: var(--band); padding: 60px 0; }
.footer-blocks-inner {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-blocks-inner .footer-col { width: 25%; }
.footer-blocks-inner .footer-col.footer-contact-btn { width: auto; }
.footer-logo { width: 287px; }
.footer-col .footer-label {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  color: #000;
  margin-bottom: 10px;
}
.footer-col .footer-value { font-size: 28px; font-weight: 400; line-height: 1; color: #000; }
.footer-social { gap: 17px; margin-top: 12px; }
.footer-social a { color: #a7a7a7; }
.footer-social svg { width: 20px; height: 20px; }
.footer-contact-btn { margin-left: auto; }
.footer-contact-btn .btn-outline { margin-top: 6px; }
.btn-outline {
  display: inline-block;
  border: 2px solid #626262;
  background: var(--band);
  color: #232323;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 2.5;
  padding: 0 28px;
  transition: 0.2s ease-in-out;
}
.btn-outline:hover { background: #1d1d1d; border-color: #1d1d1d; color: #fff; }
.row-copyright {
  background: #ebebeb;
  color: #747474;
  font-size: 12px;
  padding: 23px 0;
}

/* ------------------------------ responsive ------------------------------- */
@media (max-width: 1100px) {
  .site-logo img { width: 340px; }
  .header-phone { font-size: 22px; }
  .main-menu li a { margin-right: 14px; }
  .footer-blocks-inner .footer-col { width: auto; margin-right: 40px; }
}

@media (max-width: 900px) {
  .content-row { flex-direction: column; }
  .sidebar { width: 100%; }
  .caption-wrap { max-width: 55%; top: 24px; }
  .flex-caption h3 { font-size: 20px; }
  .row-header-inner { flex-wrap: wrap; gap: 14px; }
  .header-search { order: 3; width: 100%; flex-basis: 100%; }
  .header-phone { margin-left: auto; font-size: 20px; }
  /* keep the menu on one line in the narrow band above the mobile breakpoint */
  .main-menu li a { margin-right: 9px; font-size: 12.5px; }
  .main-menu li.contact-us a { padding: 0 18px; }
}

@media (max-width: 700px) {
  .menu-toggle {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 0;
    text-transform: uppercase;
  }
  .nav-primary { display: none; }
  .nav-primary.open { display: block; }
  .main-menu { flex-direction: column; }
  .main-menu li a { padding: 0; margin-right: 0; line-height: 42px; border-top: 1px solid rgba(255,255,255,0.12); }
  .main-menu li a span::before { display: none; }
  .main-menu li.contact-us { margin-left: 0; }
  .main-menu li.contact-us a { padding: 0 14px; }
  .hero-slider .slide img { width: 100%; }
  .caption-wrap {
    position: static;
    width: 100%;
    max-width: 100%;
    padding: 14px 16px 18px;
  }
  .form-grid { grid-template-columns: 1fr; }
  .footer-blocks-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-contact-btn { margin-left: 0; }
  .post-holder { flex-direction: column; }
  .featured-thumbnail img { width: 100%; height: auto; }
}
