/* Custom Styles */
.gradient-text {
    background: linear-gradient(90deg, #0066CC 0%, #00CC66 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 500px;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 10px;
    transition: background 0.3s;
}
.slider-nav:hover {
    background: rgba(0,0,0,0.6);
}

.slider-nav.prev { left: 15px; }
.slider-nav.next { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* Post Content Styles */
.post-content {
    line-height: 1.7;
    font-size: 1.125rem; /* 18px */
}
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}
.post-content h1 { font-size: 2.25rem; }
.post-content h2 { font-size: 1.875rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }
.post-content p {
    margin-bottom: 1em;
}
.post-content a {
    color: #3b82f6; /* blue-500 */
    text-decoration: underline;
}
.post-content ul,
.post-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}
.post-content ul { list-style-type: disc; }
.post-content ol { list-style-type: decimal; }
.post-content blockquote {
    border-left: 4px solid #d1d5db; /* gray-300 */
    padding-left: 1em;
    margin-left: 0;
    font-style: italic;
    color: #4b5563; /* gray-600 */
}

/* Logo Slider */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-slider::before,
.logo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to right, #f3f4f6, rgba(243, 244, 246, 0));
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, #f3f4f6, rgba(243, 244, 246, 0));
}

.logo-slider-track {
    display: flex;
    width: calc(var(--slide-width) * var(--slide-count) * 2);
    animation: scroll 40s linear infinite;
}

.logo-slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(var(--slide-width) * var(--slide-count) * -1));
    }
}

.logo-slide {
    width: var(--slide-width);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}

.logo-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Home Ads Grid */
.home-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.home-ad-item {
    display: block;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.home-ad-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Makes it square */
    object-fit: cover;
}