/**
 * Conztro Construction - Custom Styles
 * Additional custom styles and overrides
 */

/* ============================================
   PADDING FIXES - Ensure proper spacing
   ============================================ */

/* Force padding on all containers */
.conztro-container,
.conztro-container-content,
.conztro-container-full {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media (min-width: 640px) {
    .conztro-container,
    .conztro-container-content,
    .conztro-container-full {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (min-width: 1024px) {
    .conztro-container,
    .conztro-container-content,
    .conztro-container-full {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }
}

@media (min-width: 1280px) {
    .conztro-container,
    .conztro-container-content,
    .conztro-container-full {
        padding-left: 64px !important;
        padding-right: 64px !important;
    }
}

/* Fix for sections that need breathing room */
.conztro-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* WordPress content area fixes */
.entry-content {
    padding: 0 !important;
}

.entry-content > * {
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   Responsive Layout Styles
   ============================================ */

/* Desktop menu visibility */
@media (min-width: 1024px) {
    .desktop-menu {
        display: flex !important;
    }
    .desktop-cta {
        display: block !important;
    }
    #mobile-menu-btn {
        display: none !important;
    }
    #mobile-menu {
        display: none !important;
    }
}

/* Mobile menu visibility */
@media (max-width: 1023px) {
    .desktop-menu,
    .desktop-cta {
        display: none !important;
    }
    #mobile-menu-btn {
        display: block !important;
    }
}

/* Footer grid responsive */
.footer-grid {
    grid-template-columns: 1fr !important;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 32px !important;
    }
}

/* Footer bottom responsive */
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row !important;
    }
}

/* Hero section responsive */
@media (min-width: 1024px) {
    #hero > .conztro-container > div:first-child {
        flex-direction: row !important;
    }

    #hero > .conztro-container > div:first-child > div:first-child {
        width: 66.666667% !important;
    }

    .hero-badge-desktop {
        display: flex !important;
        width: 33.333333% !important;
    }

    .hero-bottom {
        flex-direction: row !important;
        align-items: flex-end !important;
    }

    .hero-image-wrapper {
        width: 75% !important;
    }

    .hero-img {
        height: 500px !important;
    }

    .hero-stats-wrapper {
        width: 33.333333% !important;
        margin-left: -64px !important;
        margin-bottom: 48px !important;
    }

    .hero-stars {
        display: block !important;
    }
}

/* ============================================
   WordPress Specific Fixes
   ============================================ */

/* WordPress Gallery */
.gallery {
    margin: 0 -10px;
}

.gallery-item {
    padding: 10px;
}

.gallery-icon img {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-icon img:hover {
    transform: scale(1.05);
}

/* Alignment */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto 20px;
}

.alignnone {
    margin: 0 0 20px 0;
}

/* Clear floats */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   WordPress Widget Styles
   ============================================ */
.widget {
    margin-bottom: 40px;
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0d57a6;
    color: #0e1637;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #1e293b;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: #0d57a6;
    padding-left: 5px;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
}

.widget_calendar caption {
    margin-bottom: 15px;
    font-weight: 600;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 10px;
}

.widget_calendar th {
    background-color: #0e1637;
    color: #ffffff;
}

.widget_calendar td#today {
    background-color: #0d57a6;
    color: #ffffff;
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.widget_search button {
    background-color: #0d57a6;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Tag Cloud */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.widget_tag_cloud a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f4f6f9;
    border-radius: 20px;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.widget_tag_cloud a:hover {
    background-color: #0d57a6;
    color: #ffffff;
}

/* ============================================
   Comments Styles
   ============================================ */
.comments-area {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid #e5e7eb;
}

.comments-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #0e1637;
}

.comment-metadata {
    font-size: 0.9rem;
    color: #6b7280;
}

.comment-metadata a {
    color: #6b7280;
}

.comment-content {
    padding-left: 65px;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    color: #0d57a6;
    font-weight: 600;
}

/* Comment Form */
.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0e1637;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #0d57a6;
}

.comment-form .submit {
    background-color: #0d57a6;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #046bd2;
    transform: translateY(-2px);
}

/* ============================================
   Pagination
   ============================================ */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.page-numbers,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.nav-links a:hover {
    border-color: #0d57a6;
    color: #0d57a6;
}

.page-numbers.current,
.nav-links .current {
    background-color: #0d57a6;
    border-color: #0d57a6;
    color: #ffffff;
}

