/* =========================================
   THEME CORE PLUGINS - CONSOLIDATED CSS
   ========================================= */

/* -------------------------------------------------------------------------- */
/*                               ACCORDION WIDGET                             */
/* -------------------------------------------------------------------------- */
/* --- Container --- */
.tc-accordion-wrapper {
    max-width: 100%;
}

.tc-accordion-header {
    margin-bottom: 30px;
}

.tc-accordion-badge {
    display: inline-block;
    background-color: #D32F2F;
    /* Red fallback */
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 10px;
}

.tc-accordion-heading {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
    color: #333;
}

/* --- Accordion Items --- */
.tc-accordion-items {
    display: flex;
    flex-direction: column;
}

.tc-accordion-item {
    background-color: #fff;
    border-radius: 8px;
    /* Smooth corners like mockup */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tc-accordion-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    /* Lift effect */
}

/* --- Title Section --- */
.tc-accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.3s ease;
    user-select: none;
}

/* Icon Alignment */
.tc-icon-align-left .tc-accordion-title {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.tc-icon-align-left .tc-accordion-icon {
    margin-right: 15px;
    margin-left: 0;
}

.tc-icon-align-right .tc-accordion-title {
    flex-direction: row;
    justify-content: space-between;
}

/* Ensure text margin if needed */


.tc-question-text {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    flex-grow: 1;
    padding-right: 15px;
}

.tc-accordion-icon {
    font-size: 14px;
    color: #333;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    /* Ensure space */
}

/* --- Content Section --- */
.tc-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    opacity: 0;
}

/* --- Active State --- */
.tc-accordion-item.active {
    border-color: #eee;
}

.tc-accordion-item.active .tc-accordion-icon {
    transform: rotate(90deg);
    /* Standard rotation */
}

.tc-accordion-item.active .tc-accordion-content {
    padding-bottom: 20px;
    opacity: 1;
}

/* -------------------------------------------------------------------------- */
/*                               CARDS WIDGET                                 */
/* -------------------------------------------------------------------------- */
/* Services Widget CSS */
.tc-services-container {
    --tc-primary-color: #D32F2F;
    --tc-text-color: #333;
    --tc-desc-color: #666;
}

/* --- 1. Header Layouts --- */
.tc-services-header {
    margin-bottom: 40px;
}

/* Block Layout */
.tc-header-block {
    margin-bottom: 15px;
}

/* Inline Layout (Flex) */
.tc-header-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    /* Align to bottom of title usually looks better, or center */
    justify-content: space-between;
    gap: 30px;
}

.tc-header-left {
    flex: 1 1 500px;
    /* Grow, Shrink, Basis */
    max-width: 65%;
}

.tc-header-right {
    flex: 1 1 300px;
    max-width: 35%;
    text-align: left;
    /* Keep text left aligned */
}

/* Responsive Headers */
@media (max-width: 900px) {
    .tc-header-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .tc-header-left {
        max-width: 100%;
        margin-bottom: 10px;
    }

    .tc-header-right {
        max-width: 100%;
        margin-left: 0;
    }
}

/* Alignment Overrides */
/* When Center is selected, force inline to behave like block/centered if desired, or center the flex items */
.tc-header-align-center .tc-header-inline {
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    /* Force stack for true center */
}

.tc-header-align-center .tc-header-left,
.tc-header-align-center .tc-header-right {
    max-width: 100%;
    text-align: center;
    flex: 0 0 auto;
}

.tc-header-align-right .tc-header-inline {
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    /* Stack top-right */
}

/* Wait, sticking to user expectation: Inline usually means Side-by-Side */
/* Reverting forced stack for Right, but Center usually implies stack */

.tc-header-align-right .tc-services-header {
    text-align: right;
}

/* Common Header Elements */
.tc-subtitle-badge {
    display: inline-block;
    background-color: var(--tc-primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tc-section-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--tc-text-color);
    margin: 0;
}

.tc-section-desc {
    color: var(--tc-desc-color);
    line-height: 1.6;
}

