/*
Theme Name: ClipartHD Final Complete
Theme URI: https://idealclass.in/
Author: ClipartHD Team
Author URI: https://idealclass.in/
Description: A custom WordPress theme for PNG image downloads.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cliparthd
Template: generatepress
*/


@import url("../generatepress/style.css");

body.single .site-main {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr;
    gap: 20px;
}

.single .entry-content .download-button {
    background-color: #5a189a !important; /* Darker purple for visibility */
    color: #ffffff !important;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    background-color: #e6f2ee;
    color: white;
    padding: 10px 20px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 5px;
}

.social-share-icons {
    margin-top: 15px;
}

.social-share-icons img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    display: inline-block;
}


.download-container-left {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: left;
}
.download-container-left .download-button {
    background-color: #e6f2ee; /* Darker purple for visibility */
    color: #ffffff !important;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Transparent PNG background checker pattern */
.single-post .post-image img {
  background: linear-gradient(45deg, #eee 25%, transparent 25%),
              linear-gradient(-45deg, #eee 25%, transparent 25%),
              linear-gradient(45deg, transparent 75%, #eee 75%),
              linear-gradient(-45deg, transparent 75%, #eee 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}


/* Transparent PNG Background Support */
.cliparthd-thumbnail img {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Transparent checkerboard background for PNGs */
.cliparthd-image img {
    background-image: url('https://idealclass.in/wp-content/uploads/2025/06/checkerboard-bg.png');
    background-repeat: repeat;
    background-size: 32px 32px;
}


/* Transparent PNG checkerboard background for homepage thumbnails */
img[src$=".png"] {
    background-color: #fff;
    background-image: linear-gradient(45deg, #eee 25%, transparent 25%), 
                      linear-gradient(-45deg, #eee 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #eee 75%),
                      linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Center the Similar Posts title */
.similar-posts-title {
    text-align: center;
    margin-top: 40px;
    font-size: 24px;
    font-weight: bold;
}

/* Grid layout for similar posts */
.similar-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 800px;
}

/* Style for each similar post item */
.similar-post-item {
    border: 1px solid #ccc;
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.similar-post-item img {
    max-width: 100%;
    border-radius: 12px;
}


.download-button-container {
    margin-top: 20px;
    margin-bottom: 10px;
    text-align: center;
}
.custom-download-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}
.custom-download-button:hover {
    background-color: #45a049;
}

.image-meta {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
}
.image-meta p {
    margin: 5px 0;
}


.similar-posts-container {
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 40px;
    padding: 0 20px;
    text-align: center;
}
.similar-posts-title {
    font-size: 24px;
    margin-bottom: 20px;
}
.similar-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.similar-post-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
.similar-post-thumb img {
    max-width: 100%;
    height: auto;
    background: url('background.png');
}
.similar-post-title {
    font-size: 16px;
    margin-top: 10px;
    color: #333;
}
.similar-post-download {
    display: inline-block;
    margin-top: 10px;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
}
.similar-post-download:hover {
    background: #45a049;
}


.similar-download-button {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 8px 0;
  background-color: #f0f0f0;
  color: #000;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.similar-download-button:hover {
  background-color: #dcdcdc;
}

/* --- Custom Similar Posts Styling --- */
.similar-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 10px 20px;
    justify-content: center;
    text-align: center;
}

.similar-post-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.similar-post-card:hover {
    transform: translateY(-5px);
}

.similar-post-card img {
    width: 100%;
    height: auto;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAIElEQVQoU2NkYGD4z0AEYBxVSF4YjRo0aNAigzUQAHWWAR2o4AkyAAAAASUVORK5CYII=') repeat;
}

.similar-post-card .download-btn {
    background-color: #f2f2f2;
    color: #333;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    margin: 10px 0;
}

.similar-post-card .download-btn:hover {
    background-color: #e0e0e0;
}



/* Grid container for homepage */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

/* Each post box */
.post-box {
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
  text-align: center;
}

/* Image in the box */
.post-box img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Button styling (keep previous color) */
.post-box .download-button {
  background-color: #f1f5f9;
  border: none;
  padding: 8px 20px;
  margin-top: 10px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.post-box .download-button:hover {
  background-color: #e2e8f0;
}


/* --- Fix: Similar PNG Section --- */
.similar-png-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
    padding: 0 10px;
}

.similar-png-container .similar-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    padding: 10px;
}

.similar-png-container .similar-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.similar-png-container .similar-item .download-button {
    margin-top: 10px;
    background-color: #7b2cbf;
    color: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.post-thumbnail img {
    border: 2px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.single .entry-title {
    font-size: 20px;
}

.single-post h1.entry-title {
    font-size: 24px;
    text-align: center;
}


/* Custom Title Styling */

.single-post h1.entry-title, 
h1.entry-title {
    font-size: 22px;
    text-align: center;
}


.post-title {
    font-size: 18px;
    text-align: center;
    
    text-decoration: none;
}

.image-detail-box {
    border: 1px solid #ccc;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 15px;
    background-color: #f9f9f9;
}


/* Image Detail Box Styling */
.image-detail {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    background-color: #f9f9f9;
}
.image-detail p {
    margin: 0;
}

/* Balanced column and side spacing for Similar PNG section */
.similar-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 15px;
}
.similar-posts .image-card {
    margin: 0 auto;
}


/* Ensure category boxes on homepage have white background */
.category-box {
    background-color: #ffffff;
}


/* Override underline on post titles globally */
.post-title a, .entry-title a, h2 a {
    text-decoration: none !important;
    border-bottom: none !important;
}

.category-link {
  text-decoration: none !important;
}

.latest-post-slider-custom {
  display: flex;
  overflow-x: auto;
  padding: 10px 0;
  gap: 15px;
  scroll-snap-type: x mandatory;
}

.slider-card {
  min-width: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  scroll-snap-align: start;
  flex-shrink: 0;
  padding: 10px;
  transition: transform 0.3s ease;
}

.slider-card:hover {
  transform: translateY(-5px);
}

.slider-image img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
}

.slider-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
}

.slider-date {
  font-size: 12px;
  color: #888;
}
/* Masonry-style layout */
.archive .posts,
.category .posts {
  column-count: 3;
  column-gap: 1em;
}

.archive .post,
.category .post {
  display: inline-block;
  width: 100%;
  margin: 0 0 1em;
  break-inside: avoid;
}


/* Masonry Grid Layout */
.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
  padding: 1rem;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}



/* Pinterest-style Masonry Grid */
.category-grid {
  column-count: 2;
  column-gap: 1em;
}

.category-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1em;
}


/* --- Masonry Layout Styles --- */

/* Masonry Grid Style */
.masonry-grid {
  column-count: 2;
  column-gap: 1rem;
  padding: 1rem;
}
.masonry-grid-item {
  display: inline-block;
  background: #fff;
  margin: 0 0 1rem;
  width: 100%;
  break-inside: avoid;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}



/* --- Masonry Layout Styles for Homepage Category Thumbnails --- */
.home .masonry-grid {
  column-count: 2;
  column-gap: 1rem;
  padding: 1rem;
}
.home .masonry-grid-item {
  display: inline-block;
  margin: 0 0 1rem;
  width: 100%;
  break-inside: avoid;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}



/* Masonry Grid Fix for Homepage Category */
.category-grid {
  column-count: 2;
  column-gap: 1em;
  padding: 1em;
}

@media (min-width: 768px) {
  .category-grid {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .category-grid {
    column-count: 4;
  }
}

.category-item {
  break-inside: avoid;
  margin-bottom: 1em;
  display: inline-block;
  width: 100%;
}


/* Masonry layout for homepage category section */
.masonry-grid {
  column-count: 2;
  column-gap: 1rem;
  padding: 1rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Homepage Hero Section */
.homepage-hero-section {
  text-align: center;
  padding: 60px 20px 30px;
  background-color: #ffffff;
}
.hero-title {
  font-size: 2rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.5em;
}
.hero-subtitle {
  font-size: 1rem;
  color: #6B7280;
  margin-bottom: 1.5em;
}
.search-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.search-field {
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  width: 250px;
}
.search-submit {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}


/* Footer height adjustment for mobile */
@media (max-width: 768px) {
  footer {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}


/* Footer Styling */
.site-footer {
    background-color: #f9f9f9;
    padding: 10px 20px;
    font-size: 14px;
    color: #333;
    border-top: 1px solid #ddd;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-left {
    margin-bottom: 10px;
}
.footer-right a {
    margin-left: 10px;
    color: #555;
    text-decoration: none;
    font-size: 16px;
}
.footer-right a:hover {
    color: #000;
}
@media (max-width: 480px) {
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-right {
        margin-top: 10px;
    }
}


/* Apply custom fonts */
body, p, a, li, span, input, textarea {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Double-column Pinterest-style layout for Similar PNG */
.similar-png-container {
  column-count: 2;
  column-gap: 20px;
}

.similar-png-container .similar-png-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
}

.custom-pagination {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 18px;
}
.custom-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.custom-pagination .page-numbers.current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}
.custom-pagination .page-numbers:hover {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}


.pagination-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.pagination-container .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-container .page-numbers.current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.pagination-container .page-numbers:hover {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.related-topics-box {
  margin: 20px 0;
  padding: 10px 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow-x: auto;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.related-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.related-tags span {
  flex: 0 0 auto;
}

.related-tags span a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.related-tags span a:hover {
  background-color: #005d8f;
}

/* ✅ H1 Heading Styling */
h1 {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin: 15px 0 10px;
  line-height: 1.3;
  text-align: center;
}

/* ✅ H2 Heading Styling */
h2 {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin: 10px 0 8px;
  line-height: 1.4;
  text-align: left;
}

/* ✅ Optional: Mobile Responsive Adjustment */
@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }
  h2 {
    font-size: 18px;
  }
  
}
