/* ============================================================
   Skyland Golf Course — Custom Stylesheet
   skylandgolfcourse.com
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: #2e2e2e;
  background-color: #f7f6f2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2d6a1e;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #1a4512;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif;
  color: #1c4a12;
  line-height: 1.3;
}

ul, ol {
  padding-left: 1.3em;
}

/* --- Layout Wrapper --- */
.sgc-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.sgc-header {
  background-color: #1c4a12;
  border-bottom: 4px solid #a68b3c;
}

.sgc-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.sgc-logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sgc-logo-block img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #a68b3c;
}

.sgc-site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  color: #f0ead6;
  letter-spacing: 0.5px;
}

.sgc-site-tagline {
  font-size: 0.78rem;
  color: #b5c7a8;
  display: block;
  margin-top: 2px;
}

/* --- Navigation --- */
.sgc-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.sgc-nav a {
  display: inline-block;
  padding: 7px 13px;
  color: #e8e3d3;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.sgc-nav a:hover,
.sgc-nav a.sgc-active {
  background-color: #a68b3c;
  color: #fff;
  text-decoration: none;
}

.sgc-nav-toggle {
  display: none;
  background: none;
  border: 2px solid #b5c7a8;
  color: #e8e3d3;
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 3px;
}

/* --- Hero / Banner --- */
.sgc-hero {
  position: relative;
  background-color: #2a5e1a;
  overflow: hidden;
}

.sgc-hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.sgc-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(28,74,18,0.85));
  padding: 32px 30px 22px;
  color: #fff;
}

.sgc-hero-overlay h1 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 6px;
}

.sgc-hero-overlay p {
  font-size: 1.05rem;
  color: #d5e3cc;
}

/* --- Main Content Area with Sidebar --- */
.sgc-content-row {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.sgc-main {
  flex: 1;
  min-width: 0;
}

.sgc-sidebar {
  width: 280px;
  flex-shrink: 0;
  order: 1;
}

/* --- Sidebar Widgets --- */
.sgc-sidebar-widget {
  background-color: #eae7dc;
  border: 1px solid #d4cfc0;
  border-radius: 5px;
  padding: 18px;
  margin-bottom: 22px;
}

.sgc-sidebar-widget h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #a68b3c;
  color: #1c4a12;
}

.sgc-sidebar-widget p {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: #4a4a3e;
}

.sgc-sidebar-widget ul {
  list-style: none;
  padding: 0;
}

.sgc-sidebar-widget ul li {
  padding: 5px 0;
  border-bottom: 1px solid #d4cfc0;
  font-size: 0.88rem;
}

.sgc-sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sgc-sidebar-widget ul li a {
  color: #2d6a1e;
}

/* --- Page Title --- */
.sgc-page-title {
  font-size: 1.85rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #a68b3c;
  color: #1c4a12;
}

/* --- Prose Content --- */
.sgc-prose {
  line-height: 1.7;
}

.sgc-prose p {
  margin-bottom: 14px;
}

.sgc-prose h2 {
  font-size: 1.35rem;
  margin-top: 28px;
  margin-bottom: 12px;
  color: #2a5e1a;
}

.sgc-prose h3 {
  font-size: 1.1rem;
  margin-top: 22px;
  margin-bottom: 10px;
  color: #3b7a2b;
}

.sgc-prose ul, .sgc-prose ol {
  margin-bottom: 14px;
}

.sgc-prose li {
  margin-bottom: 5px;
}

.sgc-prose img {
  border-radius: 4px;
  margin: 10px 0;
}

.sgc-prose img.sgc-float-right {
  float: right;
  margin: 0 0 15px 20px;
  max-width: 320px;
}

.sgc-prose img.sgc-float-left {
  float: left;
  margin: 0 20px 15px 0;
  max-width: 320px;
}

.sgc-prose .sgc-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Rates Table --- */
.sgc-rates-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.93rem;
}

.sgc-rates-table caption {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: bold;
  text-align: left;
  padding: 10px 12px;
  background-color: #2a5e1a;
  color: #fff;
  border-radius: 4px 4px 0 0;
}

.sgc-rates-table th {
  background-color: #3b7a2b;
  color: #fff;
  padding: 9px 12px;
  text-align: center;
  font-weight: 600;
}

