/**
 * Company Darta - Inner Page Styles
 * Consistent styling with front-page design
 */

/* ============================================ */
/* PAGE HERO SECTION */
/* ============================================ */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 140px 0 80px;
    margin-top: 0;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}



.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(139, 21, 56, 0.85) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero-content {
    text-align: center;
    color: var(--white);
}

.page-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* PAGE HERO SUBTITLE */
/* ============================================ */
.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero-compact {
    padding: 140px 0 80px;
}

/* Breadcrumb Styles */
.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.page-breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: var(--white);
}

.page-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
}

.page-breadcrumb .current {
    color: rgba(255, 255, 255, 0.9);
}

/* Rank Math / Yoast Breadcrumb Override */
.page-breadcrumb p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-breadcrumb .rank-math-breadcrumb a,
.page-breadcrumb p a {
    color: var(--accent);
}

.page-breadcrumb .rank-math-breadcrumb .separator,
.page-breadcrumb p .separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
}

/* ============================================ */
/* PAGE CONTENT SECTION */
/* ============================================ */
.page-content-section {
    padding: 80px 0;
    background: var(--white);
}

.page-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-article {
    background: var(--white);
}

/* Featured Image */
.page-featured-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Entry Content - WordPress Content Styles */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.entry-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 35px;
    margin-bottom: 15px;
}

.entry-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: var(--accent);
    text-decoration-color: var(--primary);
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 0 0 25px 0;
    padding-left: 25px;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.entry-content ol li {
    margin-bottom: 12px;
    padding-left: 5px;
}

/* Blockquotes */
.entry-content blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    background: var(--light-gray);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--dark-gray);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

/* Images in Content */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content figure {
    margin: 30px 0;
}

.entry-content figcaption {
    font-size: 13px;
    color: var(--medium-gray);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
}

.entry-content table th,
.entry-content table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #e9ecef;
}

.entry-content table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
}

.entry-content table tr:nth-child(even) {
    background: var(--light-gray);
}

.entry-content table tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* WordPress Block Styles */
.entry-content .wp-block-button .wp-block-button__link {
    background: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.entry-content .wp-block-button .wp-block-button__link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--primary);
    color: var(--white);
}

/* Columns */
.entry-content .wp-block-columns {
    margin-bottom: 30px;
}

/* Separator */
.entry-content hr,
.entry-content .wp-block-separator {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 40px 0;
}

/* Code Blocks */
.entry-content code {
    background: var(--light-gray);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--primary);
}

