/* Styling for the new category links section added by Deo Show Categories List plugin */
.deo-category-links {
    margin-top: 30px; /* Space above the categories list */
    padding-top: 0;
    border: none; /* No border for the main container */
    font-size: 15px;
    line-height: 1.8;
    background-color: transparent; /* No separate background */
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Header for the category section */
.deo-category-links-heading {
    font-weight: bold;
    text-align: center;
    padding: 5px 15px; /* Reduced top & bottom padding to 5px */
    margin-bottom: 20px; /* Increased to add 10px gap between header and grid */
    max-width: 100%; /* Ensure it aligns with the grid container width */
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 2px double; /* Double line border */
    border-radius: 25px; /* Border radius 25px */
    /* Border color will be dynamically set by PHP based on header_font_color */
    border-color: var(--deo-header-font-color, #BD3730); /* Use a CSS variable or default */
}

.deo-category-links-heading .header-icon {
    display: none; /* Hide header arrow icon */
    font-size: 1.2em; /* Slightly larger icon */
    line-height: 1;
    /* Animations can be added here if desired for specific icons, e.g., pulse for news */
}
.deo-category-grid {
    margin-top: 10px; /* Adds 10px gap between header and category grid */
}
/* Grid container for category items */
.deo-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 15px; /* Space between grid items */
}

/* Individual category item box */
.deo-category-links p {
    margin-bottom: 0; /* Reset margin as grid gap handles spacing */
    padding: 5px 15px; /* Reduced vertical padding to 5px */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes button to the right */
    gap: 10px; /* Space between text and button */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow for items */
    /* Border color and background color are set by inline PHP styles */
}

/* Animated arrow at the beginning of each category item */
.deo-category-links p::before {
    content: '➤'; /* New arrow character */
    font-size: 1.2em; /* Bigger arrow */
    font-weight: bold;
    display: inline-block;
    margin-right: 0; /* Adjusted for flex layout */
    line-height: 1;
    flex-shrink: 0; /* Prevent arrow from shrinking */
    animation: pulseArrow 1.5s infinite alternate; /* New animation */
    /* Color is set by inline PHP styles */
}

@keyframes pulseArrow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Styling for the category text (the actual name of the category) */
.deo-category-links p .category-text {
    font-weight: bold; /* Make category name bold */
    flex-grow: 1; /* Allow text to take available space */
    line-height: 1.3;
    /* Font size and color are set by inline PHP styles */
}

/* Style for the "क्लिक करे" button */
.deo-category-links a.link-button {
    display: inline-block;
    color: #fff; /* White text */
    padding: 4px 15px; /* Reduced vertical padding for smaller height */
    border-radius: 20px; /* More rounded button */
    text-decoration: none;
    font-weight: normal;
    white-space: nowrap; /* Keep button text on one line */
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Add transform to transition */
    border: none; /* Ensure no default button border */
    cursor: pointer;
    box-shadow: none !important; /* Ensure no glowing effect */
    animation: none !important; /* Ensure no glowing effect */
    /* Initial background color is set by inline PHP styles */
}

.deo-category-links a.link-button:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Subtle hover shadow */
    transform: scale(1.05); /* Zoom effect on hover */
    /* Hover background color is set by inline PHP styles */
}

/* Footer text styling */
.deo-powered-by {
    text-align: right; /* Align to the right */
    font-size: 0.85em; /* Smaller font size */
    color: #777; /* Lighter color */
    margin-top: 20px; /* Space above the text */
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0; /* A subtle separator line */
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .deo-category-links {
        margin-top: 20px;
        padding: 0;
        font-size: 14px;
    }
    .deo-category-links-heading {
        font-size: 1.3em; /* Smaller header on mobile */
        padding: 5px 10px; /* Adjust padding for mobile header */
    }
    .deo-category-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .deo-category-links p {
        flex-direction: row; /* Keep elements in a row for better mobile display */
        align-items: center;
        gap: 10px;
        padding: 5px 10px; /* Adjust padding for mobile category items */
    }
    .deo-category-links p::before {
        font-size: 1em; /* Smaller arrow on mobile */
    }
    .deo-category-links p .category-text {
        font-size: 1.1em; /* Adjust category text size on mobile */
    }
    .deo-category-links a.link-button {
        padding: 4px 10px; /* Adjust button padding for mobile */
    }
}

@media (max-width: 480px) {
    .deo-category-links-heading {
        font-size: 1.1em;
        padding: 5px 8px; /* Further adjust padding for very small screens */
    }
    .deo-category-links a.link-button {
        padding: 3px 8px; /* Smaller button on very small screens */
        font-size: 0.9em;
    }
    .deo-category-links p .category-text {
        font-size: 1em;
    }
    .deo-powered-by {
        font-size: 0.75em;
    }
}
/* Hide header arrow icon completely */
.deo-category-links-heading .header-icon,
.deo-category-links-heading::before {
    display: none !important;
}