.sgc-rates-table th:first-child {
  text-align: left;
}

.sgc-rates-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #d4cfc0;
  text-align: center;
}

.sgc-rates-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #333;
}

.sgc-rates-table tr:nth-child(even) {
  background-color: #f0eed8;
}

.sgc-rates-table tr:hover {
  background-color: #e4e1cb;
}

.sgc-rates-note {
  font-size: 0.85rem;
  color: #6b6b5a;
  font-style: italic;
  margin-top: 8px;
}

/* --- Hole Card --- */
.sgc-hole-card {
  background-color: #fff;
  border: 1px solid #d4cfc0;
  border-radius: 5px;
  padding: 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.sgc-hole-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #1c4a12;
}

.sgc-hole-card p {
  margin-bottom: 8px;
}

/* --- Feature Blocks --- */
.sgc-feature-block {
  background-color: #fff;
  border: 1px solid #d4cfc0;
  border-radius: 5px;
  padding: 22px;
  margin-bottom: 22px;
  overflow: hidden;
}

.sgc-feature-block h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #2a5e1a;
}

.sgc-feature-block p {
  margin-bottom: 10px;
}

.sgc-feature-block::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Contact Info Block --- */
.sgc-contact-info {
  background-color: #eae7dc;
  border-left: 4px solid #a68b3c;
  padding: 18px 22px;
  border-radius: 0 5px 5px 0;
  margin-bottom: 20px;
}

.sgc-contact-info strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: #1c4a12;
  margin-bottom: 6px;
}

/* --- Footer --- */
.sgc-footer {
  background-color: #1c4a12;
  color: #b5c7a8;
  margin-top: 40px;
  border-top: 4px solid #a68b3c;
}

.sgc-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.sgc-footer-col {
  flex: 1;
  min-width: 200px;
}

.sgc-footer-col h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  color: #f0ead6;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #3b7a2b;
}

.sgc-footer-col p, .sgc-footer-col li {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.sgc-footer-col a {
  color: #c5d8b5;
}

.sgc-footer-col a:hover {
  color: #fff;
}

.sgc-footer-col ul {
  list-style: none;
  padding: 0;
}

.sgc-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  border-top: 1px solid #3b7a2b;
  text-align: center;
  font-size: 0.8rem;
  color: #7a9b6b;
}

.sgc-footer-bottom a {
  color: #b5c7a8;
}

/* --- Breadcrumb --- */
.sgc-breadcrumb {
  font-size: 0.82rem;
  color: #7a7a6a;
  margin-bottom: 18px;
}

.sgc-breadcrumb a {
  color: #5a8a4a;
}

/* --- Quick-Info Strip (homepage) --- */
.sgc-info-strip {
  background-color: #2a5e1a;
  color: #e8e3d3;
  padding: 14px 0;
}

.sgc-info-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.88rem;
  text-align: center;
}

.sgc-info-item strong {
  color: #a68b3c;
}

/* --- Divider --- */
.sgc-divider {
  border: none;
  border-top: 2px solid #d4cfc0;
  margin: 24px 0;
}

/* --- Scorecard Image --- */
.sgc-scorecard {
  margin: 20px 0;
  text-align: center;
}

.sgc-scorecard img {
  margin: 0 auto;
  border: 1px solid #d4cfc0;
  border-radius: 4px;
}

/* --- 404 Page --- */
.sgc-error-page {
  text-align: center;
  padding: 60px 20px;
}

.sgc-error-page h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}

.sgc-error-page p {
  font-size: 1.1rem;
  color: #6b6b5a;
  margin-bottom: 20px;
}

.sgc-btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #2a5e1a;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.sgc-btn:hover {
  background-color: #1c4a12;
  color: #fff;
  text-decoration: none;
}

/* --- Blog Grid (listing page) --- */
.sgc-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.sgc-blog-card {
  background-color: #fff;
  border: 1px solid #d4cfc0;
  border-radius: 5px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.sgc-blog-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sgc-blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.sgc-blog-card-body {
  padding: 18px;
}

.sgc-blog-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: #1c4a12;
}

.sgc-blog-card-body h2 a {
  color: #1c4a12;
  text-decoration: none;
}

