/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  GeneratePress Child Theme with Isolated Social Follow Box (Posts, Pages & Sticky Sidebar)
 Author:       Devraj Patel
 Template:     generatepress
 Version:      1.0.5
*/






/* ==========================================================================
   1. GLOBAL CONTAINER & RESPONSIVE SPACING
   ========================================================================== */
@media (max-width: 768px) {
    .site-content {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .generate-columns-container article.post,
    .blog article.post,
    .archive article.post,
    .search-results article.post {
        margin-bottom: 16px;
    }
}


/* ==========================================================================
   2. HEADER & NAVIGATION STYLING
   ========================================================================== */
.site-header,
.main-navigation,
#site-navigation {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease;
    box-sizing: border-box;
}

.main-navigation ul ul {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header .main-title a,
.main-navigation .main-nav ul li a {
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.main-navigation .search-item a,
.main-navigation .menu-bar-item.search-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    padding: 0;
}

.main-navigation .search-item a svg,
.main-navigation .menu-bar-item.search-item a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.main-navigation .search-item:hover a,
.main-navigation .menu-bar-item.search-item:hover a {
    transform: scale(1.05);
}


/* ==========================================================================
   3. POST CARDS VISUAL STYLING (Home, Blog, Archive)
   ========================================================================== */
.generate-columns-container .inside-article,
.blog .inside-article,
.archive .inside-article,
.search .inside-article,
.search-results .inside-article {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.generate-columns-container .inside-article:hover,
.blog .inside-article:hover,
.archive .inside-article:hover,
.search-results .inside-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.post-image {
    margin: 0;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.inside-article:hover .post-image img {
    transform: scale(1.02);
}

.entry-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}


/* ==========================================================================
   4. SIDEBAR STYLING
   ========================================================================== */
.sidebar .widget {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.sidebar .widget-title {
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.sidebar .wp-block-search__inside-wrapper,
.sidebar .search-form {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.sidebar input[type="search"],
.sidebar .wp-block-search__input,
.sidebar .search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
}

.sidebar .search-submit,
.sidebar .wp-block-search__button,
.sidebar .search-form .search-submit {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.sidebar .search-submit:hover,
.sidebar .wp-block-search__button:hover,
.sidebar .search-form .search-submit:hover {
    opacity: 0.9;
}

.sidebar ul,
.sidebar .wp-block-latest-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li,
.sidebar .wp-block-latest-posts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar ul li:last-child,
.sidebar .wp-block-latest-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar img,
.sidebar .wp-block-latest-posts__featured-image img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
}

.sidebar ul li a,
.sidebar .wp-block-latest-posts__post-title {
    text-decoration: none;
    transition: color 0.2s ease;
}


/* ==========================================================================
   5. PERFECT FLUID & COMPACT SOCIAL COMMUNITY BOX (No Overflow)
   ========================================================================== */
.gp-custom-follow-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    clear: both;
    box-sizing: border-box;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
}

.gp-custom-follow-box *, 
.gp-custom-follow-box *::before, 
.gp-custom-follow-box *::after {
    box-sizing: border-box;
}

.gp-custom-follow-box .gp-follow-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    padding: 0;
    border: none;
    background: transparent;
}

.gp-custom-follow-box .gp-follow-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.1px;
    line-height: 1.3;
}

.gp-custom-follow-box .gp-follow-badge svg {
    width: 17px;
    height: 17px;
    fill: #2563eb;
    flex-shrink: 0;
}

.gp-custom-follow-box .gp-follow-grid {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

/* Compact Social Card */
.gp-custom-follow-box .gp-social-card {
    display: flex;
    align-items: center;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    border: none;
    min-width: 0;
}

.gp-custom-follow-box .gp-social-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    color: #ffffff;
}

/* Compact SVG Icons */
.gp-custom-follow-box .gp-social-card svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    flex-shrink: 0;
    margin-right: 6px;
}

.gp-custom-follow-box .gp-card-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
    overflow: hidden;
    min-width: 0;
}