/* ============================================
   404 Page
   ============================================ */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 .page-title {
    font-size: 8rem;
    color: #0d57a6;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404 h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-404 p {
    color: #6b7280;
    margin-bottom: 30px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.conztro-breadcrumbs {
    background-color: #f4f6f9;
    padding: 20px 0;
    margin-bottom: 60px;
}

.conztro-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.conztro-breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.conztro-breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: #6b7280;
}

.conztro-breadcrumbs a {
    color: #6b7280;
}

.conztro-breadcrumbs a:hover {
    color: #0d57a6;
}

.conztro-breadcrumbs .current {
    color: #0e1637;
    font-weight: 600;
}

/* ============================================
   Project Single Page
   ============================================ */
.conztro-single-project {
    padding: 60px 0;
}

.conztro-project-header {
    text-align: center;
    margin-bottom: 40px;
}

.conztro-project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.conztro-project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.conztro-project-meta span {
    color: #6b7280;
}

.conztro-project-meta i {
    color: #0d57a6;
    margin-right: 8px;
}

.conztro-project-featured-image {
    margin-bottom: 40px;
}

.conztro-project-featured-image img {
    width: 100%;
    border-radius: 8px;
}

.conztro-project-content {
    max-width: 900px;
    margin: 0 auto;
}

.conztro-project-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
}

.conztro-project-content h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.conztro-project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.conztro-project-gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.conztro-project-gallery img:hover {
    transform: scale(1.05);
}

/* ============================================
   Notification Styles
   ============================================ */
.conztro-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    animation: conztroSlideInRight 0.3s ease;
}

.conztro-notification-success {
    background-color: #10B981;
    color: #ffffff;
}

.conztro-notification-error {
    background-color: #EF4444;
    color: #ffffff;
}

.conztro-notification-info {
    background-color: #3B82F6;
    color: #ffffff;
}

.conztro-notification-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
    line-height: 1;
}

@keyframes conztroSlideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes conztroSlideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   Animation Styles
   ============================================ */
.conztro-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.conztro-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Back to Top Button
   ============================================ */
.conztro-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #0d57a6;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 87, 166, 0.4);
    z-index: 999;
}

.conztro-back-to-top:hover {
    background-color: #046bd2;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 87, 166, 0.5);
}

.conztro-back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Mobile Menu Styles
   ============================================ */
#mobile-menu-btn:hover {
    color: #0d57a6;
}

#mobile-menu a:hover {
    color: #0d57a6 !important;
}

/* ============================================
   Footer Hover Effects
   ============================================ */
footer a:hover {
    color: #0d57a6 !important;
}

footer ul li a:hover {
    padding-left: 8px;
}

/* Social icons hover */
footer div[style*="border: 1px solid #4b5563"] a:hover {
    background-color: #0d57a6;
    border-color: #0d57a6 !important;
    color: #ffffff !important;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0d57a6 !important;
}

button[type="submit"]:hover {
    background-color: #046bd2 !important;
    transform: translateY(-2px);
}

/* ============================================
   Link Hover Effects
   ============================================ */
a {
    transition: all 0.3s ease;
}

a:hover {
    color: #0d57a6;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .widget {
        margin-bottom: 30px;
    }

    .comment-content {
        padding-left: 0;
    }

    .error-404 .page-title {
        font-size: 5rem;
    }

    .conztro-project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .conztro-notification {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .page-numbers,
    .nav-links a,
    .nav-links span {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .error-404 .page-title {
        font-size: 4rem;
    }

    .conztro-project-gallery {
        grid-template-columns: 1fr;
    }

    footer h4 {
        font-size: 1.125rem;
    }
}

/* ============================================
   Smooth Scroll Behavior
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background-color: #0d57a6;
    color: #ffffff;
}

::-moz-selection {
    background-color: #0d57a6;
    color: #ffffff;
}

/* ============================================
   Focus Visible Styles
   ============================================ */
:focus-visible {
    outline: 2px solid #0d57a6;
    outline-offset: 2px;
}

/* ============================================
   PAGE CONTENT GENERAL STYLING
   ============================================ */

/* Ensure all pages have consistent base styling */
.page .site-main,
.single .site-main,
.archive .site-main,
.search .site-main {
    min-height: calc(100vh - 300px);
}

/* Entry Header Styling */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #0e1637;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0d57a6;
}

/* Post thumbnail styling */
.post-thumbnail {
    margin-bottom: 2rem;
}

.post-thumbnail img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Entry Footer */
.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
}

.entry-footer span {
    margin-right: 1.5rem;
}

.entry-footer a {
    color: #0d57a6;
}

