/**
 * Shared Content Pages Styles
 * Styles for information pages and divesite pages main content area
 * Keeps styling uniform across both page types
 */

/* Main content page container */
.content-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
}

/* Main content area - shared by both information and divesite pages */
.content-main {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 16px;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-main h1 {
    margin-bottom: 15px;
    margin-top: 0;
    color: #1a5490;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.content-main h1.byline {
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 3px solid #1a5490;
}

.content-main h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a5490;
    font-size: 1.8em;
    font-weight: 600;
    border-bottom: 2px solid #1a5490;
    padding-bottom: 8px;
    line-height: 1.3;
}

.content-main h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.2em;
    font-weight: bold;
}

.content-main h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #666;
    font-size: 1.1em;
    font-weight: bold;
}

.content-main h5 {
    margin-top: 12px;
    margin-bottom: 8px;
    color: #777;
    font-size: 1em;
    font-weight: bold;
}

/* Paragraphs and text */
.content-main p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #34495e;
}

.content-main p.byline {
    font-size: 1.2em;
    color: #5a6c7d;
    font-style: italic;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.content-main strong,
.content-main b {
    font-weight: bold;
    color: #333;
}

.content-main em,
.content-main i {
    font-style: italic;
}

/* Lists */
.content-main ul,
.content-main ol {
    margin: 20px 0 20px 35px;
    line-height: 1.8;
    padding-left: 10px;
}

.content-main li {
    margin-bottom: 12px;
    color: #34495e;
}

.content-main ul li {
    list-style-type: disc;
}

.content-main ol li {
    list-style-type: decimal;
}

.content-main ul {
    list-style-type: disc;
}

.content-main ol {
    list-style-type: decimal;
}

/* Links */
.content-main a {
    color: #1a5490;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-weight: 500;
}

.content-main a:hover {
    color: #0d3a6b;
    border-bottom-color: #1a5490;
    text-decoration: none;
}

.content-main a:visited {
    color: #5a6c7d;
}

/* Meta information badges */
.content-meta {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    border-left: 4px solid #0066cc;
}

.meta-badge {
    display: inline-block;
    margin-right: 15px;
    padding: 5px 10px;
    background-color: #0066cc;
    color: #fff;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: normal;
}

/* Images */
.content-image {
    margin: 30px 0;
    text-align: center;
}

.content-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-image img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Images within paragraphs */
.content-main p img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px 0;
    display: block;
}

/* Credit thumb - for images with captions (from old CMS) */
.creditthumb {
    float: left;
    margin: 0 20px 20px 0;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 200px;
    text-align: center;
}

.creditthumb img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    margin-bottom: 5px;
}

.creditthumb small,
.creditthumb br + small {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    line-height: 1.3;
}

/* Picture class (from old CMS) */
.picture {
    display: block;
    margin: 15px 0;
    text-align: center;
}

.picture img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.picture small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #666;
}

/* Clear float */
.clear {
    clear: both;
}

/* Description sections */
.content-description {
    margin: 20px 0;
    line-height: 1.6;
    color: #333;
}

/* Main body content */
.content-body {
    margin: 20px 0;
    line-height: 1.7;
    color: #333;
}

/* Info boxes */
.content-info-box {
    margin: 30px 0;
    padding: 15px;
    background-color: #f0f7ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
}

.content-info-box h3 {
    margin-top: 0;
    color: #0066cc;
}

.content-info-box p {
    margin: 10px 0;
}

/* Warning/info boxes */
.content-warning {
    background-color: #fff9e6;
    border-color: #ffcc00;
    border-left-width: 4px;
}

.content-warning h3 {
    color: #cc9900;
}

/* Highlight class */
.highlight {
    background-color: #fff9e6;
    padding: 15px;
    border-left: 4px solid #ffcc00;
    margin: 20px 0;
}

/* Links section */
.content-link {
    margin: 20px 0;
}

.content-link .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    border: none;
}

.content-link .btn:hover {
    background-color: #004499;
    color: #fff;
    text-decoration: none;
}

.content-link .btn-primary {
    background-color: #0066cc;
}

.content-link .btn-primary:hover {
    background-color: #004499;
}

/* Back link */
.content-back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.content-back-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.content-back-link a:hover {
    text-decoration: underline;
}

/* Align center */
.align-center,
[align="center"] {
    text-align: center;
}

/* Tables */
.content-main table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 6px;
    overflow: hidden;
}

.content-main table th,
.content-main table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.content-main table th {
    background-color: #1a5490;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.content-main table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.content-main table tr:hover {
    background-color: #e8f0f7;
}

/* Blockquotes */
.content-main blockquote {
    margin: 25px 0;
    padding: 20px 25px;
    border-left: 4px solid #1a5490;
    background-color: #f8f9fa;
    font-style: italic;
    border-radius: 0 4px 4px 0;
    color: #5a6c7d;
}

/* Code/pre */
.content-main code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.content-main pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 20px 0;
}

/* Horizontal rules */
.content-main hr {
    margin: 30px 0;
    border: none;
    border-top: 1px solid #ddd;
}

/* Additional professional styling */
.content-main strong,
.content-main b {
    font-weight: 600;
    color: #2c3e50;
}

.content-main em,
.content-main i {
    font-style: italic;
    color: #5a6c7d;
}

/* Better spacing for nested elements */
.content-main p + p {
    margin-top: 15px;
}

.content-main h1 + p,
.content-main h2 + p,
.content-main h3 + p {
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-page {
        padding: 10px 0;
    }
    
    .content-main {
        padding: 20px 15px;
        font-size: 15px;
    }
    
    .content-main h1 {
        font-size: 1.8em;
    }
    
    .content-main h1.byline {
        font-size: 1.6em;
    }
    
    .content-main h2 {
        font-size: 1.4em;
    }
    
    .content-main p.byline {
        font-size: 1.1em;
    }
    
    .creditthumb {
        float: none;
        margin: 0 auto 20px;
        max-width: 100%;
    }
    
    .content-main ul,
    .content-main ol {
        margin-left: 25px;
    }
}
