/* 
   AI & Geodata Tech Blog Styles
   Modern, clean design focused on readability and user experience
   Created for the Czech AI & Geodata Blog
*/

/* Base Styles & Variables */
:root {
  --primary-color: #3366cc;
  --secondary-color: #00a651;
  --accent-color: #f9a826;
  --dark-color: #2d3b55;
  --light-color: #f5f7fa;
  --text-color: #333;
  --text-light: #6c757d;
  --white: #ffffff;
  --black: #000000;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Poppins', var(--font-sans);
}

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

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

h5 {
  font-size: 1.8rem;
}

h6 {
  font-size: 1.6rem;
}

p {
  margin-bottom: 2rem;
}

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

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

ul, ol {
  margin-bottom: 2rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.8rem;
}

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

blockquote {
  padding: 2rem;
  margin: 3rem 0;
  background: var(--light-color);
  border-left: 5px solid var(--primary-color);
  font-style: italic;
}

blockquote p {
  margin-bottom: 1rem;
}

blockquote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.4rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  transition: var(--transition);
}

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

.btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

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

.btn-submit {
  width: 100%;
  background-color: var(--secondary-color);
}

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

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

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

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

.logo img {
  height: 5rem;
  width: auto;
}

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

nav ul li {
  margin: 0 1.5rem;
}

nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 1.6rem;
  padding: 0.8rem 0;
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  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-color: var(--dark-color);
  background-image: linear-gradient(rgba(45, 59, 85, 0.8), rgba(45, 59, 85, 0.9)), url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 10rem 0;
  text-align: center;
}

.hero-content {
  max-width: 80rem;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 4.8rem;
  color: var(--white);
  margin-bottom: 2rem;
}

