/* Modern Australian News Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Crimson+Text:wght@400;600&display=swap');

/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Australian News Color Palette */
    --primary-blue: #0066cc;
    --dark-blue: #003d7a;
    --light-blue: #e6f2ff;
    --navy: #1a2b3d;
    --charcoal: #2c3e50;
    --slate: #34495e;
    --light-grey: #f8f9fa;
    --medium-grey: #6c757d;
    --border-grey: #dee2e6;
    --text-dark: #212529;
    --text-light: #495057;
    --accent-red: #dc3545;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Crimson Text', Georgia, serif;
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 20px;
    --section-spacing: 3rem;
    --element-spacing: 1.5rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Typography */
html {
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

header .container {
    padding: 1rem var(--container-padding);
}

/* Header Content Layout */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Brand Section */
.brand-section {
    flex: 1;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.site-logo svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.site-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-left: 2.5rem;
}

/* Header Meta Section */
.header-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.advertorial-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Live Indicator */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-red);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-indicator span {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.1em;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .site-name {
        font-size: 1.25rem;
    }
    
    .tagline {
        margin-left: 0;
        margin-top: 0.25rem;
    }
    
    .header-meta {
        justify-content: center;
    }
}

/* Main Content Layout */
.wrapper {
    /*min-height: 100vh;*/
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    display: flex;
    gap: 2rem;
    max-width: var(--container-max);
    margin: 2rem auto;
    padding: 0 var(--container-padding);
}

.content main {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.content aside {
    width: 300px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    height: fit-content;
    /*position: sticky;*/
    top: 120px;
}

/* Typography */
h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 1.5rem;
    padding: 2rem 0;
}

h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.8vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;
    color: #2a4a3a;
    margin: 2.5rem 0 1.2rem;
    position: relative;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2 span {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 0.75em;
    font-weight: 700;
    padding: 0.5em 0.5em;
    border-radius: 50%;
    min-width: 1.8em;
    height: 1.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.25);
    border: 2px solid rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

h2 span:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}

h2 span::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    z-index: -1;
}

h2:not(:has(span)) {
    font-size: clamp(1.4rem, 3.4vw, 1.9rem);
    font-weight: 600;
    padding-left: 0;
    display: block;
    color: #2a4a3a;
}

@media (max-width: 768px) {
    h2 {
        flex-direction: row;
        gap: 0.8rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    
    h2 span {
        align-self: flex-start;
        margin-top: 0.2rem;
    }
    
    /* Enhanced mobile button styles */
    a.button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        margin: 1rem 0;
        max-width: 100%;
    }
    
    /* Better mobile typography */
    p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Improved image spacing */
    .image {
        margin: 1.5rem 0;
    }
    
    .image.vertical {
        max-width: 100%;
    }
}

p {
    margin-bottom: 1.4rem;
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.75;
    font-weight: 400;
}

main p {
   /* padding: 0 2rem;*/
}

p strong, p b {
    color: #2a4a3a;
    font-weight: 600;
}

/* Article Meta Information */
.article-time {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-time .date,
.article-time .views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--medium-grey);
    font-weight: 500;
}

.article-time img {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Author and Social Section */
.socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0rem;
    border-bottom: 2px solid var(--light-grey);
    margin-bottom: 1.5rem;
}

.socials .author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.socials .author p {
    margin: 0;
    font-size: 0.875rem;
}

.socials .author p:first-child {
    font-weight: 600;
    color: var(--primary-blue);
}

.socials .author p:last-child {
    color: var(--medium-grey);
    font-style: italic;
}

/* Social Share Bar */
.share-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-bar a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.share-bar a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-bar a.fb {
    background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
    color: white;
}

.share-bar a.x {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
    color: white;
}

