/* Generic base styles — original santri theme CSS (bootstrap.min.css + style.css)
   was absent from the Wayback archive. Clean, readable reconstruction of the
   grid + layout the markup relies on. Not a pixel copy of the original theme. */

*, *::before, *::after { box-sizing: border-box; }

body.home, body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #33373b;
  background: #f4f5f7;
}

img { max-width: 100%; height: auto; }
a { color: #2a6dad; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: "Open Sans", Arial, sans-serif; line-height: 1.25; color: #23282d; }

/* ---- bootstrap-like grid (container / row / col-*) ---- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.row > [class*="col-"] { padding: 0 15px; width: 100%; }

@media (min-width: 768px) {
  .col-md-3 { width: 25%; }
  .col-md-4, .col-sm-4 { width: 33.3333%; }
  .col-md-6 { width: 50%; }
  .col-md-8, .col-sm-8 { width: 66.6667%; }
  .col-md-9 { width: 75%; }
}
.clearfix::after { content: ""; display: table; clear: both; }

/* ---- header / hero ---- */
#header-active { background: #ffffff; border-bottom: 1px solid #e4e7ea; }
#header-active .container { padding-top: 14px; padding-bottom: 0; }

/* The archived header has three sibling columns: logo, main menu and the
   secondary Blog/Guida links. Keep them on one line instead of allowing the
   third column to wrap below the navigation. */
#header-top .row {
  display: grid;
  grid-template-columns: minmax(190px, 25%) minmax(220px, 1fr) auto;
  align-items: center;
  margin-left: -15px;
  margin-right: -15px;
}
#header-top .row > [class*="col-"] { width: auto; }
#header-top .row > .col-md-9 { min-width: 0; }
#header-top .row > .col-md-3:last-child { white-space: nowrap; }

nav#mobilemenu { display: flex; align-items: center; }
ul#menu-1.menu, nav ul.menu {
  list-style: none; margin: 10px 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px;
}
ul.menu li { margin: 0; }
ul.menu li a {
  display: block; padding: 8px 14px; color: #33373b;
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
}
ul.menu li a:hover, ul.menu li.current-menu-item a { color: #2a6dad; text-decoration: none; }
#head-mobile, nav .button { display: none; }

#hero-img {
  min-height: 260px; background-size: cover; background-position: center;
  background-color: #2c3e50;
}
#hero-text {
  text-align: center; padding: 34px 15px 40px;
}
#hero-text h1 {
  font-family: "Damion", "Open Sans", cursive; font-weight: 400;
  font-size: 44px; margin: 0 0 6px; color: #23282d;
}
#hero-text p { margin: 0; font-size: 18px; color: #6b7176; }

/* ---- main content column ---- */
#main-holder { padding-top: 30px; padding-bottom: 40px; }

.teaser, article.post {
  background: #fff; border: 1px solid #e4e7ea; border-radius: 4px;
  padding: 22px 24px; margin-bottom: 26px;
}
.teaser-title, h3.teaser-title { margin: 0 0 8px; font-size: 22px; }
.teaser-title a { color: #23282d; }
.teaser-title a:hover { color: #2a6dad; }
.date-author { margin: 0 0 10px; font-size: 13px; color: #8a9096; text-transform: uppercase; letter-spacing: .03em; }
.teaser-text p { margin: 0 0 10px; }
.teaser-text a[href] { font-weight: 700; }

#post-title, h1#post-title { font-size: 30px; margin: 6px 0 14px; }
article p { margin: 0 0 16px; }
#post-footer { margin-top: 24px; }
.pager { margin: 10px 0 30px; }

/* ---- sidebar ---- */
#primary-sidebar { padding-top: 30px; padding-bottom: 40px; }
.widget {
  background: #fff; border: 1px solid #e4e7ea; border-radius: 4px;
  padding: 18px 20px; margin-bottom: 24px;
}
.widget-title, h4.widget-title {
  margin: 0 0 12px; font-size: 16px; padding-bottom: 8px;
  border-bottom: 2px solid #2a6dad; text-transform: uppercase; letter-spacing: .02em;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid #eef0f2; }

/* ---- footer ---- */
footer {
  background: #23282d; color: #c7ccd1; margin-top: 30px;
  padding: 30px 0; font-size: 14px;
}
footer a { color: #9ec5ee; }
footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
footer p { margin: 0; }

@media (max-width: 767px) {
  #header-top .row { display: flex; }
  #header-top .row > [class*="col-"] { width: 100%; }
  #header-top .row > .col-md-3:last-child { white-space: normal; }
  #hero-text h1 { font-size: 34px; }
  footer nav ul { justify-content: flex-start; }
}