.tc-header-separator {
    display: inline-block;
    /* Or block, but inline-block allows easier centering behavior if width is specialized */
    display: block;
    /* Better for explicit width */
    /* Default styles handled by controls, but adding base for safety */
    background-color: #D32F2F;
    width: 60px;
    height: 3px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Center Alignment Refinements */
.tc-header-align-center .tc-header-separator {
    margin-left: auto;
    margin-right: auto;
}

.tc-header-align-center .tc-section-desc {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 2. Grid & List Layouts --- */
.tc-services-grid {
    display: grid;
    /* Grid columns handled by Elementor settings */
}

.tc-services-list {
    display: flex;
    flex-direction: column;
}

/* --- 3. Base Card Wrapper --- */
.tc-service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.tc-card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.tc-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* --- 4. Image Zone & Hover Effects --- */
/* --- 4. Image Zone & Hover Effects --- */
.tc-card-image {
    position: relative;
    height: 220px;
    width: 100%;
    background-size: cover !important;
    /* Force cover */
    background-repeat: no-repeat;
    background-position: center center;
    overflow: hidden;
    /* Essential for shutter/zoom */
    transform: translateZ(0);
}

.tc-card-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* ... existing hover effects ... */

/* --- 7. List Layout Tweaks --- */
.tc-services-list .tc-service-card .tc-card-link-wrapper {
    display: flex;
    align-items: stretch;
    /* Stretch image and content */
    height: auto;
}

.tc-services-list .tc-card-image {
    width: 30%;
    height: auto;
    min-height: 200px;
    flex-shrink: 0;
    /* Prevent squishing */
}



/* Shutter Horizontal */
.tc-hover-effect-shutter-h .tc-card-image::before,
.tc-hover-effect-shutter-h .tc-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background-color: var(--tc-primary-color);
    /* Fallback */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    /* Ensure above image */
    transform: scaleX(0);
}

.tc-hover-effect-shutter-h .tc-card-image::before {
    left: 0;
    transform-origin: left;
}

.tc-hover-effect-shutter-h .tc-card-image::after {
    right: 0;
    transform-origin: right;
}

.tc-service-card:hover .tc-card-image::before,
.tc-service-card:hover .tc-card-image::after {
    transform: scaleX(1);
}

/* Shutter Vertical */
.tc-hover-effect-shutter-v .tc-card-image::before,
.tc-hover-effect-shutter-v .tc-card-image::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--tc-primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: scaleY(0);
}

.tc-hover-effect-shutter-v .tc-card-image::before {
    top: 0;
    transform-origin: top;
}

.tc-hover-effect-shutter-v .tc-card-image::after {
    bottom: 0;
    transform-origin: bottom;
}

.tc-service-card:hover .tc-card-image::before,
.tc-service-card:hover .tc-card-image::after {
    transform: scaleY(1);
}

/* Fade */
.tc-hover-effect-fade .tc-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tc-primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.tc-service-card:hover .tc-card-image::before {
    opacity: 1;
}

/* Zoom - Now applies to the IMG tag */
.tc-hover-effect-zoom .tc-card-image .tc-card-img-element {
    /* transition is set on the element base */
    transform: scale(1);
}

.tc-hover-effect-zoom:hover .tc-card-image .tc-card-img-element {
    transform: scale(1.1);
}

/* --- 5. Floating Icon (Style 1) --- */
/* Ensure Icon Box stays on top of shutter */
.tc-icon-box {
    position: absolute;
    bottom: -24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: var(--tc-primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Scale icon on hover */
.tc-service-card:hover .tc-icon-box {
    transform: scale(1.1);
}

/* --- 6. Content Zone --- */
.tc-card-content {
    padding: 35px 24px 30px;
}

.tc-card-line {
    width: 35px;
    height: 4px;
    background: var(--tc-primary-color);
    margin-bottom: 12px;
    border-radius: 2px;
}

.tc-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--tc-text-color);
    margin: 0;
}

/* --- 1b. Slider Fallback / Structure --- */
.tc-services-slider-container {
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
    /* Space for pagination */
}

.tc-services-slider-container .swiper-wrapper {
    display: flex;
    /* Determine width dynamically via JS, but ensure flex context exists */
    box-sizing: content-box;
}

.tc-services-slider-container .swiper-slide {
    flex-shrink: 0;
    height: 100%;
    position: relative;
}

/* --- Style 2: Project Overlay --- */
.tc-service-card.style-2 {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 350px;
    /* Needs fixed/min height for full overlay effect */
}

.tc-service-card.style-2 .tc-card-image {
    height: 100%;
    width: 100%;
}

/* Icon - Top Right for Style 2 */
.tc-service-card.style-2 .tc-icon-box {
    top: 24px;
    right: 24px;
    bottom: auto;
    background: var(--tc-primary-color);
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 8px;
    box-shadow: none;
    opacity: 0;
    /* Hidden initially or as per design? Design shows it visible. Let's make it visible. */
    opacity: 1;
    transform: scale(1);
}

