/*
Theme Name: Thomas Ralling Lodge
Theme URI: https://trlodge.org
Description: Custom theme for Thomas Ralling Lodge No 2508, based on Pinboard theme
Author: UK Web & Media
Author URI: http://www.ukwebandmedia.com/
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trlodge

This theme is a custom conversion for Thomas Ralling Lodge.
*/

/* Import Oswald font */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/oswald-light.ttf') format('truetype');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/oswald-regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/oswald-semibold.ttf') format('truetype');
}

/* Base Styles */
body {
  font-family: "Oswald", sans-serif;
  font-size: 12pt;
  line-height: 1.62em;
  background-color: #1e73be;
}

body.custom-background {
  background-color: #1e73be;
}

#wrapper {
  background: #ffffff;
}

/* Header Styles */
#header {
  border-color: #122f72;
  padding: 20px;
}

#site-title a,
#site-description {
  color: #333;
}

#site-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
}

#site-title img {
  max-width: 110px;
  height: auto;
}

#site-description {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

/* Navigation */
#access {
  background: #122f72;
  clear: both;
}

#access a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  display: block;
}

#access a:hover {
  background: #25a4f9;
}

#access ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#access li {
  display: inline-block;
  position: relative;
}

#access li li {
  background: #25a4f9;
  display: block;
}

#access ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  z-index: 999;
}

#access li:hover > ul {
  display: block;
}

/* Content Area */
#container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#content {
  margin: 20px 0;
}

/* Entries/Posts */
.entries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post {
  background: #ffffff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.entry-title {
  font-family: "Oswald", sans-serif;
  font-size: 30pt;
  line-height: 1.62em;
  color: #1e73be;
  margin: 0 0 15px 0;
}

.entry-title a {
  color: #1e73be;
  text-decoration: none;
}

.entry-title a:hover {
  color: #122f72;
}

.entry-content {
  font-family: "Oswald", sans-serif;
  font-size: 12pt;
  line-height: 1.62em;
}

/* Sidebar */
#sidebar-wide,
#sidebar-footer-wide,
#sidebar-boxes {
  background: #ffffff;
  padding: 20px;
  margin: 20px 0;
}

.widget {
  margin-bottom: 30px;
}

.widget-title {
  color: #1e73be;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1e73be;
}

.widget-area a {
  color: #1e73be;
}

/* Footer */
#footer-area {
  background: #122f72;
  color: #ffffff;
  padding: 30px 20px;
  margin-top: 40px;
}

#footer-area .widget-title {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

#footer-area a {
  color: #ffffff;
}

#copyright {
  background: #122f72;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

#copyright a {
  color: #7597b9;
}

/* Responsive */
@media screen and (max-width: 640px) {
  .entry-content {
    font-size: 15pt;
    line-height: 1.62em;
  }
  
  .entries {
    grid-template-columns: 1fr;
  }
  
  #access li {
    display: block;
  }
}

/* Social Media Icons */
#social-media-icons a {
  display: inline-block;
  margin: 0 5px;
  color: #122f72;
  text-decoration: none;
}

/* Columns */
.column {
  float: left;
  margin-right: 2%;
}

.onecol { width: 100%; }
.twocol { width: 49%; }
.threecol { width: 32%; }
.fourcol { width: 23.5%; }

.clear {
  clear: both;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

img.wp-smiley,
img.emoji {
  display: inline !important;
  border: none !important;
  box-shadow: none !important;
  height: 1em !important;
  width: 1em !important;
  margin: 0 .07em !important;
  vertical-align: -0.1em !important;
  background: none !important;
  padding: 0 !important;
}