/* آئڪن کي اڃا به وڌيڪ ننڍو ڪرڻ ۽ مڪمل سينٽر تي رکڻ */
.aimg-category-icon svg {
    width: 20px !important; /* آئڪن جي سائيز اڃا ننڍي ڪئي وئي آهي */
    height: 20px !important;
    max-width: 100% !important;
    color: #ffffff !important; 
    display: block;
    margin: 0 auto !important;
    filter: drop-shadow(0px 0px 3px rgba(255, 255, 255, 0.6)); 
}

/* چوڪنڊي باڪس کي اڃا به ننڍو ۽ پريميئم ڪرڻ */
.aimg-category-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important; 
    width: 40px;  /* چوڪنڊو باڪس هاڻي اڃا وڌيڪ ننڍو ڪيو ويو آهي */
    height: 40px; /* چوڪنڊو باڪس هاڻي اڃا وڌيڪ ننڍو ڪيو ويو آهي */
    border-radius: 10px; /* ننڍي سائيز جي حساب سان نرم ڪنڊا */
    margin: 0 auto 20px auto !important;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35) !important;
}

/* لکت کي مڪمل سينٽر ۾ رکڻ لاءِ */
.wp-block-column.category-card {
    text-align: center !important;
}
/* باڪسن کي واپس پهرين وانگر آڱر سان سرڪڻ وارو سلائيڊر بڻائڻ */
.wp-block-columns.category-cards {
    background-color: #000000 !important; /* مڪمل سچو ڪارو رنگ */
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 40px 20px !important; 
    gap: 20px !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0px !important;
}

/* باڪس جي سائيز ۽ ايپل وائيٽ بارڊر لائن */
.wp-block-column.category-card {
    flex: 0 0 82% !important; 
    max-width: 82% !important;
    scroll-snap-align: center !important;
    background-color: #000000 !important; 
    border: 1.5px solid #f5f5f7 !important; /* ايپل وائيٽ بارڊر لائن */
    border-radius: 24px !important; 
    padding: 70px 24px !important; /* مناسب هيٺ مٿي ڊيگهه */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* ڪمپيوٽر (Desktop) سڪرين لاءِ عام سيٽنگ */
@media (min-width: 768px) {
    .wp-block-columns.category-cards {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    .wp-block-column.category-card {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }
}

/* اکرن جو رنگ وائيٽ رکڻ لاءِ */
.wp-block-column.category-card h2.wp-block-heading,
.wp-block-column.category-card p {
    color: #ffffff !important;
}

/* آئڪن کي وچ تي رکڻ */
.aimg-category-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 100% !important;
    color: #ffffff !important; 
    margin: 0 auto !important;
}

.aimg-category-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(135deg, #6366f1, #a855f7) !important; 
    width: 42px;  
    height: 42px; 
    border-radius: 10px; 
    margin: 0 auto 24px auto !important;
}

/* سڪرول بار لڪائڻ لاءِ */
.wp-block-columns.category-cards::-webkit-scrollbar {
    display: none;
}
/* 1. بٽڻ جو بنيادي اسٽائل، پوزيشن ۽ اينيميشن جي تياري */
.wp-block-column.category-card .gb-text {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #215bc2 !important; 
    color: #ffffff !important;
    padding: 12px 24px !important; 
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    
    /* سڀني بٽڻن کي هڪ ئي لائين ۾ هيٺ ڪنڊ تي فٽ ڪرڻ */
    margin-top: auto !important; 
    margin-left: auto !important; 
    margin-right: 0 !important;

    /* اينيميشن کي نرم ۽ سست رفتاريءَ سان هلائڻ لاءِ */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
}

/* 2. تير جي نشان کي وڏو، ٿلهو ۽ فٽ ڪرڻ */
.wp-block-column.category-card .gb-text::after {
    content: "\00BB" !important; 
    font-size: 40px !important; 
    
    margin-left: 2px !important;
    line-height: 0.8 !important; 
    display: inline-block !important;
    transition: transform 0.25s ease !important; /* تير جي اينيميشن لاءِ */
}

/* 3. آڱر رکڻ/هوور (Hover) تي بٽڻ ۽ تير جي دلڪش لوڏ */
.wp-block-column.category-card .gb-text:hover,
.wp-block-column.category-card .gb-text:focus {
    background-color: #1a4a9b !important; /* رنگ ٿورو گهرو پريميئم ٿيندو */
    box-shadow: 0 6px 15px rgba(33, 91, 194, 0.4) !important; /* نيري چمڪ وارو پاڇو */
}

/* هوور تي تير جو نشان هلڪو اڳتي لوڏ کائيندو */
.wp-block-column.category-card .gb-text:hover::after {
    transform: translateX(4px) !important;
}

/* 4. ڪلڪ ڪرڻ (Click / Active) تي بٽڻ جو پريميئم طريقي سان اندر دٻجڻ */
.wp-block-column.category-card .gb-text:active {
    transform: scale(0.92) !important; /* بٽڻ پريميئم انداز ۾ اندر دٻبو */
    box-shadow: 0 2px 5px rgba(33, 91, 194, 0.2) !important;
}

/* باڪس جي لکت کي سيٽ رکڻ */
.wp-block-column.category-card p {
    margin-bottom: 25px !important;
    flex-grow: 1 !important;
}

