/*
Theme Name: Mary Foundation
Theme URI: https://mary-foundation.org
Author: The Mary Foundation
Author URI: https://mary-foundation.org
Description: Authentic, high-performance WordPress theme for Mary Foundation / CatholiCity.com -- faithfully reproduces the original Bootstrap 3 design, signature blue gradient navbar (#337ab7 to #23527c), authentic white search box, exact typography, and classic button gradients. Updated page sizing and ad column behavior.
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mary-foundation-theme
*/

/* ================================================================
   1. RESET & BASE (Bootstrap 3 Normalized)
   ================================================================ */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

:root {
  --header-height: 70px;
}

body {
  margin: 0;
  padding-top: var(--header-height, 70px);
  transition: padding-top 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333333;
  background-color: #ffffff;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .navbar-fixed-top {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .navbar-fixed-top {
    top: 46px;
  }
}

a {
  color: #337ab7;
  text-decoration: none;
}
a:hover, a:focus {
  color: #23527c;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

p, ul, ol, table, dl dd {
  margin-top: 0;
  margin-bottom: 1em;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "-apple-system", ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
  font-weight: bold;
  line-height: 1.2;
  color: #333333;
  margin: 1em 0;
}
h1, .h1 { font-size: 30px; letter-spacing: -0.5px; }
h2, .h2 { font-size: 26px; }
h3, .h3 { font-size: 22px; }
h4, .h4 { font-size: 18px; margin-bottom: 1px; }
h5, .h5 { font-size: 14px; }
h6, .h6 { font-size: 12px; }

.cc-page-content,
.page-content,
.entry-content {
  font-size: 18px;
  line-height: 1.44444;
  color: #333333;
}

p.action, span.action, p.cds, p.novels, p.pdf, p.listen, p.kindle, p.ios, p.android, p.bulk, p.download, p.email, p.print, p.gift, p.monthly {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: bold;
}

.glyphicon {
  font-size: 16px;
  top: 3px;
  margin-right: 8px;
}

blockquote {
  font-size: 17px;
  color: #696969;
  border-left: 10px solid #eeeeee;
  padding: 10px 20px;
  margin: 0 0 20px;
  background: none;
}

hr {
  height: 0;
  border: 0;
  border-top: 1px solid #e5e5e5;
  margin: 20px 0;
}

/* ================================================================
   2. BOOTSTRAP 3 CONTAINER & GRID SYSTEM
   =============================================================== */
.container {
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .container { max-width: 750px; }
}
@media (min-width: 992px) {
  .container { max-width: 970px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1170px; }
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}
.row:before, .row:after, .container:before, .container:after {
  content: " ";
  display: table;
}
.row:after, .container:after {
  clear: both;
}

.col-xs-12, .col-sm-4, .col-sm-6, .col-sm-8, .col-sm-12,
.col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .col-sm-4 { float: left; width: 33.33333333%; }
  .col-sm-6 { float: left; width: 50%; }
  .col-sm-8 { float: left; width: 66.66666667%; }
  .col-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-md-4 { float: left; width: 33.33333333%; }
  .col-md-5 { float: left; width: 41.66666667%; }
  .col-md-6 { float: left; width: 50%; }
  .col-md-7 { float: left; width: 58.33333333%; }
  .col-md-8 { float: left; width: 66.66666667%; }
  .col-md-12 { width: 100%; }
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.pull-left { float: left !important; }
.pull-right { float: right !important; }

/* Responsive Visibility */
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm { display: none !important; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md { display: none !important; }
}
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
}

/* ================================================================
   3. FIXED TOP NAVBAR (Fluid Responsive & Zero-Gap Resizing)
   ================================================================ */
.navbar {
  position: relative;
  min-height: 70px;
  margin-bottom: 0;
  border: 0 !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  min-height: 70px;
  box-sizing: border-box;
}

.navbar .container::before,
.navbar .container::after {
  display: none !important;
  content: none !important;
}

