* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'CNN Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #262626;
    background: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles - CNN Style */
.header {
    background: #cc0000;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
    font-family: 'CNN Sans', Arial, sans-serif;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-indicator {
    color: #00ff00;
    font-size: 0.7rem;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.current-date {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-container {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.nav-link {
    color: #262626;
    text-decoration: none;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:hover {
    color: #cc0000;
    border-bottom-color: #cc0000;
}

.nav-link.active {
    color: #cc0000;
    border-bottom-color: #cc0000;
}

/* Breaking News Banner */
.breaking-news {
    background: #000000;
    color: white;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breaking-label {
    background: #cc0000;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}

.breaking-text {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Main Content - CNN Style */
.main {
    padding: 24px 0;
    background: #f8f8f8;
}

/* Search Bar - CNN Style */
.search-bar {
    background: white;
    padding: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: center;
    gap: 12px;
}

#search-input {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 300px;
    max-width: 100%;
    outline: none;
    transition: border-color 0.2s ease;
}

#search-input:focus {
    border-color: #cc0000;
}

#search-btn {
    padding: 12px 24px;
    background: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.2s ease;
}

#search-btn:hover {
    background: #b30000;
}

/* Hero Section - CNN Style */
.hero {
    background: white;
    padding: 32px 0;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 32px;
}

.hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #262626;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Headers - CNN Style */
.featured-section h3,
.articles-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #262626;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #cc0000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-section {
    margin-bottom: 48px;
}

.articles-section {
    margin-bottom: 48px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Article Cards - CNN Style */
.article-card {
    background: white;
    border: 1px solid #e6e6e6;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 24px;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #cc0000;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.article-content {
    padding: 20px;
}

.article-category {
    display: inline-block;
    background: #cc0000;
    color: white;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #262626;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.article-card:hover .article-title {
    color: #cc0000;
}

.article-summary {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #e6e6e6;
    padding-top: 12px;
}

.article-author {
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
}

.author-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: #f8f8f8;
    border-left: 3px solid #cc0000;
    border-radius: 4px;
}

.author-byline .author-profile-pic {
    width: 40px;
    height: 40px;
}

.author-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.author-email {
    color: #cc0000;
    text-decoration: none;
    font-size: 0.8rem;
}

.author-email:hover {
    text-decoration: underline;
}

/* Comprehensive Author Profile Section (Premium Design) */
.author-profile-full {
    margin: 3rem 0 2rem 0;
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.author-profile-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff4444, #cc0000);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.author-profile-full:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 4px 16px rgba(0,0,0,0.1);
}

.author-profile-header {
    margin: 0;
    padding: 2rem 2rem 1.5rem 2rem;
    background: linear-gradient(135deg, #cc0000 0%, #ff4444 100%);
    color: white;
    position: relative;
}

.author-profile-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #cc0000;
}

.author-profile-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.author-profile-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
}

.author-profile-image {
    flex-shrink: 0;
}

.author-profile-image img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 4px solid #cc0000;
    box-shadow: 0 8px 24px rgba(204, 0, 0, 0.3), 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
}

.author-profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(204, 0, 0, 0.4), 0 6px 16px rgba(0,0,0,0.2);
}

.author-profile-image {
    position: relative;
}

.author-profile-image::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, #cc0000, #ff4444, #cc0000, #ff4444);
    background-size: 400% 400%;
    animation: gradientRotate 4s ease-in-out infinite;
    z-index: -1;
    opacity: 0.7;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.author-profile-details {
    flex: 1;
}

.author-profile-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.author-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #cc0000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-bio {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.author-credentials {
    margin-bottom: 1.5rem;
}

.author-credentials h5 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-credentials ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.author-credentials li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.author-expertise {
    margin-bottom: 1.5rem;
}

.author-expertise h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.expertise-tag {
    background: linear-gradient(135deg, #cc0000 0%, #ff4444 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(204, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.expertise-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.expertise-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(204, 0, 0, 0.4);
}

.expertise-tag:hover::before {
    left: 100%;
}

.author-contact {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.author-contact p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #555;
}

.author-contact p:last-child {
    margin-bottom: 0;
}

.author-contact strong {
    color: #333;
    font-weight: 600;
}

.author-contact .author-email {
    color: #cc0000;
    text-decoration: none;
    font-weight: 600;
}

.author-contact .author-email:hover {
    text-decoration: underline;
}

/* Responsive design for author profile */
@media (max-width: 768px) {
    .author-profile-full {
        padding: 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }
    
    .author-profile-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .author-profile-image img {
        width: 100px;
        height: 100px;
    }
    
    .author-profile-details {
        text-align: left;
    }
    
    .expertise-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .author-profile-full {
        padding: 1rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .author-profile-image img {
        width: 80px;
        height: 80px;
    }
    
    .author-profile-details h4 {
        font-size: 1.2rem;
    }
    
    .author-title {
        font-size: 0.9rem;
    }
    
    .author-bio {
        font-size: 0.9rem;
    }
}

.article-date {
    color: #999;
}

/* Featured Article Styles - CNN Style */
.featured-card {
    background: #262626;
    color: white;
    border: none;
}

.featured-card .article-category {
    background: #cc0000;
}

.featured-card .article-title {
    color: white;
    font-size: 1.5rem;
}

.featured-card:hover .article-title {
    color: #cc0000;
}

.featured-card .article-summary {
    color: #ccc;
}

.featured-card .article-meta {
    border-top-color: #444;
    color: #ccc;
}

.featured-card .article-author {
    color: #ccc;
}

.featured-card .article-date {
    color: #999;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.close:hover {
    color: #d32f2f;
    transform: scale(1.1);
}

#modal-article-content {
    padding: 2rem;
}

.modal-article-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.modal-article-category {
    display: inline-block;
    background: #d32f2f;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-article-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.modal-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
    color: #666;
}

.modal-article-content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.modal-article-content-text p {
    margin-bottom: 1.5rem;
}

/* Article Content Heading Styles */
.article-main-heading {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 2rem 0 1.5rem 0;
    line-height: 1.2;
    border-bottom: 3px solid #cc0000;
    padding-bottom: 0.5rem;
}

.article-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #262626;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
    position: relative;
    padding-left: 1rem;
}

