/* Careerscape Advertise Widgets Styles */

/* =================================================================
   ADVERTISING OPTIONS WIDGET
   ================================================================= */

.cs-ao-wrapper {
    width: 100%;
}

.cs-ao-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .cs-ao-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Make last card full width if it's alone on its row (odd number of cards) */
    .cs-ao-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .cs-ao-grid {
        grid-template-columns: 1fr;
    }
}

.cs-ao-card {
    position: relative;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cs-ao-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.cs-ao-card.cs-ao-popular {
    border: none;
    padding-top: 48px;
}

.cs-ao-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.cs-ao-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.cs-ao-card-description {
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.cs-ao-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.cs-ao-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cs-ao-feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cs-ao-feature-text {
    line-height: 1.5;
}

.cs-ao-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.cs-ao-button:hover {
    transform: translateY(-2px);
}


/* =================================================================
   TESTIMONIALS WIDGET
   ================================================================= */

.cs-test-wrapper {
    width: 100%;
}

.cs-test-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .cs-test-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .cs-test-grid {
        grid-template-columns: 1fr;
    }
}

.cs-test-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.cs-test-card:hover {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}

.cs-test-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.cs-test-star {
    width: 20px;
    height: 20px;
}

.cs-test-star-filled {
    fill: currentColor;
}

.cs-test-star-empty {
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
    opacity: 0.3;
}

.cs-test-quote {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.cs-test-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cs-test-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.cs-test-avatar-image {
    object-fit: cover;
}

.cs-test-author-details {
    flex: 1;
    min-width: 0;
}

.cs-test-author-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.cs-test-author-info {
    font-size: 14px;
    line-height: 1.4;
}


/* =================================================================
   RESPONSIVE ADJUSTMENTS
   ================================================================= */

@media (max-width: 767px) {
    .cs-ao-card {
        padding: 24px;
    }
    
    .cs-ao-card.cs-ao-popular {
        padding-top: 40px;
    }
    
    .cs-ao-card-title {
        font-size: 20px;
    }
    
    .cs-test-card {
        padding: 24px;
    }
    
    .cs-test-quote {
        font-size: 16px;
    }
}


/* =================================================================
   CONTACT INFO LIST WIDGET
   ================================================================= */

.cs-ci-wrapper {
    width: 100%;
}

.cs-ci-list {
    display: flex;
    gap: 16px;
}

.cs-ci-list.cs-ci-vertical {
    flex-direction: column;
}

.cs-ci-list.cs-ci-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}

.cs-ci-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a.cs-ci-item:hover {
    opacity: 0.8;
}

.cs-ci-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cs-ci-icon-box svg,
.cs-ci-icon-box i {
    width: 24px;
    height: 24px;
}

.cs-ci-content {
    flex: 1;
    min-width: 0;
}

.cs-ci-label {
    font-size: 14px;
    margin-bottom: 2px;
}

.cs-ci-value {
    font-size: 16px;
    font-weight: 600;
}

/* Tablet: Make vertical layout horizontal */
@media (min-width: 768px) and (max-width: 1024px) {
    .cs-ci-list.cs-ci-vertical {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .cs-ci-list.cs-ci-vertical .cs-ci-item {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .cs-ci-list.cs-ci-horizontal {
        flex-direction: column;
    }
}