/* Content - Slide Up */
.tc-service-card.style-2 .tc-card-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    text-align: left;
}

/* Red Accent (Corner) on Content Box */
.tc-service-card.style-2 .tc-card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--tc-primary-color) 50%, transparent 50%);
    opacity: 1;
    border-top-left-radius: 8px;
}

/* White icon inside accent - or just use the gradient as decoration.
   User mock shows a red graphic top-left. Gradient 135deg creates that triangle. */

.tc-service-card.style-2:hover .tc-card-content {
    transform: translateY(0);
    opacity: 1;
}

/* Shutter Down Effect (Top to Bottom) */
.tc-hover-effect-shutter-down .tc-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tc-primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: scaleY(0);
    transform-origin: top;
}

.tc-service-card:hover .tc-card-image::before {
    transform: scaleY(1);
}

/* Shutter Up Effect (Bottom to Top) */
.tc-hover-effect-shutter-up .tc-card-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tc-primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* Style 2 Specific: Ensure text is above effect */
.tc-service-card.style-2 .tc-card-content {
    z-index: 5;
}

/* --- Responsive Slider Fix --- */
.tc-services-slider-container .swiper-slide {
    width: 100%;
    /* Default to full width for mobile fallback */
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .tc-services-slider-container .swiper-slide {
        width: 50%;
        /* Tablet fallback */
    }
}

@media (min-width: 1024px) {
    .tc-services-slider-container .swiper-slide {
        width: 33.333%;
        /* Desktop fallback */
    }
}

/* --- 7. List Layout Tweaks --- */
.tc-services-list .tc-service-card .tc-card-link-wrapper {
    display: flex;
    align-items: stretch;
    /* Stretch image to full height */
    height: auto;
}

.tc-services-list .tc-card-image {
    width: 30%;
    height: auto;
    /* With stretch, this fills the height */
    min-height: 200px;
    /* background-position removed */
}

.tc-services-list .tc-card-content {
    width: 70%;
    padding: 20px 30px;
}

/* --- 8. Load More Button --- */
.tc-load-more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--tc-primary-color);
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.tc-load-more-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* --- 9. Style 3 (Blog) --- */
.tc-service-card.style-3 {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.tc-service-card.style-3 .tc-card-image {
    height: 250px;
    /* Taller image for blog */
}

/* Category Badge */
.tc-category-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--tc-primary-color);
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    z-index: 5;
    text-transform: capitalize;
}

/* Content Area Fixes */
.tc-service-card.style-3 .tc-card-content {
    padding-top: 45px;
    /* Space for Date Box */
    position: relative;
}