.article-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #cc0000;
    border-radius: 2px;
}

.article-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 1.5rem 0 0.8rem 0;
    line-height: 1.4;
}

.article-paragraph {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.article-source-line {
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
    margin: 1rem 0;
    padding: 0.5rem;
    background: #f8f8f8;
    border-left: 3px solid #cc0000;
}

.article-divider {
    border: none;
    height: 2px;
    background: linear-gradient(to right, #cc0000, transparent);
    margin: 2rem 0;
}

/* Loading and No Results */
.loading,
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.loading {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #d32f2f;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .nav {
        padding: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    #search-input {
        width: 250px;
    }
    
    .articles-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-article-title {
        font-size: 1.5rem;
    }
    
    #modal-article-content {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-bar {
        flex-direction: column;
        align-items: center;
    }
    
    #search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .modal-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Editorial Links Styling - Google News Compliance */
.nav-link.editorial-link {
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid rgba(204, 0, 0, 0.3);
    border-radius: 4px;
    margin-left: 8px;
    font-size: 12px;
    padding: 8px 12px;
    color: #cc0000;
    font-weight: 700;
}

.nav-link.editorial-link:hover {
    background: rgba(204, 0, 0, 0.2);
    border-color: #cc0000;
    color: #cc0000;
    border-bottom-color: transparent;
}

/* Professional Advertising Banner System */
.ad-container {
    margin: 1rem 0;
    position: relative;
    z-index: 10;
}

.ad-banner {
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.ad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.ad-image {
    float: left;
    width: 120px;
    height: 80px;
    margin-right: 1rem;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.ad-company {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.ad-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ad-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.ad-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.ad-cta {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.ad-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ad-phone {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.ad-phone:hover {
    opacity: 1;
    text-decoration: underline;
}

.ad-label {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Position-specific styling */
.ad-header {
    margin: 0 0 2rem 0;
    border-radius: 0;
}

.ad-header .ad-banner {
    border-radius: 0;
    margin: 0;
    padding: 1rem 0;
}

.ad-sidebar {
    position: sticky;
    top: 100px;
    margin: 2rem 0;
    max-width: 300px;
    margin-left: auto;
}

.ad-sidebar .ad-banner {
    padding: 1rem;
}

.ad-sidebar .ad-image {
    width: 100%;
    height: 120px;
    float: none;
    margin: 0 0 1rem 0;
}

.ad-footer {
    margin: 2rem 0 0 0;
}

.ad-between-articles {
    grid-column: 1 / -1;
    margin: 2rem 0;
}

.ad-between-articles .ad-banner {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.ad-between-articles .ad-image {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.ad-between-articles .ad-content {
    flex: 1;
}

/* Responsive design for ads */
@media (max-width: 768px) {
    .ad-sidebar {
        position: static;
        max-width: none;
        margin: 1rem 0;
    }
    
    .ad-banner {
        padding: 1rem;
    }
    
    .ad-image {
        width: 80px;
        height: 60px;
    }
    
    .ad-between-articles .ad-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .ad-between-articles .ad-image {
        margin: 0 0 1rem 0;
        width: 100%;
        height: 120px;
    }
    
    .ad-actions {
        justify-content: center;
    }
    
    .ad-title {
        font-size: 1rem;
    }
    
    .ad-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .ad-banner {
        padding: 0.75rem;
    }
    
    .ad-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .ad-cta {
        text-align: center;
        padding: 0.75rem 1rem;
    }
}

/* Animation for ad transitions */
.ad-container {
    transition: opacity 0.3s ease;
}

.ad-banner {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special styling for different ad types */
.ad-banner[data-ad-id*="bodyshop"] {
    background-image: linear-gradient(135deg, var(--bg-color, #1e40af) 0%, var(--bg-color-dark, #1e3a8a) 100%);
}

.ad-banner[data-ad-id*="home"] {
    background-image: linear-gradient(135deg, var(--bg-color, #059669) 0%, var(--bg-color-dark, #047857) 100%);
}

/* Accessibility improvements */
.ad-banner:focus-within {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.ad-cta:focus {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 2px;
}

/* Print styles - hide ads when printing */
@media print {
    .ad-container,
    .ad-banner {
        display: none !important;
    }
}