.sgc-blog-card-body h2 a:hover {
  color: #2d6a1e;
  text-decoration: underline;
}

.sgc-blog-card-body p {
  font-size: 0.9rem;
  color: #4a4a3e;
  margin-bottom: 12px;
  line-height: 1.55;
}

.sgc-blog-card-body .sgc-btn {
  font-size: 0.85rem;
  padding: 7px 16px;
}

/* --- Blog Meta (date/author) --- */
.sgc-blog-meta {
  font-size: 0.82rem;
  color: #7a7a6a;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d4cfc0;
}

.sgc-blog-meta span {
  margin-right: 14px;
}

/* --- Blog Article (post body) --- */
.sgc-blog-article {
  line-height: 1.75;
}

.sgc-blog-article p {
  margin-bottom: 16px;
}

.sgc-blog-article h2 {
  font-size: 1.35rem;
  margin-top: 32px;
  margin-bottom: 14px;
  color: #2a5e1a;
}

.sgc-blog-article h3 {
  font-size: 1.1rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #3b7a2b;
}

.sgc-blog-article ul, .sgc-blog-article ol {
  margin-bottom: 16px;
}

.sgc-blog-article li {
  margin-bottom: 6px;
}

.sgc-blog-article img {
  border-radius: 4px;
  margin: 16px 0;
}

.sgc-blog-article img.sgc-float-right {
  float: right;
  margin: 0 0 16px 22px;
  max-width: 320px;
}

.sgc-blog-article img.sgc-float-left {
  float: left;
  margin: 0 22px 16px 0;
  max-width: 320px;
}

.sgc-blog-article blockquote {
  border-left: 4px solid #a68b3c;
  padding: 12px 18px;
  margin: 18px 0;
  background-color: #eae7dc;
  border-radius: 0 5px 5px 0;
  font-style: italic;
  color: #4a4a3e;
}

.sgc-blog-nav {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 2px solid #d4cfc0;
  font-size: 0.9rem;
}

.sgc-blog-nav a {
  color: #2d6a1e;
}

/* ============================================================
   Responsive — Breakpoint 850px
   ============================================================ */
@media (max-width: 850px) {
  .sgc-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .sgc-nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .sgc-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 2px;
  }

  .sgc-nav.sgc-nav-open {
    display: flex;
  }

  .sgc-nav a {
    padding: 10px 14px;
    width: 100%;
  }

  .sgc-content-row {
    flex-direction: column;
  }

  .sgc-sidebar {
    width: 100%;
    order: 0;
  }

  .sgc-hero-overlay h1 {
    font-size: 1.5rem;
  }

  .sgc-footer-inner {
    flex-direction: column;
  }

  .sgc-info-strip-inner {
    flex-direction: column;
    gap: 8px;
  }

  .sgc-prose img.sgc-float-right,
  .sgc-prose img.sgc-float-left {
    float: none;
    margin: 10px auto;
    max-width: 100%;
  }

  .sgc-blog-grid {
    grid-template-columns: 1fr;
  }

  .sgc-blog-article img.sgc-float-right,
  .sgc-blog-article img.sgc-float-left {
    float: none;
    margin: 12px auto;
    max-width: 100%;
  }
}

/* ============================================================
   Responsive — Breakpoint 520px
   ============================================================ */
@media (max-width: 520px) {
  html {
    font-size: 15px;
  }

  .sgc-site-title {
    font-size: 1.2rem;
  }

  .sgc-page-title {
    font-size: 1.4rem;
  }

  .sgc-hero img {
    max-height: 220px;
  }

  .sgc-hero-overlay {
    padding: 18px 16px 14px;
  }

  .sgc-hero-overlay h1 {
    font-size: 1.2rem;
  }

  .sgc-hero-overlay p {
    font-size: 0.9rem;
  }

  .sgc-content-row {
    padding: 16px 12px;
    gap: 18px;
  }

  .sgc-rates-table {
    font-size: 0.82rem;
  }

  .sgc-rates-table th, .sgc-rates-table td {
    padding: 6px 8px;
  }

  .sgc-feature-block {
    padding: 14px;
  }

  .sgc-sidebar-widget {
    padding: 14px;
  }

  .sgc-footer-bottom {
    font-size: 0.75rem;
  }
}
