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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.7;
    width: 100%;
    overflow-x: hidden;
}

body > header {
    color: white;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

body > header.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    max-width: 640px;
    width: calc(100% - 20px);
    background-color: #d32f2f;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-content h1 {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

.header-content h1 a {
    color: white;
    text-decoration: none;
}

.header-content h1 a:hover {
    text-decoration: underline;
}

.header-logo {
    height: 35px;
    width: auto;
    display: block;
}

.article-container {
    max-width: 660px;
    margin: 20px auto;
    padding: 0 10px;
    width: 100%;
}

article {
    background: white;
    padding: 20px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.article-header {
    margin-bottom: 8px;
    padding: 0 10px 8px 10px;
    border-bottom: 3px solid #d32f2f;
}

.article-meta {
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin-bottom: 8px;
}

article .article-title,
.article-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1a1a1a !important;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.featured-media {
    margin: 0 0 5px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.featured-media video {
    max-width: 640px;
    width: auto;
    max-height: 360px;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lgraybg {
    background-color: #E6E6E6;
    padding: 5px 0 5px 8px;
}

.bold {
    font-weight: bold;
}

.featured-image {
    max-width: 640px;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.media-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
    display: inline;
}

.media-byline {
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
    display: inline;
}

.media-caption-wrapper {
    margin-top: 2px;
    padding: 0 10px;
    width: 100%;
    max-width: 640px;
    line-height: 1.3;
}

.article-location {
    margin: 20px 0 15px 0;
    padding: 0 10px;
    font-size: 16px;
    color: #1a1a1a;
    font-family: Arial, Helvetica, sans-serif;
}

.article-body {
    font-size: 18px;
    color: #2c2c2c;
    margin: 8px 0 20px 0;
    padding: 0 10px;
}

.article-subheading {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: normal;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 18px;
    display: inline;
}

.article-body-inline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: normal;
    color: #1a1a1a;
    line-height: 1.4;
}

.article-body-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: normal;
    color: #1a1a1a;
    line-height: 1.4;
    margin-top: 8px;
    margin-bottom: 18px;
}

.article-body p {
    margin-bottom: 18px;
    text-align: left;
}

.agency-reference {
    margin: 25px 0;
    padding: 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #666;
}

.media-gallery {
    margin-top: 30px;
    padding: 20px 10px 0 10px;
    border-top: 2px solid #eee;
}

.media-gallery h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.media-item {
    margin: 20px 0 5px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-item video {
    max-width: 640px;
    width: auto;
    max-height: 360px;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-image {
    max-width: 640px;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Header search */
.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    overflow: hidden;
    width: 0;
    transition: width 0.3s ease, opacity 0.2s ease;
    opacity: 0;
}

.header-search.active .search-form {
    width: 180px;
    opacity: 1;
}

.search-input {
    width: 100%;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-toggle:hover {
    opacity: 0.8;
}

/* Action bar (below header) */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.action-bar-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    border: 1px solid #d32f2f;
    border-radius: 4px;
    background: white;
    color: #d32f2f;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.action-bar-btn:hover {
    background: #d32f2f;
    color: white;
}

/* Newsletter modal */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.newsletter-modal.active {
    display: flex;
}

.newsletter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.newsletter-modal-content {
    position: relative;
    background: white;
    border-radius: 10px;
    padding: 30px 25px;
    max-width: 380px;
    width: calc(100% - 40px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1;
}

.newsletter-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.newsletter-modal-close:hover {
    color: #333;
}

.newsletter-modal-content h3 {
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 6px;
    color: #333;
}

.newsletter-modal-content p {
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #666;
    margin-bottom: 15px;
}

.newsletter-modal-content .newsletter-email {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
}

.newsletter-modal-content .newsletter-email:focus {
    outline: none;
    border-color: #d32f2f;
}

.newsletter-submit-btn {
    width: 100%;
    padding: 12px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-submit-btn:hover {
    background: #b71c1c;
}

.newsletter-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-msg {
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 10px;
    text-align: center;
}

.newsletter-msg.success {
    color: #2e7d32;
}

.newsletter-msg.error {
    color: #c62828;
}

/* Mobile responsive - ensure images don't overflow */
@media (max-width: 640px) {
    .header-content {
        max-width: 100%;
        width: 100%;
        margin: 0;
    }

    .article-container {
        padding: 0 15px;
    }

    article {
        padding: 20px 15px;
    }

    .featured-media video,
    .media-item video {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .featured-image,
    .gallery-image {
        max-width: 100%;
        width: 100%;
    }

    .media-caption,
    .media-byline,
    .media-caption-wrapper {
        max-width: 100%;
    }
}

/* Promo links injected in article body */
a.promo-link {
    color: #c00;
    text-decoration: none;
}
a.promo-link:hover {
    text-decoration: underline;
}

.video-container {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}
.video-container > div {
    width: 100% !important;
    max-width: 640px !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}
@media (max-width: 640px) {
    .video-container > div {
        width: 100% !important;
    }
}
