/* 
  Columbia Bank Blog Styles
  Author: Financial Web Design Team
  Version: 1.0.0
  Date: 2024
*/

/* Base Styles and Reset */
:root {
  --primary-color: #0056a6;
  --secondary-color: #007cc3;
  --accent-color: #ffb81c;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-light: #f5f8fa;
  --background-dark: #002855;
  --success-color: #28a745;
  --error-color: #dc3545;
  --border-color: #e0e0e0;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --container-width: 1200px;
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-family-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--background-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

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

ul {
  list-style-type: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  box-shadow: var(--box-shadow);
}

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

.btn.primary:hover {
  background-color: var(--background-dark);
  transform: translateY(-2px);
}

.btn.secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn.outline {
  background-color: transparent;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  box-shadow: none;
}

.btn.outline:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn.full-width {
  width: 100%;
  display: block;
}

.cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* Header */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.25rem;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after, 
nav ul li a.active:after {
  width: 100%;
}

nav ul li a.active {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, var(--background-dark), var(--secondary-color));
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header (for internal pages) */
.page-header {
  background: linear-gradient(to right, var(--background-dark), var(--secondary-color));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Featured Posts Section */
.featured-posts {
  background-color: var(--background-light);
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.post-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  margin-bottom: 0.5rem;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.read-more {
  font-weight: 600;
  display: inline-block;
  position: relative;
}

.read-more:after {
  content: '→';
  margin-left: 0.25rem;
  transition: var(--transition);
}

.read-more:hover:after {
  margin-left: 0.5rem;
}

/* Beginner Mistakes Section */
.beginner-mistakes {
  background-color: white;
}

.beginner-mistakes h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.mistakes-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.mistake-item {
  background-color: var(--background-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.mistake-item:hover {
  transform: translateY(-5px);
}

.mistake-icon {
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.mistake-item h3 {
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  background-color: var(--background-light);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.service-item {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-icon {
  background-color: var(--secondary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-item h3 {
  margin-bottom: 1rem;
}

/* Blog Posts Page */
.blog-posts {
  background-color: var(--background-light);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
}

.post-item {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.post-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.5rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.category {
  background-color: var(--accent-color);
  color: var(--background-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 600;
}

.post-title {
  padding: 0.5rem 1.5rem;
  font-size: 1.25rem;
}

.post-excerpt {
  padding: 0 1.5rem 1rem;
  color: var(--text-light);
  flex-grow: 1;
}

.post-item .btn {
  margin: 0 1.5rem 1.5rem;
}

/* Newsletter Section */
.newsletter {
  background-color: white;
}

.newsletter-container {
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--box-shadow);
}

.newsletter-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex: 1;
  max-width: 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: var(--background-dark);
  font-weight: bold;
}

.newsletter-form button:hover {
  background-color: var(--background-dark);
  color: white;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.values-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.values-list li {
  margin-bottom: 0.5rem;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 50px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-date {
  background-color: var(--primary-color);
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: var(--border-radius);
  display: inline-block;
  margin-bottom: 10px;
}

.timeline-content {
  padding: 20px;
  background-color: white;
  position: relative;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.timeline-content h3 {
  margin-top: 0;
}

.timeline-content::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 25px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  right: -14px;
}

.timeline-item:nth-child(even) .timeline-content::after {
  left: -14px;
}

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

.team h2, .team .section-intro {
  text-align: center;
}

.team .section-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 {
  margin: 1.5rem 0 0.25rem;
}

.team-member p {
  padding: 0 1.5rem 1.5rem;
}

.team-member p:first-of-type {
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.community-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.community-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.community-text ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.community-text ul li {
  margin-bottom: 0.5rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, var(--background-dark), var(--secondary-color));
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
}

.cta .btn {
  background-color: var(--accent-color);
  color: var(--background-dark);
  font-weight: bold;
}

.cta .btn:hover {
  background-color: white;
}

/* Contact Page */
.contact-info {
  background-color: var(--background-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-form-section {
  background-color: white;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-container p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  grid-column: span 2;
}

.form-group.checkbox input {
  width: auto;
}

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

.map-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background-color: var(--background-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column ul li a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
  color: white;
}

.social-icons a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.cookie-content {
  padding: 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-content p {
  margin-bottom: 1rem;
  max-width: 800px;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-content a {
  font-size: 0.875rem;
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  animation: modalopen 0.3s;
  text-align: center;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.thank-you-message h2 {
  margin-top: 1.5rem;
  color: var(--success-color);
}

.checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--success-color);
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: var(--success-color);
  stroke-width: 3;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes modalopen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .about-grid, .community-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }
  
  .newsletter-form {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-content::after {
    left: -14px !important;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    justify-content: center;
  }
  
  nav ul li {
    margin: 0 0.75rem;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

/* Print Styles */
@media print {
  header, footer, .cta, .newsletter, .cookie-banner {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }
  
  a {
    text-decoration: underline;
  }
}