/* Archive and Search Results */
.archive .site-main article,
.search .site-main article {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.archive .site-main article:last-child,
.search .site-main article:last-child {
    border-bottom: none;
}

/* Page Templates - Full Width */
.page-template-full-width .site-main {
    padding: 0;
}

.page-template-full-width .entry-content {
    max-width: 100%;
}

/* Sidebar Layout */
.has-sidebar .site-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .has-sidebar .site-main {
        grid-template-columns: 1fr 350px;
    }
}

.widget-area {
    order: -1;
}

@media (min-width: 1024px) {
    .widget-area {
        order: 1;
    }
}

/* Sticky Post */
.sticky {
    position: relative;
}

.sticky::before {
    content: 'Featured';
    position: absolute;
    top: -10px;
    right: 0;
    background-color: #0d57a6;
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Password Protected Form */
.post-password-form {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.post-password-form label {
    display: block;
    margin-bottom: 1rem;
}

.post-password-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.post-password-form input[type="submit"] {
    background-color: #0d57a6;
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background-color: #046bd2;
}

/* Author Bio */
.author-bio {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-avatar img {
    border-radius: 50%;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0e1637;
    margin-bottom: 0.5rem;
}

.author-description {
    color: #6b7280;
}

/* Attachment Page */
.attachment .entry-content {
    text-align: center;
}

.attachment .entry-content img {
    max-width: 100%;
    height: auto;
}

.attachment .entry-caption {
    margin-top: 1rem;
    font-style: italic;
    color: #6b7280;
}

/* ============================================
   BLOCK EDITOR STYLES SUPPORT
   ============================================ */

/* Alignments */
.alignwide {
    max-width: calc(var(--container-max) + 100px);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Block Colors Support */
.has-primary-color {
    color: #0e1637;
}

.has-secondary-color {
    color: #0d57a6;
}

.has-primary-background-color {
    background-color: #0e1637;
}

.has-secondary-background-color {
    background-color: #0d57a6;
}

/* Block Font Sizes */
.has-small-font-size {
    font-size: 0.875rem;
}

.has-normal-font-size {
    font-size: 1rem;
}

.has-medium-font-size {
    font-size: 1.25rem;
}

.has-large-font-size {
    font-size: 1.5rem;
}

.has-huge-font-size {
    font-size: 2rem;
}

/* ============================================
   RESPONSIVE VIDEO EMBEDS
   ============================================ */

.wp-embed-responsive .wp-has-aspect-ratio iframe,
.wp-embed-responsive .wp-has-aspect-ratio embed,
.wp-embed-responsive .wp-has-aspect-ratio object,
.wp-embed-responsive .wp-has-aspect-ratio video {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wp-embed-responsive .wp-has-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0d57a6;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 2.5rem;
    z-index: 999999;
}

.skip-link:focus {
    left: 2.5rem;
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-secondary: #0000ff;
        --color-text: #000000;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .conztro-back-to-top,
    #mobile-menu-btn,
    #mobile-menu {
        display: none !important;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    .entry-content {
        orphans: 3;
        widows: 3;
    }
    
    .entry-content h1,
    .entry-content h2,
    .entry-content h3 {
        orphans: 3;
        widows: 3;
        page-break-after: avoid;
    }
}

/* ============================================
   Blog Page Styles (Exact UI Template)
   ============================================ */

/* Blog Breadcrumb Area */
.blog-breadcrumb-wrapper {
    position: relative;
    width: 100%;
}

.blog-breadcrumb-area {
    background-color: #f4f6f9;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}

.blog-breadcrumb-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.blog-breadcrumb-area::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient( 90deg, transparent, transparent 40px, rgba(0, 0, 0, 0.025) 40px, rgba(0, 0, 0, 0.025) 41px );
    z-index: 1;
}

.breadcrumb-page-title {
    color: #0e1637;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.breadcrumbs {
    font-size: 0.95rem;
    font-weight: 500;
    color: #0e1637;
}

.breadcrumbs a {
    color: #0e1637;
    text-decoration: none;
}

.breadcrumbs .sep {
    color: #0e1637;
    margin: 0 6px;
}

.breadcrumbs .current {
    color: #0d57a6;
}

.blog-breadcrumb-stripe {
    width: 100%;
    height: 38px;
    background-color: #0e1637;
    background-image: repeating-linear-gradient( 45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 7px );
}
/* Title Section */
.blog-section-title {
    text-align: center;
    margin-bottom: 60px;
}
.blog-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}
.blog-subtitle-line {
    width: 20px;
    height: 2px;
    background-color: #0d57a6;
}
.blog-subtitle-text {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
}
.blog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0e1637;
    margin: 0;
    letter-spacing: -0.02em;
}
.blog-title-accent {
    color: #0d57a6;
}

/* Blog Layout */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 2fr 1fr;
        gap: 60px;
    }
}
.blog-main-container {
    padding-top: 80px;
    padding-bottom: 80px;
}
.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Blog Card */
.blog-card {
    background-color: #ffffff;
    border-radius: 0 16px 16px 16px;
    overflow: visible;
    border: 1px solid #f3f4f6;
    transition: filter 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Angled top-left cut that still allows box shadows and overlapping elements to show outside bounds */
    clip-path: polygon(80px 0, 150% 0, 150% 150%, -50px 150%, -50px 80px, 0 80px);
}
.blog-card:hover {
    box-shadow: none;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.08));
    transform: translateY(-5px);
}
.blog-card-image-wrapper {
    position: relative;
    border-radius: 0 16px 0 0;
    overflow: visible; /* Let ribbon overlap the bottom/left */
}
.blog-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 0 16px 0 0;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-image {
    /* If you want zoom effect on hover but no overflow hidden, could be tricky. 
       Let's stick to simple CSS mapping. */
}
.blog-card-category-ribbon {
    position: absolute;
    bottom: -22px;
    left: -8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.blog-card-category-ribbon .ribbon-text {
    background-color: #0e1637;
    color: #ffffff;
    padding: 12px 24px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 0 100px 100px 0;
    position: relative;
    z-index: 4;
}
.blog-card-category-ribbon .ribbon-fold {
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-top: 8px solid #0d57a6;
    border-left: 8px solid transparent;
    z-index: 2;
}
.blog-card-content {
    padding: 40px 30px 30px 30px; /* extra top padding for the ribbon overlap */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.blog-card-meta i {
    color: #0d57a6;
}
.blog-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    line-height: 1.4;
}
.blog-card-title a {
    color: #0e1637;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: #0d57a6;
}
.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}
.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: #0e1637;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 0.95rem;
    text-transform: capitalize;
    align-self: flex-start;
}
.blog-read-more:hover {
    color: #0d57a6;
    text-decoration-color: #0d57a6;
}

