/* 
 * Contact Center Modern Redesign 
 * Professional & Premium UI System
 */

:root {
    --primary-blue: #032b5f;
    --accent-cyan: #019ad6;
    --accent-blue: #019ad6;
    --soft-white: #f8fafc;
    --card-bg: #ffffff;
    --shadow-premium: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Page Overrides */
.page-template-page-contact-center,
.page-template-page-about {
    font-family: var(--font-body);
    background-color: var(--soft-white);
    color: #4a5568;
}

.page-template-page-contact-center h1,
.page-template-page-contact-center h2,
.page-template-page-contact-center h3,
.page-template-page-contact-center h4,
.page-template-page-about h1,
.page-template-page-about h2,
.page-template-page-about h3,
.page-template-page-about h4 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
}

/* Hero Section Refined */
.modern-hero {
    position: relative;
    padding: 160px 0 120px;
    background: linear-gradient(rgba(3, 43, 95, 0.85), rgba(3, 43, 95, 0.95)),
        url('/wp-content/uploads/2018/08/pexels-photo-140983.jpeg');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    margin-bottom: -80px;
    z-index: 1;
}

.modern-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--soft-white), transparent);
}

.modern-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.modern-hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 20px;
    letter-spacing: -2px;
    line-height: 1;
}

.modern-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Section Containers */
.modern-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Card Design System */
.premium-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensure cards on news listing (and other modern pages) don't stretch vertically unless in a grid */
.modern-redesign .premium-card {
    height: auto;
    margin-bottom: 30px;
    /* Default margin to prevent touching when stacked */
}

.modern-redesign .premium-card:last-child {
    margin-bottom: 0;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 24px;
}

/* Feature Grid for Telesales */
.telesales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.modern-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modern-check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.modern-check-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--accent-cyan);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Market Research Improvements */
.research-card {
    border-left: 4px solid var(--accent-blue);
}

.research-card h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

/* Micro-animations */
@keyframes fadeInUpModern {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUpModern 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .modern-hero h1 {
        font-size: 3rem;
    }

    .premium-card {
        padding: 30px;
    }
}

/* Case Studies Specific Styles */
.case-studies-page {
    padding-bottom: 80px;
}

.logo-category-section {
    margin-bottom: 60px;
}

.category-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-header h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 0;
    font-family: 'Outfit', sans-serif;
}

.industry-block {
    margin-bottom: 40px;
}

.industry-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.industry-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #e2e8f0, transparent);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}

.logo-item {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 140px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-cyan);
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
}

.logo-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }

    .logo-item {
        padding: 20px;
        height: 110px;
    }

    .category-header h3 {
        font-size: 1.5rem;
    }
}

/* Global Grid System */
.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.align-center {
    align-items: center;
}

.align-start {
    align-items: start;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Single Post & News Card Details */
.news-detail-template .news-hero {
    padding: 100px 0 80px;
    min-height: 450px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.post-meta-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.news-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff !important;
}

.grid-layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.primary-content .post-article {
    padding: 50px;
    background: #fff;
    margin-bottom: 40px;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.entry-content p {
    margin-bottom: 25px;
}

.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.sidebar-widget {
    margin-bottom: 30px;
    padding: 30px;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-cyan);
    display: inline-block;
}

.news-card-small .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.news-card-small .card-body {
    padding: 25px;
}

.news-card-small h4 {
    font-size: 1.2rem;
    margin-top: 10px;
    line-height: 1.4;
}

/* Ensure premium cards have spacing when stacked */
.modern-redesign .premium-card {
    margin-bottom: 30px;
}

.modern-redesign .grid-2 .premium-card,
.modern-redesign .grid-3 .premium-card,
.modern-redesign .grid-4 .premium-card {
    margin-bottom: 0;
    /* Let grid handle the gap */
}

.page-id-3427 .nav-info,
.page-id-3656 .nav-info {
    display: none !important;
}

/* Search Submit Icon Fix */
.widget.widget_search .search-form .search-submit {
    background: #0b3568 !important;
    color: #ffffff !important;
    font-family: FontAwesome !important;
    font-size: 0 !important;
    /* Hide text */
    width: 45px !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 5px 5px 0 !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    margin-top: 0 !important;
    cursor: pointer !important;
    text-indent: 0 !important;
}

.widget.widget_search .search-form .search-submit:before {
    content: "\f002" !important;
    font-family: FontAwesome !important;
    font-size: 18px !important;
    color: #ffffff !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
}

.widget.widget_search .search-form {
    display: flex !important;
    position: relative !important;
}

.widget.widget_search .search-form label {
    flex-grow: 1 !important;
    margin: 0 !important;
}

.widget.widget_search .search-form .search-field {
    height: 40px !important;
    padding: 0 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 5px 0 0 5px !important;
    width: 100% !important;
}