.navbar-fixed-top {
  position: fixed;
  right: 0;
  left: 0;
  top: 0;
  z-index: 1030;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.navbar-fixed-top.header-scrolled {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

/* Exact CatholiCity Original Blue Gradient (from bootstrap-theme.css & bootstrap.css) */
.navbar-inverse {
  background-color: #222222;
  background-image: -webkit-linear-gradient(top, #337ab7 0%, #23527c 100%);
  background-image: -o-linear-gradient(top, #337ab7 0%, #23527c 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, from(#337ab7), to(#23527c));
  background-image: linear-gradient(to bottom, #337ab7 0%, #23527c 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff337ab7', endColorstr='#ff23527c', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  background-repeat: repeat-x;
  border: 0 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.navbar-header {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  float: none;
}

/* Main Brand / Mary Foundation Logo with Generous Space Around It */
.navbar-brand {
  display: flex;
  align-items: center;
  height: 70px;
  padding: 6px 20px 6px 0;
  float: none;
}
.navbar-brand img {
  height: 52px;
  max-height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: height 0.2s ease;
}

/* Main Nav Container (Left-aligned menu items, Right-aligned search box) */
.navbar-main-nav {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  float: none;
  visibility: visible !important;
}

/* Navigation Links (Exact custom.css & bootstrap.css rules) */
.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  float: none;
}

.navbar-nav > li {
  float: none;
  list-style: none;
  white-space: nowrap;
}

.navbar .nav > li > a,
.navbar-inverse .navbar-nav > li > a {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 7px;
  color: #e3e3e3;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  display: block;
  text-decoration: none;
  background-color: transparent;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, padding 0.2s ease, font-size 0.2s ease;
}

/* Temporary darkening on hover ONLY - does NOT stay dark when page loads */
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
  color: #ffffff !important;
  background-color: rgba(0, 0, 0, 0.28) !important;
  text-decoration: none;
}

/* Ensure active/current-page items do NOT stay permanently dark on page load */
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > li.current-menu-item > a,
.navbar-inverse .navbar-nav > li.current_page_item > a {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #e3e3e3 !important;
}

.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-inverse .navbar-nav > li.current-menu-item > a:hover,
.navbar-inverse .navbar-nav > li.current-menu-item > a:focus,
.navbar-inverse .navbar-nav > li.current_page_item > a:hover,
.navbar-inverse .navbar-nav > li.current_page_item > a:focus {
  background-color: rgba(0, 0, 0, 0.28) !important;
  color: #ffffff !important;
}

/* Exact Original Search Box (Matches Catholicity menu.php & bootstrap.css) */
.navbar-form {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  width: 160px;
  flex-shrink: 0;
  float: none;
  border: 0;
  transition: width 0.2s ease;
}

.navbar-form .form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #555555;
  background-color: #ffffff;
  background-image: none;
  border: 1px solid #cccccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  box-sizing: border-box;
}

.navbar-form .form-control:focus {
  border-color: #66afe9;
  outline: 0;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.navbar-form .form-control::-webkit-input-placeholder {
  color: #999999;
}
.navbar-form .form-control::-moz-placeholder {
  color: #999999;
  opacity: 1;
}
.navbar-form .form-control:-ms-input-placeholder {
  color: #999999;
}

/* Responsive: Large Tablets & Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-brand {
    padding-right: 12px;
  }
  .navbar-brand img {
    height: 48px;
  }
  .navbar .nav > li > a,
  .navbar-inverse .navbar-nav > li > a {
    padding: 10px 5px;
    font-size: 12px;
  }
  .navbar-form {
    width: 140px;
    margin-left: auto;
  }
}

/* Responsive: Medium / Tablets (768px - 991px) — Stays on single line, perfectly fluid */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar {
    min-height: 64px;
  }
  .navbar .container {
    min-height: 64px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-brand {
    height: 64px;
    padding-right: 8px;
  }
  .navbar-brand img {
    height: 42px;
  }
  .navbar .nav > li > a,
  .navbar-inverse .navbar-nav > li > a {
    padding: 8px 4px;
    font-size: 11px;
    letter-spacing: -0.2px;
  }
  .navbar-form {
    width: 115px;
    margin-left: auto;
  }
  .navbar-form .form-control {
    height: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Responsive: Mobile (< 768px) - Clean Header, Centered Logo, Auto-Collapse on Scroll */
@media (max-width: 767px) {
  body {
    padding-top: var(--header-height, 60px);
  }

  /* Smooth collapsing header on scroll */
  .navbar-fixed-top.header-collapsed {
    transform: translateY(-100%) !important;
    box-shadow: none !important;
  }

  body.admin-bar .navbar-fixed-top.header-collapsed {
    transform: translateY(calc(-100% - 50px)) !important;
  }

  .navbar {
    min-height: 60px;
  }

  .navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .navbar-header {
    float: none;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 6px 0;
    margin: 0;
  }

  /* Main logo at top for easy 1-tap access to homepage */
  .navbar-brand {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
  }

  .navbar-brand img {
    height: 44px;
    max-height: 44px;
    width: auto;
    max-width: 85vw;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .navbar-brand:hover img,
  .navbar-brand:focus img {
    opacity: 0.92;
  }

  /* Header menu options & search disappear in mobile view */
  .navbar-main-nav,
  .navbar-nav,
  .navbar-form {
    display: none !important;
    visibility: hidden !important;
  }

  #cc-content {
  }

  #homepage-header {
    margin-top: 12px;
    margin-bottom: 20px;
  }
}

/* ================================================================
   4. HOMEPAGE JUMBOTRON / HERO
   ================================================================ */
#homepage-header {
  background: #f6f6f3 url('images/banner-lg-otc.png') bottom 20px right 25px no-repeat;
  background-size: auto 360px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 30px 30px 35px;
  margin: 25px 0 25px;
}
@media (max-width: 767px) {
  #homepage-header {
    background-image: none !important;
    padding: 20px 15px;
  }
}
#homepage-header h1 {
  margin-top: 0;
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1.2;
  color: #333333;
}
#header-free {
  font-size: 50px;
  line-height: 50px;
  display: block;
  color: #333333;
}

/* ================================================================
   5. CLASSIC BUTTONS (Exact Bootstrap 3 Theme Gradients & Shadows)
   ================================================================ */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
  text-decoration: none !important;
}