/* Sidebar Styles */
.blog-widget {
    margin-bottom: 40px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}
.blog-widget:last-child {
    margin-bottom: 0;
    border: none;
    padding: 0;
}
.blog-widget .widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0e1637;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}
.blog-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #0d57a6;
}

/* Search Sidebar */
.blog-sidebar .search-form label {
    margin: 0;
}
.blog-sidebar .search-field {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
}
.blog-sidebar .search-field:focus {
    border-color: #0d57a6;
    outline: none;
}
.blog-sidebar .search-submit {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #0e1637;
    padding: 5px;
    cursor: pointer;
    font-size: 1.1rem;
}
.blog-sidebar .search-submit:hover {
    color: #0d57a6;
}

/* Categories Sidebar */
.blog-widget.widget_categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-widget.widget_categories li {
    margin-bottom: 12px;
    border: none;
    padding: 0;
}
.blog-widget.widget_categories li:last-child {
    margin-bottom: 0;
}
.blog-widget.widget_categories a {
    display: block;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #4b5563;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.blog-widget.widget_categories a:hover {
    background-color: #0e1637;
    color: #ffffff;
    border-color: #0e1637;
}

/* Recent Posts Sidebar */
.blog-widget.widget_recent_entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-widget.widget_recent_entries li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0;
    border: none;
}
.blog-widget.widget_recent_entries li:last-child {
    margin-bottom: 0;
}
.recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.recent-post-info a {
    display: block;
    color: #0e1637;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 5px;
}
.recent-post-info a:hover {
    color: #0d57a6;
}
.recent-post-info .post-date {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Promo Widget */
.blog-promo-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e5e7eb;
    background-size: cover;
    background-position: center;
    padding: 50px 30px;
    text-align: center;
    color: #ffffff;
    z-index: 1;
}
.blog-promo-banner .promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 22, 55, 0.5), rgba(14, 22, 55, 0.95));
    z-index: -1;
}
.promo-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.promo-line {
    width: 20px;
    height: 2px;
    background-color: #0d57a6;
}
.promo-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.3;
}
.promo-btn {
    display: inline-block;
    background-color: #0d57a6;
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.promo-btn:hover {
    background-color: #0e1637;
    color: #ffffff;
}

/* Custom Pagination styles */
.conztro-pagination .page-numbers {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #4b5563;
    font-weight: 600;
    margin: 0 4px;
}
.conztro-pagination .page-numbers:hover {
    color: #0d57a6;
}
.conztro-pagination .page-numbers.current,
.conztro-pagination .page-numbers.current:hover {
    background-color: #0d57a6;
    color: #ffffff;
}
.conztro-pagination .next.page-numbers,
.conztro-pagination .prev.page-numbers {
    background-color: transparent;
    color: #6b7280;
    font-size: 0.9rem;
}
.conztro-pagination .next.page-numbers:hover,
.conztro-pagination .prev.page-numbers:hover {
    color: #0d57a6;
}

/* Ensure pagination wrapper matches design */
.conztro-pagination {
    margin-top: 60px;
    display: flex;
    justify-content: flex-start;
}
.conztro-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 5px;
}
/* ============================================
   FAQ Section
   ============================================ */