.entry-content pre {
    background: var(--secondary);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ============================================ */
/* CTA SECTION (Optional - can add to pages) */
/* ============================================ */
.page-cta-section {
    background: var(--light-gray);
    padding: 60px 0;
    text-align: center;
}

.page-cta-section h3 {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.page-cta-section p {
    color: var(--medium-gray);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================ */
/* SERVICES LISTING PAGE */
/* ============================================ */
.services-listing-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card-item {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.service-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-card-image {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-item:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 21, 56, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-item:hover .service-card-overlay {
    opacity: 1;
}

.view-service {
    color: var(--white);
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: 4px;
}

.service-card-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.service-card-icon i {
    font-size: 48px;
    color: var(--white);
}

.service-card-content {
    padding: 25px;
}

.service-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-card-title a:hover {
    color: var(--primary);
}

.service-card-excerpt {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card-link:hover {
    color: var(--accent);
    gap: 12px;
}

.services-pagination {
    margin-top: 50px;
    text-align: center;
}

.services-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-pagination .page-numbers:hover,
.services-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.no-services-found {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 12px;
}

.no-services-found i {
    font-size: 60px;
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.no-services-found h3 {
    margin-bottom: 10px;
}

.no-services-found p {
    color: var(--medium-gray);
    margin-bottom: 25px;
}

/* Services CTA */
.services-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    text-align: center;
}

.services-cta-section .cta-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.services-cta-section .cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-cta-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--accent);
    color: var(--secondary);
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-light:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================ */
/* THANK YOU PAGE */
/* ============================================ */
.thank-you-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.thank-you-icon {
    margin-bottom: 25px;
}

.thank-you-icon i {
    font-size: 80px;
    color: #28a745;
}

.thank-you-content h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.thank-you-message {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.thank-you-info {
    background: var(--light-gray);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
}

.thank-you-info h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.thank-you-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thank-you-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--dark-gray);
    font-size: 15px;
}

.thank-you-info li i {
    color: #28a745;
    font-size: 14px;
}

.thank-you-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.thank-you-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.thank-you-actions .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.thank-you-actions .btn-primary:hover {
    background: var(--primary-dark);
}

.thank-you-actions .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.thank-you-actions .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.thank-you-contact {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.thank-you-contact p {
    font-size: 14px;
    color: var(--medium-gray);
    margin-bottom: 8px;
}

.thank-you-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.thank-you-contact a:hover {
    color: var(--accent);
}

/* ============================================ */
/* ABOUT US PAGE */
/* ============================================ */
.about-intro-section {
    padding: 80px 0;
    background: var(--white);
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-content .section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
}

.about-intro-content h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 25px;
}

.about-intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.about-intro-text p {
    margin-bottom: 20px;
}

.about-intro-image {
    position: relative;
}

.about-intro-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-intro-image .about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 12px;
    z-index: -1;
}

/* Stats Section */
.about-stats-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.stat-card .stat-icon i {
    font-size: 24px;
    color: var(--secondary);
}

.stat-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.stat-card .stat-number::after {
    content: '+';
}

.stat-card .stat-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 21, 56, 0.1);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.feature-card .feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.7;
    margin: 0;
}

/* About Team Section */
.about-team-section {
    padding: 80px 0;
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--accent);
    color: var(--white);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

/* About CTA Section */
.about-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    text-align: center;
}

.about-cta-section .cta-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-cta-section .cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ============================================ */
/* BLOG & ARCHIVE PAGES */
/* ============================================ */
.blog-listing-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Archive Results Info */
.archive-results-info {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.archive-results-info p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Responsive: make blog grid single column on tablets and phones */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    /* Ensure layout columns stack (main + sidebar) cleanly */
    .col-lg-8, .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Sidebar becomes full-width and flows under content */
    .blog-sidebar {
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        margin-top: 30px;
    }

    /* Make blog cards and images responsive */
    .blog-card {
        flex-direction: column;
    }

    .blog-card-image {
        height: auto;
    }

    .blog-card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .blog-card-content {
        padding: 18px;
    }

    .blog-card-title { font-size: 1.15rem; }
}

/* Further tightening for small phones */
@media (max-width: 480px) {
    .blog-grid { gap: 16px; }
    .blog-card-content { padding: 14px; }
    .blog-card-meta { gap: 10px; font-size: 0.8rem; }
    .blog-card-title { font-size: 1rem; }
    .blog-card-excerpt { font-size: 0.92rem; }
    .blog-card-image { height: auto; }
    .blog-search-wrapper { max-width: 100%; padding: 0 12px; }
}

/* Blog Card */
.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 21, 56, 0.15);
}

/* Blog Card Image */
.blog-card-image {
    display: block;
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Blog Card Content */
.blog-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Blog Card Meta */
.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-meta i {
    color: var(--primary);
    font-size: 0.8rem;
}

.blog-card-meta a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-meta a:hover {
    color: var(--primary);
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: var(--primary);
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Blog Read More Button */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.blog-read-more i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--accent);
}

.blog-read-more:hover i {
    transform: translateX(5px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}

.blog-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--white);
}

.blog-pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.blog-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.blog-pagination .prev,
.blog-pagination .next {
    padding: 0 20px;
}

