/*
 Theme Name:   Cotlas Blog Child
 Theme URI:    https://generatepress.com
 Description:  Child Theme for Cotlas Blog
 Author:       Vinay Shukla
 Author URI:   
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/
.ghardwar-social {
    display: inline-block;
}
.ghardwar-social .social-icons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}
.ghardwar-social .social-link {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.ghardwar-social .social-link a {
    display: block;
    padding: 0;
    margin: 0;
    background: 0 0;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: currentColor;
    transition: opacity .2s;
}
.ghardwar-social .social-link a:hover {
    opacity: .7;
}
.ghardwar-social .social-link svg {
    display: block;
    fill: currentColor;
    width: 24px;
    height: 24px;
    transition: fill .2s;
}
.ghardwar-social .social-link-facebook svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(4, 79, 154)
}
.ghardwar-social .social-link-twitter svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(0, 0, 0)
}
.ghardwar-social .social-link-instagram svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:#f56040;
}
.ghardwar-social .social-link-linkedin svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(5, 119, 232)
}
.ghardwar-social .social-link-youtube svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(213, 3, 3)
}
.social-footer {
    display: inline-block;
}
.social-footer .social-icons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    align-items: center;
}
.social-footer .social-link {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.social-footer .social-link a {
    display: block;
    padding: 0;
    margin: 0;
    background: 0 0;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: currentColor;
    transition: opacity .2s;
}
.social-footer .social-link a:hover {
    opacity: .7;
}
.social-footer .social-link svg {
    display: block;
    fill: currentColor;
    width: 24px;
    height: 24px;
    transition: fill .2s;
}
.social-footer .social-link-facebook svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(255, 255, 255)
}
.social-footer .social-link-twitter svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(255, 255, 255)
}
.social-footer .social-link-instagram svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:#ffffff;
}
.social-footer .social-link-linkedin svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(255, 255, 255)
}
.social-footer .social-link-youtube svg{
    margin: 0;
    padding: 0;
    line-height: 1;
    color:rgb(255, 255, 255)
}
.cotlas-search .wp-block-search__inside-wrapper {
    border: 1px solid #ecebeb !important;
    padding: 0 !important;
    border-radius: 50px !important;
    max-width: 100%;
    display: flex;
    align-items: center;
}
.cotlas-search input[type=search] {
    background-color: #ffffff00;
    border-color: #ffffff00;
    color: #292929;
    background-color: #ffffff00;
    border-color: #ffffff00;
    border: 0;
    border-radius: 0;
    padding: 5px 15px;
    max-width: 100%;
    flex: 1;
}
.cotlas-search .wp-block-search__button.has-icon {
    background-color: #55555e00;
    line-height: 0;
    color: #292929;
    background-color: #55555e00;
    padding: 5px;
    border: none;
    cursor: pointer;
}
.cotlas-header .menu-toggle {
    padding: 0px 5px;
    line-height: 40px;
    display: flex
}
.cotlas-header .gp-icon svg {
    height: 1.8em;
    width: 1.8em;
    top: 0;
}
.footer-left .site-copy {
    text-decoration:none;
    color:var(--base-3);
    font-size:15px;
    font-weight:400;
}
.footer-right .site-credit {
    text-decoration:none;
    color:var(--base-3);
    font-size:15px;
    font-weight:400;
}
.footer-left .site-copy a{
    text-decoration:none;
    color:#9bc6fa;
}
.footer-right .site-credit a {
    text-decoration:none;
    color:#9bc6fa;
}
@media (max-width: 1024px) {
    .gb-element-a60c1ccf {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 10px;
    }
}
.csf-form .csf-heading {
    margin-bottom: 5px;
}
.csf-form .csf-text {
    margin-bottom: 10px;
}


/* ── Query block: 3 posts on desktop, 4 posts on tablet ─────────────────────
   How to use:
   1. In the block editor, change your Query block's "Posts Per Page" to 4.
   2. Select the Looper block inside that Query → Advanced panel →
      add "home-posts-looper" in "Additional CSS class(es)".
   The 4th post is hidden on desktop (3-col grid stays clean) and shown on
   tablet where the grid switches to 2 columns (2×2 = 4 posts).
   ─────────────────────────────────────────────────────────────────────────── */

/* Desktop: hide the 4th loop item so only 3 show in a 3-col grid */
@media (min-width: 1025px) {
    .home-posts-looper > .gb-loop-item:nth-child(4) {
        display: none !important;
    }
}

