/*
Theme Name: Dr. Gundry Theme
Theme URI: https://www.milodigital.com
Version: 1.2
Description: Custom Beaver Builder Theme for Dr. Gundry
Author: Milo Digital LLC
Author URI: https://www.milodigital.com
template: bb-theme
*/

/* Typography Reset - Margin Bottom Approach */
h1, h2, h3, h4, h5, h6, p, ul, ol, li {
    margin: 0;
    padding: 0;
}

h1 {
    margin-top: -0.2em;
    margin-bottom: 0.5em;
}

h2 {
    margin-top: -0.6em;
    margin-bottom: 0.75em;
}

h3 {
    margin-top: -0.2em;
    margin-bottom: 0.3em;
}

h4, h5, h6 {
    margin-top: -0.15em;
    margin-bottom: 0.35em;
}

p {
    margin-top: -.6em;
    margin-bottom: 1.5em;
}

/* List styling for proper indentation and wrapping */
ul, ol {
	margin-top: -.6em;
    margin-bottom: 1.5em;
    margin-left: 0;
    padding-left: 2em;
}

li {
    margin-bottom: 0.25em;
		margin-left: 0;
    padding-left: 0;
    text-indent: 0;
}

li:last-child {
    margin-bottom: 0;
}

/* Remove margin from last elements to prevent double spacing */
h1:last-child, 
h2:last-child, 
h3:last-child, 
h4:last-child, 
h5:last-child, 
h6:last-child, 
p:last-child, 
ul:last-child, 
ol:last-child {
    margin-bottom: 0;
}

/* Universal Styles */
.fl-rich-text a {
	text-decoration: underline;
}
input[type="button"].fl-button-button,
input[type="submit"].fl-button-button {
	padding: 12px 24px;
}

/* Full Width Header */
.fl-full-width .fl-page-bar-container.container,
.fl-full-width .fl-page-header-container.container {
    width: 100%;
    margin: auto;
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
}
@media(min-width: 1500px){
    .fl-full-width .fl-page-bar-container.container,
    .fl-full-width .fl-page-header-container.container {
        padding-right: 40px;
        padding-left: 40px;
    }
}

/* Primary Menu */
.fl-logo-img {
	max-height: 50px;
	width: auto !important;
}

/* Secondary Menu */
.fl-page-bar, 
.fl-page-bar li, 
.fl-page-bar li a {
	font-size: 15px;
	line-height: 1em;
	padding-top: .16em;
}
.fl-page-bar .text-center {
	text-align: right;
}

/* ==========================================================================
   Divi Content Styles (Scoped)
   These styles apply only to content built with Divi Builder
   ========================================================================== */

/* Image Alignment - high specificity to override Divi skin */
.et-db #et-boc .et-l .et_pb_module img.alignleft,
#et-boc .et-l img.alignleft,
body .et_builder_inner_content img.alignleft,
body .et_pb_post img.alignleft {
	display: inline;
	float: left;
	margin-right: 15px;
}

.et-db #et-boc .et-l .et_pb_module img.alignright,
#et-boc .et-l img.alignright,
body .et_builder_inner_content img.alignright,
body .et_pb_post img.alignright {
	display: inline;
	float: right;
	margin-left: 15px;
}

#et-boc .et-l .aligncenter,
body .et_builder_inner_content .aligncenter,
body .et_pb_post .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

#et-boc .et-l .alignright,
body .et_builder_inner_content .alignright,
body .et_pb_post .alignright {
	float: right;
}

#et-boc .et-l .alignleft,
body .et_builder_inner_content .alignleft,
body .et_pb_post .alignleft {
	float: left;
}

/* WP Caption */
.et_builder_inner_content .wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	margin-bottom: 10px;
	max-width: 96%;
	padding: 8px;
}

.et_builder_inner_content .wp-caption.alignleft {
	margin: 0 30px 20px 0;
}

.et_builder_inner_content .wp-caption.alignright {
	margin: 0 0 20px 30px;
}

.et_builder_inner_content .wp-caption img {
	margin: 0;
	padding: 0;
	border: 0;
}

.et_builder_inner_content .wp-caption p.wp-caption-text {
	font-size: 12px;
	padding: 0 4px 5px;
	margin: 0;
}

/* Blockquote */
.et_builder_inner_content blockquote {
	margin: 20px 0 30px;
	border-left: 5px solid #2ea3f2;
	padding-left: 20px;
}

.et_builder_inner_content blockquote p {
	padding-bottom: 0;
}

/* Lists - Divi uses #left-area and .entry-content selectors */
.et_builder_inner_content ul,
.et_pb_text ul {
	list-style-type: disc;
	padding: 0 0 23px 1em;
	line-height: 26px;
}

.et_builder_inner_content ol,
.et_pb_text ol {
	list-style-type: decimal;
	list-style-position: inside;
	padding: 0 0 23px;
	line-height: 26px;
}

.et_builder_inner_content ul li ul,
.et_builder_inner_content ul li ol,
.et_pb_text ul li ul,
.et_pb_text ul li ol {
	padding: 2px 0 2px 20px;
}

.et_builder_inner_content ol li ul,
.et_builder_inner_content ol li ol,
.et_pb_text ol li ul,
.et_pb_text ol li ol {
	padding: 2px 0 2px 35px;
}

/* Tables */
.et_builder_inner_content table:not(.variations) {
	border: 1px solid #eee;
	margin: 0 0 15px;
	text-align: left;
	width: 100%;
}

.et_builder_inner_content thead th,
.et_builder_inner_content tr th {
	color: #555;
	font-weight: 700;
	padding: 9px 24px;
}

.et_builder_inner_content tr td {
	border-top: 1px solid #eee;
	padding: 6px 24px;
}

/* Typography */
.et_builder_inner_content p {
	padding-bottom: 1em;
}

.et_builder_inner_content p:last-of-type {
	padding-bottom: 0;
}

.et_builder_inner_content h1,
.et_builder_inner_content h2,
.et_builder_inner_content h3,
.et_builder_inner_content h4,
.et_builder_inner_content h5,
.et_builder_inner_content h6 {
	color: #333;
	padding-bottom: 10px;
	line-height: 1em;
	font-weight: 500;
}

/* Links */
.et_builder_inner_content a {
	color: #2ea3f2;
	text-decoration: none;
}

.et_builder_inner_content a:hover {
	text-decoration: none;
}

/* Code */
.et_builder_inner_content code,
.et_builder_inner_content pre {
	font-family: "Courier New", monospace;
	margin-bottom: 10px;
}

.et_builder_inner_content pre {
	overflow: auto;
	padding: 10px;
}

/* Clear floats after Divi content */
.et_builder_inner_content:after {
	content: "";
	display: table;
	clear: both;
}

/* Remove extra spacing for the old pre-2026 blog posts */
body.pre-2026 .et_pb_section.et_pb_section_0.et_section_specialty.et_section_transparent {
	padding-top: 0px !important;
}

body.pre-2026 .et_pb_section.et_pb_section_0.et_section_specialty.et_section_transparent .et_pb_row_inner.et_pb_row_inner_0 {
	display: none;
}

/* Accessibility */
.pp-content-posts .owl-dots .sr-only {
    color: #fff !important;
}

.fl-module-pp-testimonials .owl-dots .sr-only {
    color: #000 !important;
}

/* Footer */
footer.fl-builder-content .fl-module-icon .fl-module-content {
    height: 27px;
}