.blog-pagination .dots {
    border: none;
    background: transparent;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 80px 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.no-posts-found i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.no-posts-found h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.no-posts-found p {
    color: var(--text-color);
    margin-bottom: 25px;
}

.no-posts-found .btn-primary-theme {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.no-posts-found .btn-primary-theme:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ============================================ */
/* BLOG SIDEBAR */
/* ============================================ */
.blog-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 5px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Sidebar Widget */
.sidebar-widget {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.blog-sidebar .widget-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}
.blog-sidebar .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* Search Widget */
.search-widget .search-input-wrapper {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-widget .search-input-wrapper:focus-within {
    border-color: var(--primary);
}

.search-widget .search-field {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 0.95rem;
}

.search-widget .search-submit {
    padding: 12px 18px;
    background: var(--primary);
    border: none;
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-widget .search-submit:hover {
    background: var(--secondary);
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list li:last-child a {
    border-bottom: none;
}

.categories-list .cat-name {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.categories-list .cat-count {
    background: #f0f0f0;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.categories-list li a:hover .cat-name {
    color: var(--primary);
    padding-left: 8px;
}

.categories-list li a:hover .cat-count {
    background: var(--primary);
    color: var(--white);
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-posts-list li a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-posts-list li a:hover .recent-post-thumb img {
    transform: scale(1.1);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recent-post-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary);
    line-height: 1.4;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-posts-list li a:hover .recent-post-title {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Archives Widget */ 
.archives-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archives-list li {
    margin-bottom: 0;
}

.archives-list li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.archives-list li:last-child a {
    border-bottom: none;
}

.archives-list li a:hover {
    color: var(--primary);
    padding-left: 8px;
}

/* No Items */
.no-items {
    color: #6c757d;
    font-style: italic;
    padding: 10px 0;
}

/* ============================================ */
/* BLOG LIVE SEARCH */
/* ============================================ */
.blog-search-wrapper {
    max-width: 500px;
    margin: 0 auto 40px;
}

.blog-search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 5px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.blog-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.15);
}

.blog-search-box > i {
    color: #999;
    font-size: 1rem;
    margin-right: 12px;
}

.blog-search-box:focus-within > i {
    color: var(--primary);
}

.blog-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
    min-width: 0;
}

.blog-search-box input::placeholder {
    color: #aaa;
}

.search-clear {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0 5px;
    line-height: 1;
}

.search-clear:hover {
    color: var(--primary);
}

/* Search Loader */
.search-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-results-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: none;
}

/* No Search Results */
.no-search-results {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.no-search-results i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-search-results h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.no-search-results p {
    color: var(--text-color);
}

.no-search-results a {
    color: var(--primary);
    text-decoration: underline;
}

/* ============================================ */
/* RESPONSIVE STYLES */
/* ============================================ */
@media (max-width: 991px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .page-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    .blog-listing-section {
        padding: 60px 0;
    }

    .blog-grid {
        gap: 25px;
    }

    .blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-top: 50px;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-layout{grid-template-columns: 1fr;}
}

@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 50px;
    }

    .page-title {
        font-size: 1.85rem;
    }

    .page-content-section {
        padding: 50px 0;
    }

    .page-content-wrapper {
        padding: 0 15px;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
    }

    .entry-content blockquote {
        padding: 20px;
    }

    .page-breadcrumb {
        font-size: 13px;
        flex-wrap: wrap;
    }

    .contact-form-card {
        padding: 25px 20px;
    }
    
    .contact-page-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info-box,
    .contact-map-box {
        padding: 25px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-intro-image {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thank-you-content {
        padding: 40px 25px;
    }
    
    .thank-you-actions {
        flex-direction: column;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta-light,
    .btn-cta-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Force same-selector mobile overrides to beat earlier !important centering */
@media (max-width: 768px) {
    .compact-card.contact-card .info-card-body {
        align-items: flex-start !important;
        text-align: left !important;
        gap: 8px !important;
    }

    .compact-card.contact-card .direct-contact-link {
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 6px 8px !important;
    }
}

@media (max-width: 576px) {
    .page-hero {
        padding: 90px 0 40px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .page-content-section {
        padding: 40px 0;
    }

    .entry-content h2 {
        font-size: 1.35rem;
    }

    .entry-content table {
        font-size: 13px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 8px 10px;
    }
    
    .form-card-header h2 {
        font-size: 1.5rem;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-image {
        height: 320px;
    }
}

/* ============================================ */
/* BLOG LIVE SEARCH */
/* ============================================ */
.blog-search-wrapper {
    max-width: 500px;
    margin: 0 auto 40px;
}

.blog-search-box {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 5px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.blog-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.15);
}

.blog-search-box > i {
    color: #999;
    font-size: 1rem;
    margin-right: 12px;
}

.blog-search-box:focus-within > i {
    color: var(--primary);
}

.blog-search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 1rem;
    background: transparent;
    min-width: 0;
}

.blog-search-box input::placeholder {
    color: #aaa;
}

.search-clear {
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0 5px;
    line-height: 1;
}

.search-clear:hover {
    color: var(--primary);
}

/* Search Loader */
.search-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-results-info {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    display: none;
}

/* No Search Results */
.no-search-results {
    text-align: center;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.no-search-results i {
    font-size: 3rem;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.no-search-results h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.no-search-results p {
    color: var(--text-color);
}

.no-search-results a {
    color: var(--primary);
    text-decoration: underline;
}

/* ============================================ */
/* SIDEBAR STICKY FIX */
/* ============================================ */
.blog-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 5px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

@media (max-width: 991.98px) {
    .blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        margin-top: 50px;
    }
}

@media (max-width: 767.98px) {
    .blog-search-wrapper {
        margin-bottom: 30px;
    }
    
    .blog-search-box {
        padding: 3px 15px;
    }
    
    .blog-search-box input {
        padding: 10px 0;
        font-size: 0.95rem;
    }
}

/* ============================================ */
/* CONTACT PAGE - COMPLETE FIX */
/* Replace your contact page CSS with this */
/* ============================================ */

/* Quick Contact Bar */
.contact-quick-bar {
    background: var(--white);
    padding: 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    text-decoration: none;
    border-right: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.quick-contact-item:last-child {
    border-right: none;
}

.quick-contact-item:hover {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.quick-contact-item.whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(37, 211, 102, 0.05) 100%);
}

.quick-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B1538 0%, #1a1a1a 100%);
    border-radius: 10px;
    flex-shrink: 0;
}

.quick-contact-item.whatsapp .quick-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.quick-icon i {
    font-size: 1.1rem;
    color: #ffffff;
}

.quick-text {
    display: flex;
    flex-direction: column;
}

.quick-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.quick-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Main Contact Section */
.contact-main-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px; /* give more room to the form column */
    gap: 36px;
    align-items: start;
}

/* Contact Form Wrapper (scoped to contact page) */
.contact-main-section .contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 32px; /* slightly smaller so map has more room */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.contact-main-section .contact-form-header {
    margin-bottom: 35px;
}

.contact-main-section .form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    color: #8B1538;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-main-section .contact-form-header h2 {
    font-size: 1.75rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-main-section .contact-form-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modern Form Styles */
.contact-main-section .modern-contact-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.contact-main-section .modern-contact-form .form-field {
    position: relative;
}

.contact-main-section .modern-contact-form .form-field.full-width {
    grid-column: 1 / -1;
}

.contact-main-section .modern-contact-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.contact-main-section .modern-contact-form label i {
    color: #8B1538;
    font-size: 0.85rem;
}

.contact-main-section .modern-contact-form label .required {
    color: #dc3545;
}

.contact-main-section .modern-contact-form input,
.contact-main-section .modern-contact-form select,
.contact-main-section .modern-contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    color: #1a1a1a;
    background: #fafafa;
    transition: all 0.3s ease;
}

.contact-main-section .modern-contact-form input:focus,
.contact-main-section .modern-contact-form select:focus,
.contact-main-section .modern-contact-form textarea:focus {
    outline: none;
    border-color: #8B1538;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 21, 56, 0.1);
}

.contact-main-section .modern-contact-form input::placeholder,
.contact-main-section .modern-contact-form textarea::placeholder {
    color: #aaa;
}

.contact-main-section .modern-contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.contact-main-section .modern-contact-form textarea {
    resize: vertical;
    min-height: 130px;
}

/* Form Footer (scoped) */
.contact-main-section .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}

.contact-main-section .form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
}

.contact-main-section .form-note i {
    color: #28a745;
}

.contact-main-section .btn-submit-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px; /* slightly smaller */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-main-section .btn-submit-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.3);
}

.contact-main-section .btn-submit-modern i {
    transition: transform 0.3s ease;
}

.contact-main-section .btn-submit-modern:hover i {
    transform: translateX(5px);
}

/* Contact Info Sidebar (scoped) */
.contact-main-section .contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-main-section .info-card {
    background: #ffffff !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    display: block; /* ensure header sits above body, not side-by-side */
}

.contact-main-section .info-card-header {
    display: flex;
    flex-direction: row; /* icon and title inline */
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent !important;
    color: var(--primary) !important;
    text-align: left;
}

.contact-main-section .info-card-header i {
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent);
    color: var(--white) !important;
}

