/* Base Styles */
:root {
  --primary-color: #3949ab;
  --primary-light: #6f74dd;
  --primary-dark: #00227b;
  --secondary-color: #ff6e40;
  --secondary-light: #ffa06d;
  --secondary-dark: #c53d13;
  --text-color: #333333;
  --text-light: #757575;
  --background-color: #ffffff;
  --background-light: #f5f7fa;
  --background-dark: #e1e5ee;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --error-color: #f44336;
  --border-radius: 8px;
  --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

ul, ol {
  list-style-position: inside;
  margin-bottom: 20px;
}

button, .btn {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  transition: var(--transition);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
}

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

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

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

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

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

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 20px;
}

section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

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

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

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

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
}

nav ul li {
  margin-left: 30px;
}

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

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

nav ul li a.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(to right, #f5f7fa, #e1e5ee);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

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

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

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Features Section */
.features {
  background-color: var(--background-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--background-light);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

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

.feature-icon {
  margin: 0 auto 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(57, 73, 171, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 15px;
}

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

/* Testimonials Section */
.testimonials {
  background-color: var(--background-light);
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.testimonial {
  flex: 0 0 calc(33.333% - 20px);
  scroll-snap-align: start;
  background-color: var(--background-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 30px;
  position: relative;
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  font-style: italic;
  position: relative;
  padding-left: 25px;
}

.testimonial-content p:before {
  content: '"';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 40px;
  line-height: 1;
  color: var(--primary-light);
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
}

.testimonial-author h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Checklist Section */
.checklist {
  background-color: var(--background-color);
}

.checklist-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.checklist-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--background-dark);
}

.checklist-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  margin-right: 15px;
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
}

.checklist-item label {
  flex: 1;
  cursor: pointer;
}

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

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

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

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

.post-image {
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 20px;
}

.post-content h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.post-content h3 a {
  color: var(--text-color);
}

.post-content h3 a:hover {
  color: var(--primary-color);
}

.post-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: block;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary-color);
}

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

.read-more:hover:after {
  margin-left: 8px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 10px;
}

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

/* Blog Post */
.blog-post {
  padding: 60px 0;
}

.post-header {
  margin-bottom: 30px;
}

.blog-post .post-image {
  height: auto;
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.blog-post h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.blog-post h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.blog-post ul, .blog-post ol {
  margin-bottom: 30px;
}

.blog-post li {
  margin-bottom: 10px;
}

.content-image {
  margin: 30px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.image-caption {
  padding: 10px 15px;
  background-color: var(--background-light);
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.tag {
  background-color: var(--background-light);
  color: var(--primary-color);
  padding: 5px 15px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
  padding: 20px 0;
  border-top: 1px solid var(--background-dark);
  border-bottom: 1px solid var(--background-dark);
}

.prev-post, .next-post {
  max-width: 45%;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  margin-bottom: 30px;
}

.small-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.small-card .post-image {
  height: 150px;
}

.small-card .post-content {
  padding: 15px;
}

.small-card .post-content h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Float Value Analysis Styling */
.float-premium-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.float-premium-table th, 
.float-premium-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--background-dark);
}

.float-premium-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
}

.float-premium-table tr:nth-child(even) {
  background-color: var(--background-light);
}

.float-premium-table tr:last-child td {
  border-bottom: none;
}

/* Tool Rating */
.tool-rating {
  background-color: var(--background-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 30px 0;
}

.rating-stars {
  margin-bottom: 10px;
}

.star {
  font-size: 24px;
  color: #ddd;
}

.star.filled {
  color: #ffb400;
}

.star.half-filled {
  position: relative;
  color: #ddd;
}

.star.half-filled:before {
  content: '★';
  position: absolute;
  color: #ffb400;
  width: 50%;
  overflow: hidden;
}

.tool-rating p {
  margin-bottom: 5px;
}

.comparison-table {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.comparison-table th, 
.comparison-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid var(--background-dark);
}

.comparison-table th {
  background-color: var(--primary-color);
  color: white;
}

.comparison-table tr:nth-child(even) {
  background-color: var(--background-light);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

/* About Page */
.about-mission {
  background-color: var(--background-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
}

.about-content h2 {
  margin-top: 0;
}

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

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

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

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

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

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

.team-member h3 {
  margin: 20px 0 5px;
  padding: 0 20px;
}

.team-member p {
  padding: 0 20px;
  margin-bottom: 20px;
}

.team-member p:first-of-type {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 10px;
}

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

.value-card {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(57, 73, 171, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.value-card h3 {
  margin-bottom: 15px;
}

.cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
}

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

.cta h2 {
  color: white;
}

.cta p {
  opacity: 0.9;
  margin-bottom: 30px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-card {
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  background-color: var(--background-light);
  transition: var(--transition);
}

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

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(57, 73, 171, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-card p {
  margin-bottom: 10px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

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

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

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

form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--background-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--background-dark);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(57, 73, 171, 0.2);
  outline: none;
}

form button {
  margin-top: 10px;
  width: 100%;
}

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

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 400px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.modal-content {
  background-color: var(--background-color);
  padding: 40px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--box-shadow);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

.modal h2 {
  margin-top: 0;
}

.modal p {
  margin-bottom: 30px;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
  color: white;
  text-align: center;
}

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

.newsletter h2 {
  color: white;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 30px;
}

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

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-form button {
  padding: 0 25px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo img {
  height: 50px;
  margin-bottom: 15px;
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links h3, 
.footer-contact h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

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

.footer-contact p {
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-contact .social-icons {
  justify-content: flex-start;
}

.footer-contact .social-icons a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

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

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

.copyright p {
  opacity: 0.6;
  margin: 0;
  font-size: 0.9rem;
}

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

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-content p {
  flex: 1;
  min-width: 300px;
  margin-bottom: 0;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.btn-accept,
.btn-customize,
.btn-decline {
  padding: 8px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-accept:hover {
  background-color: var(--primary-dark);
}

.btn-customize {
  background-color: var(--background-light);
  color: var(--text-color);
}

.btn-customize:hover {
  background-color: var(--background-dark);
}

.btn-decline {
  background-color: var(--background-light);
  color: var(--text-color);
}

.btn-decline:hover {
  background-color: var(--background-dark);
}

.cookie-learn-more {
  text-decoration: underline;
  margin-left: 20px;
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-content, .hero-image {
    flex: 1 0 100%;
  }

  .hero-image {
    order: -1;
    margin-bottom: 30px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .feature-card, .post-card, .testimonial, .team-member, .value-card, .contact-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .posts-grid, .features-grid, .team-grid, .values-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-slider {
    padding-bottom: 40px;
  }

  .testimonial {
    flex: 0 0 calc(100% - 40px);
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    width: 100%;
  }

  form {
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  header .container {
    flex-direction: column;
    padding: 15px;
  }

  .logo {
    margin-bottom: 15px;
  }

  nav ul {
    justify-content: center;
  }

  nav ul li {
    margin: 0 10px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }

  .prev-post, .next-post {
    max-width: 100%;
  }

  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
}
