/* Base Styles */
:root {
  --primary-color: #4a6fa5;
  --secondary-color: #2a4a7a;
  --accent-color: #ff7e5f;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #e9ecef;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --border-radius: 6px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --container-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

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

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

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

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

ul {
  list-style: none;
}

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

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

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

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

.secondary-btn:hover {
  background-color: #ff6a45;
  color: white;
}

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

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

section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  display: flex;
  align-items: center;
}

.logo {
  flex: 0 0 auto;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.menu {
  display: flex;
  margin-left: auto;
}

.menu li {
  margin-left: 30px;
}

.menu a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

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

.menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu i {
  margin-right: 5px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background-color: var(--bg-light);
  padding: 100px 0;
  background-image: linear-gradient(
      rgba(74, 111, 165, 0.1),
      rgba(74, 111, 165, 0.2)
    ),
    url("/images/10.jpg");
  background-size: cover;
  background-position: center;
  text-align: center;
}

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

.hero h1 {
  font-size: 3.5rem;
  color: blue;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: aliceblue;
}

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

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

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

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

/* Recent Posts Section */
.recent-posts {
  background-color: var(--bg-light);
}

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

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

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

.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 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

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

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

.post-meta span {
  margin-right: 15px;
}

.post-meta i {
  margin-right: 5px;
}

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

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

/* This Day in History Section */
.this-day-in-history {
  background-color: var(--primary-color);
  padding: 40px 0;
}

.this-day-in-history .section-title {
  color: white;
}

.history-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
}

.fact {
  color: white;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
  text-align: center;
  background-color: var(--bg-light);
}

.newsletter p {
  margin-bottom: 25px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  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;
}

/* Footer Styles */
footer {
  background-color: var(--secondary-color);
  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-column h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

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

.contact-info li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: 10px;
  color: var(--accent-color);
}

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

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

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

.social-links {
  display: flex;
  gap: 15px;
}

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

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

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  z-index: 9999;
  display: none;
}

.cookie-content {
  padding: 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 15px;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-buttons button {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.cookie-link {
  margin-left: 15px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.cookie-link:hover {
  color: white;
}

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

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

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

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

/* Post Page */
.post-header {
  background-color: var(--primary-color);
  color: white;
  padding: 60px 0;
}

.post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.post-header .post-meta {
  color: rgba(255, 255, 255, 0.8);
  justify-content: center;
}

.post-content {
  padding: 60px 0;
}

.post-content .container {
  max-width: 900px;
}

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

article h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 40px 0 20px;
}

article h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin: 30px 0 15px;
}

article p,
article ul,
article ol {
  margin-bottom: 20px;
}

article ul,
article ol {
  padding-left: 20px;
}

article ul li,
article ol li {
  margin-bottom: 10px;
}

.example-box,
.phrases-box,
.tips-box {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.example-box h4,
.phrases-box h4,
.tips-box h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.phrase-item,
.sentence-example {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.phrase-item:last-child,
.sentence-example:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.english {
  font-weight: 600;
  color: var(--primary-color);
}

.hungarian {
  color: var(--text-light);
  margin-top: 5px;
}

.vocabulary-grid,
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.vocabulary-item,
.alphabet-item {
  background-color: white;
  padding: 10px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.grammar-table {
  overflow-x: auto;
  margin: 20px 0;
}

.grammar-table table {
  width: 100%;
  border-collapse: collapse;
}

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

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

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

.learning-styles,
.method {
  margin: 30px 0;
}

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

.learning-style {
  background-color: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.style-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 15px;
  text-align: center;
}

.learning-style h3 {
  text-align: center;
  margin-bottom: 15px;
}

.learning-style ul {
  padding-left: 20px;
  list-style-type: disc;
}

.method {
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 25px;
}

.method h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.method ul {
  padding-left: 20px;
  list-style-type: disc;
}

.common-mistakes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.mistake {
  background-color: #fff5f5;
  padding: 20px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--danger-color);
}

.mistake h3 {
  color: var(--danger-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.mistake i {
  margin-right: 10px;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.post-tags {
  margin-top: 40px;
}

.post-tags h3 {
  margin-bottom: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  background-color: var(--bg-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.related-posts {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

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

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

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

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

.related-post h4 {
  padding: 15px;
  font-size: 1rem;
}

/* Contact Page */
.contact-section {
  padding: 60px 0;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.contact-info {
  background-color: var(--primary-color);
  color: white;
  padding: 30px;
  border-radius: var(--border-radius);
}

.contact-info h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.contact-info p {
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
}

.info-item {
  display: flex;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 15px;
  min-width: 30px;
}

.info-item h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.social-contact {
  margin-top: 30px;
}

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

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

.contact-form {
  padding: 30px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--primary-color);
}

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

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

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

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

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

.checkbox-group input {
  width: auto;
  margin-right: 10px;
  margin-top: 5px;
}

.map-container {
  margin-top: 40px;
}

.map-container h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--primary-color);
}

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

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 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: 2000;
  align-items: center;
  justify-content: center;
}

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

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

.thank-you-message {
  padding: 20px 0;
}

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

.thank-you-message h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.thank-you-message p {
  margin-bottom: 20px;
  color: var(--text-light);
}

/* Privacy Policy and Terms Page */
.policy-content {
  padding: 60px 0;
}

.policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy-intro {
  margin-bottom: 40px;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-color);
}

.policy-section h3 {
  font-size: 1.4rem;
  margin: 25px 0 15px;
}

.policy-section p,
.policy-section ul,
.policy-section ol {
  margin-bottom: 15px;
}

.policy-section ul,
.policy-section ol {
  padding-left: 20px;
}

.policy-section li {
  margin-bottom: 8px;
}

.contact-details {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.contact-details li {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    margin: 0;
  }

  .menu a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .section-title {
    font-size: 1.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

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

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

  .newsletter-form button {
    border-radius: var(--border-radius);
  }
}

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

  .hero {
    padding: 60px 0;
  }

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

  .post-header h1,
  .page-header h1 {
    font-size: 1.8rem;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-link {
    margin: 10px 0 0 0;
    text-align: center;
  }
}