.contact-main-section .info-card-header h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary) !important;
}

.contact-main-section .info-card-body {
    padding: 12px 12px;
    background: var(--white) !important;
}

/* Ensure cards and children don't overflow their container */
.contact-main-section .info-card,
.contact-main-section .info-card * {
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
}

/* Reorder sidebar: map first, office second, then direct contact and social */
.contact-main-section .contact-info-sidebar .map-card { order: 1; }
.contact-main-section .contact-info-sidebar .office-card { order: 2; }
.contact-main-section .contact-info-sidebar .contact-card { order: 3; }
.contact-main-section .contact-info-sidebar .social-card { order: 4; }

/* Make the embedded map larger and visible on desktop */
.contact-main-section .map-container iframe {
    width: 100%;
    height: 520px; /* make map even larger to prioritize visibility */
    display: block;
    border-radius: 8px;
}

/* Below-form row layout (concise, use .compact-card for targeted sizing) */
.contact-below-row {
    margin-top: 20px;
}

.contact-below-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .contact-below-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .contact-below-grid { grid-template-columns: 1fr; }
}

/* New compact-card class targets only the moved cards; safer and easier to maintain */
.compact-card {
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
    max-height: none;
    overflow: visible;
}

.compact-card .info-card-header { display:flex; align-items:center; gap:8px; }
.compact-card .info-card-header i { font-size:14px; }
.compact-card .info-card-header h3 { font-size:14px; margin:0; }
.compact-card .info-card-body { padding:6px 8px; font-size:13px; line-height:1.25; }

