/* Enhanced Homepage Styles with Better Typography */
/* ================================================= */

/* Root Variables */
:root {
    --primary-color: #5a5ce6;
    --secondary-color: #4a4bd6;
    --accent-color: #667eea;
    --dark-bg: #232147;
    --light-bg: #f8f9ff;
    --white: #ffffff;
    --text-primary: #2d2e4a;
    --text-secondary: #707375;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

/* Navbar - Match Hero Color */
.navbar-slim {
    background: #232147;
    box-shadow: none;
    
}

.navbar-brand {
    color: var(--white) !important;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: var(--font-weight-medium);
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-modern {
    background: #232147;
    padding: 20px 0 65px;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.hero-bg-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element.element-1 {
    top: 10%;
    right: 15%;
    width: 120px;
    animation-delay: 0s;
}

.floating-element.element-2 {
    bottom: 20%;
    left: 10%;
    width: 150px;
    animation-delay: 1.5s;
}

.floating-element.element-3 {
    top: 50%;
    left: 20%;
    width: 100px;
    animation-delay: 3s;
}

.floating-element.element-4 {
    top: 30%;
    right: 25%;
    width: 130px;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Hero Typography */
.hero-title {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: var(--font-weight-regular);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Search Bar */
.search-wrapper {
    max-width: 650px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-box {
    background: var(--white);
    border-radius: 60px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    color: var(--text-secondary);
    margin-right: 15px;
    font-size: 18px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: var(--font-weight-semibold);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(90, 92, 230, 0.4);
}

/* Quick Tags */
.quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-tag-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-right: 5px;
}

.quick-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
    transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 50px 0;
    background: var(--light-bg);
}

/* Section Headers */
.section-header {
    margin-bottom: 11px;
}

.section-title {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    
}

.title-icon {
    font-size: 1.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Tool Cards Grid - More Compact Design */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.tool-card {
    background: var(--white);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(90, 92, 230, 0.3);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.tool-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: var(--light-bg);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 4px;
    line-height: 1.3;
}

.tool-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-name a:hover {
    color: var(--primary-color);
}

.tool-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.rating-value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.tool-action {
    margin-left: auto;
}

.btn-like {
    background: transparent;
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.btn-like:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #ef4444;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-category {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
}

.tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.tool-link:hover {
    gap: 8px;
}

/* Compact Tool Cards */
.compact-tool-card {
    background: var(--white);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.compact-tool-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-3px);
}

.compact-tool-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--light-bg);
    padding: 6px;
    flex-shrink: 0;
}

.compact-tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compact-tool-info {
    flex: 1;
}

.compact-tool-name {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
}

.compact-tool-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.compact-tool-name a:hover {
    color: var(--primary-color);
}

.compact-tool-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.compact-tool-category {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    display: inline-block;
}

/* Extensions Section */
.extensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.extension-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.extension-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #4285f4;
}

.extension-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    position: relative;
}

.extension-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background: #f9fafb;
    padding: 10px;
}

.badge-popular, .badge-new {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #4285f4;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.badge-new {
    background: #ef4444;
}

.extension-content {
    width: 100%;
}

.extension-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.extension-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 42px;
}

.extension-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.meta-item {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item i {
    color: #9ca3af;
}

.btn-install {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #34a853;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

.btn-install:hover {
    background: #2e7d32;
    transform: scale(1.05);
    color: white;
}

.btn-install i {
    font-size: 14px;
}

@media (max-width: 768px) {
    .extensions-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.sidebar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin: 0;
    color: var(--text-primary);
}

/* Featured Carousel - Fixed Height and Display */
.featured-carousel {
    background: linear-gradient(135deg, #f8f9ff 0%, #eff6ff 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: 20px;
}

.carousel-controls {
    display: none; /* Hide prev/next buttons */
}

.featured-carousel-container {
    position: relative;
    min-height: 260px; /* Fixed minimum height */
}

.featured-card-small {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.featured-card-small.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.featured-image {
    position: relative;
    width: 100%;
    height: 120px;
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f472b6, #9333ea);
    color: var(--white);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
}

.featured-title {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 6px;
    color: var(--text-primary);
}

.featured-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.featured-category {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-medium);
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.featured-rating i {
    color: #fbbf24;
    font-size: 0.75rem;
}

/* Carousel Indicators - Fixed Position */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}

.carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    width: 20px;
    border-radius: 3px;
    background: var(--primary-color);
}

/* Submit CTA - Smaller and Cleaner */
.submit-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    text-align: center;
    padding: 20px;
}

.cta-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
    color: var(--white);
}

.cta-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 6px;
    color: var(--text-primary);
}

.cta-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: 0.9rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 92, 230, 0.25);
    color: var(--white);
}

/* Sponsors Section - New */
.sponsors-section {
    padding: 20px;
}

.sponsors-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sponsor-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(135deg, #f9fafb 0%, #e8fce8 100%);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    border: 1px solid rgba(34, 197, 94, 0.1);
    position: relative;
}

.sponsor-card:hover {
    background: linear-gradient(135deg, #f3f4f6 0%, #dcfce7 100%);
    transform: translateX(3px);
    opacity: 0.95;
    text-decoration: none;
    color: inherit;
}

.sponsor-logo {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 10px;
    padding: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sponsor-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
}

.sponsor-content {
    flex: 1;
    min-width: 0;
}

.sponsor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.sponsor-name {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    line-height: 1.2;
}

.sponsor-stars {
    display: flex;
    gap: 2px;
}

.sponsor-stars i {
    color: #fbbf24;
    font-size: 10px;
}

.sponsor-external {
    color: var(--text-secondary);
    font-size: 11px;
    opacity: 0.6;
}

.sponsor-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Blog Section - Improved Design */
.blog-section {
    background: #f8f9ff;
    padding: 60px 0;
}

.blog-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.blog-link {
    text-decoration: none;
    display: block;
    padding: 20px;
}

.blog-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-date-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-day {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
}

.date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.blog-content {
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-meta i {
    font-size: 0.75rem;
    opacity: 0.7;
}

.blog-title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.blog-readmore {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-readmore {
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-button {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .stats-bar {
        padding: 30px 0;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .tool-header {
        flex-direction: column;
    }
    
    .tool-action {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .extensions-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-sticky {
        position: relative;
        top: 0;
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .quick-tags {
        justify-content: flex-start;
    }
    
    .quick-tag-label {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .blog-link {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .search-box {
        padding: 6px 6px 6px 18px;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
    
    .quick-tags {
        gap: 8px;
    }
    
    .quick-tag {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
}

/* Update existing @media (max-width: 576px) section - add these rules: */
@media (max-width: 576px) {
    .search-box {
        padding: 5px 5px 5px 14px;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .search-button {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
    
    .quick-tag {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .quick-tag-label {
        text-align: center;
    }
}