/* ==========================================================================
   Jeff Alldridge for Idaho Falls Mayor
   ========================================================================== */

/* CSS Variables */
:root {
  --if-dark: #091840;
  --if-blue2: #364b82;
  --if-blue3: #5a6cb3;
  --if-red: #f04b4b;
  --if-orange: #f8982f;
  --if-light: #ffe7cc;
  --if-white: #fff;

  /* Typography */
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html, body {
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--if-white);
  color: var(--if-dark);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Lead text styling */
.lead {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  color: var(--if-blue2);
  line-height: 1.5;
  margin-bottom: 2rem;
}

main {
  flex: 1 0 auto;
  margin-bottom: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
  color: var(--if-dark);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar-custom {
  background-color: var(--if-dark);
  padding: 1rem 0;
}

.navbar-custom .navbar-brand {
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  font-weight: var(--font-weight-bold);
}

.navbar-custom .brand-orange {
  color: var(--if-orange);
}

.navbar-custom .brand-light {
  color: var(--if-light);
  font-weight: var(--font-weight-medium);
}

.navbar-custom .nav-link {
  color: var(--if-light);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  transition: color 0.2s ease;
  padding: 0.5rem 1rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: var(--if-orange);
}

.navbar-custom .navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-custom .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 2rem;
  height: 2rem;
}

.navbar-toggler-icon rect {
  fill: var(--if-blue3);
  transition: fill 0.2s ease;
}

.navbar-toggler:hover .navbar-toggler-icon rect,
.navbar-toggler:focus .navbar-toggler-icon rect {
  fill: var(--if-orange);
}

@media (max-width: 991.98px) {
  .navbar-custom .navbar-brand {
    line-height: 1.2;
  }

  .navbar-custom .brand-orange {
    margin-bottom: 0.1rem;
  }
}

/* ==========================================================================
   Divider Bar
   ========================================================================== */

.divider-bar {
  height: 8px;
  background-color: var(--if-red);
  flex-shrink: 0;
  width: 100%;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-custom {
  font-weight: var(--font-weight-bold);
  border: none;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.75rem 2rem;
  transition: all 0.2s ease;
}

.btn-custom:hover,
.btn-custom:focus {
  transform: translateY(-1px);
}

.btn-primary-custom {
  background-color: var(--if-orange);
  color: var(--if-dark);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: #d7740c;
  color: var(--if-white);
}

.btn-donate {
  background-color: var(--if-red);
  color: var(--if-white);
}

.btn-donate:hover,
.btn-donate:focus {
  background-color: #be2222;
  color: var(--if-white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: var(--if-dark) url('../img/idaho-falls-background.jpg') center 32% / cover no-repeat;
  color: var(--if-light);
  border-bottom: 8px solid var(--if-orange);
  padding: 4rem 0;
}

.hero-logo {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4/3;
  object-fit: contain;
  margin-bottom: 0;
}

figure {
  margin: 0;
}

.hero-title {
  color: var(--if-orange);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.vote-date {
  color: var(--if-light);
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
}

/* Hero Quote */
.hero-quote {
  font-style: italic;
  border-left: 4px solid var(--if-red);
  padding-left: 1.5rem;
  margin: 0;
}

.hero-quote p {
  margin: 0;
}

/* ==========================================================================
   Profile Image
   ========================================================================== */

.profile-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 0;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 480px;
  object-position: top center;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Ensure the column aligns to top */
.col-md-5.text-center.order-1.order-md-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section-light {
  background-color: var(--if-light);
}

.section-white {
  background-color: var(--if-white);
}

.section-dark {
  background-color: var(--if-dark);
  color: var(--if-white);
}

.section-dark h2,
.section-dark .section-title {
  color: var(--if-white);
}

.section-blue {
  background-color: var(--if-blue2);
  color: var(--if-white);
}

.section-title {
  font-size: 2rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */

.vision-intro {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   Priority Cards
   ========================================================================== */

.priority-card {
  background-color: var(--if-white);
  border: 2px solid #ccd5fb;
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
}

.priority-card:hover {
  border-color: var(--if-orange);
  box-shadow: 0 8px 32px rgba(54, 75, 130, 0.15);
  transform: translateY(-4px);
}

.priority-icon {
  color: var(--if-orange);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.priority-card h3 {
  color: var(--if-dark);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.priority-card .priority-description {
  color: var(--if-orange);
  font-weight: var(--font-weight-medium);
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.priority-card h4 {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  color: var(--if-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
}

.priority-card h4:first-of-type {
  margin-top: 0;
}

/* ==========================================================================
   Framework Table
   ========================================================================== */

.framework-table {
  background-color: transparent;
  color: var(--if-white);
  width: 100%;
  border-radius: 0;
  overflow: visible;
  table-layout: auto;
}

.framework-table td {
  padding: 1.25rem;
  border-top: 1px solid var(--if-blue3);
  border-bottom: none;
  vertical-align: middle;
  background-color: transparent;
}

.framework-table tr:first-child td {
  border-top: none;
}

.framework-table tr:last-child td {
  border-bottom: 1px solid var(--if-blue3);
}

.framework-table td:first-child {
  width: 1%;
  white-space: nowrap;
  text-align: left;
  padding-right: 0;
}

.framework-table td:first-child i {
  font-size: 2rem;
  color: var(--if-blue3);
  vertical-align: middle;
  display: inline-block;
  width: 2.5rem;
  text-align: center;
}

.framework-table td:first-child .number {
  color: var(--if-blue3);
  font-size: 1.25rem;
  vertical-align: middle;
  display: inline-block;
  margin-left: 1.5rem;
  margin-right: 0.75rem;
}

.framework-table td:nth-child(2) {
  color: var(--if-orange);
  font-weight: var(--font-weight-medium);
  font-size: 1.5rem;
  white-space: nowrap;
  padding-left: 0;
}

.framework-table td:last-child {
  color: var(--if-light);
  font-weight: var(--font-weight-light);
  line-height: 1.25rem;
  width: 100%;
}

@media (max-width: 767.98px) {
  .framework-table {
    font-size: 0.9rem;
  }

  /* Hide icons on mobile */
  .framework-table td:first-child i {
    display: none;
  }

  .framework-table td:first-child .number {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0.75rem;
  }

  .framework-table td:nth-child(2) {
    font-size: 1.1rem;
    white-space: normal;
    width: 33.333%;
  }

  .framework-table td:last-child {
    width: auto;
  }
}

/* ==========================================================================
   Form Card
   ========================================================================== */

.form-card {
  background-color: var(--if-white);
  color: var(--if-dark);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.form-card h2,
.form-card h3 {
  color: var(--if-dark);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.form-card .form-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
}

.form-card .form-control,
.form-card .form-select {
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  padding: 0.75rem 1rem;
}

.form-card .form-control:required,
.form-card .form-select:required {
  border-left: 5px solid var(--if-orange);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
  border-color: var(--if-blue3);
  box-shadow: 0 0 0 0.2rem rgba(90, 108, 179, 0.25);
}

.form-card .form-control:required:focus,
.form-card .form-select:required:focus {
  border-left: 5px solid var(--if-blue3);
}

/* Success Message */
.alert-success-custom {
  background-color: rgba(25, 135, 84, 0.1);
  border: 1px solid rgba(25, 135, 84, 0.3);
  color: #198754;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

/* Involvement Section */
.involvement-card {
  background-color: var(--if-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.involvement-card:hover {
  transform: translateY(-4px);
}

.involvement-icon {
  color: var(--if-orange);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.involvement-card h4 {
  color: var(--if-dark);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.involvement-card p {
  color: var(--if-blue2);
  line-height: 1.6;
}

/* Contact Section */
.contact-card {
  background-color: var(--if-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}

.contact-icon {
  color: var(--if-orange);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-card h4 {
  color: var(--if-dark);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.contact-card p {
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--if-blue2);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.contact-card a:hover {
  color: var(--if-orange);
}

/* Endorsement CTA */
.cta-card {
  background-color: var(--if-orange);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.cta-card h3 {
  color: var(--if-dark);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.cta-card .lead {
  color: var(--if-dark);
  font-size: 1.2rem;
  opacity: 0.9;
}

.cta-card .btn-primary-custom {
  background-color: var(--if-dark);
  color: var(--if-white);
  border: 2px solid var(--if-dark);
}

.cta-card .btn-primary-custom:hover,
.cta-card .btn-primary-custom:focus {
  background-color: var(--if-white);
  color: var(--if-dark);
  border-color: var(--if-dark);
}

/* Social Contact */
.social-contact {
  background-color: var(--if-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.social-contact .social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--if-blue2);
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 0.5rem;
}

.social-contact .social-link:hover {
  color: var(--if-orange);
  transform: translateY(-2px);
}

.social-contact .social-link span {
  margin-top: 0.5rem;
  font-weight: var(--font-weight-medium);
}



/* ==========================================================================
   Social Links
   ========================================================================== */

.social-link {
  color: var(--if-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.social-link i {
  font-size: 2rem;
  color: var(--if-blue3);
  transition: all 0.3s ease;
}

.social-link span {
  color: var(--if-dark);
  transition: color 0.3s ease;
}

.social-link:hover i {
  color: var(--if-orange);
  transform: scale(1.2);
}

.social-link:hover span {
  color: var(--if-orange);
}

/* ==========================================================================
   Resources
   ========================================================================== */

.btn-info-doc {
  background-color: var(--if-dark);
  color: white;
  font-weight: 500;
  border-radius: 50px;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-info-doc:hover {
  background-color: var(--if-blue3);
  color: white;
  text-decoration: none;
}

.btn-info-doc span {
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: help;
  display: inline;
}

/* ==========================================================================
   Blog and News Styles
   ========================================================================== */

/* Post and Page Layout */
.post-header {
  background-color: var(--if-light);
  padding: 2rem 0 .75rem 0;
  margin-bottom: 1.5rem;
}

.page-header {
  padding: 3rem 0;
  margin-bottom: 0rem;
}

.page-title {
  font-size: 2.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--if-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.page-subtitle {
  font-size: 1.3rem;
  color: var(--if-blue2);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.page-content {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 3rem;
}

.page-content h2 {
  color: var(--if-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  color: var(--if-blue2);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Post Layout */

.post-meta {
  font-size: 0.95rem;
  color: var(--if-blue2);
  font-weight: var(--font-weight-medium);
  margin-bottom: 1.5rem;
}

.post-meta time {
  color: var(--if-blue2);
}

.post-meta .post-author {
  color: var(--if-blue2);
}

.post-title {
  font-size: 2.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--if-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-subtitle {
  font-size: 1.3rem;
  color: var(--if-blue2);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  margin-bottom: 2rem;
}

.post-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--if-dark);
  font-weight: var(--font-weight-regular);
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  color: var(--if-dark);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.post-content h1 {
  font-size: 2rem;
  margin-top: 3rem;
}

.post-content h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid rgba(54, 75, 130, 0.2);
  padding-bottom: 0.5rem;
}

.post-content h3 {
  font-size: 1.5rem;
  color: var(--if-dark);
}

.post-content h4 {
  font-size: 1.25rem;
  color: var(--if-dark);
}

.post-content p {
  margin-bottom: 1.75rem;
  color: var(--if-dark);
}

.post-content ul, 
.post-content ol {
  margin-bottom: 1.75rem;
  padding-left: 2rem;
  color: var(--if-dark);
}

.post-content li {
  margin-bottom: 0.75rem;
  color: var(--if-dark);
}

.post-content blockquote {
  border-left: 1px solid rgba(54, 75, 130, 0.2);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--if-blue2);
  font-size: 1.1rem;
}

.post-content blockquote p {
  margin-bottom: 0;
}

.post-content strong {
  font-weight: var(--font-weight-bold);
  color: var(--if-dark);
}

.post-content em {
  font-style: italic;
  color: var(--if-dark);
}

.post-content a {
  color: var(--if-blue2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.post-content a:hover {
  color: var(--if-dark);
}

.post-content code {
  background-color: rgba(54, 75, 130, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--if-dark);
}

.post-content pre {
  background-color: rgba(54, 75, 130, 0.1);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--if-dark);
}

.post-footer {
  padding: 1rem 0;
  margin-top: 1rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.post-navigation a {
  color: var(--if-blue2);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.post-navigation a:hover {
  color: var(--if-orange);
}

/* Featured Image */
.post-featured-image {
  padding: 1rem 0;
  background-color: #fff;
}

.featured-image-container {
  margin: 0;
}

.featured-image-container img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.featured-image-caption {
  font-size: 0.875rem;
  font-style: italic;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  border-top: 1px solid rgba(54, 75, 130, 0.2);
}

.share-label {
  color: var(--if-blue2);
  font-weight: var(--font-weight-medium);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--if-white);
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-color: var(--if-blue2);
}

.post-share a:hover {
  background-color: var(--if-orange);
  transform: translateY(-2px);
}

/* Post Cards */
.post-card {
  transition: all 0.3s ease;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(54, 75, 130, 0.1);
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border-color: rgba(54, 75, 130, 0.2);
}

.post-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card .card-body {
  border-radius: 1rem;
  padding: 1.5rem;
}

.post-card .post-title a {
  color: var(--if-dark) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: var(--font-weight-bold);
  font-size: 1.4rem;
  line-height: 1.0 !important;
}

.post-card h2.post-title.h3 {
  line-height: 1.0 !important;
}

.post-card .post-title a:hover {
  color: var(--if-blue2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-card .post-meta {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.post-card .post-meta time,
.post-card .post-meta .post-author {
  color: var(--if-blue2);
}

.post-card .post-subtitle {
  color: var(--if-blue2);
  font-weight: var(--font-weight-medium);
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.post-card .post-excerpt {
  color: var(--if-dark);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Post Card Images */
.post-card-image {
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.post-card-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card-image a {
  display: block;
  overflow: hidden;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-image a:hover {
  text-decoration: none;
}

.post-card .post-excerpt a {
  color: var(--if-blue2);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.post-card .post-excerpt a:hover {
  color: var(--if-dark);
}

.post-card .btn-primary {
  background-color: var(--if-blue2);
  border-color: var(--if-blue2);
  color: var(--if-white);
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.post-card .btn-primary:hover {
  background-color: var(--if-dark);
  border-color: var(--if-dark);
  color: var(--if-white);
  transform: translateX(2px);
}

/* Empty State */
.empty-state {
  padding: 3rem 1rem;
}

.empty-state i {
  opacity: 0.6;
}

/* Calendar styles */
.election-countdown .card {
  border: none;
  border-radius: 1rem;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .post-title {
    font-size: 2.25rem;
    line-height: 1.3;
  }
  
  .post-subtitle {
    font-size: 1.15rem;
    line-height: 1.4;
  }
  
  .post-content {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .post-content h1 {
    font-size: 1.75rem;
  }
  
  .post-content h2 {
    font-size: 1.5rem;
  }
  
  .post-content h3 {
    font-size: 1.25rem;
  }
  
  .post-card .post-title a {
    font-size: 1.25rem;
  }
  
  .post-card .post-subtitle {
    font-size: 1rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .post-card .card-body {
    padding: 1.5rem;
  }
  
  .post-card .post-title {
    font-size: 1.25rem;
  }
  
  .post-meta {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }
  
  .post-meta .me-3 {
    margin-right: 0 !important;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer-main {
  background-color: var(--if-red);
  color: var(--if-dark);
  padding: 1rem 0;
  flex-shrink: 0;
}

.footer-main a {
  color: var(--if-dark);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color 0.3s ease;
}

.footer-main a:hover {
  color: var(--if-white);
}

/* Footer text balance */
.footer-main p {
  line-height: 1.4;
}

.footer-main .fs-6 {
  font-size: 1rem !important;
}

.footer-main .footer-social {
  display: inline-flex;
  gap: 0.75rem;
  vertical-align: middle;
}

.footer-main .footer-social a {
  color: var(--if-dark);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-main .footer-social a:hover {
  color: var(--if-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-orange {
  color: var(--if-orange);
}

.text-red {
  color: var(--if-red);
}

.fw-medium {
  font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   Error Page Styles
   ========================================================================== */

.error-container {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.error-logo {
  width: 200px;
  height: auto;
  margin-bottom: 2rem;
}

.error-logo .cls-1 {
  fill: var(--if-orange);
}

.error-subtitle {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--if-dark);
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.1rem;
  color: var(--if-blue2);
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
  .error-container {
    padding: 1rem;
  }
  
  .error-logo {
    width: 150px;
  }
  
  .error-subtitle {
    font-size: 1.25rem;
  }
  
  .error-description {
    font-size: 1rem;
  }
}