.compact-card .direct-contact-link { display:flex; align-items:center; gap:8px; padding:4px 6px; }
.compact-card .direct-contact-link i { font-size:14px; }
.compact-card .direct-contact-link .contact-label { font-size:11px; color:var(--medium-gray); display:block; }
.compact-card .direct-contact-link .contact-value { font-size:13px; font-weight:600; }

.compact-card .social-links-grid { display:flex; gap:8px; align-items:center; }
.compact-card .social-links-grid .social-link { width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; font-size:14px; padding:0; }

@media (max-width:768px) {
    .compact-card { min-height:auto; }
}

/* Removed compact-card hover overrides (restored default hover behavior for these elements)
   and added a transform-reset for contact area to prevent container movement on hover. */

/* Prevent any hover-triggered transforms inside the contact area that shift containers */
.contact-main-section .info-card:hover,
.contact-main-section .direct-contact-link:hover,
.contact-main-section .social-links-grid .social-link:hover,
.contact-main-section .btn-submit-modern:hover {
    transform: none !important;
}

/* Layout phone and email on the same row inside the Direct Contact compact card */
.compact-card.contact-card .info-card-body {
    display: flex !important;
    gap: 12px !important;
    align-items: center ;
    flex-wrap: wrap !important;
}
.compact-card.contact-card .direct-contact-link {
    margin-bottom: 0 !important;
    flex: 1 1 220px !important;
}

@media (max-width:560px) {
    .compact-card.contact-card .info-card-body { flex-direction: column; align-items: stretch; }
    .compact-card.contact-card .direct-contact-link { flex: 1 1 auto; }
}

/* Tighter stacking rules for direct contact on smaller screens
   Reduce padding, collapse gaps and remove large min-heights so stacked cards don't look oversized */
