/* Spine Pillars Widget Styles */

.spine-pillars-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Responsive Desktop Columns */
.spine-pillars-desktop-columns-1 .pillar {
    width: 100%;
}

.spine-pillars-desktop-columns-2 .pillar {
    width: calc(50% - 20px);
}

.spine-pillars-desktop-columns-3 .pillar {
    width: calc(33.333% - 20px);
}

.spine-pillars-desktop-columns-4 .pillar {
    width: calc(25% - 20px);
}

.spine-pillars-desktop-columns-5 .pillar {
    width: calc(20% - 20px);
}

.spine-pillars-desktop-columns-6 .pillar {
    width: calc(16.666% - 20px);
}

/* Responsive Tablet Columns */
@media (max-width: 1024px) {
    .spine-pillars-tablet-columns-1 .pillar {
        width: 100%;
    }

    .spine-pillars-tablet-columns-2 .pillar {
        width: calc(50% - 20px);
    }

    .spine-pillars-tablet-columns-3 .pillar {
        width: calc(33.333% - 20px);
    }
}

/* Responsive Mobile Columns */
@media (max-width: 767px) {
    .spine-pillars-mobile-columns-1 .pillar {
        width: 100%;
    }

    .spine-pillars-mobile-columns-2 .pillar {
        width: calc(50% - 10px);
    }

    /* Reset border on mobile */
    .spine-pillars-wrapper .pillar {
        border-right: none;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Pillar Item */
.pillar {
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding-left: 0;
    box-sizing: border-box;
    position: relative;
}

.pillar:last-child {
    border-right: none;
}

/* Pillar icon wrapper */
.pillar-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* Icon pulse animation */
@keyframes iconPulse {
    0%   { box-shadow: 0 0 0 0 rgba(196,136,74,0.6); }
    60%  { box-shadow: 0 0 0 10px rgba(196,136,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(196,136,74,0); }
}

.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(196,136,74,0.08);
    border: 1px solid rgba(196,136,74,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pillar-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.pillar-icon-pulse {
    animation: iconPulse 2.8s ease-out infinite;
}

.spine-pillars-wrapper .pillar:nth-child(2) .pillar-icon-pulse {
    animation-delay: 0.7s;
}

.spine-pillars-wrapper .pillar:nth-child(3) .pillar-icon-pulse {
    animation-delay: 1.4s;
}

.spine-pillars-wrapper .pillar:nth-child(4) .pillar-icon-pulse {
    animation-delay: 2.1s;
}

.spine-pillars-wrapper .pillar:nth-child(5) .pillar-icon-pulse {
    animation-delay: 2.8s;
}

.spine-pillars-wrapper .pillar:nth-child(6) .pillar-icon-pulse {
    animation-delay: 3.5s;
}

/* Staggered fade-in animation */
@keyframes pillarFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pillar-animate {
    opacity: 0;
    transition: none;
}

.pillar-animate.visible {
    animation: pillarFadeUp 0.7s ease forwards;
}

/* Pillar content */
.pillar h3 {
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
    transition: color 0.3s ease;
    font-size: 20px;
}

.pillar h3 a {
    color: inherit;
    text-decoration: none;
}

.pillar h3 a:hover {
    color: #c4884a;
}

.pillar p {
    font-weight: 300;
    color: #88c0d0;
    line-height: 1.7;
    margin-top: 4px;
    text-align: center;
    opacity: 0.9;
}

.pillar-icon-link,
.pillar-title-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pillar-icon-link:focus,
.pillar-title-link:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196,136,74,0.5);
    border-radius: 4px;
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .pillar h3 {
        color: #ffffff;
    }

    .pillar p {
        color: #88c0d0;
    }
}
