/* Base Styles */
:root {
  --primary-color: #2a6beb;
  --secondary-color: #1d4c9e;
  --accent-color: #f9a826;
  --text-color: #333333;
  --light-text: #666666;
  --lighter-text: #888888;
  --dark-bg: #1a1a2e;
  --light-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 6px;
  --border-radius-sm: 4px;
  --border-radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 80px;
  --footer-bg: #252836;
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #ffffff;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Progress Reading Bar */
.progress-container {
  position: fixed;
  top: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1000;
}

.progress-bar {
  height: 4px;
  background: var(--accent-color);
  width: 0%;
}

/* Header & Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  margin-top: 4px; /* Account for progress bar */
}

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

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

.logo a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 0.75rem;
  border-radius: 50%;
}

nav ul {
  display: flex;
  margin: 0;
}

nav li {
  margin-left: 2rem;
  list-style: none;
}

nav a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--primary-color);
}

nav a:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

nav a:hover:after, nav a.active:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background-color: var(--light-bg);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background-color: var(--light-bg);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--light-text);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

/* Editor's Note Section */
.editor-note {
  padding: 3rem 0;
  background-color: #fff;
}

.editor-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  background-color: var(--light-bg);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.editor-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--box-shadow);
}

.editor-text {
  flex: 1;
}

.editor-text p:last-child {
  margin-bottom: 0;
}

/* Featured Posts Section */
.featured-posts {
  padding: 4rem 0;
  background-color: #fff;
}

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

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

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 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 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--primary-color);
}

.read-more i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(3px);
}

.center-btn {
  text-align: center;
  margin-top: 2.5rem;
}

/* Newsletter Section */
.newsletter {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: white;
}

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

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

.newsletter-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

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

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.newsletter-form button:hover {
  background-color: #e89b20;
  border-color: #e89b20;
}

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

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 2;
  min-width: 250px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.footer-links {
  flex: 1;
  min-width: 160px;
}

.footer-links h3, .footer-social h3 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: white;
}

.footer-social {
  flex: 1;
  min-width: 160px;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
}

.cookie-consent.show {
  display: block;
}

.cookie-content {
  padding: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 1rem;
}

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

.cookie-more-info {
  font-size: 0.9rem;
  color: var(--light-text);
  margin-bottom: 0;
}

/* Page Header */
.page-header {
  padding: 4rem 0;
  background-color: var(--light-bg);
  text-align: center;
}

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

.page-header p {
  font-size: 1.25rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto;
}

/* Blog Posts Listing */
.blog-posts {
  padding: 4rem 0;
}

.post-item {
  display: flex;
  margin-bottom: 3rem;
  background-color: #fff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.post-image {
  flex: 0 0 35%;
}

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

.post-content {
  flex: 1;
  padding: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-meta i {
  margin-right: 0.5rem;
}

/* Contact Page */
.contact-section {
  padding: 4rem 0;
}

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

.contact-info h2, .contact-form-container h2 {
  margin-bottom: 1.5rem;
}

.info-items {
  margin: 2rem 0;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.info-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.info-text p {
  color: var(--light-text);
  margin-bottom: 0;
}

.social-connect h3 {
  margin-bottom: 1rem;
}

.contact-form {
  background-color: #fff;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
}

/* FAQ Section */
.faq-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.faq-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.faq-item p {
  color: var(--light-text);
  margin-bottom: 0;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  position: relative;
}

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

.thank-you-content {
  text-align: center;
}

.thank-you-content i {
  font-size: 3rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.close-btn {
  margin-top: 1rem;
}

/* About Page */
.about-intro {
  padding: 4rem 0;
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-top: 2rem;
}

.about-text h2:first-child {
  margin-top: 0;
}

.about-image {
  flex: 1;
}

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

.team-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.team-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  color: var(--light-text);
}

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

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

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

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

.team-member p {
  padding: 0 1rem;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 500;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding-bottom: 1.5rem;
}

.member-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--light-bg);
  color: var(--primary-color);
  border-radius: 50%;
  transition: var(--transition);
}

.member-social a:hover {
  background-color: var(--primary-color);
  color: white;
}

.values-section {
  padding: 4rem 0;
}

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

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

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

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

.value-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--light-text);
  margin-bottom: 0;
}

.cta-section {
  padding: 5rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

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

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

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-buttons .btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.cta-buttons .btn-secondary:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Blog Post Detail */
.post-content {
  padding: 4rem 0;
}

.post-header {
  margin-bottom: 2rem;
}

.post-excerpt {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.post-featured-image {
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
}

.post-body {
  margin: 3rem 0;
}

.post-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.post-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-body ul, .post-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-tags span {
  font-weight: 500;
}

.post-tags a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background-color: var(--light-bg);
  border-radius: 50px;
  color: var(--light-text);
  font-size: 0.9rem;
}

.post-tags a:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 3rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.nav-previous a, .nav-next a {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.nav-previous i {
  margin-right: 0.5rem;
}

.nav-next i {
  margin-left: 0.5rem;
}

.share-post {
  margin: 3rem 0;
}

.share-post h3 {
  margin-bottom: 1.25rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-buttons a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
}

.share-buttons i {
  margin-right: 0.5rem;
}

.share-buttons .facebook {
  background-color: #3b5998;
}

.share-buttons .twitter {
  background-color: #1da1f2;
}

.share-buttons .linkedin {
  background-color: #0077b5;
}

.share-buttons .email {
  background-color: var(--light-text);
}

.related-posts {
  margin: 4rem 0 2rem;
}

.related-posts h3 {
  margin-bottom: 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.related-post {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

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

.related-post h4 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1.1rem;
}

.related-post .read-more {
  padding: 0 1rem 1rem;
  display: block;
}

/* Special Content Boxes */
.info-callout, .warning-callout, .quote-callout, .example-box, .assessment-box, .strategy-box, .terminology-box, .comparison-table, .platform-review, .recommendation-box, .tax-table {
  margin: 2rem 0;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--light-bg);
}

.info-callout {
  background-color: rgba(23, 162, 184, 0.1);
  border-left: 4px solid var(--info-color);
}

.warning-callout {
  background-color: rgba(255, 193, 7, 0.1);
  border-left: 4px solid var(--warning-color);
}

.quote-callout {
  font-style: italic;
  padding: 2rem;
  background-color: var(--light-bg);
  border-left: 4px solid var(--primary-color);
}

.quote-callout p {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.quote-callout cite {
  font-style: normal;
  font-weight: 500;
  color: var(--light-text);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--light-bg);
  font-weight: 600;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.platform-review {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.platform-review h4 {
  margin-top: 0;
}

.platform-review ul {
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .contact-grid, .about-content {
    grid-template-columns: 1fr;
  }
  
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero .container, .editor-content, .post-item {
    flex-direction: column;
  }
  
  .hero-content, .hero-image {
    text-align: center;
  }
  
  .post-image {
    flex: 0 0 auto;
  }
  
  .post-image img {
    height: 220px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .footer-logo, .footer-links, .footer-social {
    min-width: 100%;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }
  
  .newsletter-form button {
    border-radius: var(--border-radius);
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .cookie-buttons {
    flex-direction: column;
  }
  
  .cookie-buttons .btn {
    width: 100%;
  }
  
  table {
    display: block;
    overflow-x: auto;
  }
}
