/*
 Theme Name: CapCut Template Theme
 Author: Your Name
 Description: A WordPress theme for CapCut template previews and links.
 Version: 2.1
 Text Domain: capcut-theme
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Oxygen, Open Sans, sans-serif;
    background-color: #181b20;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 256px;
    right: 0;
    background-color: #181b20;
    padding: 15px 20px;
    z-index: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgb(84 90 106);
    height: 60px;
    transition: transform 0.3s ease;
}
header.hidden{
    transform: translateY(-100%);
}

.hamburger-menu {
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: none;
}

/* Search Header Styling */
.OgHead_srch {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 0px;
    width: 100%;
    gap: 10px;
    user-select: none;
    position: relative;
}

.OgHead_srch input {
    background: #353e51;
    color: #fff !important;
    padding: 10px 40px 10px 10px;
    border-radius: 15px;
    outline: none;
    border: none;
    text-align: left;
    font-size: 15px;
    line-height: 15px !important;
    min-height: 24px;
    width: 100%;
}

.OgHead_srch svg.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
}

.srcH_clse {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.srcH_clse svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
}

/* Sidebar Container */
.sidebarOg {
    position: fixed;
    top: 0;
    left: 0;
    width:100%;
    height: 100%;
    z-index: 400;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 179, 207, 0.3) transparent;
}
.menu_Sid {
    width:256px;
    height: 100%;
    background: var(--og-menu);
    color: var(--og-color);
    padding: 0 10px 10px 10px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.08);
    background: #181b20;
    border-right: 1px solid rgb(84 90 106);
    border-radius: 0 20px 20px 0;
}
.close_Sid {
    width: calc(100% - 256px);
    height: 100%;
    background: transparent;
}
@media screen and (min-width:600px) {
    .sidebarOg{
        width:256px
    }
    .close_Sid{
        display: none !important;
    }
}
.menu_Top {
    position: relative;
    border: 0px solid #fff;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 10px;
    border-bottom: 1px solid #3d475d;
    margin: 0 0 0px 0;
}
.menu_Top div {
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px;
}
.menu_Top svg {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0px solid #fff;
}
.close-btnSidebar {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    color:#fff;
    cursor: pointer;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
}
.sidebarOg .title {
    display: block;
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
    margin:0px 0;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease-in;
}

.sidebarOg .title:hover {
    color: #bf94ff;
    text-decoration: underline;
}

.sliMenuOg {
    padding: 10px;
}


.sidebar-menu {
    list-style: none;
    padding-left: 12px;
    position: relative;
}

.sidebar-menu > li {
    position: relative;
    margin-bottom: 10px;
}

.sidebar-menu > li.has-submenu {
    margin-bottom: 14px;
}

.sidebar-menu::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgb(84 90 106);
}

.sidebar-menu > li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    width: 8px;
    height: 1px;
    background: rgb(84 90 106);
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 8px 16px 8px 28px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    background-position: 18px center;
    background-size: calc(100% - 18px) 100%;
    background-repeat: no-repeat;
}

.sidebar-menu a:hover,
.sidebar-menu a:focus {
    background: rgba(137, 43, 226, 0.15);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-menu a svg:not(.dropdown) {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    stroke: #ffffff;
}

.dropdown {
    margin-left: auto;
    width: 16px;
    height: 16px;
    fill: rgb(168 179 207);
    transition: transform 0.3s ease;
}

.dropdown.active {
    transform: rotate(180deg);
}

.sidebar-menu ul {
    list-style: none;
    padding-left: 28px;
    margin: 6px 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    position: relative;
}

.sidebar-menu ul.open {
    max-height: 1000px;
}

.sidebar-menu ul::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    height: 100%;
    width: 1px;
    background: rgb(84 90 106);
}

.sidebar-menu ul li {
    position: relative;
    margin-bottom: 8px;
}

