/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

:root {
    --primary-color: #4A6FA5;
    --secondary-color: #88A0A8;
    --accent-color: #C0D6DF;
    --light-bg: #F8F9FA;
    --text-dark: #2B2D42;
    --text-medium: #4A4E69;
    --text-light: #6C757D;
    --transition: all 0.3s ease;
}

/* ---- More puzzles / "You might also like" styles ---- */
.more-puzzles-section {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 1rem 2rem;
}

section.more-puzzles-section{
    margin-top: 45px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgb(0 0 0 / .05);
    border-radius: 8px;
}

.more-puzzles-section .section-heading {
    margin-top: 0px;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    font-size: 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #4A6FA5 !important;
}

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

.more-puzzle-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    /*min-height: 120px;*/
}

.more-puzzle-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(74,111,165,0.12);
    border-color: rgba(74,111,165,0.08);
}

.more-puzzle-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 0.9rem;
    align-items: flex-start;
    gap: 0.75rem;
}

.more-puzzle-thumb {
    width: 100%;
    height: 110px;
    overflow: hidden;
    border-radius: 6px;
    display: block;
    flex: 0 0 auto;
}

.more-puzzle-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.more-puzzle-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

/* when thumbnail is missing, adjust spacing */
.more-puzzle-item .more-puzzle-thumb + .more-puzzle-title {
    margin-top: 0.25rem;
}

/* fallback if no thumbnail: center title vertically */
.more-puzzle-item:not(:has(.more-puzzle-thumb)) .more-puzzle-link {
    justify-content: center;
}

/* small screens */
@media (max-width: 768px) {
    .more-puzzles-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .more-puzzle-thumb {
        height: 160px;
    }
    .more-puzzle-title {
        font-size: 1.05rem;
    }
}









body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-medium);
    margin: 0px;
}

.site-title:hover{
    color: white;
    opacity: 1 !important;
}

.crossword-site-header {
    margin: 50px auto !important;
    padding: 2rem;
    max-width: 1280px;
    background: #4A6FA5;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgb(0 0 0 / .05);
}

.crossword-site-header h1 {
    font-family: sans-serif;
    font-weight: 600;
    color: white;
}

 /* Modal backdrop */
    .search-modal {
      display: none;           /* hidden by default */
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      z-index: 9999;
      align-items: center;     /* center children vertically */
      justify-content: center; /* center children horizontally */
    }

    /* Modal content box */
    .search-modal .modal-content {
      background: #fff;
      padding: 2rem 0 3rem;
      max-width: 900px;
      width: 90%;
      position: relative;
      border-radius: 5px;
      display: grid;
      place-items: center;
    }
    
    .modal-content .single-page-search-box {
    width: 90%;
}

    /* Close button */
    .search-modal .close-modal {
      position: absolute;
      top: 0.8rem;
      right: 1.3rem;
      font-size: 1.7rem;
      cursor: pointer;
    }

header#site-header{
    display: none;
}

.single-page-search-box {
    margin-top: 45px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgb(0 0 0 / .05);
    border-radius: 8px;
}

.single-page-search-box .search-box-container {
    margin-bottom: 0px;
}

.single-page-search-box h3 {
    font-size: 18px;
    margin-top: 0px;
    color: #4A6FA5;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-container button#load-more {
    border: 1px solid #4A6FA5;
    color: #4A6FA5;
}

.load-more-container button#load-more:hover{
    background: #4A6FA5;
    color: white;
}

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

.crossword-home-container {
    max-width: 1280px;
    margin: 50px auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.search-box-container {
    position: relative;
    margin-bottom: 3rem;
}

.search-box-container::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    z-index: 2;
}

.crossword-search {
    width: 100% !important;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem !important;
    font-size: 1.1rem !important;
    /*border: 2px solid var(--primary-color);*/
    border-radius: 10px !important;
    background: white !important;
    transition: var(--transition) !important;
    box-shadow: 0 4px 15px rgba(74, 111, 165, 0.1) !important;
}

input.crossword-search:focus-visible{
    outline: none;
    border: 2px solid var(--primary-color);
}

.crossword-search:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(136, 160, 168, 0.2);
}

.search-results {
    position: absolute;
    width: 100%;
    background: white;
    border-radius: 10px;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--light-bg);
    transform: translateX(5px);
}

.search-result-item h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.search-result-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.crossword-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.crossword-post:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(74, 111, 165, 0.15);
}

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

.crossword-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.crossword-post h5 {
    margin: 0;
}

.crossword-post h5 a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: var(--transition);
}

.crossword-post h5 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.section-heading {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--accent-color);
}

.site-header {
    display: none;
}

.crossword-header {
  position: relative;  /* ← added */
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  top: 0;
  z-index: 200;
}

