/*
Theme Name: Text to Coloring
Theme URI: https://texttocoloring.com
Author: Thuy
Author URI: https://texttocoloring
Description: A minimalist theme for AI Text to Coloring Page website.
Version: 1.0
Text Domain: ttc
*/
    :root {
      --primary-color: #ff6b6b;
      --text-color: #333;
      --background-light: #f9f7f7;
      --white: #fff;
    }
/*header**/
@font-face {
  font-family: 'Open Sans';
  src: url('/wp-content/themes/text-to-coloring/fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/wp-content/themes/text-to-coloring/fonts/OpenSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('/wp-content/themes/text-to-coloring/fonts/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


  *{margin:0;padding:0}
    /* Font và Reset */
    body, button, input, select, textarea {
	font-family: 'Open Sans', sans-serif;
	  font-weight:500;
	  font-size:16px;
    }
	body{background-color:#fff;height:auto}
    a {
      text-decoration: none;
      color: inherit;
    }
	/**LOGO**/

    /* Header */
    header.site-header {
      background: #fff;
      border-bottom: 1px solid #eee;
      padding: 0 1rem;
      position: sticky;
      top: 0;
      z-index: 999;
      box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
    }
    .header-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }
    /* Logo */
	.site-logo{flex-grow: 1;}
    .site-logo a {
      display: inline-block;
      max-height: 60px;
    }
    .site-logo img {
      max-height: 50px;
      height: auto;
      width: auto;
    }

    /* Menu Desktop */
    nav.primary-navigation {
	  margin-right: 2rem;
    }
    .primary-navigation ul.menu {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      gap: 1.8rem;
	flex-direction: row;
    }
    .primary-navigation ul.menu li {
      position: relative;
    }
    .primary-navigation ul.menu li a {
      color: #333;
      font-weight: 600;
      font-size: 1.1rem;
      padding: 0.5rem 0;
      display: inline-block;
      transition: color 0.25s ease;
    }
    .primary-navigation ul.menu li a:hover,
    .primary-navigation ul.menu li a:focus {
      color: #ff6b6b;
    }

    /* Start Creating Button */
    .btn-start-creating {
        background: linear-gradient(to right, #ff6b6b, #ff9472);
		  color: white;
		  padding: 10px 24px;
		  border: none;
		  border-radius: 999px;
		  font-weight: 600;
		  font-size: 16px;
		  cursor: pointer;
		  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
		  transition: all 0.3s ease;
    }
	section .btn-start-creating{font-size:1rem;display:block;width:fit-content}
    .btn-start-creating:hover,
    .btn-start-creating:focus {
      background: linear-gradient(to right, #ff5252, #ffb374);
  box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
  transform: scale(1.05);
      outline: none;
    }
	

    /* Mobile Menu */
    .menu-toggle {
      background: none;
      border: none;
      font-size: 1.3rem;
      cursor: pointer;
      display: none;
      color: #333;
    }

/* Ẩn submenu mặc định */
.menu-item-830 .sub-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: calc(50% - 400px);
  min-width: 220px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  z-index: 9999;
  padding: 10px 0;
  border-radius: 8px;
	
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 0px;
  min-width: 900px;
}

/* Hiện submenu khi hover */
.menu-item-830:hover .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Submenu item */
.menu-item-830 .sub-menu li {
  padding: 0px 15px;
  white-space: nowrap;
  list-style:none;
}

.primary-navigation .menu-item-830 .sub-menu li a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  transition: background 0.2s, color 0.2s;
  border-radius: 5px;
}

.menu-item-830 .sub-menu li a:hover {
  color: #0073aa;
}

    /* Mobile Menu Dropdown */
    @media (max-width: 999px) {
      .primary-navigation {
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #eee;
        display: none;
        flex-direction: column;
        padding: 1rem 2rem;
        z-index: 999;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        width: calc(100% - 4rem);
      }
      .primary-navigation.active {
        display: flex;
      }
      .primary-navigation ul.menu {
        flex-direction: column;
        gap: 1rem;
      }
      .menu-toggle {
        display: block;
      }
      /* Start Creating button luôn hiện ở header */
      .btn-start-creating {
        font-size: 1rem;
        padding: 0.5rem 1.3rem;
      }
    }

/*main*/

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

    .container {
      max-width: 1200px;
      margin: auto;
      padding: 0 1rem;
    }
	.hero-section > .container,.features-section > .container{
		display: flex;
	  flex-wrap: wrap;
	  align-items: center;
	  justify-content: space-between;
	}

    .fade-in {
      animation: fadeIn 1s ease-in forwards;
      opacity: 0;
    }

    @keyframes fadeIn {
      to {
        opacity: 1;
      }
    }

    .hero-section {
	  padding: 30px 0;
	  background: linear-gradient(to right, #fff5eb, #ffe8d9);
	}

    .hero-content {
      flex: 1;
      padding-right: 2rem;
      animation-delay: 0.2s;
    }

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

    .hero-content p {
      font-size: 1rem;
      color: #444;
      margin-bottom: 1rem;
    }

    .hero-content button {
      background-color: var(--primary-color);
      color: var(--white);
      border: none;
      padding: 16px 32px;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .hero-content button:hover {
      background-color: #e25555;
    }

    .hero-image {
      flex: 1;
      text-align: center;
      animation-delay: 0.4s;
    }

    .features-section {
  padding: 80px 0;
  gap: 2rem;
  background: linear-gradient(to right, #f3f3f3, #dfeef4);
}
    .features-image, .features-content {
      flex: 1;
    }
	.features-content{padding:10px 20px}
	
	section h2{color: var(--text-color);}

    .features-content h2 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
    }

    .features-content ul {
      list-style: none;
      padding-left: 0;
      font-size: 1rem;
    }

    .features-content li {
      margin-bottom: 1rem;
      padding-left: 1.5rem;
      position: relative;
	  color:#444;
		font-size:1rem;font-weight:400;
    }

.features-content li span {font-weight:600}

    .features-content li::before {
      content: '✔';
      color: var(--primary-color);
      position: absolute;
      left: 0;
    }

   .gallery-section {
  background: linear-gradient(to bottom, #ffffff, #fdf2f8);
  padding: 80px 0;
  text-align: center;
}

    .gallery-section h2 {
      font-size: 1.8rem;
      margin-bottom: 2rem;
    }

    .gallery {
     	display: grid;
    	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
   		 gap: 30px;
      padding: 0px;
		margin:30px auto;
    }

    .photo {
      position: relative;
      transition: transform 0.3s;
      cursor: pointer;
    }

    .photo img {
      width: 100%;
      height: auto;
      border-radius: 4px;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s;
    }

.photo p {font-size:0.95rem;text-align:center;margin:10px auto}

.single-page h1{font-size: 2rem;
    font-weight: 600;
    margin: 20px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;}
  .post-content-wrapper {
    margin-bottom: 30px;
  }
  #breadcrumbs{font-size: 0.9rem;
    color: #444;
  margin-top: 5px;}
  
section.single-cont{padding-bottom:50px}

  #post-content {
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .moreless-btn {
    margin-top: 10px;
    padding: 4px 10px;
    cursor: pointer;
    border: none;
    background: #ff6d6b;
    border-radius: 4px;
    color: #fff;
    font-size: 0.95rem;
  }
#main-content-single{margin:50px 0 0px}
  #post-content p, #main-content-single p{font-size: 1rem;
    line-height: 1.6rem;
  font-weight: 400;margin: 10px 0;}
  #post-content h2, #main-content-single h2{margin:10px 0;font-size:1.5rem}
#post-content ul, #main-content-single ul{
	margin-left:30px;
	font-size:1rem;
	font-weight:400;
}
#post-content ul li, #main-content-single ul li{
	margin:10px 0
}
  #coloring-results{margin:50px auto}
  .coloring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
  }

  .coloring-item {
    padding: 3px;
    background: #fff;
    text-align: center;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .55);
	position: relative;
  overflow: hidden;
  }

  .coloring-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