.sidebar-menu ul li::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    width: 6px;
    height: 1px;
    background: rgb(84 90 106);
}

.sidebar-menu ul li a {
    padding: 8px 16px 8px 26px;
    color: rgb(168 179 207);
    font-weight: 400;
}


/* Existing styles remain unchanged up to .template-uses */

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.sidebar-menu .menu-icon {
    width: 18px;
    height: 18px;
}

/* Custom icon classes */
.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-menu .menu-home a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 15L12 18" stroke="%23fff" stroke-width="1.5" stroke-linecap="round"></path><path d="M22 12.2039V13.725C22 17.6258 22 19.5763 20.8284 20.7881C19.6569 22 17.7712 22 14 22H10C6.22876 22 4.34315 22 3.17157 20.7881C2 19.5763 2 17.6258 2 13.725V12.2039C2 9.91549 2 8.77128 2.5192 7.82274C3.0384 6.87421 3.98695 6.28551 5.88403 5.10813L7.88403 3.86687C9.88939 2.62229 10.8921 2 12 2C13.1079 2 14.1106 2.62229 16.116 3.86687L18.116 5.10812C20.0131 6.28551 20.9616 6.87421 21.4808 7.82274" stroke="%23fff" stroke-width="1.5" stroke-linecap="round"></path></svg>');
}

.sidebar-menu .menu-categories a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M3 8H21M3 12H21M3 16H21" stroke="%23fff" stroke-width="1.5" stroke-linecap="round"></path></svg>');
}

.sidebar-menu .menu-creators a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M12 14C9.33 14 4 15.34 4 18V20H20V18C20 15.34 14.67 14 12 14Z" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
}

.sidebar-menu .menu-templates a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M3 3H9V9H3V3ZM15 3H21V9H15V3ZM15 15H21V21H15V15ZM3 15H9V21H3V15Z" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
}

.sidebar-menu .menu-settings a::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none"><path d="M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19.4 15C19.8 15.9 20 16.9 20 18C20 19.1 19.8 20.1 19.4 21H4.6C4.2 20.1 4 19.1 4 18C4 16.9 4.2 15.9 4.6 15" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M19.4 9C19.8 8.1 20 7.1 20 6C20 4.9 19.8 3.9 19.4 3H4.6C4.2 3.9 4 4.9 4 6C4 7.1 4.2 8.1 4.6 9" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path></svg>');
}

/* Hide default icon if custom class is applied */
.sidebar-menu .menu-home .default-icon,
.sidebar-menu .menu-categories .default-icon,
.sidebar-menu .menu-creators .default-icon,
.sidebar-menu .menu-templates .default-icon,
.sidebar-menu .menu-settings .default-icon {
    display: none;
}




.sidebar-menu ul.depth-1 { background: rgba(24, 27, 32, 0.95); }
.sidebar-menu ul.depth-2 { background: rgba(24, 27, 32, 0.90); }
.sidebar-menu ul.depth-3 { background: rgba(24, 27, 32, 0.85); }
.sidebar-menu ul.depth-4 { background: rgba(24, 27, 32, 0.80); }





.sidebarOg::-webkit-scrollbar {
    width: 2px;
}

.sidebarOg::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px 0;
}

.sidebarOg::-webkit-scrollbar-thumb {
    background: rgba(168, 179, 207, 0.3);
    border-radius: 1px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebarOg::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 179, 207, 0.5);
}