.btn:focus,
.btn:hover {
  color: #333333;
  text-decoration: none !important;
}

.btn:active,
.btn.active {
  background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn.disabled,
.btn[disabled],
fieldset[disabled] .btn {
  cursor: not-allowed;
  filter: alpha(opacity=65);
  -webkit-box-shadow: none;
  box-shadow: none;
  opacity: 0.65;
}

/* Button Sizes */
.btn-lg {
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.btn-xs {
  padding: 1px 5px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

/* Primary Button (Exact CatholiCity Blue Gradient) */
.btn-primary {
  color: #ffffff !important;
  background-color: #337ab7;
  background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
  background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
  background-repeat: repeat-x;
  border-color: #245580;
}
.btn-primary:hover,
.btn-primary:focus {
  color: #ffffff !important;
  background-color: #286090;
  background-image: -webkit-linear-gradient(top, #2b669a 0%, #1e4b71 100%);
  background-image: linear-gradient(to bottom, #2b669a 0%, #1e4b71 100%);
  border-color: #1e4567;
}
.btn-primary:active,
.btn-primary.active {
  background-color: #1e4b71;
  background-image: none !important;
  border-color: #1a3957;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}
.btn-primary a {
  color: #ffffff !important;
  text-decoration: none;
}

/* Success Button (CatholiCity Green Gradient) */
.btn-success {
  color: #ffffff !important;
  background-color: #5cb85c;
  background-image: -webkit-linear-gradient(top, #5cb85c 0%, #419641 100%);
  background-image: linear-gradient(to bottom, #5cb85c 0%, #419641 100%);
  background-repeat: repeat-x;
  border-color: #3e8f3e;
}
.btn-success:hover,
.btn-success:focus {
  color: #ffffff !important;
  background-color: #449d44;
  background-image: -webkit-linear-gradient(top, #4cae4c 0%, #357a35 100%);
  background-image: linear-gradient(to bottom, #4cae4c 0%, #357a35 100%);
  border-color: #327332;
}
.btn-success:active,
.btn-success.active {
  background-color: #357a35;
  background-image: none !important;
  border-color: #2b612b;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Default / White Button (Light Gray Gradient) */
.btn-default {
  color: #333333 !important;
  background-color: #ffffff;
  background-image: -webkit-linear-gradient(top, #ffffff 0%, #e0e0e0 100%);
  background-image: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 100%);
  background-repeat: repeat-x;
  text-shadow: 0 1px 0 #ffffff;
  border-color: #cccccc;
}
.btn-default:hover,
.btn-default:focus {
  color: #333333 !important;
  background-color: #e6e6e6;
  background-image: -webkit-linear-gradient(top, #f2f2f2 0%, #d8d8d8 100%);
  background-image: linear-gradient(to bottom, #f2f2f2 0%, #d8d8d8 100%);
  border-color: #adadad;
}
.btn-default:active,
.btn-default.active {
  background-color: #dcdcdc;
  background-image: none !important;
  border-color: #adadad;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

/* Danger Button (Red Gradient) */
.btn-danger {
  color: #ffffff !important;
  background-color: #d9534f;
  background-image: -webkit-linear-gradient(top, #d9534f 0%, #c12e2a 100%);
  background-image: linear-gradient(to bottom, #d9534f 0%, #c12e2a 100%);
  background-repeat: repeat-x;
  border-color: #b92c28;
}
.btn-danger:hover,
.btn-danger:focus {
  color: #ffffff !important;
  background-color: #c9302c;
  background-image: -webkit-linear-gradient(top, #c9302c 0%, #a52622 100%);
  background-image: linear-gradient(to bottom, #c9302c 0%, #a52622 100%);
  border-color: #982320;
}
.btn-danger:active,
.btn-danger.active {
  background-color: #a52622;
  background-image: none !important;
  border-color: #831f1c;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Warning Button (Gold / Orange Gradient) */
.btn-warning {
  color: #ffffff !important;
  background-color: #f0ad4e;
  background-image: -webkit-linear-gradient(top, #f0ad4e 0%, #eb9316 100%);
  background-image: linear-gradient(to bottom, #f0ad4e 0%, #eb9316 100%);
  background-repeat: repeat-x;
  border-color: #e38d13;
}
.btn-warning:hover,
.btn-warning:focus {
  color: #ffffff !important;
  background-color: #ec971f;
  background-image: -webkit-linear-gradient(top, #ec971f 0%, #cb7b0c 100%);
  background-image: linear-gradient(to bottom, #ec971f 0%, #cb7b0c 100%);
  border-color: #c0740b;
}
.btn-warning:active,
.btn-warning.active {
  background-color: #cb7b0c;
  background-image: none !important;
  border-color: #a8650a;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Purple Button (Exact CatholiCity Purple Gradient) */
.btn-purple {
  color: #ffffff !important;
  background-color: #975bd0;
  background-image: -webkit-linear-gradient(top, #975bd0 0%, #7529bd 100%);
  background-image: linear-gradient(to bottom, #975bd0 0%, #7529bd 100%);
  background-repeat: repeat-x;
  border-color: #6c23b2;
}
.btn-purple:hover,
.btn-purple:focus {
  color: #ffffff !important;
  background-color: #7529bd;
  background-image: -webkit-linear-gradient(top, #8646c2 0%, #631fa7 100%);
  background-image: linear-gradient(to bottom, #8646c2 0%, #631fa7 100%);
  border-color: #5c1b9b;
}
.btn-purple:active,
.btn-purple.active {
  background-color: #631fa7;
  background-image: none !important;
  border-color: #4f1784;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}

/* Alternate Button */
.btn-alternate {
  margin-left: 15px;
}

/* Jumbotron / Hero CTA Button (Exact Signature Drop Shadow & Letter Spacing) */
.jumbotron .btn-lg,
#homepage-header .btn-lg {
  letter-spacing: 1px;
  font-weight: bold;
  color: #ffffff !important;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 2px 1px 0px rgba(0, 0, 0, 0.65);
  -moz-box-shadow: 2px 2px 1px 0px rgba(0, 0, 0, 0.65);
  box-shadow: 2px 2px 1px 0px rgba(0, 0, 0, 0.65);
}

/* Caption Button Spacing (Exact custom.css) */
.caption .btn {
  margin-left: 5px !important;
  margin-right: 5px !important;
}

/* WordPress Core / Gutenberg & WooCommerce Buttons Consistency */
.wp-block-button__link,
.wp-element-button,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #245580;
  color: #ffffff !important;
  background-color: #337ab7;
  background-image: -webkit-linear-gradient(top, #337ab7 0%, #265a88 100%);
  background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
  background-repeat: repeat-x;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background-color: #286090;
  background-image: -webkit-linear-gradient(top, #2b669a 0%, #1e4b71 100%);
  background-image: linear-gradient(to bottom, #2b669a 0%, #1e4b71 100%);
  border-color: #1e4567;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ================================================================
   6. SIDEBAR & THUMBNAILS (Exact CatholiCity Widget Styling)
   ================================================================ */
.thumbnail {
  display: block;
  padding: 15px;
  margin-bottom: 20px;
  line-height: 1.42857143;
  background-color: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.thumbnail .caption {
  padding: 9px;
  color: #333333;
}

/* ================================================================
   7. FOOTER
   ================================================================ */
#cc-footer {
  margin-top: 50px;
  padding: 25px 0 35px;
  background-color: #f5f5f5;
  border-top: 1px solid #e5e5e5;
  font-size: 14px;
  color: #666666;
}
.footer-left {
  text-align: left;
}
.footer-right {
  text-align: right;
}
@media (max-width: 767px) {
  .footer-left, .footer-right {
    text-align: center;
  }
  .footer-right {
    margin-top: 10px;
  }
}
#cc-footer a {
  color: #337ab7;
  text-decoration: none;
}
#cc-footer a:hover {
  text-decoration: underline;
}

/* ================================================================
   8. RESPONSIVE TYPOGRAPHY & LAYOUT (Exact CatholiCity Rules)
   ================================================================ */
@media (max-width: 767px) {
  .font16xs {
    font-size: 16px !important;
  }
  h1, .h1 { font-size: 24px; }
  h2, .h2 { font-size: 20px; }
  h3, .h3 { font-size: 20px; }
  h4, .h4 { font-size: 18px; }
  h5, .h5 { font-size: 14px; }
  h6, .h6 { font-size: 12px; }
  .cc-page-content,
  .page-content,
  .entry-content {
    font-size: 17px;
    line-height: 1.411764706;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .cc-page-content,
  .page-content,
  .entry-content {
    font-size: 16px;
    line-height: 1.4375;
  }
  .sidebar h3 {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .cc-page-content,
  .page-content,
  .entry-content {
    padding-right: 50px;
    font-size: 17px;
  }
}


/* ================================================================
   9. BOOTSTRAP 3 HOMEPAGE UTILITIES (Wells, Media Objects & Grid)
   ================================================================ */

/* Well Containers (Announcement Banners) */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  background-image: -webkit-linear-gradient(top, #fafafa 0%, #f3f3f3 100%);
  background-image: linear-gradient(to bottom, #fafafa 0%, #f3f3f3 100%);
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.well table {
  width: 100%;
  border-collapse: collapse;
}

/* Media Objects (Online Resource Tiles) */
.media,
.media-body {
  overflow: hidden;
  zoom: 1;
}
.media:first-child {
  margin-top: 0;
}
.media-body {
  width: 10000px;
  line-height: 21px;
}
.media-body p {
  margin: 0;
}
.media-body-header {
  margin: 0 0 4px;
  font-weight: bold;
}
.media-left,
.media > .pull-left {
  float: left;
  padding-right: 12px;
}
.media-right,
.media > .pull-right {
  float: right;
  padding-left: 12px;
}
.media-object {
  display: block;
}
.thumbnail .media-left img {
  max-width: none;
  border-radius: 4px;
}

/* Hero Spacers & Features */
.hero-spacer {
  margin-top: 15px;
  margin-bottom: 25px;
}
.hero-feature {
  margin-bottom: 30px;
}

/* Large Desktop Responsive Columns (1200px+) */
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md-3 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}
@media (min-width: 992px) {
  .col-md-3 { float: left; width: 25%; }
}
@media (min-width: 1200px) {
  .col-lg-1  { float: left; width: 8.33333333%; }
  .col-lg-2  { float: left; width: 16.66666667%; }
  .col-lg-3  { float: left; width: 25%; }
  .col-lg-4  { float: left; width: 33.33333333%; }
  .col-lg-5  { float: left; width: 41.66666667%; }
  .col-lg-6  { float: left; width: 50%; }
  .col-lg-7  { float: left; width: 58.33333333%; }
  .col-lg-8  { float: left; width: 66.66666667%; }
  .col-lg-9  { float: left; width: 75%; }
  .col-lg-10 { float: left; width: 83.33333333%; }
  .col-lg-11 { float: left; width: 91.66666667%; }
  .col-lg-12 { width: 100%; }
}

/* =============================================
   10. DEFAULT PAGE — TWO-COLUMN LAYOUT
   ============================================= */

.cc-default-page {
	display: flex;
	gap: 30px;
	align-items: flex-start;
	width: calc(100% - 60px);
	max-width: 1200px;
	margin-top: 30px;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}

/* MAIN CONTENT COLUMN */

.cc-default-page > .cc-content-column {
	flex: 1;
	min-width: 0;
}

/* ADVERTISING COLUMN */

.cc-default-page > .ccm-ad {
	flex: 0 0 410px;
	width: 410px;
}

/* MOBILE / TABLET */

@media (max-width: 991px) {

	.cc-default-page {
		display: block;
	}

	.cc-default-page > .cc-content-column {
		width: 100%;
	}

	.cc-default-page > .ccm-ad {
		display: none;
	}

}