.coloring-info{margin:10px}
.coloring-info h3,.coloring-info h2{margin-bottom: 10px;}

  .img-title a{
    margin: 5px 0;
    font-size: 1rem;
	font-weight:600;
	 color:#1b1b1b;
  }

  .img-caption {
    font-size: 13px;
    color: #444;
    margin-bottom: 8px;
    font-weight: 500;
	line-height: 1.2rem;
  }
  
  .coloring-actions{
	  display: flex;
	 margin-bottom: 0px;
	  margin-top: 10px;
		height: auto;
	  width: 100%;
	  gap: 1px;
  }

  .coloring-actions .pdf-bt {
    background: #0073aa;
    color: #fff;
    font-size: 0.9rem;
    padding: 8px 8px;
    margin: 0 auto 5px;
    display: block;
    width: fit-content;
	text-decoration: none;
	flex-basis: 50%;
  }

  .coloring-actions .pdf-bt:hover {
    background: #f95a5a;
  }

  .pinterest-icon {
  position: absolute;
  top: 4px;
  left: 0px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  background-color: rgb(230, 0, 35);
    width: 40px;
    line-height: 40px;
    height: 40px;
    background-size: 40px;
    border-radius: 6px;
}

.pinterest-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hover vào toàn vùng ảnh thì icon hiện ra */
.coloring-item:hover .pinterest-icon {
  opacity: 1;
}