.sidebarOg::-webkit-scrollbar-thumb:active {
    background: rgba(137, 43, 226, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu */
.Mobmn {
    position: fixed;
    z-index: 9999;
    bottom: 0px;
    left: 0px;
    right: 0px;
    border-radius: 0;
    background: #181b20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px 2px 15px;
    border-top: 1px solid rgb(84 90 106);
    height: 50px;
}
.Mobmn_items{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.Mobmn_c {
    margin-bottom: -5px;
    cursor: pointer;
}

.Mobmn_c, .Mobmn_ic {
    display: grid;
    place-items: center;
    border: 0px solid #fff;
    height: auto;
    color: #fff;
    margin: 0;
}

.Mobmn_ic {
    margin-bottom: 3px;
}

.Mobmn_ic, .Mobmn_ic svg {
    width: 22px;
    height: 22px;
}

.Mobmn_txt {
    font-size: 13px;
    font-weight: 500;
}

/* Cards Container */
.cards-container {
    position: fixed;
    top: 60px;
    left: 256px;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 1.5rem;
    padding: 1.5rem;
    padding-bottom: 3rem;
    overflow-y: auto;
    background: #181b20;
    border-left: 1px solid rgb(84 90 106);
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(24, 27, 32, 0.95);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
}

.image_container {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #353e51;
    border-radius: 0.5rem;
    overflow: hidden;
}

.image_container .image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #ffffff;
    font-weight: 500;
    line-height: 1.2;
}

.description {
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    color: rgb(168 179 207);
    line-height: 1.4;
    margin-top: auto;
}

/* Responsive Styles */
@media screen and (max-width: 599px) {
    header {
        display: none;
    }

    .hamburger-menu {
        display: none;
    }

    .sidebarOg {
        transform: translateX(-100%);
        z-index: 10000;
    }

    .sidebarOg.open {
        transform: translateX(0);
    }

    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    header.search-active {
        display: flex;
        left: 0;
        z-index: 10001;
        /*transform:scale(0);*/
    }

    .srcH_clse#srch_bck {
        display: flex;
    }

    /*.srcH_clse.srcH_go {
        display: ;
    }*/

    .cards-container {
        position: static;
        top: 0;
        left: 0;
        bottom: 50px;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
        padding-bottom: 3rem;
    }

    .card {
        padding: 0.75rem;
        gap: 0.5rem;
    }
}

@media screen and (min-width: 600px) {
    .Mobmn {
        display: none !important;
    }

    .OgHead_srch {
        display: flex;
        margin-left: auto;
    }

    .srcH_clse {
        display: none;
    }

    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media only screen and (min-width: 600px) and (max-width: 1024px) {
    .cards-container {
      display: grid; /* Ensure it's a grid if not applied elsewhere */
      grid-template-columns: repeat(3, 1fr) !important;  
    }
    .container { 
        width: calc(100% - 266px) !important;
        margin-left: 266px !important;
    }
    
    .main-container {
        margin-left: 266px !important;
        width: calc(100% - 266px) !important;
    }
    
  }
  

@media only screen and (min-width: 1025px) {
    .cards-container {
        grid-template-columns: repeat(5, 1fr);
    }
    .gridGod,.post-grid{
      /*   margin-left: 250px;  */
    }
    #search-results,.gridGod{width: none !important  ;
        margin-left:none !important;}

        .container { 
            width: calc(100% - 250px) !important;
            margin-left: 250px !important;
        }
        
} 


.main-container {
max-width: none !important;
 
}


.category-text {
    margin-left: 11px;
    margin-top: 5px;
}













/*   Grid god  */
.gridGod {
    --bdr-rds: 13px;
}

.gridGod {
    /*display: flex;
    justify-content: flex-start;
    align-items: start;
    flex-wrap: wrap;*/
    display: grid;
    grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    padding: 5px;
    user-select: none;
    margin-bottom:20px;
}

.gridGod .gridc {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc(50% - 0px);
    justify-content: space-between;
    align-items: start;
    overflow: hidden;
    position: relative;
    padding: 5px;
    margin-bottom: 16px;
    padding-bottom: 26px;
}

.gridc .gc_img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2/3;
    position: relative;
    border: 1px solid #474747;
    border-radius: var(--bdr-rds);
    overflow:hidden;
}

.gridc .gc_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--bdr-rds);
}