/*  .crossword-header {*/
/*  background: var(--primary-color);*/
/*  color: white;*/
/*  padding: 1rem 0;*/
/*  position: sticky;*/
/*  top: 0;*/
/*  z-index: 200;*/
/*}*/
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.header-container button.menu-toggle {
    color: white;
    border: 1px solid white;
    font-size: 18px;
}
.header-container button.menu-toggle:hover,
.header-container button.menu-toggle:focus{
    background-color: #4A6FA5;
}
.site-title {
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: var(--transition);
}
.site-title:hover {
  opacity: 0.8;
}

/* Navigation list */
.main-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.main-nav li + li {
  margin-left: 1.5rem;
}
.main-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  transition: var(--transition);
}

/* Menu toggle button (hidden by default) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  line-height: 1;
}

/* Image hover (unchanged) */
.crossword-post img {
  transition: transform 0.7s ease;
}
.crossword-post:hover img {
  transform: scale(1.05);
}

.crossword-footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0.5rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    /*opacity: 0.8;*/
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
}

.social-icons a {
    color: white;
    margin-left: 1rem;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    opacity: 0.8;
}

.post-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.puzzle-header {
    text-align: center;
    padding: 1rem 2rem;
    background: #4A6FA5;
    border-radius: 8px;
    color: white;
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.15);
}

.puzzle-header h1 {
    font-size: 1.9rem;
    margin: 0px 0 1rem;
    color: white;
    letter-spacing: -0.5px;
    font-weight: 600;
    margin-bottom: 0px;
}

.puzzle-featured-image {
    max-width: 100%;
    height: 350px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    /*margin-top: 2rem;*/
    object-fit: cover;
}

.puzzle-content {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 2rem;
}

.clue-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 10px;
    border-left: 5px solid #4A6FA5;
}

.clue-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.clue-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.answer-section {
    background: rgba(136, 160, 168, 0.05);
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid #4A6FA5;
}

.puzzle-featured-image-div{
    text-align: center;
    margin-bottom: 40px;
    
    background: white;
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 2rem;
}

.answer-title {
    color: #4A6FA5;
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.answer-title i {
    color: #4A6FA5;
}

.answer-letters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.answer-letter:nth-child(1){
    border-left: 2px solid #4A6FA5;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.answer-letter:nth-last-child(1) { 
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.answer-letter {
    background: white;
    border: 2px solid #4A6FA5;
    border-left: none;
    color: var(--text-dark);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(192, 214, 223, 0.2);
    transition: var(--transition);
}

.additional-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-bg);
}

.site-header{
    display: none;
}

/* POST NAVIGATION STYLES */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 2rem;
}

.nav-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(74, 111, 165, 0.1);
    transition: var(--transition);
    border: 2px solid rgba(74, 111, 165, 0.1);
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.2);
    border-color: rgba(74, 111, 165, 0.3);
}

.prev-card .nav-label {
    justify-content: start;
}

.nav-content {
    padding: 1.8rem;
        display: flex
;
    flex-direction: column;
}

.nav-label {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
    color: #4A6FA5;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.nav-label i {
    font-size: 1.2rem;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prev-card .nav-title {
    text-align: left;
}

.next-card .nav-title {
    text-align: right;
}

.nav-link {
    display: block;
    text-decoration: none;
    height: 100%;
}

.next-card {
    display: flex;
    justify-content: end;
}



@media (max-width: 768px) {
    .clue-section h2 {
    font-size: 1.2rem;
}
    .puzzle-content {
    padding: 20px 15px;
}
.puzzle-featured-image {
    height: auto;
}
section.clue-section {
    padding: 1.1rem;
}
.clue-text p {
    font-size: 16px;
}
.additional-content p {
    font-size: 16px;
}
.post-navigation {
    margin-top: 35px;
}
.puzzle-featured-image-div {
    margin-bottom: 30px;
}
    .search-box-container::before {
    font-size: 14px;
}
    .crossword-search {
    padding: 0.6rem 0.6rem 0.6rem 2.8rem;
}
    .site-title{
        font-size: 1.5rem;
    }
    .post-container {
        padding: 0 1rem;
    }

    .puzzle-header h1 {
        font-size: 1.4rem;
    }

    .answer-letter {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }

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



@media (max-width: 768px) {
     .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;              /* hide by default */
    position: absolute;         /* pull out of normal flow */
    top: 100%;                  /* immediately under .crossword-header */
    left: 0;
    width: 100%;                /* full-width */
    background: var(--primary-color);
    z-index: 199;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-nav li + li {
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-decoration: none;
    transition: var(--transition);
  }

  .main-nav a:hover {
    opacity: 0.8;
  }
    .crossword-home-container {
        padding: 1.5rem;
    }
    .crossword-posts-list {
        grid-template-columns: 1fr;
    }
    .section-heading {
        font-size: 1.5rem;
    }
}