/* Custom Fixes for Anvogue Theme */

/* Search Icon Fix */
.search-icon,
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fix placeholder images */
.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb, #d1d5db);
}

/* Better image placeholder styling */
.aspect-video {
    aspect-ratio: 16 / 9;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fix spacing issues */
.blog-item {
    margin-bottom: 0;
}

.blog-main {
    display: block;
    width: 100%;
}

/* Hero section spacing */
.hero-section {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

/* Fix header positioning */
#header {
    position: relative;
}

.header-menu.fixed {
    position: fixed;
}

/* Ensure proper z-index stacking */
.top-nav {
    z-index: 100;
}

.header-menu {
    z-index: 99;
}

/* Search form styling */
.search-form input[type="search"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Smooth transitions */
img {
    transition: transform 0.3s ease;
}

/* Fix image aspect ratios */
.blog-thumb img,
.blog-img {
    object-fit: cover;
    object-position: center;
}

/* Better badge styling */
.bg-red-600 {
    background-color: #dc2626;
}

/* Screen reader text */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.screen-reader-text.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
}

.screen-reader-text.skip-link:focus {
    top: 0;
    width: auto;
    height: auto;
    clip: auto;
}

/* Fix container spacing */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