.gridc .gc_cat {
    position: absolute;
    bottom:0;
    width:100%;
    border-radius:0;
    padding:4px;
    z-index: 2;
    
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin: 0px 0px 0px 0px;
}

.gc_cat a {
    outline: none;
    color: #fff !important;
    font-weight: 400;
    font-size: 11px;
    text-decoration: none !important;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 7px;
    border-radius:7px;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.gc_cat a svg{
    margin-right: 5px;
    width:15px;
    height:15px;
}
.gridc .gc_tit {
    position: relaive;
    padding: 0 6.5px;
    margin: 2px 0 0px 0;
    
}

.gc_tit h3 {
    font-size: 14px;
    margin: 0;
    padding: 0;
    font-weight: 800;
    line-height:17px;
    max-height:17px;
    color: #fff;
    white-space:wrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    


.gc_tit h3 a{
text-decoration:none !important;
color:#fff !important;
font-weight: 400;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Oxygen, Open Sans, sans-serif;
}

/*
@media only screen and (min-width: 509px) {
    .gridGod .gridc {
        flex:0 0 calc(50% - 5px);
    }
}


@media only screen and (min-width: 768px) {
    .gridGod,.category-text{
        width: calc(100% - 260px);
        margin-left: 260px;
    }
    .gridGod .gridc {
        flex:0 0 calc(33% - 10px);
    }
}

@media only screen and (min-width: 989px) {
    .gridGod .gridc {
        flex:0 0 calc(33% - 10px);
    }
}

@media only screen and (min-width: 1229px) {
    .gridGod .gridc {
        flex:0 0 calc(20% - 10px);
    }
}

@media only screen and (min-width: 1469px) {
    .gridGod .gridc {
        flex:0 0 calc(20% - 10px);
    }
}

@media only screen and (min-width: 1709px) {
    .gridGod .gridc {
        flex:0 0 calc(20% - 10px);
    }
}
*/

/* Android (up to 767px) */
@media (max-width: 599px) {
    .gridGod {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }
}

/* Tablets (768px - 1023px) */
@media only screen and (min-width: 599px) {
    .gridGod,.category-text{
        
        margin-right:0px;
    }
}
@media (min-width: 599px) and (max-width: 1023px) {
    .gridGod {
        grid-template-columns: repeat(3, 1fr); 
        gap: 0.75rem;
    }
}

/* Laptops (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .gridGod {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.75rem;
    }
}

/* Desktops and 4K (1440px and up) */
@media (min-width: 1440px) {
    .gridGod {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
        max-width: none;
    }
}




/* Add to the end of style.css */

.load-more-btn {
    display: block;
    margin:1rem auto 60px auto;
    padding: 0.75rem 1.5rem;
    background: #e61355;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}
.load-more-btn.noMre{
    background:none;
    font-weight:300;
}
.load-more-btn.noMre:hover{
    background:none;
}
.load-more-btn:hover {
    background: #c5104a;
}

.load-more-btn.noMre:disabled {
    background: none !important;
    cursor: not-allowed;
}
.load-more-btn:disabled {
    background: none;
    cursor: not-allowed;
}





/* Add to the end of style.css */

/* Skeleton styles */
.skeleton {
    background: #7b7b7b17;
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    background: #474747;
    animation: pulse 1.5s infinite;
}

.skeleton-cat {
    padding: 0.5rem 1rem;
    height: 1rem;
    background: #252f30;
    width: 60px;
    animation: pulse 1.5s infinite;
}

.skeleton-tit {
    padding: 0 1rem 1rem;
    height: 1.5rem;
    background: #252f30;
    width: 80%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Ensure existing styles work with lazy loading */
.gc_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.gc_img img[loading="lazy"]:not([src]) {
    opacity: 0;
}




.container {  }
.content-area { flex: 3; }
.sidebarOg { flex: 1;  }


.content-area{
    padding-top:0rem;
}
@media screen and (min-width:600px) {
    .content-area{
        padding-top:4rem;
    }
}