/**
 * Certifications Plugin Styles
 */

/* ----------------------------------------
   1. GRID LAYOUT - Archive & Shortcode
   ---------------------------------------- */
.certifications-container,
.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.certifications-item {
    padding: 15px;
    margin-bottom: 30px;
}

.certifications-card {
    height: 100%;
    background-color: #F4F4F4;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.certifications-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.certifications-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certifications-image {
    text-align: center;
    margin-bottom: 15px;
}

.certifications-thumbnail {
    max-width: 140px;
    height: auto;
    border-radius: 5px;
}

.certifications-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.certifications-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.certifications-description {
    font-size: 14px;
    color: #7C7C7C;
    margin-bottom: 15px;
    text-align: center;
    flex-grow: 1;
}

.certifications-button {
    text-align: center;
    margin-top: auto;
}

.certifications-button .certifications-btn {
    font-size: 25px;
    padding: .375rem .75rem;
}

/* ----------------------------------------
   1.1 LIST LAYOUT
   ---------------------------------------- */
.certifications-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
}

.certifications-list .certifications-list-item {
    width: 100%;
    margin-bottom: 25px;
    padding: 0 15px;
}

.certifications-list .certifications-card {
    display: flex;
    flex-direction: row;
}

.certifications-list .certifications-card-body {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
}

.certifications-list .certifications-image {
    flex: 0 0 180px;
    margin-right: 20px;
    margin-bottom: 0;
    text-align: left;
}

.certifications-list .certifications-content {
    flex: 1;
    padding: 15px 0;
}

.certifications-list .certifications-title {
    text-align: left;
    margin-top: 0;
}

.certifications-list .certifications-description {
    text-align: left;
}

.certifications-list .certifications-button {
    text-align: left;
}

/* ----------------------------------------
   2. SECTION STRUCTURE HANDLING
   ---------------------------------------- */
.certifications-section-wrapper {
    width: 100%;
    position: relative;
    margin-left: 0;
    margin-right: 0;
}

.certifications-section-wrapper.certifications-alternate-background-lightgrey {
    background-color: #f8f8f8; /* Lighter grey to match live site */
}

.certifications-section-wrapper.certifications-alternate-background-white {
    background-color: #FFFFFF;
}

.certifications-section-content {
    position: relative;
    padding: 40px 0; /* Increased from 30px to 40px */
}

/* Add more vertical spacing between sections */
#certifications-intro,
#certifications-prepare-apply,
#certifications-get-certified,
#certifications-after-the-exam,
#certifications-documents {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Add padding to containers within sections */
.certifications-section-wrapper .certifications-container {
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Add margin to sections */
#certifications-overview + .certifications-section-wrapper,
#certifications-intro + .certifications-section-wrapper,
#certifications-prepare-apply + .certifications-section-wrapper,
#certifications-get-certified + .certifications-section-wrapper,
#certifications-after-the-exam + .certifications-section-wrapper {
    margin-top: 30px;
}

/* ----------------------------------------
   3. SINGLE CERTIFICATION PAGE
   ---------------------------------------- */
.certifications-single .certifications-container-of-boxes {
    margin-bottom: 40px;
}

.certifications-single {
    color: #7c7c7c;
    font-family: Roboto, sans-serif;
}

.certifications-single p,
.certifications-single li,
.certifications-single div {
    color: #7c7c7c; /* Ensure consistent text color throughout */
}

.certifications-single h2 {
    margin-bottom: 20px;
}

.certifications-single .certifications-container {
    max-width: 1140px;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto;
}

/* Section spacing improvements */
#certifications-overview,
#certifications-intro,
#certifications-prepare-apply,
#certifications-get-certified,
#certifications-after-the-exam,
#certifications-documents {
    padding: 20px 0;
}

/* Row and column alignment */
.certifications-single .certifications-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.certifications-single .certifications-col-12,
.certifications-single .certifications-col-md-9,
.certifications-single .certifications-col-md-3 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

/* ----------------------------------------
   4. OVERVIEW SECTION
   ---------------------------------------- */