@media (max-width: 768px) {
    .compact-card { padding: 6px !important; min-height: auto !important; }
    .compact-card .info-card-body,
    .contact-main-section .info-card-body {
        padding: 8px 8px !important;
        background: var(--white) !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .compact-card .direct-contact-link,
    .contact-main-section .direct-contact-link {
        padding: 8px 10px !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }

    .compact-card.contact-card .info-card-body { gap: 8px !important; }
    .compact-card.contact-card .direct-contact-link { flex: 1 1 auto !important; }
    /* Left-align stacked content instead of centring */
    .compact-card { justify-content: flex-start !important; }
    .compact-card .direct-contact-link,
    .contact-main-section .direct-contact-link {
        justify-content: flex-start !important;
        text-align: left !important;
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    .compact-card { padding: 6px !important; }
    .compact-card .info-card-body,
    .contact-main-section .info-card-body {
        padding: 6px 8px !important;
        font-size: 13px !important;
    }

    .compact-card .direct-contact-link,
    .contact-main-section .direct-contact-link {
        padding: 6px 8px !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }

    .compact-card .direct-contact-link i,
    .contact-main-section .direct-contact-link i {
        width: 34px !important;
        height: 34px !important;
        font-size: 12px !important;
    }
}

/* More specific overrides to beat existing !important center rules */
@media (max-width: 768px) {
    .contact-main-section .contact-info-sidebar .compact-card.contact-card .info-card-body {
        align-items: flex-start !important;
        text-align: left !important;
        padding: 6px 8px !important;
    }

    .contact-main-section .contact-info-sidebar .compact-card.contact-card .direct-contact-link,
    .contact-main-section .contact-info-sidebar .compact-card.contact-card .direct-contact-link * {
        justify-content: flex-start !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 6px 8px !important;
    }

    /* Fallback: general contact info-card-body */
    .contact-main-section .info-card-body {
        align-items: flex-start !important;
        text-align: left !important;
    }
}

/* Slightly reduce heavy paddings on sidebar items so they don't appear oversized */
.contact-main-section .contact-info-sidebar .info-card { padding-bottom: 0; }
.contact-main-section .contact-info-sidebar .info-card .info-card-body { padding: 8px 10px; }

/* Ensure the form column isn't squeezed: allow the form to take full available width */
.contact-main-section .contact-form-wrapper {
    min-width: 0;
}

.contact-main-section .modern-contact-form {
    min-width: 0;
}

/* Reduce padding inside direct contact links so they look compact */
.contact-main-section .direct-contact-link {
    padding: 10px;
}

/* Smaller social icons */
.contact-main-section .social-links-grid .social-link {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
}

/* Prevent horizontal overflow from long content */
.contact-main-section {
    overflow-x: hidden;
}

/* Desktop tweaks: place map and office stacked, then compact contact & social */
@media (min-width: 1025px) {
    .contact-main-section .contact-info-sidebar {
        display: flex;
        flex-direction: column;
    }

    .contact-main-section .map-card { flex: 0 0 auto; }
    .contact-main-section .office-card { flex: 0 0 auto; }
    .contact-main-section .contact-card { flex: 0 0 auto; }
    .contact-main-section .social-card { flex: 0 0 auto; }
}

/* Ensure all images/iframes/cards never exceed their column */
.contact-main-section .contact-info-sidebar img,
.contact-main-section .contact-info-sidebar iframe,
.contact-main-section .contact-info-sidebar svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Office Card */
.contact-main-section .office-address {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-main-section .office-address > i {
    color: #8B1538;
    font-size: 1.25rem;
    margin-top: 3px;
}

.contact-main-section .office-address strong {
    display: block;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.contact-main-section .office-address p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-main-section .btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    background: #D4AF37;
    color: #1a1a1a;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-main-section .btn-directions:hover {
    background: #1a1a1a;
    color: #ffffff;
}

/* Direct Contact Links */

.contact-main-section .direct-contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.contact-main-section .direct-contact-link:last-child {
    margin-bottom: 0;
}

.contact-main-section .direct-contact-link:hover {
    background: #f8f9fa;
}

.contact-main-section .direct-contact-link > i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-main-section .direct-contact-link:hover > i {
    background: #8B1538;
    color: #ffffff;
}

.contact-main-section .contact-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 2px;
}

.contact-main-section .contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Map Card */

.contact-main-section .map-card .info-card-body {
    padding: 0 !important;
    background: #ffffff !important;
}

.contact-main-section .map-container {
    padding: 15px;
    background: #ffffff !important;
}

.contact-main-section .map-container iframe {
    border-radius: 8px;
}

/* Social Card */

.contact-main-section .social-card .info-card-body {
    padding: 0 !important;
}

.contact-main-section .social-links-grid {
    display: flex;
    gap: 12px;
    padding: 20px 25px;
    justify-content: center;
    background: #ffffff !important;
}

.contact-main-section .social-links-grid .social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.contact-main-section .social-links-grid .social-link.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
}

.contact-main-section .social-links-grid .social-link.facebook:hover {
    background: #1877F2;
    color: #ffffff;
}

.contact-main-section .social-links-grid .social-link.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #E1306C;
}