.container .free-page{max-width:750px;text-align:center;margin:0 auto 30px}
.container .free-page h1{border:none}
.container .free-page > h2{margin:30px auto}
.container .free-page p{
    color: #444;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7rem;
}
form#ajax-coloring-search-form{
	border: 1px solid #444;
    border-radius: 5px;
	margin: 20px auto;
}
form#ajax-coloring-search-form input[type="text"]{
	padding: 15px 20px;
    width: calc(100% - 130px);
    max-width: 600px;
    border: none;
	outline:none!important;
}
form#ajax-coloring-search-form button{
	outline: none;
    border: none;
    background-color: #eb4743;
    color: #fff;
    padding: 8px 13px;
    margin-right: 5px;
    border-radius: 10px;
    font-size: 1rem;
	cursor: pointer;
}
.popular-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
flex-wrap: wrap;
gap: 5px;
justify-content: center;
}
.popular-posts li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
    font-weight: 600;
    background: #f5f5f5;
    padding: 2px 5px;
    border-radius: 8px;
    color: #111;
    margin-right: 5px;
	transition:0.3s ease;
}
.popular-posts li:hover {color:#eb4743;}
.coloring-info > p.countpages{font-size: 13px;
    font-weight: 500;
    color: #666;
    padding: 5px 0;}

    .testimonials-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(to bottom, #fff,#fef9d7);
  }
    .testimonials-section h2 {
      font-size: 1.8rem;
      margin-bottom: 2rem;
    }

    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 2rem;
      padding: 0 1rem;
    }

    .testimonial {
      background-color: var(--white);
      padding: 1.5rem;
      border-radius: 12px;
      text-align: left;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    }

    .testimonial .user {
      display: flex;
      align-items: center;
      margin-bottom: 1rem;
    }

    .testimonial .user img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      margin-right: 1rem;
    }

    .testimonial .user-name {
      font-weight: bold;
      font-size: 1rem;
	  color: var(--text-color)
    }

    .testimonial p {
      font-size: 1rem;
      color: #555;
    }

.faq-section{
	background: linear-gradient(to bottom, #fef9d7, #fff);
	padding:80px 0;
}
.faq-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.faq-item {
  border-radius: 10px;
  border: 1px solid #ffdcdc;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.1);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.2);
}

.faq-question {
  width: 100%;
  background: #fff5f5;
  border: none;
  padding: 18px 20px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #ffecec;
}

.faq-question::after {
  content: "▼";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  color: #ff6b6b;
  font-size: 1rem;
}

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  padding: 0 20px;
  font-size: 1rem;
  color: #444;
  transition: max-height 0.5s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 15px 20px 20px;
}
/**footer**/
.site-footer {
  background: #fff;
  padding: 80px 20px 20px;
  color: #333;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 200px;
}

