/*
Theme Name: SınavKolay Tema
Theme URI: https://sinavkolay.com
Author: Akıl Hocası
Author URI: https://sinavkolay.com
Description: 2025 YKS 185.si ve 2024 YKS 72.siyle online koçluk ve online özel ders. Netleri yükselt, o okulu kazan.
Version: 3.0.1
Text Domain: sinavkolay
*/

:root {
  --primary: #1e88e5;
  --secondary: #ffd700;
  --background: #fafafa;
  --text: #1a1a1a;
  --border: #ddd;
  --hover: #1565c0;
  --footer-bg: #1a1a1a;
  --footer-text: #ffffff;
}

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

body {
  font-family: "Poppins", "Open Sans", Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  text-align: center;
}

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

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

/* Header */
.site-header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.custom-logo-link img {
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #142b54;
  text-align: center;
}

.site-title a {
  color: #142b54;
  display: flex;
  flex-direction: column;
}

.site-description {
  font-size: 0.8rem;
  color: #666;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.2rem;
  color: var(--text);
}

.menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: all 0.2s ease;
}

/* Search Form */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-field {
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.2rem;
  font-size: 0.9rem;
}

.search-submit {
  background: var(--primary);
  border: none;
  padding: 0.4rem;
  border-radius: 0.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit svg {
  width: 16px;
  height: 16px;
}

.search-submit:hover {
  background: var(--hover);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.main-menu li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu li a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu li a:hover,
.main-menu li a.current-menu-item {
  color: var(--primary);
}

.main-menu li a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.2s ease;
}

.main-menu li a:hover::after,
.main-menu li a.current-menu-item::after {
  width: 100%;
}

.main-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.4rem;
  min-width: 180px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-menu li:hover ul,
.main-menu li.active-dropdown ul {
  display: block;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.main-menu li ul li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu li ul li a {
  font-size: 0.8rem;
  color: var(--text);
  padding: 0.4rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-menu li ul li a:hover {
  background: #f0f4f8;
  color: var(--primary);
}

.main-menu li.menu-item-has-children > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  margin-left: 0.4rem;
  transition: transform 0.2s ease;
}

.main-menu li.menu-item-has-children:hover > a::after,
.main-menu li.active-dropdown > a::after {
  transform: rotate(180deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .site-header {
    padding: 0.4rem 0;
  }

  .header-container {
    flex-direction: row;
    align-items: center;
    position: relative;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .custom-logo-link img {
    max-height: 36px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 0;
    left: -220px;
    width: 220px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .main-navigation.active {
    left: 0;
  }

  .main-menu {
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.8rem;
    margin-top: 3rem;
    align-items: flex-start;
  }

  .main-menu li {
    width: 100%;
    justify-content: flex-start;
  }

  .main-menu li a {
    padding: 0.6rem;
    display: block;
    font-size: 1rem;
    justify-content: flex-start;
  }

  .main-menu li ul {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 0.8rem;
    opacity: 1;
    display: none;
    background: #f8f9fa;
  }

  .main-menu li.active-dropdown ul {
    display: block;
  }

  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  .search-form {
    flex: 1;
  }

  .search-submit svg {
    width: 14px;
    height: 14px;
  }
}

/* Site Content */
.site-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.8rem;
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.footer-box {
  min-width: 160px;
  padding: 0.8rem;
}

.highlight-box {
  min-width: 200px;
  background: linear-gradient(135deg, #0073aa, #00d4ff);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.highlight-box h2 {
  color: white;
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.highlight-box a {
  display: block;
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-weight: 600;
  padding: 6px;
  border: 1px solid white;
  border-radius: 5px;
  margin-bottom: 6px;
  text-align: center;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}

.highlight-box a:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.02);
}

.highlight-box a::before {
  content: '🚀';
  margin-right: 5px;
}

.footer-box h2 {
  font-size: 1.3em;
  color: #e0e0e0;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-box ul {
  list-style: none;
}

.footer-box ul li {
  margin-bottom: 8px;
}

.footer-box ul li a {
  color: #d0d0d0;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.footer-box ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-info {
  text-align: center;
  padding: 12px;
  background: #111111;
  margin-top: 15px;
  font-size: 0.95em;
  color: #d0d0d0;
  width: 100%;
}

.footer-info a {
  color: #00aaff;
  font-weight: bold;
}

.footer-info a:hover {
  text-decoration: underline;
}

/* My Home Wrapper */
.my-home-wrapper {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
  color: #333;
  line-height: 1.6;
  padding: 15px;
  border-radius: 8px;
  margin: 15px auto;
  max-width: 1200px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.my-home-wrapper header {
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: #ffffffcc;
  backdrop-filter: blur(5px);
  border-radius: 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.my-home-wrapper header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #0076d1;
  letter-spacing: 0.8px;
}

.my-home-wrapper header p {
  font-size: 1rem;
  color: #444;
}

.group-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  justify-items: center;
}

.exam-group {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  animation: fadeInUp 0.8s ease forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exam-group:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.exam-group h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.exam-group h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.exam-group h2 a:hover {
  color: #0076d1;
}

.exam-group ul {
  list-style: none;
  margin-top: 8px;
}

.exam-group li {
  margin: 12px 0;
  position: relative;
  padding-left: 20px;
}

.exam-group li::before {
  content: "▹";
  color: #0076d1;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.9rem;
}

.exam-group li a {
  font-weight: 500;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.exam-group li a:hover {
  color: #0076d1;
  text-decoration: underline;
}

.description {
  font-size: 0.85rem;
  color: #555;
  margin-top: 4px;
  line-height: 1.4;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Blog Section Styles */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.post {
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.post-thumbnail {
  position: relative;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.entry-meta {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
}

.entry-meta .byline {
  margin-left: 0.4rem;
}

.entry-meta .byline a {
  color: var(--primary);
  font-weight: 600;
}

.entry-meta .byline a:hover {
  color: var(--hover);
}

.entry-content {
  padding: 0.8rem;
}

.entry-content h2.entry-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  display: block;
}

.entry-content h2.entry-title a {
  color: var(--text);
}

.entry-content h2.entry-title a:hover {
  color: var(--primary);
}

.entry-content p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.8rem;
}

.read-more {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 0.2rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.read-more:hover {
  background: var(--hover);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem 0;
}

.pagination a {
  background: #fff;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.2rem;
  color: var(--text);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Single Post Styles */
.blog-post {
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.blog-post .entry-header {
  margin-bottom: 1.2rem;
}

.blog-post .entry-title {
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--text);
  display: block;
}

.blog-post .post-thumbnail {
  margin-bottom: 1.2rem;
}

.blog-post .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 0.4rem;
  object-fit: cover;
}

.blog-post .entry-meta {
  background: none;
  padding: 0;
  margin-bottom: 1.2rem;
}

.blog-post .entry-meta .byline {
  margin-left: 0.4rem;
}

.blog-post .entry-content {
  font-size: 1rem;
  color: #333;
}

.blog-post .entry-footer {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: #666;
}

.blog-post .cat-links a {
  color: var(--primary);
}

.blog-post .cat-links a:hover {
  color: var(--hover);
}

/* Related Posts Styles */
.related-posts {
  margin: 2rem auto;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  max-width: 1200px;
}

.related-posts-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: var(--text);
  text-align: center;
}

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

.related-post {
  background: #fff;
  border-radius: 0.4rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.related-post .entry-title {
  font-size: 1.1rem;
  padding: 0.6rem;
  margin: 0;
  display: block;
}

.related-post .entry-title a {
  color: var(--text);
}

.related-post .entry-title a:hover {
  color: var(--primary);
}

.related-post .entry-meta {
  background: none;
  padding: 0 0.6rem 0.6rem;
}

.related-post .entry-meta .byline {
  margin-left: 0.4rem;
}

/* Responsive Footer and Blog Styles */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .highlight-box {
    min-width: 100%;
  }

  .highlight-box h2 {
    font-size: 1.2em;
  }

  .highlight-box a {
    font-size: 0.95em;
    padding: 6px;
  }

  .footer-box h2 {
    font-size: 1.2em;
  }

  .footer-box ul li a {
    font-size: 0.9em;
  }

  .blog-posts {
    grid-template-columns: 1fr;
  }

  .blog-post {
    padding: 1rem;
  }

  .blog-post .entry-title {
    font-size: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}