.faq-accordion { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background-color: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); border: 1px solid #e5e7eb; transition: all 0.3s ease; }
.faq-item.active { background-color: #0e1637; border-color: #0e1637; box-shadow: 0 10px 30px rgba(14, 22, 55, 0.15); }
.faq-question { width: 100%; background: transparent; border: none; padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.25rem; font-weight: 700; color: #0e1637; text-align: left; transition: all 0.3s ease; font-family: 'Inter', sans-serif; }
.faq-item.active .faq-question { color: #ffffff; }
.faq-icon { font-size: 1.1rem; color: #0e1637; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.faq-item.active .faq-icon { color: #ffffff; }
.faq-answer { padding: 0 30px 0 30px; max-height: 0; overflow: hidden; transition: all 0.3s ease; opacity: 0; }
.faq-item.active .faq-answer { padding: 0 30px 24px 30px; max-height: 500px; opacity: 1; }
.faq-answer p { margin: 0; color: #d1d5db; font-size: 1rem; line-height: 1.6; }
@media (max-width: 1024px) { .faq-grid { grid-template-columns: 1fr !important; } }
.hover-btn-blue:hover { background-color: #046bd2 !important; box-shadow: 0 6px 15px rgba(13, 87, 166, 0.4); }

/* Footer Legal Links */
.footer-legal-link {
    color: #ffffff;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-legal-link:hover {
    color: #0e1637; /* Darker Blue / Navy */
}

/* Footer Responsive Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Remove blue outline and highlight on click */
*:focus,
*:active {
    outline: none !important;
}

/* Remove tap highlight color on mobile devices */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: transparent !important;
}

/* Navbar Links and Hover States */
.desktop-menu ul li a,
.nav-link,
.conztro-primary-menu li a {
    color: #0e1637;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.desktop-menu ul li a:hover,
.nav-link:hover,
.conztro-primary-menu li a:hover {
    color: #0d57a6;
    border-bottom: 2px solid #0d57a6;
}

.desktop-menu ul li.current-menu-item a,
.desktop-menu ul li.current_page_item a,
.nav-link.active,
.conztro-primary-menu li.current-menu-item a {
    color: #0d57a6;
    border-bottom: 2px solid #0d57a6;
}

/* Responsive Logo Sizes */
.site-logo {
    height: 85px;
    width: auto;
    max-width: 100%;
    transition: height 0.3s ease;
}

.footer-logo {
    height: 80px;
}

/* Medium screens (tablets, iPads) */
@media (max-width: 1024px) {
    .site-logo {
        height: 65px;
    }
    .footer-logo {
        height: 60px;
    }
}

/* Small screens (mobile phones) */
@media (max-width: 768px) {
    .site-logo {
        height: 50px;
    }
    .footer-logo {
        height: 45px;
    }

    /* Hide hero section button on mobile view */
    #hero .conztro-hero-badge-container,
    #hero .conztro-badge-center-btn,
    #hero .hero-play-btn-overlay,
    #hero .hero-play-btn,
    #hero .hero-image-wrapper button {
        display: none !important;
    }

    /* Reduce gap between FAQ (24/7 card) and Partners section on mobile */
    #faq {
        padding-bottom: 15px !important;
    }

    .simple-partners-section {
        padding-top: 15px !important;
        padding-bottom: 35px !important;
    }

    /* Gallery Section - Mobile Adjustments */
    #services {
        padding-bottom: 25px !important;
    }

    #gallery,
    .conztro-gallery-section {
        padding-top: 25px !important;
        padding-bottom: 30px !important;
    }

    .conztro-gallery-navigation {
        display: none !important;
    }
}