.footer-column.wide-column {
  flex: 2 1 320px; /* chiếm gấp đôi các cột khác */
}

.footer-column p{
	font-size:0.95rem;
	color:#444;
}

.footer-logo {
  width: 180px;
  margin-bottom: 12px;
  
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #ff6b6b;
}

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

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

.footer-column ul li a {
  text-decoration: none;
  color: #444;
  font-size:0.95rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #111;
  border-bottom: 2px solid #555;
}

.social-links a {
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.social-links a i {
  margin-right: 0;
  color: #444;
  width: 15px;
    text-align: center;
}

.social-links a:hover {
  color: #111;
}

.social-links a:hover i{
	color: #ff6b6b;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

/* Nền tổng thể nhẹ nhàng */
.custom-template-content{
	width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

/* Các trường input */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="number"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    transition: 0.3s;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce-checkout select:focus {
    border-color: #0073aa;
    background-color: #fff;
}

.woocommerce form .form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    font-size: 14px;
    color: #333;
}

.woocommerce-checkout h3 {
    font-size: 20px;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 25px;
}

.woocommerce #payment #place_order {
   margin: 20px auto;
    width: 100%;
    background: #14a12b;
    border: none;
    padding: 14px 26px;
    font-size: 16px;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.woocommerce #payment #place_order:hover {
    background: #48d15e;
}

.woocommerce-info {
  display: none !important;
}

.woocommerce-error{
	width: 100%;
    display: block !important;
    left: 0;
    flex-basis: 100%;
    margin-bottom: 0;
}

.woocommerce-NoticeGroup{width:100%}

.woocommerce-checkout .form-row {
  margin-bottom: 20px;
}

.woocommerce-checkout #place_order {
  background-color: #2a7ae4;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.woocommerce-checkout #place_order:hover {
  background-color: #1a5fc4;
}

.woocommerce form.checkout {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.woocommerce .col2-set, .woocommerce-page .col2-set{width:calc(50% - 30px)}
.woocommerce .col2-set .col-1, .woocommerce-page .col2-set .col-1{width:100%}
.woocommerce .col2-set .col-2, .woocommerce-page .col2-set .col-2{display:none}
.woocommerce form.woocommerce-checkout h3{display:none}
.woocommerce form.woocommerce-checkout #order_review{padding: 30px 0 0 30px;width: calc(50% - 30px);}
.woocommerce-Price-amount span, .woocommerce-Price-amount bdi, .subscription-price .subscription-details,.woocommerce-Price-amount,.cart-subtotal td,td .total{color:#ff6b6b}
.woocommerce table.shop_table th{background:#eee}

.woocommerce-breadcrumb {
  display: none;
}

/* Căn giữa tiêu đề trang */
.woocommerce-checkout h1.entry-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

@media (max-width: 1180px){
	.menu-item-830 .sub-menu {
	  left: 0;
	  grid-template-columns: repeat(3, minmax(180px, 1fr));
	  min-width: 600px;
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.woocommerce .col2-set, .woocommerce-page .col2-set{width:100%}
	.woocommerce form.woocommerce-checkout #order_review{
		width: 100%;
    	padding: 30px 0 0;
	}
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column,.footer-column.wide-column {
    width: 100%;
	 flex:100%;
  }
}



    @media (max-width: 768px) {
      .hero-section,
      .features-section {
        flex-direction: column;
        padding: 60px 0;
      }
		.features-image{display:none}

      .hero-content,
      .features-content {
        padding: 0;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

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

      .features-content h2,
      .gallery-section h2,
      .testimonials-section h2 {
        font-size: 1.8rem;
      }

      body {
        font-size: 16px;
      }
	 .menu-item-830 .sub-menu {
		display: none !important;
	  }
    }