.contact-main-section .social-links-grid .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
}

.contact-main-section .social-links-grid .social-link.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077B5;
}

.contact-main-section .social-links-grid .social-link.linkedin:hover {
    background: #0077B5;
    color: #ffffff;
}

.contact-main-section .social-links-grid .social-link.twitter {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

.contact-main-section .social-links-grid .social-link.twitter:hover {
    background: #000;
    color: #ffffff;
}

.contact-main-section .social-links-grid .social-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #FF0000;
}

.contact-main-section .social-links-grid .social-link.youtube:hover {
    background: #FF0000;
    color: #ffffff;
}

/* FAQ Section */
.contact-faq-section {
    padding: 80px 0;
    background: #ffffff;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h2 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.faq-header p {
    color: #666;
    font-size: 1.05rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid #8B1538;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.faq-item h3 i {
    color: #D4AF37;
}

.faq-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 1200px) {
    .contact-layout {
        grid-template-columns: 1fr 350px;
        gap: 35px;
    }
}

@media (max-width: 1024px) {
    .quick-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-contact-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .quick-contact-item:nth-child(2) {
        border-right: none;
    }

    .quick-contact-item:nth-child(3),
    .quick-contact-item:nth-child(4) {
        border-bottom: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-main-section .contact-info-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .contact-quick-bar {
        margin-top: 0px;
        margin-bottom: 40px;
    }

    .quick-contact-grid {
        grid-template-columns: 1fr;
        border-radius: 12px;
    }

    .quick-contact-item {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 20px;
    }

    .quick-contact-item:last-child {
        border-bottom: none;
    }

    .contact-main-section {
        padding: 50px 0;
    }

    .contact-main-section .contact-form-wrapper {
        padding: 25px;
        border-radius: 16px;
    }

    .contact-main-section .modern-contact-form .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-main-section .form-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contact-main-section .btn-submit-modern {
        width: 100%;
        justify-content: center;
    }

    .contact-main-section .contact-info-sidebar {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-faq-section {
        padding: 50px 0;
    }

    .faq-item {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .quick-icon {
        width: 44px;
        height: 44px;
    }

    .quick-icon i {
        font-size: 1rem;
    }

    .quick-label {
        font-size: 0.7rem;
    }

    .quick-value {
        font-size: 0.85rem;
    }

    .contact-main-section .contact-form-wrapper {
        padding: 20px;
    }

    .contact-main-section .contact-form-header h2 {
        font-size: 1.5rem;
    }

    .contact-main-section .form-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .contact-main-section .modern-contact-form input,
    .contact-main-section .modern-contact-form select,
    .contact-main-section .modern-contact-form textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .contact-main-section .btn-submit-modern {
        padding: 14px 25px;
        font-size: 0.95rem;
    }

    .faq-header h2 {
        font-size: 1.5rem;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1rem;
    }

    .contact-main-section .social-links-grid {
        flex-wrap: wrap;
    }

    .contact-main-section .social-links-grid .social-link {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .contact-main-section .info-card-header {
        padding: 18px 20px;
    }

    .contact-main-section .info-card-body {
        padding: 20px;
    }
}