.share-bar a.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.share-bar a.copy-link {
    background: linear-gradient(135deg, var(--accent-red) 0%, #e57373 100%);
    color: white;
}

/* Content Styling */
.content main .container {
    padding: 0 2rem 2rem;
}

/* Image Styling */
.image {
    margin: 2rem 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image.vertical {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
}

.image .description {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

/* Screen Mockup Styles */
.screen {
    background: linear-gradient(145deg, #1e1e1e 0%, #2d2d2d 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
}

.screen * {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

.phone-top {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.phone-top-time {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.phone-top-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Modern Mail Interface */
.mail-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-lg);
    /*box-shadow: var(--shadow-lg);*/
    padding: 1.5rem;
    margin: 1rem;
    border: 1px solid rgba(0, 102, 204, 0.1);
    /*max-width: 400px;*/
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

.mail-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

.mail-control-panel,
.mail-title-wrapper,
.mail-sender,
.mail-text,
.mail-bottom-options {
    margin-bottom: 1.25rem;
}

.mail-control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-grey);
    margin-bottom: 1.5rem;
}

.mail-control-panel img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: var(--transition-fast);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.mail-control-panel img:hover {
    opacity: 1;
    background: rgba(0, 102, 204, 0.1);
}

.mail-title-wrapper {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-grey);
}

.mail-title {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.mail-title .inbox {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 0.25em 0.75em;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.mail-sender {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-grey);
}

.mail-sender-logo {
    background: #4285F4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 1.25rem;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /*box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);*/
    flex-shrink: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: none;
}

.mail-sender-logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

.mail-sender-logo p {
    margin: 0;
    line-height: 1;
}

.mail-sender-description {
    flex: 1;
}

.mail-sender-text p {
    margin: 0.25rem 0;
    color: var(--text-dark);
}

.mail-sender-text-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--navy);
    line-height: 1.3;
}

.mail-sender-text-recipient {
    font-size: 0.875rem;
    color: var(--medium-grey);
    font-weight: 400;
}

.mail-sender-options {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.mail-sender-options img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.mail-sender-options img:hover {
    opacity: 1;
    background: rgba(0, 102, 204, 0.1);
}

.mail-text {
    padding: 1.5rem 0;
    line-height: 1.6;
}

.mail-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.mail-text p:first-child {
    margin-top: 0;
    font-weight: 500;
    color: var(--navy);
}

.mail-text p:last-child {
    margin-bottom: 0;
}

.mail-bottom-options {
    display: flex;
    gap: 1rem;
    padding: 1rem 0 0;
    border-top: 1px solid var(--border-grey);
    margin-bottom: 0;
}

.mail-bottom-options-reply,
.mail-bottom-forward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(0, 102, 204, 0.05);
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.mail-bottom-options-reply:hover,
.mail-bottom-forward:hover {
    background: rgba(0, 102, 204, 0.1);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Disable all interactive elements in mail-wrapper */
.mail-wrapper .mail-control-panel img,
.mail-wrapper .mail-sender-options img,
.mail-wrapper .mail-bottom-options-reply,
.mail-wrapper .mail-bottom-forward {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.4 !important;
}

.mail-wrapper .mail-control-panel img:hover,
.mail-wrapper .mail-sender-options img:hover,
.mail-wrapper .mail-bottom-options-reply:hover,
.mail-wrapper .mail-bottom-forward:hover {
    opacity: 0.4 !important;
    background: transparent !important;
    border-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.mail-bottom-options img {
    width: 16px;
    height: 16px;
}

/* Lists */
.list {
    margin: 1.5rem 0;
}

.list li {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.list-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.2rem;
}

.list li .check {
    width: 24px;
    height: 24px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.list li .check::before {
    content: '✓';
}

.list li .list-num {
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Special Content Blocks */
.doctor-speech {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.doctor-speech::before {
    content: '💊';
    position: absolute;
    top: -10px;
    left: 20px;
    background: #ffffffb8;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.note {
    background: linear-gradient(135deg, #fff8e1 0%, #fffde7 100%);
    border: 1px solid var(--warning-orange);
    border-left: 4px solid var(--warning-orange);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.quote-block {
    margin: 2rem 0;
    text-align: center;
}

.quote {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    font-style: italic;
    font-size: 1.2rem;
    color: #374151;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(34, 197, 94, 0.1);
}

.quote::before,
.quote::after {
    font-size: 2.5rem;
    color: #22c55e;
    opacity: 0.4;
    position: absolute;
    font-family: Georgia, serif;
    font-weight: bold;
}

.quote::before {
    content: '"';
    top: 1rem;
    left: 1.5rem;
}

.quote::after {
    content: '"';
    bottom: 1rem;
    right: 1.5rem;
}

.quote-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--medium-grey);
}

/* Buttons */
a.button {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    margin: 1.5rem 0;
    max-width: 400px;
    width: 100%;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

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

a.button:hover::before {
    left: 100%;
}

a.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Comments Section */
.comments-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

h2.comments-title {
    color: var(--navy);
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.comment {
    margin-bottom: 2rem;
    position: relative;
}

.comment-flex {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.comment-flex.answer {
    margin-top: 1rem;
    margin-left: 3rem;
    padding-left: 1rem;
    border-left: 2px solid var(--border-grey);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-info .name {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.comment-text .text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.comment-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--medium-grey);
}

.comment-footer .like,
.comment-footer .reply {
    color: var(--primary-blue);
    cursor: pointer;
    font-weight: 500;
}

.comment-footer .like:hover,
.comment-footer .reply:hover {
    text-decoration: underline;
}

.likes-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }
    
    .content {
        flex-direction: column;
        gap: 1rem;
        margin: 1rem auto;
    }
    
    .content aside {
        width: 100%;
        position: static;
    }
    
    h1 {
        padding: 1.5rem 0 0 0;
    }
    
    .socials {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 0 0 1.5rem 0;
    }
    
    .share-bar {
        align-self: stretch;
        justify-content: left;
    }
    
    .content main .container {
        padding: 0 1rem 1rem;
    }
    
    .article-time {
        padding: 0;
    }
    
    .phone-top {
        display: flex;
    }
    
    .comment-flex.answer {
        margin-left: 1rem;
    }
    
    /* Enhanced mobile optimizations */
    body {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Better touch targets */
    .share-bar a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improved quote blocks for mobile */
    .quote-block {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .quote {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    /* Better button spacing and sizing */
    a.button {
        display: block;
        text-align: center;
        margin: 1.5rem auto;
        padding: 0.875rem 1.25rem;
    }
    
    /* Mail Interface Mobile */
    .mail-wrapper {
        margin: 0.5rem;
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .mail-control-panel {
        padding: 0.5rem 0;
    }
    
    .mail-control-panel img {
        width: 20px;
        height: 20px;
    }
    
    .mail-title {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .mail-title .inbox {
        font-size: 0.65rem;
        padding: 0.2em 0.6em;
        margin-left: 0 !important;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }
    
    .mail-sender {
        gap: 0.75rem;
        padding: 0.75rem 0;
    }
    
    .mail-sender-logo {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
        box-shadow: 0 2px 6px rgba(66, 133, 244, 0.25);
    }
    
    .mail-sender-logo:hover {
        transform: translateY(-1px);
        box-shadow: 0 3px 10px rgba(66, 133, 244, 0.35);
    }
    
    .mail-sender-text-name {
        font-size: 0.95rem;
    }
    
    .mail-sender-text-recipient {
        font-size: 0.8rem;
    }
    
    .mail-sender-options img {
        width: 18px;
        height: 18px;
    }
    
    .mail-text {
        padding: 1.25rem 0;
    }
    
    .mail-text p {
        font-size: 0.9rem;
        margin: 0.875rem 0;
    }
    
    .mail-bottom-options {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .mail-bottom-options-reply,
    .mail-bottom-forward {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .mail-bottom-options img {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile optimizations */
    :root {
        --container-padding: 10px;
    }
    
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.5rem;
        padding: 1rem 0;
    }
    
    h2 {
        font-size: 1.25rem;
        margin: 1.5rem 0 1rem;
    }
    
    p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }
    
    .share-bar a {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .article-time {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quote {
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .quote-block {
        margin: 0.75rem 0;
    }
    
    .screen {
        padding: 0.75rem;
        margin: 1rem 0;
    }
    
    /* Ultra-mobile buttons */
    a.button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        margin: 1rem auto;
    }
    
    /* Better spacing for very small screens */
    .content {
        margin: 0.5rem auto;
    }
    
    .content main .container {
        padding: 0 0.5rem 0.5rem;
    }
    
    /* Mail Interface Ultra Mobile */
    .mail-wrapper {
        margin: 0.25rem;
        padding: 1rem;
        border-radius: var(--radius-md);
    }
    
    .mail-wrapper::before {
        height: 2px;
    }
    
    .mail-control-panel {
        padding: 0.375rem 0;
        margin-bottom: 1rem;
    }
    
    .mail-control-panel img {
        width: 18px;
        height: 18px;
        padding: 0.2rem;
    }
    
    .mail-title-wrapper {
        padding: 0.75rem 0;
    }
    
    .mail-title {
        font-size: 0.875rem;
        line-height: 1.25;
    }
    
    .mail-title .inbox {
        font-size: 0.6rem;
        padding: 0.15em 0.5em;
        margin-left: 0 !important;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        border-radius: 15px;
    }
    
    .mail-sender {
        gap: 0.625rem;
        padding: 0.625rem 0;
    }
    
    .mail-sender-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        box-shadow: 0 1px 4px rgba(66, 133, 244, 0.2);
    }
    
    .mail-sender-logo:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
    }
    
    .mail-sender-text-name {
        font-size: 0.875rem;
        line-height: 1.2;
    }
    
    .mail-sender-text-recipient {
        font-size: 0.75rem;
    }
    
    .mail-sender-options {
        gap: 0.25rem;
    }
    
    .mail-sender-options img {
        width: 16px;
        height: 16px;
        padding: 0.2rem;
    }
    
    .mail-text {
        padding: 1rem 0;
    }
    
    .mail-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin: 0.75rem 0;
    }
    
    .mail-bottom-options {
        gap: 0.5rem;
        padding: 0.75rem 0 0;
    }
    
    .mail-bottom-options-reply,
    .mail-bottom-forward {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
        min-width: 100px;
    }
    
    .mail-bottom-options img {
        width: 12px;
        height: 12px;
    }
}