h1,
h2,
h3,
h4,
.h4,
h5,
h6 {
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 20px 0;
    color: #333;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 25px;
}

h4 {
    font-size: 20px;
}

.h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 15px;
}

video,
embed,
iframe,
object {
    max-width: 100%;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 35px;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 35px;
    clear: right;
}

.aligncenter {
    clear: both;
    text-align: center;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.services-share a,
.breadcrumbs li a,
.related-post-title {
    text-decoration: none;
}

.header-content {
    padding: 15px 0;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
}

.breadcrumbs li::after,
.breadcrumbs li a,
.breadcrumbs li span {
    color: #fff;
}

.breadcrumbs li::after {
    content: "\00bb";
    padding: 0 .3em;
}

.breadcrumbs li:last-of-type::after {
    display: none;
}

.entry-content,
.services-box {
    margin-bottom: 40px;
}

.post-content {
    color: #2f2c2c;
    margin-bottom: 30px;
    padding: 15px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: #fff;
    border-radius: 4px;
    /* Stone Style */
}

blockquote {
    background: #f9f9f9;
    margin: 1.5em 10px;
    padding: 1.5em 20px;
    border-right: 4px solid var(--primary-color);
    font-style: italic;
    color: #555;
}

blockquote p {
    display: inline;
}

::marker {
    color: var(--secondary-color);
}

.post-content ol,
.post-content ul,
.post-thumbnail,
.post-content p,
.wp-audio-shortcode,
.wp-video {
    margin-bottom: 18px;
}

.wp-video {
    margin: auto;
    max-width: 100%;
}

video {
    width: 100%;
    height: 100%;
    position: relative;
}

.post-content img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    /* Stone Style */
}

.post-content ol,
.post-content ul {
    padding-right: 15px;
    margin-right: 20px;
}

/* Headings in Post Content */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #fff;
    margin: 25px 0 15px;
    border-radius: 4px;
    /* Stone Style */
    border-right: 6px solid var(--secondary-color);
    padding: 12px 20px;
    background: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

span.tag {
    padding: 8px 15px;
    font-size: 14px;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Stone Style */
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all .3s ease;
    display: inline-block;
    background: #fff;
}

span.tag:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.post-content ul {
    list-style: none;
    margin-right: 0;
    box-shadow: none;
    background-color: transparent;
    border-radius: 0;
    margin-top: 15px;
    position: relative;
    padding: 0;
}

.post-content li {
    border-radius: 4px;
    /* Stone Style */
    margin-bottom: 10px;
    line-height: 1.6;
    padding: 10px 15px 10px 0;
    background: #f8f9fa;
    border-right: 3px solid transparent;
    transition: all 0.3s;
}

.post-content li:hover {
    border-right-color: var(--secondary-color);
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.post-content ul ul {
    margin: 0 0 0 2em;
}

.post-content ul li {
    position: relative;
    display: block;
    padding-right: 35px;
    /* Space for icon */
}

.post-content ul li:before {
    content: "\f00c";
    /* check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 10px;
    color: var(--secondary-color);
    font-size: 14px;
}

.social-share strong {
    display: block;
}

.services-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid #E7E7E7;
    padding: 20px 0;
    justify-content: center;
    gap: 10px;
}

.services-share a {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 4px;
    /* Stone Style */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0;
    transition: all 0.3s;
}

.services-share a:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.services-share a svg {
    margin-right: 10px;
    fill: #fff;
}

.services-box {
    width: 41%;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    margin-right: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    /* Stone Style */
    border: 1px solid #eee;
    transition: all 0.3s;
}

.services-box img {
    margin-bottom: 20px;
    border-radius: 4px;
    /* Stone Style */
    border: none;
    max-width: 60px;
    /* Limit icon size */
}

.services-box-title {
    margin: 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    max-width: 96%;
    padding: 10px;
    border-radius: 4px;
}

.wp-caption img {
    border: 0;
    height: auto;
    max-width: 100%;
    width: auto;
}

.wp-caption p.wp-caption-text {
    line-height: 1.5;
    margin: 10px 0 0;
    font-size: 14px;
    color: #777;
}

.services-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.services-box:hover img {
    /* Removed rotation, added scale */
    transform: scale(1.1);
    transition: transform 0.3s;
}

.other-services {
    background: #f1f2f9;
    padding: 40px 0;
}

@media(min-width: 768px) {
    .related-post {
        text-align: center;
        width: 25%;
    }

    .services-box {
        width: 28%;
    }
}

@media(min-width: 992px) {
    .header-content {
        padding: 50px 0;
    }

    .services-box {
        width: 13%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Modern Services Page Styles
   ═══════════════════════════════════════════════════════════════════ */

.services-page-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 50%, #f8f9fa 100%);
    padding: 80px 0;
}

.services-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.service-card-page {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-page:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.service-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-page:hover .service-card-img img {
    transform: scale(1.1);
}

.service-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-placeholder i {
    font-size: 3rem;
    color: #d1d5db;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card-page:hover .service-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
    font-size: 1.2rem;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.service-card-page:hover .overlay-btn {
    transform: scale(1);
}

.service-card-content {
    padding: 25px;
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #333;
    margin: 0 0 12px 0;
}

.service-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.service-card-title a:hover {
    color: var(--primary-color);
}

.service-card-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card-actions {
    display: flex;
    gap: 10px;
}

.service-card-actions .service-btn-details {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f5f6ff;
    color: #333;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.service-card-actions .service-btn-details:hover {
    background: var(--primary-color);
    color: #fff;
}

.service-card-actions .service-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
}

.service-card-actions .service-btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
}

.services-pagination {
    text-align: center;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .services-page-section {
        padding: 60px 0;
    }

    .services-grid-page {
        grid-template-columns: 1fr;
    }

    .service-card-actions {
        flex-direction: column;
    }
}