.hero-content p {
  font-size: 2rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

/* Page Hero */
.page-hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.8rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Featured & Latest Posts */
.featured-posts,
.latest-posts {
  padding: 8rem 0;
  background-color: var(--white);
}

.featured-posts h2,
.latest-posts h2 {
  text-align: center;
  margin-bottom: 5rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
  gap: 3rem;
}

.large-grid {
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
}

.post-card {
  background: var(--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: 20rem;
  object-fit: cover;
}

.post-content {
  padding: 2rem;
}

.post-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.read-more:after {
  content: '\2192';
  margin-left: 0.5rem;
  transition: var(--transition);
}

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

.view-all {
  text-align: center;
  margin-top: 4rem;
}

/* Countdown Section */
.countdown-section {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

.countdown-section h2 {
  color: var(--white);
  margin-bottom: 3rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.countdown-timer.small {
  gap: 2rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-item span:first-child {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-timer.small .countdown-item span:first-child {
  font-size: 3rem;
}

.next-article {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.next-article h3 {
  color: var(--white);
  margin-bottom: 2rem;
}

/* Newsletter Section */
.newsletter {
  padding: 6rem 0;
  background-color: var(--light-color);
}

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

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

.newsletter p {
  margin-bottom: 3rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1.2rem 2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-logo img {
  height: 5rem;
  margin-bottom: 2rem;
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

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

.footer-links li {
  margin-bottom: 1rem;
}

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

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact h3 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer-contact svg {
  margin-right: 1rem;
}

.social-media {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

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

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

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

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

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

.cookie-content {
  max-width: 120rem;
  margin: 0 auto;
}

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

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

/* About Page Styles */
.about-content {
  padding: 6rem 0;
  background-color: var(--white);
}

.about-intro {
  max-width: 80rem;
  margin: 0 auto 6rem;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 3rem;
  margin-bottom: 6rem;
}

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

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.value-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.team-section,
.partners-section {
  margin-top: 8rem;
}

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

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

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

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

.team-member h3 {
  margin: 2rem 0 0.5rem;
}

.team-member p {
  padding: 0 2rem 2rem;
  margin-bottom: 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 12rem;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
}

.partner-logo:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow);
}

/* CTA Section */
.cta-section {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

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

.cta-content p {
  margin-bottom: 3rem;
  font-size: 1.8rem;
}

/* Blog Page Styles */
.blog-search {
  padding: 4rem 0;
  background-color: var(--light-color);
}

.search-container {
  max-width: 60rem;
  margin: 0 auto 3rem;
}

.search-form {
  display: flex;
  gap: 1rem;
}

.search-form input {
  flex: 1;
  padding: 1.2rem 2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
}

.search-form button {
  padding: 0 2rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

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

.filter-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.filter-group {
  display: flex;
  align-items: center;
}

.filter-group label {
  margin-right: 1rem;
  font-weight: 600;
}

.filter-group select {
  padding: 0.8rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  background-color: var(--white);
}

.blog-posts {
  padding: 6rem 0;
  background-color: var(--white);
}

.post-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  color: var(--text-light);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 5rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--light-color);
  border-radius: 50%;
  font-weight: 600;
  transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
}

/* Contact Page Styles */
.contact-content {
  padding: 6rem 0;
  background-color: var(--white);
}

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

.info-item {
  display: flex;
  margin-bottom: 3rem;
}

.info-icon {
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-right: 2rem;
}

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

.info-content p {
  margin-bottom: 0;
}

.company-info,
.social-links {
  margin-top: 3rem;
}

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

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1.6rem;
  font-family: inherit;
}

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

.checkbox-group input {
  width: auto;
  margin-right: 1rem;
  margin-top: 0.5rem;
}

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

.map-section {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.map-container {
  height: 40rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

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

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--white);
  font-size: 2rem;
  font-weight: 600;
}

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

.modal-content {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  padding: 4rem;
  max-width: 50rem;
  width: 90%;
  text-align: center;
}

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

.thank-you-icon {
  color: var(--success);
  font-size: 6rem;
  margin-bottom: 2rem;
}

/* Single Post Styles */
.single-post {
  padding: 6rem 0;
  background-color: var(--white);
}

.post-header {
  max-width: 90rem;
  margin: 0 auto 5rem;
  text-align: center;
}

.post-featured-image {
  margin-top: 3rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

.post-content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 5rem;
  max-width: 120rem;
  margin: 0 auto;
}

.post-content {
  font-size: 1.8rem;
}

.post-content h2 {
  font-size: 2.8rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.post-content h3 {
  font-size: 2.2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.post-image-container {
  margin: 3rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.image-caption {
  text-align: center;
  font-size: 1.4rem;
  color: var(--text-light);
  margin-top: 1rem;
  font-style: italic;
}

.post-sidebar {
  position: sticky;
  top: 10rem;
  align-self: start;
}

.author-box {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.author-image {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
}

.author-box h3 {
  margin-bottom: 1rem;
}

.author-box p {
  font-size: 1.4rem;
  margin-bottom: 0;
}

.related-posts {
  margin-bottom: 3rem;
}

.related-post-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.related-post-item img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-right: 1.5rem;
}

.related-post-item h4 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.post-tags {
  margin-bottom: 3rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--light-color);
  border-radius: 2rem;
  font-size: 1.2rem;
  transition: var(--transition);
}

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

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

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

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: var(--light-color);
  border-radius: 50%;
  transition: var(--transition);
}

.share-btn.facebook:hover {
  background-color: #3b5998;
  color: var(--white);
}

.share-btn.twitter:hover {
  background-color: #1da1f2;
  color: var(--white);
}

.share-btn.linkedin:hover {
  background-color: #0077b5;
  color: var(--white);
}

.share-btn.email:hover {
  background-color: #ea4335;
  color: var(--white);
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5rem auto;
  max-width: 90rem;
  padding: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.post-nav-links {
  display: flex;
  gap: 2rem;
}

.comments-section {
  max-width: 90rem;
  margin: 5rem auto 0;
}

.comment {
  display: flex;
  margin-bottom: 3rem;
}

.comment-avatar {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 2rem;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  flex-grow: 1;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.comment-header h4 {
  margin-bottom: 0;
}

.comment-date {
  font-size: 1.4rem;
  color: var(--text-light);
}

.reply-link {
  display: inline-block;
  font-weight: 600;
  font-size: 1.4rem;
  margin-top: 1rem;
}

.reply-comment {
  margin-top: 2rem;
  margin-left: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.comment-form {
  margin-top: 5rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .post-content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .post-sidebar {
    position: static;
    margin-top: 5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 56.25%; /* 9px = 1rem */
  }
  
  .hero-content h1 {
    font-size: 3.6rem;
  }
  
  .hero-content p {
    font-size: 1.8rem;
  }
  
  .countdown-timer {
    gap: 2rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }
  
  header .container {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-container {
    flex-direction: column;
    align-items: stretch;
  }
}