#certifications-overview {
    padding-top: 30px;
    padding-bottom: 30px;
}

#certifications-overview .certifications-container {
    padding-top: 15px;
    padding-bottom: 15px;
}

#certifications-overview p {
	font-family: Roboto, sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #7c7c7c;
    font-weight: 500;
}

/* Remove spacing that was needed for the title */
#certifications-overview + .certifications-section-wrapper {
    margin-top: 20px;
}


/* ----------------------------------------
   5. STICKY NAVIGATION MENU
   ---------------------------------------- */
.certifications-sticky-top {
    position: sticky;
    top: 200px; /* Fixed position below Flatsome header */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 89; /* Below Flatsome's z-index */
    background-color: #fff;
    transition: top 0.3s ease;
    padding-top: 10px; /* Added padding to the top */
}

@media (max-width: 849px) {
.certifications-sticky-top {
    position: sticky;
    top: 115px;
    padding-top: 0px;
}
.certifications-credential-sections-links {
    padding: 0px !important;
}	
	
}

/* Add some space to the container to avoid content jumps */
.certifications-container-of-boxes {
    padding-top: 30px; /* Adjust based on your sticky nav height */
}

.certifications-credential-sections-links {
    padding: 15px 0 10px; /* Increased top padding from 10px to 15px */
    width: 100%;
}

.certifications-sticky-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.certifications-sticky-menu li {
    margin: 0 15px;
}

.certifications-sticky-menu a {
    color: #003e6b;
	font-family: Roboto condensed, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.certifications-sticky-menu a:hover,
.certifications-sticky-menu a.certifications-active {
    color: #007d89;
    font-weight: 700;
	border-bottom: 3px solid #007d89;
}

/* Highlight effect for active menu item */
.certifications-sticky-menu a.certifications-active {
    position: relative;
}

.certifications-sticky-menu a.certifications-active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #f98e2b;
}

/* ----------------------------------------
   6. BACK TO TOP LINKS
   ---------------------------------------- */
.certifications-back-to-top {
    position: absolute;
    top: 30px;
    right: 0;
}

.certifications-back-to-top a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.certifications-back-to-top a:hover {
    color: #f98e2b; /* Changed from #007bff to match site orange */
    text-decoration: none; /* Removed underline */
}

.certifications-back-to-top a:before {
    content: "↑";
    margin-right: 5px;
    font-size: 12px;
}

/* ----------------------------------------
   7. SECTION TITLES
   ---------------------------------------- */
.certifications-text-to-uppercase {
    text-transform: uppercase;
    font-weight: 700; /* Increased from 600 to 700 for bolder headings */
    margin-bottom: 25px; /* Increased from 20px */
    color: #007d89;
    font-size: 30px;
    padding-left: 0; /* Remove any indentation */
    line-height: 1.2;
    letter-spacing: 0.5px; /* Add slight letter spacing for emphasis */
}

/* Fix specific section title alignment */
#certifications-intro .certifications-text-to-uppercase,
#certifications-prepare-apply .certifications-text-to-uppercase,
#certifications-get-certified .certifications-text-to-uppercase,
#certifications-after-the-exam .certifications-text-to-uppercase,
#certifications-documents .certifications-text-to-uppercase {
    padding-left: 0;
    margin-left: 0;
}

/* Add more distinct styling to section headings */
.certifications-single h3 {
    margin-top: 30px;
    margin-bottom: 20px;
	font-size: 30px;
    font-weight: 700;
    color: #007d89;
}

/* Add more space after section titles */
.certifications-text-to-uppercase + p,
.certifications-text-to-uppercase + div,
.certifications-text-to-uppercase + ul,
.certifications-text-to-uppercase + ol {
    margin-top: 15px;
}

/* ----------------------------------------
   8. CERTIFICATION FEATURED IMAGE
   ---------------------------------------- */
.certifications-featured-image {
    text-align: center;
    margin-top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent !important;
}

.certifications-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: none;
    background-color: transparent !important;
}

