/* Premium Magazine Layout CSS for Exam Medix Blogs */

/* Hero Section */
.blogs-hero {
    padding: 140px 20px 80px;
    background: #0f172a;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blogs-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 50%; height: 200%;
    background: radial-gradient(circle, rgba(21, 152, 156, 0.2) 0%, transparent 70%);
    transform: rotate(45deg);
}

.blogs-hero-title {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.blogs-hero-title .highlight {
    color: #15989C;
}

.blogs-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Magazine Grid (Landing Page) */
.magazine-container {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.mag-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.mag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.mag-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.mag-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-category {
    font-size: 0.75rem;
    color: #15989C;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.mag-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 16px;
    line-height: 1.3;
    font-weight: 700;
}

.mag-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Asymmetric Span Rules for Landing Page */
.mag-featured {
    grid-column: span 8;
    flex-direction: row;
}

.mag-featured .mag-card-img {
    width: 60%;
    height: 100%;
    min-height: 400px;
}

.mag-featured .mag-card-content {
    width: 40%;
    justify-content: center;
    padding: 40px;
}

.mag-featured .mag-title {
    font-size: 2.5rem;
}

.mag-standard {
    grid-column: span 4;
}

.mag-wide {
    grid-column: span 6;
}

/* Article Layout with Sidebar */
.article-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 40px;
}

/* Article Main Content */
.article-main {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 30px;
}

.article-title {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.article-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h4 {
    margin: 0;
    font-family: 'Satoshi', sans-serif;
    font-size: 1.1rem;
    color: #0f172a;
}

.author-details p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
}

.article-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
}

/* Magazine Typography */
.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: #334155;
    line-height: 1.8;
}

/* Drop Cap for first paragraph */
.article-content > p:first-of-type::first-letter {
    float: left;
    font-family: 'Satoshi', sans-serif;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    color: #15989C;
    font-weight: 800;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-family: 'Satoshi', sans-serif;
    font-size: 2.25rem;
    color: #0f172a;
    margin: 48px 0 24px;
    font-weight: 800;
}

.article-content h3 {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin: 32px 0 16px;
    font-weight: 700;
}

.article-content ul, .article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
}

/* Elegant Blockquotes */
.article-content blockquote {
    margin: 40px 0;
    padding: 30px;
    background: #f8fafc;
    border-left: 4px solid #15989C;
    font-style: italic;
    font-size: 1.35rem;
    color: #0f172a;
    border-radius: 0 12px 12px 0;
    line-height: 1.6;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(21, 152, 156, 0.2);
    font-family: serif;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 100px;
    height: max-content;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.sidebar-title {
    font-family: 'Satoshi', sans-serif;
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 700;
}

.read-next-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.read-next-item {
    margin-bottom: 20px;
}

.read-next-item:last-child {
    margin-bottom: 0;
}

.read-next-link {
    text-decoration: none;
    display: flex;
    gap: 12px;
    group: hover;
}

.read-next-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.read-next-text h4 {
    margin: 0 0 8px 0;
    font-family: 'Satoshi', sans-serif;
    font-size: 1rem;
    color: #0f172a;
    line-height: 1.4;
    transition: color 0.2s;
}

.read-next-link:hover .read-next-text h4 {
    color: #15989C;
}

.read-next-text span {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sidebar Course Promo */
.sidebar-promo {
    background: linear-gradient(135deg, #15989C, #107C80);
    color: white;
    text-align: center;
    border: none;
}

.sidebar-promo h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 12px 0;
}

.sidebar-promo p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sidebar-promo .primary-btn {
    background: white;
    color: #15989C;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    width: 100%;
}

/* Date Widget */
.date-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.date-widget li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.date-widget li:last-child {
    border-bottom: none;
}

.date-name {
    color: #0f172a;
    font-weight: 600;
}

.date-val {
    color: #15989C;
    font-weight: 700;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: relative;
        top: 0;
    }
    .mag-featured {
        grid-column: span 12;
        flex-direction: column;
    }
    .mag-featured .mag-card-img {
        width: 100%;
    }
    .mag-featured .mag-card-content {
        width: 100%;
        padding: 24px;
    }
    .mag-standard, .mag-wide {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .mag-standard, .mag-wide {
        grid-column: span 12;
    }
    .article-main {
        padding: 24px 16px;
    }
    .article-title {
        font-size: 2rem;
    }
    .blogs-hero-title {
        font-size: 2.5rem;
    }
}
