/*
Theme Name: RankWithSEOTools Child
Template: generatepress
Version: 1.0
Description: GeneratePress Child Theme for RankWithSEOTools
Author: RankWithSEOTools
*/

/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .seo-tools-grid {
        grid-template-columns: 1fr; /* 1 column layout */
    }
}

/* Ensure Space for Hidden Elements */
.mobileShow, .mobileHide {
    visibility: hidden; /* Reserve space even if not visible */
}

@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    .mobileShow {
        visibility: visible;
    }
    .mobileHide {
        visibility: hidden;
    }
}

/* Image Handling */
img {
    width: 100%;
    height: auto;
    display: block;
}

/* Minimize Layout Shifts */
.wp-block-button__link {
    min-height: 50px; /* Ensure buttons are reserved space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
}

/* Prevent Layout Shifts from Dynamic Content */
.wp-block-button {
    margin: 5px!important;
}

.wp-block-button__link {
    padding: 10px 20px;
}

/* Show featured images on single posts */
.featured-image {
    display: block !important;
}

/* --- new CSS 15-03-2025 --- */

/* Content Sections */
.content-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Tool Grids */
.seo-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.seo-tool {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.seo-tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

/* Buttons */
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    margin: 8px;
    border-radius: 25px;
    background: #4CAF50;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    background: #45a049;
    transform: scale(1.05);
}

/* Blog Integration */
.blog-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.blog-card-content {
    padding: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .seo-tools-grid {
        grid-template-columns: 1fr;
    }

    .wp-block-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Color Scheme */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --accent-color: #FFC107;
}

h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  #block-16 {
    display: none !important;
  }
    .inside-article {
    padding: 5px!important;
  }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }

    h5 {
        font-size: 16px;
    }

    h6 {
        font-size: 14px;
    }
}

.wplogout-float-social-wrapper {
    position: fixed;
    top: 70%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 9999
}

.wplogout-float-social-sharing {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: flex-start;
    min-height: 30px;
    font-size: 12px;
    padding: 10px
}

.wplogout-float-social-sharing svg {
    position: relative;
    top: 0
}

.wplogout-float-social-sharing:first-of-type {
    border-top-right-radius: 10px
}

.wplogout-float-social-sharing:last-of-type {
    border-bottom-right-radius: 10px
}

.wplogout-social-facebook {
    fill: #fff;
    background-color: #3b5998
}

.wplogout-social-facebook:hover {
    background-color: rgb(59 89 152 / .8)
}

.wplogout-social-twitter {
    fill: #fff;
    background-color: #1da1f2
}

.wplogout-social-twitter:hover {
    background-color: rgb(29 161 242 / .8)
}

.wplogout-social-pinterest {
    fill: #fff;
    background-color: #bd081c
}

.wplogout-social-pinterest:hover {
    background-color: rgb(189 8 28 / .8)
}

.wplogout-social-linkedin {
    fill: #fff;
    background-color: #0077b5
}

.wplogout-social-linkedin:hover {
    background-color: rgb(0 119 181 / .8)
}

.wplogout-social-whatsapp {
    fill: #fff;
    background-color: #25d366
}

.wplogout-social-whatsapp:hover {
    background-color: rgb(37 211 102 / .8)
}

.wplogout-social-reddit {
    fill: #fff;
    background-color: #ff5700
}

.wplogout-social-reddit:hover {
    background-color: rgb(255 87 0 / .8)
}

#page.site.grid-container.container.hfeed {
  min-height: 2600px;
}