/* Tablet: show all 4, force 2-column grid so they sit in a clean 2×2 */
@media (max-width: 1024px) {
    .home-posts-looper {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .home-posts-looper > .gb-loop-item:nth-child(4) {
        display: block !important;
    }
}

/* Mobile: single column */
@media (max-width: 767px) {
    .home-posts-looper {
        grid-template-columns: 1fr !important;
    }
}
.gd-mobile-menu #site-navigation  {
        display: none !important;
    }
@media (max-width: 1024px) {
    .gd-mobile-menu  {
        padding:0px!important;
    }
    .gd-mobile-menu #site-navigation  {
        display: inline-flex !important;
    }
    .gd-mobile-menu #site-navigation .inside-navigation {
        padding:0px!important;
    }
    .gd-mobile-menu #site-navigation .mobile-menu {
        display: none!important;
    }
    .gd-mobile-menu #site-navigation svg {
        height: 25px;
        width: 25px;
    }
    .gd-mobile-menu #site-navigation .menu-toggle {
        padding: 0px;
        padding-top: 7px;
        line-height: 0px;
        display: flex;
    }
}
.gd-seprater {
    background-color: #e4e4e7!important;
    border: 0;
    height: 1px;
    margin-bottom: 2px;
    margin-top: 2px;
}
.gd-featured {
    background:#00000000!important;
    color:#ffffff;
}
.gd-featured svg {
    color:#ffffff;
}
.gd-featured span {
    color:#ffffff!important;
}
.gd-reading-list {
    background:#00000000!important;
    color:#ffffff;
}
.gd-reading-list svg {
    color:#ffffff;
}
/* Default: 4 columns for desktop */
.gd-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr))!important;
  gap: 24px;
}

/* Tablet (1024px and below): 3 columns */
@media (max-width: 1024px) {
  .gd-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))!important;
  }
}

/* Small Tablet (between 800px and 1024px): 2 columns */
@media (min-width: 768px) and (max-width: 1023px) {
  .gd-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))!important;
  }
}

/* Mobile (800px and below): 1 column */
@media (max-width: 768px) {
  .gd-post-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr))!important;
  }
}
.single-post-meta .gb-shape{
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 99px;
    background: var(--wp--preset--color--shadcn-accent, #f1f5f9);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    color: hsl(215, 14%, 34%);
    flex-shrink: 0;
}
.post-share-container .single-post-share {
    display:inline-flex;
    flex-direction: column;
    align-content: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}
.post-share-container .single-post-share a{
    display:inline-flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size:14px;
    font-weight:600;
    color:#000;
    text-decoration: none;
    line-height: 20px;
    width:100%;
    padding-top: 2px;
    padding-bottom: 2px;
}
.post-share-container .single-post-share a svg {
    height: 20px;
    width: 20px;
}
.share-icons .bottom-share {
    background-color: var(--base-3);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
    align-items: center;
    gap: 15px;
}
.share-icons .bottom-share a {
    display: inline-flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    line-height: 20px;
    /* width: 100%; */
    padding-top: 2px;
    padding-bottom: 2px;
}
.share-icons .bottom-share a svg {
    height: 20px;
    width: 20px;
}
.gp-audio-modern svg{
    fill: #d40504 !important;
}
.gp-audio-modern span {
   color: #d40504 !important
}
.gp-audio-dark svg {
    fill:#fff!important;
}
.gp-audio-dark span {
   color: #fff !important;
}
.gp-audio-dark audio {
   background: #1a202c00!important;
}
.post-tags {
    display:flex;
    margin-bottom: 0;
    flex-direction: row;
    align-content: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}
.post-tags a {
    background-color: #000000;
    color: #ffffff!important;
    font-family: var(--gp-font--nunito-sans);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0;
    margin-left: 0px;
    text-decoration: none;
    border-radius: 50px;
    padding: 4px 10px;
}
.cotlas-comments .ctc-comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cotlas-comments .ctc-comment__avatar, .cotlas-comments .ctc-form__avatar {
    background: #fafcff !important;
    padding: 4px;
    border: 1px solid #cecece;
}
.cotlas-comments .ctc-comment__avatar img {
    position: absolute;
    padding:2px;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.cotlas-comments .ctc-submit {
    background: #b70605;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.01em;
}
.cotlas-comments .ctc-comment__initial {
    color: #151313;
}
.cotlas-comments .ctc-comment__text {
    font-size: 1rem;
    color: #333;
    line-height: 1.65;
}
@media (max-width: 767px) {
    .bottom-share .social-platform-name {
        display:none!important;
    }
    .share-icons .title-seprater {
        display:none!important;
    }
}
