/*
 * This is a manifest file that'll be compiled into application.css
 */

/* ==========================================================================
   BASE STYLES & RESETS
   ========================================================================== */

::-webkit-scrollbar {
  background: #f9f7f1;
}

::-webkit-scrollbar-thumb {
  background: #cfccc3;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Droid Serif", serif;
  font-size: 14px;
  color: #2f2f2f;
  background-color: #f9f7f1;
}

p {
  margin-top: 0;
  margin-bottom: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION STYLES
   ========================================================================== */

.head {
  text-align: center;
  position: relative;
  margin-bottom: 6px;
}

.main-logo-link {
  text-decoration: none !important;
  color: #2f2f2f !important;
}

header {
  font-family: "Permanent Marker", cursive;
  font-weight: 900;
  font-size: 80px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 72px;
  margin-bottom: 20px;
  color: #2f2f2f !important;
}

.subhead {
  text-transform: uppercase;
  border-bottom: 2px solid #2f2f2f;
  border-top: 2px solid #2f2f2f;
  padding: 12px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.subhead a {
  color: #2f2f2f;
  padding-left: 1.5vw;
  padding-right: 1.5vw;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.subhead a:hover {
  text-decoration: underline;
}

.subhead b {
  color: #2f2f2f;
  padding-left: 3vw;
  padding-right: 3vw;
}

.quoteBox {
  position: relative;
  width: 12%;
  left: 10px;
  border: 3px double #2f2f2f;
  padding: 10px 15px 10px 15px;
  line-height: 20px;
  display: inline-block;
  margin: 0 50px 20px -360px;
  text-align: left;
}

.quote-author {
  font-style: italic;
  font-weight: bold;
}

/* ==========================================================================
   TYPOGRAPHY & LINKS
   ========================================================================== */

h2 a {
  color: inherit;
  text-decoration: none;
  text-align: center;
}

h2 a:hover {
  text-decoration: underline;
}

/* NUCLEAR OPTION FOR SITEMAP LINKS - PREVENTS BLUE */
.sitemap-link,
.sitemap-col ul li a,
.article.detail a.sitemap-link {
  color: #2f2f2f !important;
  text-decoration: none !important;
}

.headline {
  color: #2f2f2f;
  text-decoration: none;
}

.headline:hover {
  color: #000000;
  text-decoration: underline;
}

.headline:visited {
  color: #453b3b;
  text-decoration: underline;
}

/* ==========================================================================
   SITEMAP PAGE STYLES
   ========================================================================== */

.sitemap-header {
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  padding-bottom: 20px;
}

.sitemap-subheading {
  color: #8b8378 !important;
  font-style: italic;
  font-family: "Droid Serif", serif;
  margin-top: 10px;
  text-align: center;
  font-weight: 400;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 2fr; /* Asymmetric grid for modern feel */
  gap: 60px;
  margin-top: 30px;
  align-items: start;
}

.sitemap-col h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 2px solid #2f2f2f;
  padding-bottom: 12px;
  margin-bottom: 25px;
  color: #2f2f2f;
  text-align: left;
}

.sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.sitemap-col ul li {
  margin-bottom: 18px;
  line-height: 1.5;
}

.sitemap-link {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #2f2f2f !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
  display: inline-block;
  letter-spacing: 0.5px;
}

.sitemap-link:hover {
  color: #a37c7c !important;
  transform: translateX(5px);
}

/* ==========================================================================
   LAYOUT - INDEX PAGE (SLEEK MAGAZINE GRID)
   ========================================================================== */

.magazine-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-section {
  margin-bottom: 50px;
  padding: 50px;
  background: linear-gradient(#f5f0eb, #f3ebe2);
  border: 1px solid #ddd;
  text-align: center;
  border-top: 5px solid #2f2f2f;
}

.hero-section:has(.arts) {
  border-top-color: #a37c7c;
}
.hero-section:has(.nations) {
  border-top-color: #7c8ba3;
}
.hero-section:has(.stem) {
  border-top-color: #7ca38a;
}
.hero-section:has(.culture) {
  border-top-color: #937ca3;
}
.hero-section:has(.industry) {
  border-top-color: #a3917c;
}
.hero-section:has(.opinion) {
  border-top-color: #888888;
}
.hero-section:has(.local) {
  border-top-color: #6d7a71;
}
.hero-section:has(.sports) {
  border-top-color: #b38b6d;
}

.tag {
  background-color: #2f2f2f;
  color: #fff;
  padding: 4px 12px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.hero-card h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 48px;
  font-style: normal;
  line-height: 1.1;
  margin: 10px 0 20px 0;
}

.hero-link {
  text-decoration: none;
  color: #2f2f2f;
}

.hero-excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
  font-family: "Droid Serif", serif;
}

.read-more-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid #2f2f2f;
  color: #2f2f2f;
  padding: 10px 25px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.read-more-btn:hover {
  background: #2f2f2f;
  color: #fff;
}

.cards-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 35px;
  width: 100%;
}

/* --- CATEGORY PILLS --- */

.category-pill {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding: 4px 10px;
  border-radius: 3px;
  color: #ffffff !important;
  align-self: flex-start;
}

.category-pill.arts {
  background-color: #a37c7c !important;
}
.category-pill.nations {
  background-color: #7c8ba3 !important;
}
.category-pill.stem {
  background-color: #7ca38a !important;
}
.category-pill.culture {
  background-color: #937ca3 !important;
}
.category-pill.industry {
  background-color: #a3917c !important;
}
.category-pill.opinion {
  background-color: #888888 !important;
}
.category-pill.local {
  background-color: #6d7a71 !important;
}
.category-pill.sports {
  background-color: #b38b6d !important;
}

/* --- GRID CARDS --- */

.news-card {
  background: linear-gradient(#f5f0eb, #f3ebe2);
  padding: 30px;
  border: 1px solid #ddd;
  border-top: 5px solid #2f2f2f;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.news-card:has(.arts) {
  border-top-color: #a37c7c;
}
.news-card:has(.nations) {
  border-top-color: #7c8ba3;
}
.news-card:has(.stem) {
  border-top-color: #7ca38a;
}
.news-card:has(.culture) {
  border-top-color: #937ca3;
}
.news-card:has(.industry) {
  border-top-color: #a3917c;
}
.news-card:has(.opinion) {
  border-top-color: #888888;
}
.news-card:has(.local) {
  border-top-color: #6d7a71;
}
.news-card:has(.sports) {
  border-top-color: #b38b6d;
}

.news-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(#faf7f4, #f8f1e9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.news-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.card-link {
  text-decoration: none;
  color: #2f2f2f;
}

.card-link:hover {
  text-decoration: underline;
}

.card-excerpt {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 25px;
  font-family: "Droid Serif", serif;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-link {
  color: #2f2f2f;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid #ddd;
  align-self: flex-start;
}

.text-link:hover {
  border-bottom-color: #2f2f2f;
}

/* ==========================================================================
   ARTICLE PAGE STRUCTURE
   ========================================================================== */

.article-layout {
  display: flex !important;
  max-width: 1400px;
  margin: 40px auto;
  gap: 30px;
  padding: 0 20px;
  align-items: flex-start;
}

.article.detail {
  flex: 2.5 !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.65;
  background: linear-gradient(#f5f0eb, #f3ebe2);
  padding: 40px 60px;
  border: 1px solid #ddd;
  border-radius: 5px;
  color: #2b2b2b;
  text-rendering: optimizeLegibility;
}

.article.detail h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 12px;
}

.article.detail h4 {
  font-family: "Droid Serif", serif;
  font-style: italic;
  font-size: 22px;
  color: #666;
  margin-bottom: 30px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
  text-align: center;
}

.sidebar {
  flex: 1 !important;
  min-width: 350px !important;
  background: linear-gradient(#f5f0eb, #f3ebe2);
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: sticky;
  top: 20px;
}

.sidebar img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  border: 1px solid #ddd;
}

/* ==========================================================================
   ARTICLE PAGE UI ELEMENTS
   ========================================================================== */

.summary-box {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding: 15px 0;
  margin-bottom: 30px;
  text-align: center;
}

.summary-title {
  text-align: center;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.summary-text {
  text-align: center;
  font-size: 18px;
  color: #8b8378 !important;
  font-style: italic;
  max-width: 80%;
  margin: 0 auto;
}

.continue-link-wrapper {
  text-align: center;
  margin-top: 40px;
  padding: 20px 0;
}

.continue-link {
  color: #2f2f2f !important;
  text-decoration: none;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.continue-link:hover {
  text-decoration: underline;
}

.small-box {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.small-box h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  margin: 0;
  text-align: left;
}

/* ADD THESE TO YOUR SITEMAP/ABOUT SECTION */
.about-list {
  list-style: none;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #2f2f2f;
}

.about-list li strong {
  letter-spacing: 1px;
  display: block;
  font-size: 11px;
  color: #a37c7c; /* Using the 'Arts' color for highlights */
}

.article.detail .sitemap-header h1 {
  letter-spacing: -1px;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination-wrapper {
  margin: 60px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pagination-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Montserrat", sans-serif;
}

.pagination-btn {
  background-color: transparent;
  border: 1px solid #2f2f2f;
  color: #2f2f2f !important;
  padding: 8px 16px;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.pagination-btn:hover {
  background-color: #2f2f2f;
  color: #f9f7f1 !important;
}

.page-info {
  font-size: 13px;
  color: #777;
  margin: 0 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.page-info strong {
  color: #2f2f2f;
}

@media (max-width: 600px) {
  .pagination-container {
    gap: 5px;
  }
  .pagination-btn {
    padding: 6px 10px;
    font-size: 10px;
  }
}

.step-links {
  font-family: "Montserrat", sans-serif;
  font-size: 23px;
}

.meta {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 15px;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: 2px solid #2f2f2f;
  outline: none;
  background-color: #f9f7f1;
  color: #2f2f2f;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: #2f2f2f;
  color: #f9f7f1;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.main-footer {
  margin-top: 80px;
  margin-bottom: 40px;
  padding: 0 20px;
}

.footer-nav {
  text-transform: uppercase;
  border-bottom: 2px solid #2f2f2f;
  border-top: 2px solid #2f2f2f;
  padding: 15px 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}

.footer-link {
  color: #2f2f2f !important;
  padding-left: 2vw;
  padding-right: 2vw;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 1px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-nav b {
  color: #2f2f2f;
  padding-left: 4vw;
  padding-right: 4vw;
  font-size: 12px;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */

@media (max-width: 1200px) {
  .article.detail {
    padding: 40px;
  }
  .sidebar {
    min-width: 300px !important;
  }
  .subhead a {
    font-size: 12px;
    padding: 0 1vw;
  }
}

@media (max-width: 1100px) {
  .quoteBox {
    display: none;
  }
}

@media (max-width: 950px) {
  .article-layout {
    flex-direction: column;
  }
  .article.detail {
    width: 100%;
    box-sizing: border-box;
  }
  .sidebar {
    width: 100%;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .subhead {
    white-space: normal;
    flex-wrap: wrap;
  }

  /* Responsive Sitemap Grid */
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sitemap-col h3,
  .sitemap-col ul {
    text-align: center;
  }
  .sitemap-link:hover {
    transform: none;
  }
}