/* ----------------------------------------
   9. ACTION BUTTONS
   ---------------------------------------- */
.certifications-action-buttons {
    margin: 20px 0;
}

.certifications-action-buttons .certifications-btn,
.certifications-action-buttons a.certifications-btn {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0em;
    background-color: #f98e2b; /* Orange button */
    color: #fff;
	display: inline;
    border: 1px solid transparent;
	padding: .375rem .75rem;
    text-transform: uppercase;
	text-decoration: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    text-align: center;
	margin-right: 0;
	margin-left: 0;
}

.certifications-action-buttons .certifications-btn:hover,
.certifications-action-buttons a.certifications-btn:hover {
    background-color: rgba(255, 255, 255, 0.64); /* Semi-transparent white background on hover */
    color: #f98e2b; /* Orange text on hover */
    border: 1px solid #f98e2b; /* 1px orange border */
}

/* ----------------------------------------
   10. CONTENT FORMATTING
   ---------------------------------------- */
.certifications-field-content {
    line-height: 1.6;
    color: #444;
    font-size: 16px;
}

.certifications-field-content h4 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #007d89;
    font-size: 25px;
}

.certifications-field-content p {
    margin-bottom: 1.2em;
}

.certifications-field-content strong,
.certifications-field-content b {
    font-weight: 700;
    color: #7c7c7c;
}

.certifications-field-content ul,
.certifications-field-content ol {
    margin-left: 2rem;
    margin-bottom: 1.8rem;
    padding-left: 0;
}

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

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

.certifications-field-content li {
    margin-bottom: 0.8em;
    padding-left: 0.3em;
    line-height: 1.6;
}

/* Add space between list items */
.certifications-field-content li + li {
    margin-top: 8px;
}

/* Improve nested lists */
.certifications-field-content ul ul,
.certifications-field-content ol ol,
.certifications-field-content ul ol,
.certifications-field-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.certifications-field-content table {
    width: auto;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.certifications-field-content table th,
.certifications-field-content table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
}

.certifications-field-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.certifications-field-content a {
    color: #f98e2b;
    text-decoration: underline;
}

.certifications-field-content a:hover {
    text-decoration: none;
}

/* ----------------------------------------
   11. HEADER STYLING
   ---------------------------------------- */
/* Header background styling */
.certifications-single .certifications-section-wrapper.certifications-credentials-header {
    background-color: rgb(0, 44, 92);
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
}

/* Ensure the header section spans full width */
.certifications-single .certifications-credentials-header section.certifications-section {
    background-color: rgb(0, 44, 92) !important;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
}

/* Breadcrumb styling */
.certifications-single .certifications-credentials-header span,
.certifications-single .certifications-credentials-header span a,
.certifications-single .certifications-credentials-header span.breadcrumb_last,
.certifications-single .certifications-credentials-header .certifications-yoast-divider {
    color: white !important;
}

/* Remove margin from column inside header */
.certifications-single .certifications-credentials-header .certifications-col-12 {
    margin: 0;
    padding: 0;
}

/* ----------------------------------------
   12. FOOTER STYLING
   ---------------------------------------- */
footer a.certifications-back-to-top,
footer a#certifications-top-link,
a[href="#top"].certifications-back-to-top {
    display: none !important;
}

/* ----------------------------------------
   13. PAGINATION STYLING
   ---------------------------------------- */
.certifications-pagination {
    width: 100%;
    clear: both;
    text-align: center;
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.certifications-pagination .certifications-page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
    background-color: #fff;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.certifications-pagination .certifications-page-numbers.certifications-current {
    background-color: #f98e2b;
    color: #fff;
    border-color: #f98e2b;
}

.certifications-pagination .certifications-page-numbers:hover:not(.certifications-current) {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.certifications-pagination .certifications-prev,
.certifications-pagination .certifications-next {
    font-weight: bold;
}

/* ----------------------------------------
   14. ERROR MESSAGES
   ---------------------------------------- */
.certifications-error {
    padding: 15px;
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    margin: 20px 0;
    font-weight: 500;
    border-radius: 3px;
}