/* Date Box (Overlapping) */
.tc-date-box {
    position: absolute;
    top: -30px;
    /* Half overlap */
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: var(--tc-primary-color);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.tc-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Date Meta (Month Year) */
.tc-date-meta {
    font-size: 13px;
    color: #999;
    /* Grey text */
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Read More Button */
.tc-read-more {
    display: inline-flex;
    align-items: center;
    background-color: var(--tc-primary-color);
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.tc-service-card.style-3:hover .tc-read-more {
    background-color: #B71C1C;
    transform: translateY(-2px);
}

/* --- 10. Style 4 (Team Member) --- */
.tc-service-card.style-4 {
    border: none;
    box-shadow: none;
    /* Clean look */
    background: transparent;
}

.tc-service-card.style-4 .tc-card-image {
    height: 380px;
    /* Taller portrait for people */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.tc-service-card.style-4 .tc-card-content {
    background: transparent;
    padding: 0;
    /* Minimal padding */
    text-align: left;
}

.tc-team-designation {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tc-primary-color);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tc-service-card.style-4 .tc-card-title {
    font-size: 22px;
    margin: 0;
}

/* Share Button & Socials */
.tc-team-share-wrap {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column-reverse;
    /* Icons stack UP from button */
    align-items: center;
}

.tc-team-share-btn {
    width: 45px;
    height: 45px;
    background-color: var(--tc-primary-color);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
    transition: all 0.3s ease;
}

.tc-team-share-wrap:hover .tc-team-share-btn {
    border-radius: 0 0 8px 8px;
    /* Square top corners when expanded? Optional */
}

/* Social Icons Container */
.tc-team-social-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tc-team-share-wrap:hover .tc-team-social-icons {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Individual Icon */
.tc-team-social-icons a {
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    /* Match button */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.tc-team-social-icons a:hover {
    background-color: var(--tc-primary-color);
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/*                               CF7 WIDGET                                   */
/* -------------------------------------------------------------------------- */
/* --- TC Contact Form Styles --- */

.tc-cf7-widget-wrapper .wpcf7-form {
    background: transparent;
    padding: 0;
}

/* Grid Layout */
.tc-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Align items vertically */
    margin-right: -10px;
    margin-left: -10px;
    margin-bottom: 20px;
}

.tc-form-col-50 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 10px;
    padding-left: 10px;
}

@media (max-width: 767px) {
    .tc-form-col-50 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

/* Inputs & Textareas */
.tc-cf7-widget-wrapper input:not([type="submit"]),
.tc-cf7-widget-wrapper textarea,
.tc-cf7-widget-wrapper select {
    width: 100%;
    background-color: #F8F9FA;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    /* Default radius, overridable */
    padding: 16px 20px;
    font-size: 16px;
    color: #111;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    /* Critical for padding */
}

.tc-cf7-widget-wrapper input:not([type="submit"]):focus,
.tc-cf7-widget-wrapper textarea:focus,
.tc-cf7-widget-wrapper select:focus {
    border-color: var(--tc-primary-color, #D32F2F);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.tc-cf7-widget-wrapper textarea {
    min-height: 150px;
    resize: vertical;
}

/* Placeholders */
.tc-cf7-widget-wrapper ::placeholder {
    color: #999;
    opacity: 1;
}

/* Submit Button */
.tc-cf7-widget-wrapper input[type="submit"] {
    background-color: var(--tc-primary-color, #D32F2F);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 16px 48px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.tc-cf7-widget-wrapper input[type="submit"]:hover {
    background-color: #B71C1C;
    /* Darker Red */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* CF7 Loader & Response */
.tc-cf7-widget-wrapper .wpcf7-spinner {
    margin-left: 15px;
    vertical-align: middle;
}

.tc-cf7-widget-wrapper .wpcf7-response-output {
    margin: 20px 0 0 !important;
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 8px;
    background: #f5f5f5;
    font-size: 14px;
}

.tc-cf7-widget-wrapper .wpcf7-not-valid-tip {
    font-size: 12px;
    margin-top: 5px;
}

/* -------------------------------------------------------------------------- */
/*                               CONTACT LIST WIDGET                          */
/* -------------------------------------------------------------------------- */
/* TC Contact List Styles */

.tc-contact-list {
    display: flex;
    flex-direction: column;
}

.tc-contact-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Alignment Classes */
.tc-contact-align-center .tc-contact-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.tc-contact-align-right .tc-contact-item {
    text-align: right;
    flex-direction: row-reverse;
}

/* Icon Box */
.tc-contact-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Default left */
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 3px;
    /* Optical alignment with text top */
}

.tc-contact-align-center .tc-contact-icon {
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 0;
}

.tc-contact-align-right .tc-contact-icon {
    justify-content: flex-end;
}

/* Content Box */
.tc-contact-details {
    display: flex;
    flex-direction: column;
}

/* Labels & Values */
.tc-contact-label {
    display: block;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.2;
}

.tc-contact-value {
    display: block;
    font-weight: 700;
    line-height: 1.4;
}

/* Hover Animations */
.tc-icon-anim-pulse .tc-contact-item:hover .tc-contact-icon {
    animation: tc-pulse 0.5s ease-in-out;
}

.tc-icon-anim-rotate .tc-contact-item:hover .tc-contact-icon {
    transform: rotate(360deg);
}

.tc-icon-anim-wobble .tc-contact-item:hover .tc-contact-icon {
    animation: tc-wobble 0.8s ease-in-out;
}

.tc-icon-anim-scale .tc-contact-item:hover .tc-contact-icon {
    transform: scale(1.2);
}

@keyframes tc-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes tc-wobble {

    0%,
    100% {
        transform: translateX(0%);
        transform-origin: 50% 50%;
    }

    15% {
        transform: translateX(-6px) rotate(-6deg);
    }

    30% {
        transform: translateX(3px) rotate(3deg);
    }

    45% {
        transform: translateX(-3px) rotate(-3.6deg);
    }

    60% {
        transform: translateX(2px) rotate(2.4deg);
    }

    75% {
        transform: translateX(-1px) rotate(-1.2deg);
    }
}

/* -------------------------------------------------------------------------- */
/*                               LINK LIST WIDGET                             */
/* -------------------------------------------------------------------------- */
/* TC Link List Styles */
.tc-link-list {
    display: flex;
    flex-direction: column;
}

.tc-link-item {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    /* Reset Elementor default link styles if needed */
}

/* Alignment logic overrides */
.tc-link-align-center .tc-link-list {
    align-items: center;
}

.tc-link-align-right .tc-link-list {
    align-items: flex-end;
}

.tc-link-align-right .tc-link-item {
    flex-direction: row-reverse;
}

/* Icon */
.tc-link-icon {
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

/* Text */
.tc-link-text {
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

/* Hover Slide Effect */
.tc-link-slide-yes .tc-link-item:hover {
    transform: translateX(5px);
}

.tc-link-align-right.tc-link-slide-yes .tc-link-item:hover {
    transform: translateX(-5px);
    /* Slide left if aligned right */
}

/* -------------------------------------------------------------------------- */
/*                               LOGO WIDGET                                  */
/* -------------------------------------------------------------------------- */
/* --- Logo Showcase CSS --- */
.tc-logo-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.tc-logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Height handled by Elementor controls (inline helper) or defaults */
    height: 100px;
    transition: all 0.3s ease;
}

.tc-logo-link {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-logo-img {
    height: auto;
    max-height: 100%;
    width: auto;
    /* Let max-width control constrain it */
    max-width: 80%;
    /* Default fallback */
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Grayscale/Opacity handled by controls */
}

.tc-logo-slide:hover .tc-logo-img {
    transform: scale(1.05);
    /* Slight lift */
}

/* -------------------------------------------------------------------------- */
/*                               MENU WIDGET                                  */
/* -------------------------------------------------------------------------- */
/* TC Menu Widget Styles */
.tc-menu-container {
    width: 100%;
}

.tc-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

/* Alignment */
.tc-menu-align-center .tc-nav-menu {
    justify-content: center;
}

.tc-menu-align-right .tc-nav-menu {
    justify-content: flex-end;
}

.tc-menu-align-left .tc-nav-menu {
    justify-content: flex-start;
}

/* Top Level Items */
.tc-nav-menu>li {
    position: relative;
    margin: 0;
}

.tc-nav-menu>li>a {
    display: block;
    text-decoration: none;
    padding: 15px 20px;
    transition: color 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    /* Match mockup */
}

/* Dropdown Arrows */
.tc-nav-menu .menu-item-has-children>a::after {
    content: "\f0d7";
    /* FontAwesome Caret Down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
    font-size: 0.8em;
}

/* Dropdowns */
.tc-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 240px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;

    /* Default Hidden state (Desktop) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Show Dropdown on Hover (Desktop) */
.tc-nav-menu>li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sub-menu Items */
.tc-nav-menu .sub-menu li {
    display: block;
    margin: 0;
}

.tc-nav-menu .sub-menu li a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    border-left: 3px solid transparent;
    /* Prepare for border hover */
    transition: all 0.2s;
    font-size: 14px;
    text-transform: uppercase;
}

/* Sub-menu Hover Effect (Red Border) */
.tc-nav-menu .sub-menu li a:hover {
    background-color: #f9f9f9;
    /* color & border-color handled by control overrides */
    border-left: 3px solid #D32F2F;
    /* Default fallback */
    padding-left: 25px;
    /* Slight shift */
}

/* --- Mobile Toggle Button --- */
.tc-menu-toggle {
    display: none;
    /* Hidden on Desktop */
    font-size: 24px;
    cursor: pointer;
    text-align: right;
    /* Default align */
}

/* --- Responsive Logic --- */

/* Breakpoint: Mobile (767px) */
@media (max-width: 767px) {
    .tc-menu-breakpoint-mobile .tc-menu-toggle {
        display: block;
    }

    .tc-menu-breakpoint-mobile .tc-menu-container {
        display: none;
        /* Hidden initially, toggled by JS */
        background: #fff;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        z-index: 1000;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    /* Mobile Menu Stack */
    .tc-menu-breakpoint-mobile .tc-nav-menu {
        flex-direction: column;
        width: 100%;
    }

    .tc-menu-breakpoint-mobile .tc-nav-menu>li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .tc-menu-breakpoint-mobile .tc-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f5f5f5;
        display: none;
        /* JS toggle needed ideally, or always show? Usually toggle. */
        padding-left: 0;
    }

    .tc-menu-breakpoint-mobile .tc-nav-menu .sub-menu li a {
        padding-left: 30px;
    }
}

/* Breakpoint: Tablet (1024px) */
@media (max-width: 1024px) {
    .tc-menu-breakpoint-tablet .tc-menu-toggle {
        display: block;
    }

    .tc-menu-breakpoint-tablet .tc-menu-container {
        display: none;
        /* Hidden, toggled */
        background: #fff;
        /* fallback */
    }

    /* If parent section has background container needs to be mindful. 
        Usually responsive menu is absolute or pushes content. 
        Here we'll make it slide down content. */

    .tc-menu-breakpoint-tablet .tc-menu-container {
        position: relative;
        /* Slide down flow */
        width: 100%;
    }

    .tc-menu-breakpoint-tablet .tc-nav-menu {
        flex-direction: column;
    }

    .tc-menu-breakpoint-tablet .tc-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, 0.03);
    }
}

/* Active State for Mobile Toggle */
.tc-menu-active {
    display: block !important;
}

/* -------------------------------------------------------------------------- */
/*                               REVIEWS WIDGET                               */
/* -------------------------------------------------------------------------- */
/* --- Container --- */
.tc-reviews-wrapper {
    padding: 20px 10px;
    /* Space for shadow */
    overflow: hidden;
    /* Mask slides */
}

/* --- Review Card --- */
.tc-review-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.tc-review-card:hover {
    transform: translateY(-5px);
}

/* --- Header --- */
.tc-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tc-review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #eee;
}

.tc-review-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 15px;
}

.tc-review-meta {
    display: flex;
    flex-direction: column;
}

.tc-review-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.tc-review-role {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

/* --- Rating --- */
.tc-review-rating {
    color: #FFC107;
    /* Default Gold */
    font-size: 14px;
    margin-bottom: 15px;
}

.tc-review-rating i {
    margin-right: 2px;
}

/* --- Content --- */
.tc-review-content {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
    /* Push footer down if we had one */
}

/* --- Swiper Pagination --- */
.tc-reviews-wrapper .swiper-pagination {
    position: static;
    margin-top: 30px;
}

.tc-reviews-wrapper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 0.6;
    width: 8px;
    height: 8px;
    transition: all 0.3s ease;
}

.tc-reviews-wrapper .swiper-pagination-bullet-active {
    background: var(--e-global-color-primary, #D32F2F);
    /* Use global or fallback */
    width: 24px;
    opacity: 1;
    border-radius: 4px;
}


/* -------------------------------------------------------------------------- */
/*                               STATS WIDGET                                 */
/* -------------------------------------------------------------------------- */
/* Stats Widget CSS */
.tc-stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

.tc-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    /* Transparent Background enforced */
    background: transparent;
}

/* Icon */
.tc-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Title */
.tc-stat-title {
    margin: 15px 0 5px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
}

/* Subtitle */
.tc-stat-subtitle {
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Layout Variations (Handled via Flex in CSS or HTML, but helper classes good) */
.tc-stats-layout-vertical {
    flex-direction: column;
}

.tc-stats-layout-horizontal {
    flex-direction: row;
}

/* Hover Effects (Placeholder for JS/Control injection) */
.tc-stat-item:hover .tc-stat-icon {
    transform: translateY(-5px);
}

/* -------------------------------------------------------------------------- */
/*                               POST TITLE WIDGET                            */
/* -------------------------------------------------------------------------- */
.tc-post-title {
    margin: 0 0 20px;
    line-height: 1.2;
}

.tc-post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.tc-meta-item {
    display: inline-flex;
    align-items: center;
}

.tc-meta-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.tc-meta-item a:hover {
    color: var(--tc-primary-color, #D32F2F);
}

/* -------------------------------------------------------------------------- */
/*                               POST CONTENT WIDGET                          */
/* -------------------------------------------------------------------------- */
.tc-post-content {
    line-height: 1.8;
    color: #333;
}

.tc-post-content p {
    margin-bottom: 1.5em;
}

/* Drop Cap Style */
.tc-content-drop-cap-yes .tc-post-content>p:first-of-type::first-letter {
    font-size: 3.5em;
    float: left;
    margin-right: 0.15em;
    margin-top: 0.1em;
    line-height: 0.8;
    font-weight: 700;
    color: var(--tc-primary-color, #D32F2F);
}


/* -------------------------------------------------------------------------- */
/*                               POST NAVIGATION WIDGET                       */
/* -------------------------------------------------------------------------- */
.tc-post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.tc-nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-width: 45%;
    transition: transform 0.3s;
}

.tc-nav-link:hover {
    transform: translateY(-2px);
}

.tc-nav-next {
    text-align: right;
    margin-left: auto;
}

.tc-nav-content {
    display: flex;
    flex-direction: column;
}

.tc-nav-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    margin-bottom: 5px;
}

.tc-nav-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}


/* -------------------------------------------------------------------------- */
/*                               PROJECT INFO WIDGET                          */
/* -------------------------------------------------------------------------- */
.tc-project-info {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.tc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tc-info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tc-info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.tc-info-item {
    display: flex;
    align-items: flex-start;
}

.tc-info-icon {
    font-size: 20px;
    color: var(--tc-primary-color, #D32F2F);
    margin-right: 15px;
    margin-top: 5px;
    width: 30px;
    text-align: center;
}

.tc-info-content {
    display: flex;
    flex-direction: column;
}

.tc-info-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.tc-info-value {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

@media (max-width: 767px) {
    .tc-info-grid {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------- */
/*                               TEAM BIO WIDGET                              */
/* -------------------------------------------------------------------------- */
.tc-team-bio-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.tc-team-profile {
    flex: 0 0 300px;
    text-align: center;
}

.tc-team-details {
    flex: 1;
}

.tc-team-photo {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tc-team-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 5px;
    color: #333;
    line-height: 1.2;
}

.tc-team-role {
    font-size: 16px;
    color: var(--tc-primary-color, #D32F2F);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tc-team-bio-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

/* Skills */
.tc-skill-item {
    margin-bottom: 20px;
}

.tc-skill-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.tc-skill-track {
    background-color: #eee;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.tc-skill-progress {
    height: 100%;
    background-color: var(--tc-primary-color, #D32F2F);
    border-radius: 3px;
}

@media (max-width: 900px) {
    .tc-team-bio-wrapper {
        flex-direction: column;
    }

    .tc-team-profile {
        width: 100%;
        flex: auto;
    }
}


/* -------------------------------------------------------------------------- */
/*                               PROJECT GALLERY WIDGET                       */
/* -------------------------------------------------------------------------- */
.tc-gallery-grid {
    display: grid;
    gap: 20px;
}

.tc-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    position: relative;
    cursor: pointer;
}

.tc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tc-gallery-item:hover img {
    transform: scale(1.1);
}

/* Slider */
.tc-gallery-slider {
    overflow: hidden;
    position: relative;
    padding-bottom: 40px;
}

.tc-gallery-item-slide {
    display: block;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.tc-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* -------------------------------------------------------------------------- */
/*                               CONTACT LIST WIDGET                          */
/* -------------------------------------------------------------------------- */
.tc-contact-list {
    display: flex;
    flex-direction: column;
}

.tc-contact-layout-horizontal .tc-contact-list {
    flex-direction: row;
    flex-wrap: wrap;
}


.tc-contact-item {
    display: flex;
    align-items: center;
    /* Changed from flex-start to center */
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Alignment Classes */
.tc-contact-align-center .tc-contact-item {
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.tc-contact-align-right .tc-contact-item {
    text-align: right;
    flex-direction: row-reverse;
}

/* Icon Box */
.tc-contact-icon {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Default left */
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 0;
    /* Removed optical alignment offset */
}

.tc-contact-align-center .tc-contact-icon {
    justify-content: center;
    margin-bottom: 10px;
    margin-top: 0;
}

.tc-contact-align-right .tc-contact-icon {
    justify-content: flex-end;
}

/* Content Box */
.tc-contact-details {
    display: flex;
    flex-direction: column;
}

/* Labels & Values */
.tc-contact-label {
    display: block;
    font-weight: 400;
    margin-bottom: 5px;
    line-height: 1.2;
}

.tc-contact-value {
    display: block;
    font-weight: 700;
    line-height: 1.4;
}

/* Hover Animations */
.tc-icon-anim-pulse .tc-contact-item:hover .tc-contact-icon {
    animation: tc-pulse 0.5s ease-in-out;
}

.tc-icon-anim-rotate .tc-contact-item:hover .tc-contact-icon {
    transform: rotate(360deg);
}

.tc-icon-anim-wobble .tc-contact-item:hover .tc-contact-icon {
    animation: tc-wobble 0.8s ease-in-out;
}

.tc-icon-anim-scale .tc-contact-item:hover .tc-contact-icon {
    transform: scale(1.2);
}

@keyframes tc-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes tc-wobble {

    0%,
    100% {
        transform: translateX(0%);
        transform-origin: 50% 50%;
    }

    15% {
        transform: translateX(-6px) rotate(-6deg);
    }

    30% {
        transform: translateX(3px) rotate(3deg);
    }

    45% {
        transform: translateX(-3px) rotate(-3.6deg);
    }

    60% {
        transform: translateX(2px) rotate(2.4deg);
    }

    75% {
        transform: translateX(-1px) rotate(-1.2deg);
    }
}

/* -------------------------------------------------------------------------- */
/*                              SOCIAL ICONS WIDGET                           */
/* -------------------------------------------------------------------------- */

.tc-social-icons-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* Default centering handled by control selectors */
}

.elementor-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    vertical-align: middle;
    /* Added for robustness */
    /* Fix vertical alignment */
    height: 1em;
    width: 1em;
    box-sizing: content-box;
    /* Ensure padding adds to the 1em size */
}

.elementor-social-icon i,
.elementor-social-icon svg {
    transition: all 0.3s ease;
    display: block;
    /* Removes inline gap */
    line-height: inherit;
    /* Ensure no line-height expansion */
}

/* Shape: Circle */
.elementor-shape-circle .elementor-social-icon {
    border-radius: 50%;
}

/* Shape: Square */
.elementor-shape-square .elementor-social-icon {
    border-radius: 0;
}

/* Shape: Rounded */
.elementor-shape-rounded .elementor-social-icon {
    border-radius: 5px;
}

/* View: Stacked (Background Color) */
.elementor-view-stacked .elementor-social-icon {
    background-color: #D32F2F;
    /* Fallback default */
    color: #fff;
}

/* View: Framed (Border) */
.elementor-view-framed .elementor-social-icon {
    background-color: transparent;
    border: 2px solid #D32F2F;
    /* Fallback default */
    color: #D32F2F;
}

/* View: Icon (Plain) */
.elementor-view-icon .elementor-social-icon {
    background-color: transparent;
    color: #D32F2F;
}

/* Alignment Helpers */
.tc-social-icons-wrapper {
    justify-content: center;
    /* Default */
}

/* Map text-align to flexbox alignment */
.elementor-widget-tc_social_icons[class*="tc-social-align-left"] .tc-social-icons-wrapper {
    justify-content: flex-start;
}

.elementor-widget-tc_social_icons[class*="tc-social-align-right"] .tc-social-icons-wrapper {
    justify-content: flex-end;
}

.elementor-widget-tc_social_icons[class*="tc-social-align-center"] .tc-social-icons-wrapper {
    justify-content: center;
}

/* Ensuring Font Awesome size consistency */
.elementor-social-icon i {
    font-size: inherit;
    /* Inherit from container */
}

/* --- Stretched Link Utility --- */
.tc-card-stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: auto;
}

/* --- Global Hero Section --- */
.tc-global-hero {
    position: relative;
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
    margin-bottom: 40px;
    color: #333;
}

.tc-global-hero.tc-has-bg-image {
    color: #fff;
}

.tc-global-hero.tc-has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.tc-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.tc-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
    line-height: 1.2;
}

.tc-hero-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.tc-hero-breadcrumbs {
    font-size: 0.9rem;
    opacity: 0.8;
}

.tc-hero-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

/* --- Global Hero Enhancements --- */

/* Alignment */
.tc-global-hero.tc-align-left {
    align-items: flex-start;
    text-align: left;
}

.tc-global-hero.tc-align-right {
    align-items: flex-end;
    text-align: right;
}

.tc-global-hero.tc-align-center {
    align-items: center;
    text-align: center;
}

/* Truncation */
.tc-truncated-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

/* Breadcrumbs */
.tc-hero-breadcrumbs {
    display: inline-flex;
    /* Changed to inline-flex for pill shape */
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    /* Bold text */
    flex-wrap: nowrap;
    /* Try to keep single line */

    /* Capsule Styling */
    background-color: #2D9CDB;
    /* Bright Blue */
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 15px;
    /* Spacing from title */
    opacity: 1;
    /* Reset opacity */
}

/* Alignment overrides for container */
.tc-global-hero.tc-align-center .tc-hero-breadcrumbs {
    /* Self alignment in flex container */
    margin-left: auto;
    margin-right: auto;
}

.tc-global-hero.tc-align-right .tc-hero-breadcrumbs {
    margin-left: auto;
    margin-right: 0;
}

.tc-global-hero.tc-align-left .tc-hero-breadcrumbs {
    margin-right: auto;
    margin-left: 0;
}

.tc-hero-breadcrumbs a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.tc-hero-breadcrumbs a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.tc-bred-sep {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 1px;
}

.tc-crumb-current {
    font-weight: 700;
    max-width: 300px;
    /* Limit width of current item to force truncation if needed */
}

@media (max-width: 768px) {
    .tc-hero-title {
        font-size: 2rem;
    }

    .tc-crumb-current {
        max-width: 150px;
    }
}