/* Custom CSS to replace Bootstrap - G.K. Trésmíði */

/* Reset and base styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Palanquin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Container - replaces Bootstrap .container */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* Remove padding utility */
.remove-padding {
  padding-top: 20px;
}

@media (max-width: 770px) {
  .remove-padding {
    padding-top: 0 !important;
  }
}

/* Row - replaces Bootstrap .row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

/* Columns - replaces Bootstrap grid */
[class*="col-"] {
  padding: 0 15px;
  width: 100%;
}

/* Large screens (desktop) */
@media (min-width: 1200px) {
  .col-lg-4 {
    width: 33.333%;
  }
  .col-lg-8 {
    width: 66.666%;
  }
  .col-lg-offset-2 {
    margin-left: 16.666%;
  }
}

/* Medium screens and below - full width */
@media (max-width: 1199px) {
  .col-lg-4,
  .col-lg-8 {
    width: 100%;
  }
  .col-lg-offset-2 {
    margin-left: 0;
  }
}

/* Navbar styling - matches original theme */
.navbar {
  margin-bottom: 0;
  text-transform: uppercase;
}

.navbar-inverse {
  background-color: #567aff;
  border-color: #0036ff;
  border-bottom: 3px solid #2f2f2f;
  padding-top: 60px;
  padding-bottom: 0;
}

.navbar-header {
  padding: 10px 0;
}

.navbar-brand {
  color: #fff !important;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 3px;
  font-family: 'Palanquin', sans-serif;
  text-decoration: none;
  display: inline-block;
  padding: 5px 0;
}

.navbar-brand:hover {
  color: #222 !important;
}

/* Clearfix utility */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Article styling */
article header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2em;
  margin-bottom: 20px;
  color: #2c3e50;
}

.post-entry {
  margin: 20px 0;
}

/* Footer styling */
#footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 40px 0 20px;
  margin-top: 50px;
}

#footer a {
  color: #3498db;
  text-decoration: none;
}

#footer a:hover {
  text-decoration: underline;
}

.footer-title h4 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  margin-bottom: 15px;
  color: #fff;
}

.widget-wrapper {
  margin-bottom: 30px;
}

.textwidget {
  line-height: 1.8;
}

/* Page content area */
#ww {
  padding: 50px 0;
  background-color: #fff;
}

#wrapper {
  min-height: 400px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  article header h1 {
    font-size: 1.5em;
  }

  #ww {
    padding: 30px 0;
  }

  .col-lg-4 {
    margin-bottom: 20px;
  }
}
