/* Main CSS for desktop view */

/* Prevent horizontal overflow (e.g. marquee/wide elements) from enlarging the layout
   viewport on tablet/mobile. When that happens, the visual viewport shifts relative to the
   layout viewport and the sticky header gets cut off at the top.
   `clip` (not `hidden`) does not create a scroll container, so
   position: sticky keeps working. */
html,
body {
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styling */
.site-header {
    border-bottom: solid 1px #e0e0e0;
    padding: 15px 0px 15px 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
}

.site-logo img {
    max-height: 50px;
    vertical-align: middle;
}

/* Title and text Styling */
a {
    text-decoration: none;
}

h1 {
    font-size: 42px;
    font-weight: 500;
    line-height: 48px;
}

h2 {
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
}

h3 {
    font-size: 22px;
    font-weight: 500;
    line-height: 28px;
}

h4 {
    font-size: 18px;
    font-weight: 500;
    line-height: 22px;
}

h5 {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

h6 {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

/* Menu Styling */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation ul li {
    display: inline-block;
    position: relative;
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    display: block;
}

/* Dropdown Menu Styling */
.main-navigation ul ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 2px 35px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 999;
}

.main-navigation ul li:hover > ul {
    display: block;
}

.main-navigation ul ul li {
    display: block;
    width: 100%;
}

.main-navigation ul ul li a {
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.main-navigation ul ul li a:hover {
    color: #fff;
}

/* Layout Styling for Main Content and Sidebar */
.site-content {
    display: block;
    max-width: 1200px;
    overflow: hidden;
}

.main-content {
    display: block;
    width: 60%;
    float: left;
}

.sidebar {
    background-color: transparent;
    padding: 1.5rem;
    border: solid 1px #e0e0e0;
    border-radius: 5px;
    width: 30%;
    float: right;
}

.no-sidebar .main-content {
    width: 100%;
    float: none;
    padding-right: 0;
}

.widget {
    margin-bottom: 2rem;
}

.widget h3 {
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.5rem;
}

.widget h4 {
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.5rem;
}

.widget h5 {
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.5rem;
}

.widget h6 {
    border-bottom: 1px solid #e2e2e2;
    padding-bottom: 0.5rem;
}

ol.wp-block-latest-comments {
    margin-left: -37px;
}

.wp-block-search__input {
    border: 1px solid #949494;
    border-radius: 3px;
}

.wp-block-search__button.wp-element-button {
    color: #fff;
    font-size: 14px;
    border-radius: 3px;
}

/* Footer Styling */
.site-footer {
    background-color: transparent;
    padding: 1.8rem 0rem;
	margin-top: 50px;
    border-top: solid 1px #e0e0e0;
}

.default-footer p {
    margin: 0;
}

/* General Styling */
.entry-content {
    line-height: 1.8;
}

.entry-content h1, .entry-content h2, .entry-content h3 {
    text-decoration: none;
}

.entry-content a {
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: none;
}

/* Comments Styling */
.comments-area {
    margin-top: 40px;
}

.comment-list {
    margin-left: -40px;
}

.comment-list li {
    list-style: none;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
    margin-bottom: 15px;
    width: 100%;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 14px;
}

.comment-form-comment textarea {
    height: 220px;
    resize: vertical;
}

.form-submit {
    margin-top: 20px;
	margin-bottom: 0px;
}

.form-submit input[type="submit"] {
    background-color: #0073aa;
    color: #fff;
    padding: 13px 25px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 16px;
}

.form-submit input[type="submit"]:hover {
    border: none;
}

/* Styling for thumbnails */
.post-thumbnail {
    margin-bottom: 0px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Styling for meta information */
.post-meta {
    font-size: 14px;
    margin: 10px 0;
    padding: 10px 15px 10px 15px;
    background: #f9f9f9;
    border-radius: 3px;
}

.post-meta span {
    margin-right: 10px;
}

.post-meta .post-date,
.post-meta .post-author {
    color: #666;
}

.post-date {
    margin-left: 10px;
}

.post-author {
    margin-left: 10px;
}

/* Styling for 404 Page */
.default-404 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    flex-direction: column;
    text-align: center;
}

/* Breadcrumb Styling */
.bellamy-breadcrumb-container,
.altdsn-breadcrumb-container {
    padding: 0px 0px 35px 0px;
    font-size: 14px;
    font-weight: 500;
}

.bellamy-breadcrumb,
.altdsn-breadcrumb {
    margin-top: -15px;
}

.bellamy-breadcrumb-container:empty,
.altdsn-breadcrumb-container:empty {
    display: none;
}

/* 404 Style */
.default-404 a {
	margin-top: 35px;
}

/* CPT Custom Details Styling */
.custom-details {
    background-color: #f9f9f9;
    padding: 20px;
    margin-top: 30px;
    border-radius: 5px;
}

/* Hide responsive menu icon on desktop */
@media only screen and (min-width: 1025px) {
    .responsive-menu-icon {
        display: none !important;
    }
}

/* Hide hamburger when Header Builder is active */
.bellamy-header-builder .responsive-menu-icon,
.altdsn-header-builder .responsive-menu-icon,
.site-header.bellamy-header-builder .responsive-menu-icon,
.site-header.altdsn-header-builder .responsive-menu-icon {
    display: none !important;
}

/* Still appears in default header */
.default-header .responsive-menu-icon {
    display: block;
}


/* ==========================================================================
   WordPress core classes (alignment, captions, galleries, accessibility)
   ========================================================================== */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; clear: both; }
.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption img { display: block; max-width: 100%; height: auto; }
.wp-caption-text { margin: 0.5em 0 0; font-size: 0.875em; text-align: center; }
.gallery-caption { display: block; font-size: 0.875em; }
.sticky { display: block; }
.bypostauthor { display: block; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.bellamy-custom-header img { display: block; width: 100%; height: auto; }

/* Post tags (single post) */
.post-tags,
.tags-links {
    margin: 30px 0;
    clear: both;
}
.post-tags-label {
    font-weight: 600;
    margin-right: 6px;
}
.post-tags a,
.tags-links a {
    display: inline-block;
    margin: 0 6px 8px 0;
    padding: 4px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.875em;
    line-height: 1.5;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.post-tags a:hover,
.tags-links a:hover {
    opacity: 1;
}