.gp-custom-follow-box .gp-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-custom-follow-box .gp-card-sub {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.9;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Platform Colors */
.gp-custom-follow-box .gp-card-yt { background-color: #ff0000; }
.gp-custom-follow-box .gp-card-ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.gp-custom-follow-box .gp-card-wa { background-color: #25d366; }
.gp-custom-follow-box .gp-card-tg { background-color: #229ed9; }

/* -------------------------------------------------------------------------
   HOME PAGE BOX (Fits 100% inside container, exact 1 line in Desktop)
------------------------------------------------------------------------- */
.gp-custom-follow-box.gp-follow-home-box {
    margin: 0 0 20px 0;
    padding: 12px 14px;
    width: 100%;
}

.gp-custom-follow-box.gp-follow-home-box .gp-follow-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* -------------------------------------------------------------------------
   CONTENT BOX (Inside Single Post / Page)
------------------------------------------------------------------------- */
.gp-custom-follow-box.gp-follow-content-box {
    margin: 16px 0 24px 0;
    padding: 12px 14px;
}

.gp-custom-follow-box.gp-follow-content-box .gp-follow-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

/* -------------------------------------------------------------------------
   SIDEBAR BOX (Single Sticky Column)
------------------------------------------------------------------------- */
.gp-custom-follow-box.gp-follow-sidebar-sticky {
    margin: 0 0 20px 0;
    padding: 14px;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.gp-custom-follow-box.gp-follow-sidebar-sticky .gp-follow-grid {
    grid-template-columns: 1fr;
    gap: 8px;
}

.gp-custom-follow-box.gp-follow-sidebar-sticky .gp-social-card {
    padding: 9px 12px;
}

.gp-custom-follow-box.gp-follow-sidebar-sticky .gp-card-title {
    font-size: 13.5px;
}

.gp-custom-follow-box.gp-follow-sidebar-sticky .gp-card-sub {
    font-size: 11px;
}

/* -------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (Mobile & Tablet)
------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .gp-custom-follow-box.gp-follow-home-box .gp-follow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gp-custom-follow-box.gp-follow-home-box .gp-follow-grid,
    .gp-custom-follow-box.gp-follow-content-box .gp-follow-grid {
        grid-template-columns: 1fr;
    }
    .gp-custom-follow-box.gp-follow-sidebar-sticky {
        position: static;
        margin-bottom: 16px;
    }
}












/* ==========================================================================
   1. GLOBAL RESPONSIVE CONTAINER & SPACING
   ========================================================================== */
@media (max-width: 768px) {
    .site-content {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .generate-columns-container article.post,
    .blog article.post,
    .archive article.post,
    .search-results article.post {
        margin-bottom: 16px;
    }
}


/* ==========================================================================
   2. HEADER STYLING (Card / Post Box Style Effect)
   ========================================================================== */
/* Header Card Style */
.site-header,
.main-navigation,
#site-navigation {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

/* Header Dropdown Menu (Submenu) Card Style */
.main-navigation ul ul {
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Header Links Transition */
.site-header .main-title a,
.main-navigation .main-nav ul li a {
    text-decoration: none;
    transition: opacity 0.2s ease, color 0.2s ease;
}

/* Navigation Search Icon Placement */
.main-navigation .search-item a,
.main-navigation .menu-bar-item.search-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 8px;
    border-radius: 50%;
    transition: transform 0.2s ease;
    padding: 0;
}

.main-navigation .search-item a svg,
.main-navigation .menu-bar-item.search-item a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

.main-navigation .search-item:hover a,
.main-navigation .menu-bar-item.search-item:hover a {
    transform: scale(1.05);
}


/* ==========================================================================
   3. POST CARDS VISUAL STYLING (Home, Blog, Archives, Search)
   ========================================================================== */
/* Post Card Box */
.generate-columns-container .inside-article,
.blog .inside-article,
.archive .inside-article,
.search .inside-article,
.search-results .inside-article {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

/* Card Hover Elevation */
.generate-columns-container .inside-article:hover,
.blog .inside-article:hover,
.archive .inside-article:hover,
.search-results .inside-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Fluid Responsive Card Image */
.post-image {
    margin: 0;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.inside-article:hover .post-image img {
    transform: scale(1.02);
}

/* Card Title Transitions */
.entry-title a {
    text-decoration: none;
    transition: color 0.2s ease;
}


/* ==========================================================================
   4. SEARCH RESULTS HEADER BOX
   ========================================================================== */
.search .page-header,
.search-results .page-header {
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}


/* ==========================================================================
   5. CLEAN SIDEBAR & WIDGETS STYLING
   ========================================================================== */
.sidebar .widget {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 20px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.sidebar .widget-title {
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

/* Sidebar Search Box */
.sidebar .wp-block-search__inside-wrapper,
.sidebar .search-form {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.sidebar input[type="search"],
.sidebar .wp-block-search__input,
.sidebar .search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    font-size: 14px;
}

.sidebar .search-submit,
.sidebar .wp-block-search__button,
.sidebar .search-form .search-submit {
    height: 42px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: opacity 0.2s ease;
}

.sidebar .search-submit:hover,
.sidebar .wp-block-search__button:hover,
.sidebar .search-form .search-submit:hover {
    opacity: 0.9;
}

/* Sidebar Lists & Recent Posts */
.sidebar ul,
.sidebar .wp-block-latest-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li,
.sidebar .wp-block-latest-posts li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar ul li:last-child,
.sidebar .wp-block-latest-posts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar img,
.sidebar .wp-block-latest-posts__featured-image img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    margin-bottom: 6px;
}

.sidebar ul li a,
.sidebar .wp-block-latest-posts__post-title {
    text-decoration: none;
    transition: color 0.2s ease;
}