/* AM Creative Knowledge Base Custom Styles */
/* Version 1.0 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Roboto:wght@300;400;700&family=Source+Sans+3:wght@400&display=swap');

/* Brand Color Variables */
:root {
  --deep-blue: #082249;
  --gold: #B6955D;
  --olive-gold: #9C8456;
  --ivory: #F6EDDE;
  --steel-blue: #556986;
  --dark-grey: #2B2E33;
  --olive-grey: #5C5649;
}

/* Base Typography */
body {
  font-family: 'Source Sans 3', 'Roboto', sans-serif;
  font-weight: 400;
  color: var(--dark-grey);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Heading Styles */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--deep-blue);
  line-height: 1.2;
}

h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--deep-blue);
  line-height: 1.3;
}

h5, h6 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  color: var(--steel-blue);
}

/* Text Elements */
.caption, .small-text {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

/* Link Styles */
a {
  color: var(--gold);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--olive-gold);
  text-decoration: none;
}

/* Button Styles */
.btn {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--gold);
  border-color: var(--gold);
  color: white;
}

.btn-primary:hover {
  background-color: var(--olive-gold);
  border-color: var(--olive-gold);
  color: white;
}

.btn-default {
  background-color: var(--steel-blue);
  border-color: var(--steel-blue);
  color: white;
}

.btn-default:hover {
  background-color: var(--deep-blue);
  border-color: var(--deep-blue);
  color: white;
}

/* Header Styles */
.custom-site-header {
  background-color: var(--deep-blue);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-site-header .brand-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.custom-site-header .brand-logo img {
  max-height: 50px;
  width: auto;
}

.custom-site-header .header--nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.custom-site-header .header--nav li {
  margin-left: 30px;
}

.custom-site-header .header--nav a {
  color: white;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.custom-site-header .header--nav a:hover {
  color: var(--gold);
}

.custom-site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  color: white;
}

.menu-lines span {
  background-color: white;
}

/* Search Section */
.search--row {
  background-color: var(--ivory);
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.search--row h2 {
  color: var(--deep-blue);
  margin-bottom: 40px;
  font-size: 36px;
}

.search-form {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search_input {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  border: 2px solid var(--steel-blue);
  border-radius: 50px;
  outline: none;
  transition: border-color 0.3s ease;
  font-family: 'Source Sans 3', 'Roboto', sans-serif;
}

.search_input:focus {
  border-color: var(--gold);
}

.search_submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--gold);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search_submit:hover {
  background-color: var(--olive-gold);
}

/* Article Groups */
.articles--group {
  margin-bottom: 50px;
}

.section-header {
  border-bottom: 3px solid var(--gold);
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.section-header h3 {
  margin: 0;
  font-size: 28px;
}

.section-header h3 a {
  color: var(--deep-blue);
  text-decoration: none;
}

.section-header h3 a:hover {
  color: var(--gold);
}

/* Link Lists */
.list-links {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.list-links li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e5e5;
}

.list-links li:last-child {
  border-bottom: none;
}

.list-links a {
  color: var(--steel-blue);
  font-size: 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.list-links a:hover {
  color: var(--gold);
  padding-left: 10px;
}

/* Content Main */
.content-main {
  padding: 60px 0;
}

.buttons-hold {
  text-align: center;
  margin-top: 20px;
}

/* Footer */
.custom-footer {
  background-color: var(--dark-grey);
  color: white;
  padding: 40px 0 20px;
  margin-top: 80px;
}

.footer-content {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-tagline {
  color: var(--gold);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copyright {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

/* Article Page */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 3px solid var(--gold);
}

.article-category {
  color: var(--gold);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.article-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  color: var(--olive-grey);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: var(--dark-grey);
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 35px;
  margin-bottom: 20px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 20px;
  margin: 30px 0;
  color: var(--steel-blue);
  font-style: italic;
}

.article-content code {
  background-color: var(--ivory);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

.article-content pre {
  background-color: var(--ivory);
  padding: 20px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 20px 0;
}

.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e5e5e5;
}

.related-articles h3 {
  margin-bottom: 25px;
}

/* Category Page */
.category-header {
  background-color: var(--ivory);
  padding: 60px 0;
  text-align: center;
  margin-bottom: 50px;
}

.category-title {
  font-size: 48px;
  margin-bottom: 20px;
}

.category-description {
  font-size: 20px;
  color: var(--steel-blue);
  max-width: 700px;
  margin: 0 auto;
}

.category-articles {
  padding-bottom: 60px;
}

.article-card {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.article-card:hover {
  border-color: var(--gold);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.article-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.article-card h3 a {
  color: var(--deep-blue);
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--gold);
}

.article-card p {
  color: var(--olive-grey);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Search Results */
.search-results-header {
  background-color: var(--ivory);
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
}

.search-query {
  color: var(--gold);
  font-weight: 700;
}

.results-count {
  color: var(--steel-blue);
  font-size: 18px;
  margin-top: 10px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
}

.no-results h3 {
  color: var(--steel-blue);
  margin-bottom: 20px;
}

.no-results p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search--row h2 {
    font-size: 28px;
  }
  
  .article-title {
    font-size: 32px;
  }
  
  .category-title {
    font-size: 36px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .custom-site-header .container {
    flex-wrap: wrap;
  }
  
  .search_submit {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 10px;
    border-radius: 50px;
  }
  
  .search_input {
    border-radius: 8px;
  }
}