/*--------------------------------------------------------------
# IBCT Directory Styles - CORRECTED 12.1 (Title Style Update)
--------------------------------------------------------------*/

/* --- General & Utility --- */
.ibct-single-center .site-main,
.ibct-archive-center .site-main {
    max-width: 1140px;
    margin: 2em auto;
    padding: 0 20px;
}

.section-title {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}


/* === HEADER SECTION (Restored & Verified Styles) === */
.ibct-single-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 2.5em;
    padding-bottom: 2em;
    border-bottom: 1px solid #eee;
}

.ibct-header-main {
    flex: 1;
    display: flex;
    gap: 20px;
    align-items: center;
    min-width: 300px;
}

.ibct-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.ibct-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibct-main-info {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* UPDATED TITLE STYLE */
.ibct-main-info .entry-title {
    margin: 0 0 0.2em 0;
    /* Reduced bottom margin slightly */
    font-size: 2.4em;
    /* Increased font size */
    line-height: 1.15;
    /* Adjust line height for bigger font */
    font-weight: 700;
    /* Make it bolder (700 or 'bold') */
    color: #1a2b48;
    /* Slightly darker, more professional blue/charcoal */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    /* Modern system font stack */
}

/* Subheader Row */
.ibct-subheader-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    min-height: 40px;
}

.subheader-item {
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    white-space: nowrap;
}

.subheader-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #dcdcdc;
}

.subheader-item:first-child {
    padding-left: 0;
}

.subheader-item:first-child::before {
    display: none;
}

/* Rating */
.subheader-rating {
    order: 1;
    flex-direction: row;
    gap: 5px;
}

.subheader-rating .center-stars {
    color: #FFD700;
    font-size: 1.4em;
    line-height: 1;
    display: inline-block;
}

.subheader-rating .center-stars .star {
    display: inline-block;
    margin: 0 1px;
}

.subheader-rating .center-stars .star.empty {
    color: #ccc;
}

.subheader-rating .reviews-link {
    display: inline-block;
    font-size: 0.8em;
    color: #777;
    text-decoration: none;
    line-height: 1;
    margin-left: 3px;
}

/* Status */
.subheader-status {
    order: 2;
}

.subheader-status .status-text {
    font-size: 0.95em;
    font-weight: 500;
    line-height: 1.2;
}

.status-text.status-certified {
    color: #28a745;
}

.status-text.status-pending {
    color: #ffc107;
}

.status-text.status-expired {
    color: #dc3545;
}

.status-text.status-suspended {
    color: #6c757d;
}

.status-text.status-unknown {
    color: #6c757d;
}

/* Phone */
.subheader-phone {
    order: 3;
}

.subheader-phone .phone-number {
    font-size: 0.95em;
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.subheader-phone .phone-number .dashicons {
    font-size: 1.1em;
    color: #555;
}

/* Button */
.subheader-button {
    order: 4;
    padding-right: 0;
    margin-left: auto;
    /* Push button right if needed */
}

.subheader-button .ibct-visit-button {
    display: inline-block;
    background-color: #28a745;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
    text-align: center;
}

.subheader-button .ibct-visit-button:hover {
    background-color: #218838;
    color: #fff;
}

/* Sidebar */
.ibct-header-sidebar {
    flex-basis: 320px;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 15px 20px;
    align-self: flex-start;
}

.ibct-business-details h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.0em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.6em;
    font-weight: 600;
}

.ibct-business-details h3 .dashicons.dashicons-location {
    font-size: 1.3em;
    color: #666;
}

.ibct-business-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1em 0;
}

.ibct-business-details li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8em;
    font-size: 0.90em;
    color: #444;
    line-height: 1.5;
}

.ibct-business-details li:last-child {
    margin-bottom: 0;
}

.ibct-business-details li .dashicons {
    font-size: 1.4em;
    color: #555;
    margin-top: 1px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.ibct-business-details li a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-word;
}

.ibct-business-details li a:hover {
    text-decoration: underline;
}

/* Sidebar Social Icons - Ensure Horizontal */
.ibct-header-sidebar .ibct-social-icons {
    list-style: none;
    padding: 0.8em 0 0 0;
    margin: 0;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.ibct-header-sidebar .ibct-social-icons li {
    margin-bottom: 0;
}

.ibct-header-sidebar .ibct-social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #555;
    transition: all 0.2s ease;
    background-color: #fff;
}

