CEO Podcast Sidebar Ad
/* Reset only inside the ad */
.sidebar-ad * {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Montserrat', sans-serif;
}
.sidebar-ad {
width: 300px;
min-height: 250px;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
border-radius: 12px;
overflow: hidden;
position: relative;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid rgba(255, 255, 255, 0.08);
margin: 0 auto; /* keeps centered in sidebar */
}
.sidebar-ad:hover {
transform: translateY(-5px);
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
.sidebar-ad .ad-content {
padding: 20px;
height: 100%;
display: flex;
flex-direction: column;
position: relative;
z-index: 2;
}
.sidebar-ad .ad-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}
.sidebar-ad .logo {
color: white;
font-size: 14px;
font-weight: 700;
letter-spacing: 0.5px;
}
.sidebar-ad .logo span {
color: #E31E24;
display: block;
font-size: 16px;
margin-top: 2px;
font-weight: 600;
}
.sidebar-ad .badge {
background: rgba(227, 30, 36, 0.2);
color: #ff6b6b;
border-radius: 12px;
padding: 5px 12px;
font-size: 10px;
font-weight: 600;
backdrop-filter: blur(5px);
border: 1px solid rgba(227, 30, 36, 0.3);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sidebar-ad .main-headline {
color: white;
font-size: 20px;
font-weight: 700;
line-height: 1.2;
margin-bottom: 12px;
}
.sidebar-ad .headline-highlight {
color: #E31E24;
background: linear-gradient(90deg, #E31E24, #FF5252);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
position: relative;
}
.sidebar-ad .headline-highlight::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
width: 100%;
height: 2px;
background: linear-gradient(90deg, #E31E24, #FF5252);
border-radius: 2px;
}
.sidebar-ad .subheadline {
color: rgba(255, 255, 255, 0.85);
font-size: 12px;
line-height: 1.5;
margin-bottom: 18px;
}
.sidebar-ad .stats-row {
display: flex;
justify-content: space-between;
margin-bottom: 18px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
padding: 12px 10px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-ad .stat-item {
text-align: center;
flex: 1;
padding: 0 5px;
}
.sidebar-ad .stat-value {
color: #E31E24;
font-size: 18px;
font-weight: 700;
margin-bottom: 4px;
}
.sidebar-ad .stat-label {
color: rgba(255, 255, 255, 0.7);
font-size: 10px;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sidebar-ad .divider {
height: 1px;
background: linear-gradient(90deg, transparent, rgba(227, 30, 36, 0.4), transparent);
margin: 15px 0;
}
.sidebar-ad .platforms {
display: flex;
justify-content: center;
gap: 10px;
margin: 15px 0;
}
.sidebar-ad .platform-icon {
width: 28px;
height: 28px;
background: rgba(255, 255, 255, 0.1);
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
color: white;
transition: all 0.2s ease;
}
.sidebar-ad .platform-icon:hover {
background: rgba(227, 30, 36, 0.3);
transform: translateY(-2px);
}
.sidebar-ad .cta-section {
display: flex;
gap: 12px;
margin-top: 10px;
}
.sidebar-ad .cta-button {
background: linear-gradient(90deg, #E31E24, #FF5252);
color: white;
border: none;
border-radius: 8px;
padding: 12px 18px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
flex: 1;
text-align: center;
box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
position: relative;
overflow: hidden;
}
.sidebar-ad .cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(227, 30, 36, 0.4);
}
.sidebar-ad .cta-button::after {
content: "→";
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
font-size: 14px;
transition: transform 0.3s ease;
}
.sidebar-ad .cta-button:hover::after {
transform: translateY(-50%) translateX(3px);
}
.sidebar-ad .secondary-button {
background: transparent;
color: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
padding: 12px 15px;
font-size: 12px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 500;
}
.sidebar-ad .secondary-button:hover {
background: rgba(255, 255, 255, 0.05);
color: white;
border-color: rgba(227, 30, 36, 0.4);
}
.sidebar-ad .background-design {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
overflow: hidden;
}
.sidebar-ad .red-accent {
position: absolute;
width: 140px;
height: 140px;
background: linear-gradient(135deg, #E31E24 0%, #B71C1C 100%);
border-radius: 0 0 0 100%;
top: -70px;
right: -70px;
opacity: 0.8;
}
@keyframes pulse {
0% { transform: scale(1); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); }
50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(227, 30, 36, 0.4); }
100% { transform: scale(1); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); }
}
.sidebar-ad .micro-dots { position: absolute; width: 100%; height: 100%; }
.sidebar-ad .dot {
position: absolute;
width: 4px;
height: 4px;
background: rgba(227, 30, 36, 0.4);
border-radius: 50%;
}
/* Animations */
.sidebar-ad .ad-content > * {
opacity: 0;
animation: fadeInUp 0.6s ease forwards;
}
.sidebar-ad .ad-header { animation-delay: 0.1s; }
.sidebar-ad .main-headline { animation-delay: 0.2s; }
.sidebar-ad .subheadline { animation-delay: 0.3s; }
.sidebar-ad .stats-row { animation-delay: 0.4s; }
.sidebar-ad .divider { animation-delay: 0.5s; }
.sidebar-ad .platforms { animation-delay: 0.6s; }
.sidebar-ad .cta-section { animation-delay: 0.7s; }
@keyframes fadeInUp {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.sidebar-ad .glow-effect {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: radial-gradient(circle at 30% 70%, rgba(227, 30, 36, 0.1) 0%, transparent 70%);
z-index: 1;
pointer-events: none;
}
/* Responsive fix */
@media (max-width: 350px) {
.sidebar-ad {
width: 100%;
max-width: 300px;
}
.sidebar-ad .ad-content { padding: 15px; }
.sidebar-ad .main-headline { font-size: 18px; }
.sidebar-ad .cta-button,
.sidebar-ad .secondary-button { padding: 10px 12px; font-size: 12px; }
}
// Create micro dots for background
const dotsContainer = document.getElementById('dotsContainer');
for (let i = 0; i { this.style.transform = ''; }, 200);
});
// Media Kit button - Updated with your link
document.querySelector('.secondary-button').addEventListener('click', function(e) {
e.stopPropagation();
window.open('https://emagazine.theceo.in/magazine/the-ceo-magazine-media-kit/#Page1', '_blank');
this.style.transform = 'scale(0.95)';
setTimeout(() => { this.style.transform = ''; }, 200);
});
document.querySelector('.sidebar-ad').addEventListener('click', function(e) {
if (!e.target.classList.contains('cta-button') &&
!e.target.classList.contains('secondary-button')) {
window.open('https://sheet.theceo.in/podcast/', '_blank');
}
});
// Glow effect on mousemove
document.querySelector('.sidebar-ad').addEventListener('mousemove', function(e) {
const glow = document.querySelector('.glow-effect');
const rect = this.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
glow.style.background = `radial-gradient(circle at ${x}px ${y}px, rgba(227, 30, 36, 0.15) 0%, transparent 70%)`;
});
/* ===== SIDEBAR CEO BANNER STYLES ===== */
.ceo-sidebar-banner {
width: 100%;
max-width: 300px;
background: linear-gradient(135deg, #8B0000 0%, #FF1C1C 100%);
color: #ffffff;
border-radius: 10px;
font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
box-shadow: 0 3px 15px rgba(0,0,0,0.2);
position: relative;
padding: 20px;
margin: 15px auto;
overflow: hidden;
isolation: isolate;
}
.ceo-sidebar-banner::before {
content: "";
position: absolute;
inset: 0;
background:
radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
z-index: 1;
pointer-events: none;
}
.ceo-sidebar-content {
position: relative;
z-index: 2;
text-align: center;
}
.ceo-sidebar-title {
font-size: 1.4rem;
font-weight: 700;
margin: 0 0 12px 0;
line-height: 1.2;
color: #ffffff;
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ceo-sidebar-subtitle {
font-size: 0.95rem;
font-weight: 500;
line-height: 1.4;
color: rgba(255,255,255,0.9);
margin-bottom: 15px;
min-height: 40px;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.5s ease;
}
.ceo-sidebar-btn {
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
color: #8B0000;
font-weight: 700;
padding: 12px 24px;
font-size: 0.95rem;
text-decoration: none;
border-radius: 25px;
box-shadow: 0 3px 10px rgba(255, 255, 255, 0.3);
transition: all 0.3s ease;
text-align: center;
border: 2px solid transparent;
display: block;
width: 100%;
margin: 15px 0;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.ceo-sidebar-btn:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}
.ceo-sidebar-covers {
width: 100%;
height: 120px;
position: relative;
overflow: hidden;
border-radius: 8px;
margin-top: 10px;
}
.ceo-sidebar-track {
display: flex;
height: 100%;
position: absolute;
left: 0;
top: 0;
animation: sidebarSlide 30s linear infinite;
}
.ceo-sidebar-cover-group {
display: flex;
height: 100%;
gap: 8px;
padding: 0 8px;
flex-shrink: 0;
align-items: center;
}
.ceo-sidebar-cover-item {
height: 100%;
flex: 1;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.08);
border-radius: 6px;
padding: 5px;
backdrop-filter: blur(5px);
}
.ceo-sidebar-cover-item img {
height: 100%;
width: auto;
max-width: 100%;
object-fit: contain;
border-radius: 3px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.ceo-sidebar-cover-item:hover img {
transform: scale(1.08);
}
.ceo-sidebar-floating {
position: absolute;
background: rgba(255,255,255,0.08);
border-radius: 50%;
animation: sidebarFloat 8s ease-in-out infinite;
z-index: 1;
}
@keyframes sidebarSlide {
0% { transform: translateX(0); }
100% { transform: translateX(calc(-100% / 2)); }
}
@keyframes sidebarFloat {
0%, 100% { transform: translateY(0px) translateX(0px); }
33% { transform: translateY(-10px) translateX(5px); }
66% { transform: translateY(5px) translateX(-5px); }
}
.ceo-sidebar-covers:hover .ceo-sidebar-track {
animation-play-state: paused;
}
.ceo-sidebar-subtitle.active {
animation: sidebarTextFade 0.6s ease-out;
}
@keyframes sidebarTextFade {
0% { opacity: 0; transform: translateY(10px); }
100% { opacity: 1; transform: translateY(0); }
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
.ceo-sidebar-banner {
max-width: 100%;
margin: 10px 0;
padding: 15px;
}
.ceo-sidebar-title {
font-size: 1.3rem;
}
.ceo-sidebar-covers {
height: 100px;
}
.ceo-sidebar-btn {
padding: 10px 20px;
font-size: 0.9rem;
}
}
@media (max-width: 480px) {
.ceo-sidebar-banner {
border-radius: 8px;
padding: 12px;
}
.ceo-sidebar-title {
font-size: 1.2rem;
}
.ceo-sidebar-covers {
height: 90px;
}
.ceo-sidebar-cover-group {
gap: 6px;
padding: 0 6px;
}
}
/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
.ceo-sidebar-track {
animation: none;
position: relative;
transform: none !important;
justify-content: center;
}
.ceo-sidebar-floating {
animation: none;
}
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
}
}
.ceo-sidebar-btn:focus {
outline: 2px solid #ffffff;
outline-offset: 2px;
}
document.addEventListener('DOMContentLoaded', function() {
const sidebarBanner = document.getElementById('ceoSidebarBanner');
const sidebarText = document.getElementById('ceoSidebarText');
if (!sidebarBanner || !sidebarText) return;
const sidebarTexts = [
"CEO Interviews & Analysis",
"Industry Trends & Insights",
"Growth Strategies",
"Leadership Stories",
"Business Intelligence"
];
let currentTextIndex = 0;
let textInterval;
let isSidebarVisible = false;
function updateSidebarText() {
sidebarText.style.opacity = '0';
setTimeout(() => {
currentTextIndex = (currentTextIndex + 1) % sidebarTexts.length;
sidebarText.textContent = sidebarTexts[currentTextIndex];
sidebarText.style.opacity = '1';
sidebarText.classList.add('active');
setTimeout(() => sidebarText.classList.remove('active'), 600);
}, 300);
}
// Intersection Observer for sidebar
const sidebarObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
isSidebarVisible = entry.isIntersecting;
if (isSidebarVisible) {
textInterval = setInterval(updateSidebarText, 3500);
setTimeout(updateSidebarText, 500);
} else {
clearInterval(textInterval);
}
});
}, { threshold: 0.1 });
sidebarObserver.observe(sidebarBanner);
// Image optimization for sidebar
const sidebarImages = sidebarBanner.querySelectorAll('img');
sidebarImages.forEach(img => {
img.onerror = function() {
this.style.opacity = '0.3';
console.log('Sidebar image failed to load:', this.alt);
};
img.onload = function() {
this.style.opacity = '1';
};
});
// Cleanup
window.addEventListener('beforeunload', () => {
clearInterval(textInterval);
});
document.addEventListener('visibilitychange', () => {
if (document.hidden) {
clearInterval(textInterval);
} else if (isSidebarVisible) {
textInterval = setInterval(updateSidebarText, 3500);
}
});
// Pause on hover for better UX
sidebarBanner.addEventListener('mouseenter', () => {
if (textInterval) clearInterval(textInterval);
});
sidebarBanner.addEventListener('mouseleave', () => {
if (isSidebarVisible) {
textInterval = setInterval(updateSidebarText, 3500);
}
});
});
Hey there! I’m at work surfing around your blog from my new
iphone! Just wanted to say I love reading through
your blog and look forward to all your posts! Carry on the great work!