.ibct-header-sidebar .ibct-social-icons a:hover {
    color: #000;
    border-color: #999;
    background-color: #f0f0f0;
}

.ibct-header-sidebar .ibct-social-icons .dashicons {
    font-size: 18px;
    width: auto;
    height: auto;
    line-height: 1;
    color: inherit !important;
}

/* === END HEADER SECTION STYLES === */


/* === ABOUT & GALLERY WRAPPER (Styles from Corrected 11) === */
.ibct-about-gallery-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 2.5em;
}

/* About Column - Card Style */
.ibct-about-column.card-style {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e7e7e7;
}

.ibct-about-column .section-title {
    /* Use general .section-title style */
}

.ibct-about-column .about-content {
    font-size: 0.95em;
    line-height: 1.7;
    color: #555;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.ibct-about-column .about-content.collapsed {
    /* Style applied by JS if used */
}

.read-more-toggle {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
}

.read-more-toggle .dashicons {
    vertical-align: middle;
    font-size: 1.1em;
    margin-left: 3px;
}

.read-more-toggle:hover {
    text-decoration: underline;
}

/* Gallery Column */
.ibct-gallery-column {}

.ibct-main-gallery-image {
    margin-bottom: 15px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ibct-main-gallery-image img#ibct-main-gallery-image-display {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

.ibct-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.thumbnail-item a {
    display: block;
    position: relative;
    padding-top: 66.66%;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-item a.active {
    border-color: #0073aa;
}

.thumbnail-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.thumbnail-item a:hover img {
    opacity: 0.8;
}

/* === END ABOUT & GALLERY WRAPPER === */


/* === DETAILS GRID & REST OF CONTENT (Restored & Verified Styles) === */
.ibct-main-article {
    clear: both;
}

.center-main-description {
    display: none;
}

/* Hide placeholder */

.center-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin-bottom: 2.5em;
    padding-top: 1em;
    /* Add some space above grid */
    border-top: 1px solid #eee;
    /* Separator */
}

.detail-section {
    background-color: #f9f9f9;
    padding: 1.5em;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* Restore subtle shadow */
}

.detail-section h3 {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.2em;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.5em;
    font-weight: 600;
}

.detail-section p, .detail-section ul {
    margin-bottom: 0.8em;
    line-height: 1.6;
    font-size: 0.95em;
    color: #444;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infrastructure-details li {
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
}

.infrastructure-details li:last-child {
    margin-bottom: 0;
}

.infrastructure-details li .dashicons {
    margin-right: 10px;
    font-size: 1.2em;
    color: #777;
    width: 20px;
    text-align: center;
}

.infrastructure-details li strong {
    display: inline-block;
    min-width: 130px;
    margin-right: 5px;
    color: #555;
    font-weight: 600;
}

.infrastructure-details li .ibct-available {
    color: #4CAF50;
}

.infrastructure-details li .ibct-unavailable {
    color: #F44336;
}

.infrastructure-details li .dashicons-layout {
    color: #0073aa;
}

/* Old Gallery Hidden */
.center-gallery {
    display: none;
}

.ibct-main-article .entry-footer {
    margin-top: 2em;
    font-size: 0.9em;
}

/* === END DETAILS GRID === */


/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {

    /* Stack About/Gallery */
    .ibct-about-gallery-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .ibct-gallery-column {
        order: -1;
    }

    /* Adjust Header Stack */
    .ibct-header-main {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Update responsive title size */
    .ibct-main-info .entry-title {
        font-size: 2.0em;
    }

    .ibct-subheader-info {
        align-items: flex-start;
    }

    .subheader-item:not(:first-child)::before {
        display: none;
    }

    .subheader-item {
        padding: 5px 15px 5px 0;
        align-items: flex-start;
        text-align: left;
        min-height: auto;
    }

    .subheader-item:first-child {
        padding-left: 0;
    }

    .subheader-button {
        margin-left: 0;
    }
}

@media (max-width: 768px) {

    /* Stack Header/Sidebar */
    .ibct-single-header {
        flex-direction: column;
    }

    .ibct-header-sidebar {
        flex-basis: auto;
        width: 100%;
    }

    /* Update responsive title size */
    .ibct-main-info .entry-title {
        font-size: 1.9em;
    }

    /* Stack Details Grid */
    .center-details-grid {
        grid-template-columns: 1fr;
    }

    .ibct-header-sidebar .ibct-social-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {

    /* Adjust Thumbs */
    .ibct-gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 5px;
    }

    /* Adjust Header Sizes */
    .ibct-main-info .entry-title {
        font-size: 1.7em;
        /* Further reduce */
    }

    .subheader-item {
        padding-right: 10px;
    }

    .subheader-rating .center-stars {
        font-size: 1.2em;
    }

    .subheader-status .status-text, .subheader-phone .phone-number {
        font-size: 0.9em;
    }

    .subheader-button .ibct-visit-button {
        padding: 8px 15px;
        font-size: 0.9em;
        width: 100%;
        order: 5;
        margin-top: 10px;
    }
}

/* --- END RESPONSIVE --- */

/* --- Archive Page Styles --- */
/* ... Ensure these are present ... */

/* === New Modern Single Center Styles === */
.ibct-hero-section {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.ibct-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.ibct-hero-main {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.ibct-logo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ibct-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibct-main-info {
    flex: 1;
}

.ibct-main-info .entry-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

/* Updated Rating Section Styles */
.ibct-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-average {
    color: #666;
    font-size: 0.9em;
    margin-right: 0.5rem;
}

.ibct-rating .stars {
    color: #ffd700;
    font-size: 1.2em;
}

.ibct-rating .status {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
}

.status-active {
    background: #e3f7ed;
    color: #0a6245;
}

.status-pending {
    background: #fff8e5;
    color: #94740c;
}

.status-expired {
    background: #ffe5e5;
    color: #cc0000;
}

.status-suspended {
    background: #f0f0f0;
    color: #666;
}

.ibct-quick-info {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 0.95em;
}

.ibct-quick-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ibct-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0073aa;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ibct-primary-button:hover {
    background: #005c8a;
    transform: translateY(-1px);
}

/* Content Grid Layout */
.ibct-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Main Column */
.ibct-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Gallery Grid */
.ibct-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    padding-top: 75%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Enhanced Gallery Styles */
.ibct-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0;
}

.gallery-item {
    position: relative;
    padding-top: 75%;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.gallery-item a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* PhotoSwipe Customization */
.pswp__bg {
    background: #000;
}

.pswp__ui--fit .pswp__top-bar,
.pswp__ui--fit .pswp__caption {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Infrastructure Grid */
.infrastructure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.infra-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.infra-item .dashicons {
    font-size: 2em;
    width: auto;
    height: auto;
    color: #0073aa;
    margin-bottom: 0.75rem;
}

.infra-item h3 {
    font-size: 1em;
    margin: 0 0 0.5rem;
    color: #333;
}

.infra-item p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Updated Infrastructure List Styles */
.infrastructure-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Infrastructure List Items - Fixed Status Display */
.infrastructure-list li {
    display: flex;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.infra-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.infra-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.infrastructure-list .status {
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block !important;
    visibility: visible !important;
}

.infrastructure-list li.available .status {
    color: #0a0;
}

.infrastructure-list li.unavailable .status {
    color: #d00;
}

.infrastructure-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.infrastructure-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.infra-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.infra-item-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.infra-item-label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.infrastructure-list .dashicons {
    font-size: 1.25em;
    width: auto;
    height: auto;
    color: #0073aa;
}

.infrastructure-list li.available {
    border-left: 4px solid #4CAF50;
}

.infrastructure-list li.unavailable {
    border-left: 4px solid #dc3545;
}

.infrastructure-list li.unavailable .dashicons {
    color: #dc3545;
}

.infrastructure-list .status {
    font-size: 0.85em;
    color: #666;
    display: block;
}

.infrastructure-list li.available .status {
    color: #4CAF50;
}

.infrastructure-list li.unavailable .status {
    color: #dc3545;
}

/* Sidebar Cards */
.ibct-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.ibct-card h2 {
    font-size: 1.2em;
    color: #1a1a1a;
    margin: 0 0 1.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-list .dashicons {
    color: #0073aa;
    font-size: 1.2em;
    width: auto;
    height: auto;
}

.contact-list div {
    flex: 1;
}

.contact-list strong {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 0.25rem;
}

.contact-list p {
    margin: 0;
    color: #333;
}

.contact-list a {
    color: #0073aa;
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    color: #666;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: #0073aa;
    color: #fff;
    transform: translateY(-2px);
}

.cert-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-details li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95em;
}

.cert-details li:last-child {
    margin-bottom: 0;
}

.cert-details strong {
    color: #666;
}

/* Infrastructure Columns Layout */
.infrastructure-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.infrastructure-columns ul {
    margin: 0;
    padding: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .ibct-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ibct-hero-content {
        flex-direction: column;
    }

    .ibct-hero-main {
        flex-direction: column;
        text-align: center;
    }

    .ibct-logo {
        margin: 0 auto;
    }

    .ibct-quick-info {
        justify-content: center;
    }

    .infrastructure-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .ibct-hero-section {
        padding: 1rem;
    }

    .ibct-main-info .entry-title {
        font-size: 2em;
    }

    .ibct-section {
        padding: 1.5rem;
    }
}

/* Stars Certification Card Styles */
.ibct-stars-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.ibct-stars-card h2 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stars-rating {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    font-size: 3em;
    /* Increased from 2.5em */
    line-height: 1;
}

.stars-rating .star {
    transition: all 0.3s ease;
}

/* Updated metallic gold style */
.stars-rating.golden-stars .star.filled {
    color: #FFD700;
    background: linear-gradient(45deg, #FFD700, #FDB931, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(255, 215, 0, 0.3);
}

/* Updated metallic silver style */
.stars-rating.silver-stars .star.filled {
    color: #C0C0C0;
    background: linear-gradient(45deg, #C0C0C0, #E8E8E8, #C0C0C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(192, 192, 192, 0.3);
}

.stars-rating .star.filled:hover {
    transform: scale(1.1);
}

.stars-label {
    font-size: 1.1em;
    font-weight: 500;
    color: #666;
    margin-top: 1.5rem;
}

/* New Certification Status Display */
.cert-status-display {
    margin-top: 1.5rem;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 0.2rem;

}

.cert-status-display .status-header {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-status-display strong {
    color: #333;
    font-size: 1.1em;
    white-space: nowrap;
}

.status-badge {
    font-size: 1.2em;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.status-badge.status-active {
    background: #e3f7ed;
    color: #0a6245;
}

.status-badge.status-pending {
    background: #fff8e5;
    color: #94740c;
}

.status-badge.status-expired {
    background: #ffe5e5;
    color: #cc0000;
}

.status-badge.status-suspended {
    background: #f0f0f0;
    color: #666;
}

/* Certification Warning Styles */
.certification-warning {
    margin: 0.5rem 0;
    padding: 0.75rem;
    background: #fff5f5;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.certification-warning .dashicons {
    color: #dc3545;
    font-size: 1.1em;
    margin-top: 2px;
}

.certification-warning p {
    margin: 0;
    font-size: 0.85em;
    color: #dc3545;
    line-height: 1.4;
}

/* Tooltip styles */
.status-badge[data-tooltip] {
    position: relative;
    cursor: help;
}

.status-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 300px;
    padding: 0.75rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.9em;
    line-height: 1.4;
    z-index: 100;
}

.status-badge[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Visitor Rating System */
.visitor-rating-section {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.visitor-rating-stars {
    display: flex;
    gap: 0.25rem;
}

.visitor-rating-stars .star {
    cursor: pointer;
    font-size: 1.5em;
    color: #ccc;
    transition: color 0.2s ease;
}

.visitor-rating-stars .star:hover,
.visitor-rating-stars .star.selected {
    color: #ffd700;
}

.rating-message {
    margin-top: 0.5rem;
    font-size: 0.9em;
    color: #666;
}

.rating-error {
    color: #dc3545;
}

.rating-success {
    color: #28a745;
}

/* Certification Bubble Style */
.certification-bubble {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 500;
    margin-left: 0.5rem;
}

.certification-bubble.status-active {
    background: #e3f7ed;
    color: #0a6245;
}

.certification-bubble.status-pending {
    background: #fff8e5;
    color: #94740c;
}

.certification-bubble.status-expired {
    background: #ffe5e5;
    color: #cc0000;
}

.certification-bubble.status-suspended {
    background: #f0f0f0;
    color: #666;
}

/* Taxonomy Terms Display */
.ibct-taxonomies {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.taxonomy-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.taxonomy-label {
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.taxonomy-label .dashicons {
    font-size: 1.1em;
    width: auto;
    height: auto;
    color: #0073aa;
}

.taxonomy-term {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.9em;
    color: #444;
    transition: all 0.2s ease;
}

.taxonomy-term:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Specific taxonomy colors */
.taxonomy-group.categories .taxonomy-term {
    background: #f2e8ff;
    /* Soft purple */
    color: #6200ee;
    /* Deep purple */
}

.taxonomy-group.methods .taxonomy-term {
    background: #e8f4ff;
    /* Changed to soft cyan/blue */
    color: #0057b8;
    /* Changed to deeper blue */
}

.taxonomy-group.specialties .taxonomy-term {
    background: #e8fff3;
    /* Soft mint */
    color: #00875a;
    /* Deep green */
}

/* Leadership Card Styles */
.ibct-leadership-card .director-profile {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.ibct-leadership-card .director-photo {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.ibct-leadership-card .director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibct-leadership-card .director-info {
    flex: 1;
}

.ibct-leadership-card .director-name {
    font-size: 1.2em;
    margin: 0 0 0.2em;
    color: #1a1a1a;
}

.ibct-leadership-card .director-title {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.75rem;
}

.ibct-leadership-card .director-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ibct-leadership-card .director-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0073aa;
    text-decoration: none;
    font-size: 0.9em;
}

.ibct-leadership-card .director-contact a:hover {
    text-decoration: underline;
}

.ibct-leadership-card .director-contact .dashicons {
    color: #666;
    font-size: 1.2em;
    width: auto;
    height: auto;
}

/* Meta Box Director Photo Upload Styles */
.director-photo-wrapper {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.director-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    border: 2px solid #ddd;
    margin-bottom: 0.5rem;
}

.director-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Certification Benefits Section */
.certification-highlights {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.highlight-stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certification-impact, .success-stories {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.certification-impact h3, .success-stories h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.certification-cta {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #e3f7ed 0%, #d1f2e6 100%);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.certification-cta h3 {
    color: #0a6245;
    font-size: 1.5em;
    margin-bottom: 1rem;
}

.certification-cta p {
    color: #333;
    margin-bottom: 1.5rem;
}

.certification-cta .ibct-primary-button {
    background: #0a6245;
    padding: 1rem 2rem;
}

.certification-cta .ibct-primary-button:hover {
    background: #084a34;
}

/* Performance Metrics Section */
.ibct-performance-metrics {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.metrics-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-card .dashicons {
    font-size: 2.5em;
    width: auto;
    height: auto;
    color: #0073aa;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.metric-label {
    color: #666;
    font-size: 0.9em;
    margin-top: 0.2em;
}

.metrics-scales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metric-scale-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #eee;
}

.scale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.scale-header h3 {
    margin: 0;
    font-size: 1em;
    color: #333;
}

.scale-value {
    font-weight: 600;
    color: #0073aa;
}

.scale-bars {
    display: flex;
    gap: 4px;
}

.scale-bar {
    height: 8px;
    flex: 1;
    background: #eee;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.scale-bar.filled {
    background: #0073aa;
}

@media (max-width: 768px) {

    .metrics-numbers-grid,
    .metrics-scales-grid {
        grid-template-columns: 1fr;
    }
}

/* Visitor Rating Card Styles */
.ibct-visitor-rating-card {
    text-align: center;
}

.ibct-visitor-rating-card .visitor-rating-stars {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.ibct-visitor-rating-card .star {
    font-size: 2em;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ibct-visitor-rating-card .star:hover,
.ibct-visitor-rating-card .star.hover,
.ibct-visitor-rating-card .star.selected {
    color: #ffd700;
    transform: scale(1.1);
}

.ibct-visitor-rating-card .average-rating {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5rem;
}

.ibct-visitor-rating-card .rating-message {
    margin: 0.5rem 0;
    font-size: 0.9em;
    min-height: 20px;
}

.ibct-visitor-rating-card .rating-message.rating-success {
    color: #28a745;
}

.ibct-visitor-rating-card .rating-message.rating-error {
    color: #dc3545;
}

.ibct-visitor-rating-card .rating-help-text {
    font-size: 0.85em;
    color: #666;
    margin: 0.5rem 0 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .ibct-hero-section {
        padding: 1rem;
    }

    .ibct-hero-main {
        flex-direction: column;
        text-align: center;
    }

    .ibct-main-info .entry-title {
        font-size: 1.8em;
    }

    .ibct-content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .ibct-taxonomies {
        flex-direction: column;
        gap: 0.5rem;
    }

    .taxonomy-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .ibct-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .metrics-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .metrics-scales-grid {
        grid-template-columns: 1fr;
    }

    .ibct-card {
        margin-bottom: 1rem;
    }

    .director-profile {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .director-info {
        align-items: center;
    }

    .certification-bubble {
        font-size: 0.8em;
        padding: 0.3em 0.8em;
    }
}

@media screen and (max-width: 480px) {
    .metrics-numbers-grid {
        grid-template-columns: 1fr;
    }

    .ibct-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ibct-main-info .entry-title {
        font-size: 1.5em;
    }

    .ibct-rating {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {

    /* Core Layout */
    .ibct-single-center .site-main {
        padding: 0 10px;
    }

    .ibct-content-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    /* Hero Section */
    .ibct-hero-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .ibct-hero-main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .ibct-logo {
        margin: 0 auto;
    }

    .ibct-main-info .entry-title {
        font-size: 1.8em;
        line-height: 1.2;
    }

    /* Rating and Taxonomies */
    .ibct-rating {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .ibct-taxonomies {
        flex-direction: column;
        gap: 10px;
    }

    .taxonomy-group {
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    /* Infrastructure Section */
    .infrastructure-columns {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    /* Metrics Section */
    .metrics-numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .metrics-scales-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery Section */
    .ibct-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Cards */
    .ibct-card {
        padding: 15px;
    }

    .director-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cert-status-display {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {

    /* Even smaller screens */
    .ibct-hero-section {
        padding: 10px;
    }

    .ibct-main-info .entry-title {
        font-size: 1.5em;
    }

    .metrics-numbers-grid {
        grid-template-columns: 1fr;
    }

    .ibct-gallery-grid {
        grid-template-columns: 1fr;
    }

    .ibct-rating {
        flex-direction: column;
        align-items: center;
    }

    .certification-bubble {
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {

    /* Infrastructure Overview */
    .infrastructure-columns {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .infrastructure-list li {
        padding: 12px;
        margin-bottom: 8px;
    }

    .infra-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .infra-item-header {
        width: 100%;
        justify-content: flex-start;
    }

    /* Performance Metrics */
    .metrics-scales-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metric-scale-card {
        padding: 15px;
    }

    .scale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .scale-header h3 {
        font-size: 1em;
        margin: 0;
    }

    .scale-value {
        font-size: 0.9em;
    }

    .scale-bars {
        margin-top: 10px;
        gap: 4px;
    }

    /* Certification Details */
    .ibct-cert-card {
        padding: 15px;
    }

    .cert-status-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }

    .status-badge {
        width: 100%;
        text-align: center;
    }

    .cert-details li {
        flex-direction: column;
        gap: 5px;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .cert-details li:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .cert-details strong {
        display: block;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {

    /* Further refinements for smaller screens */
    .infrastructure-list .dashicons {
        font-size: 18px;
        width: 18px;
        height: 18px;
    }

    .infra-item-label {
        font-size: 0.9em;
    }

    .infrastructure-list .status {
        font-size: 0.85em;
    }

    .metric-scale-card {
        padding: 12px;
    }

    .scale-bars {
        height: 8px;
    }

    .certification-warning {
        padding: 12px;
        font-size: 0.9em;
    }
}

/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {

    /* Visit Website Button */
    .ibct-cta {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Certification Details Centering */
    .ibct-cert-card {
        text-align: center;
    }

    .cert-details li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .cert-status-display {
        align-items: center;
    }

    .cert-status-display .status-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Center Leadership Section */
    .ibct-leadership-card {
        text-align: center;
    }

    .director-profile {
        flex-direction: column;
        align-items: center;
    }

    .director-info {
        align-items: center;
    }

    .director-contact {
        justify-content: center;
    }

    .director-contact a {
        justify-content: center;
    }
}

/* Center Leadership Mobile Styling */
@media screen and (max-width: 768px) {
    .ibct-leadership-card {
        text-align: center;
    }

    .ibct-leadership-card .director-profile {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .ibct-leadership-card .director-photo {
        margin: 0 auto;
    }

    .ibct-leadership-card .director-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .ibct-leadership-card .director-contact {
        align-items: center;
    }

    .ibct-leadership-card .director-contact a {
        justify-content: center;
        width: 100%;
    }

    .ibct-leadership-card .director-name,
    .ibct-leadership-card .director-title {
        text-align: center;
        width: 100%;
    }
}

/* Center Contact Information Title */
@media screen and (max-width: 768px) {
    .ibct-contact-card h2 {
        text-align: center;
    }
}