/* T-ARE Content Management Styles */

/* Case Study Cards */
.case-study-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-gold);
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.case-study-header {
    margin-bottom: 20px;
}

.industry-badge {
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.case-study-card h4 {
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.case-study-card .company-name {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 15px;
}

.challenge-section, .results-section {
    margin-bottom: 20px;
}

.challenge-section h6, .results-section h6 {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.metrics-row {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric-item {
    text-align: center;
    flex: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.client-quote {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
    color: var(--text-light);
    margin: 20px 0;
    border-left: 3px solid var(--primary-gold);
}

.client-quote i {
    color: var(--primary-gold);
    margin-right: 8px;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), #F4E4BC);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-black);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author h6 {
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 5px;
}

.author-title {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.company-name {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-info {
    margin-bottom: 15px;
}

.industry-tag, .year-tag {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-right: 8px;
}

.testimonial-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.service-used, .project-value {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

/* News Cards */
.news-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-gold);
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-category {
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.news-card h5 {
    margin-bottom: 10px;
}

.news-card h5 a {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 700;
}

.news-card h5 a:hover {
    color: var(--primary-gold);
}

.news-subtitle {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--primary-black);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Resource Cards */
.resource-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
}

.resource-card:hover {
    transform: translateY(-3px);
}

.resource-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gold);
    color: var(--primary-black);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.resource-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.resource-card h5 {
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.resource-description {
    color: var(--primary-black);
    margin-bottom: 20px;
    line-height: 1.6;
}

.resource-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.detail-item {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.resource-tags {
    margin-bottom: 20px;
}

.resource-tag {
    background: #e9ecef;
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin: 0 5px 5px 0;
    display: inline-block;
}

/* Navigation updates */
.navbar-nav .nav-link[href="#success-stories"],
.navbar-nav .nav-link[href="#testimonials"],
.navbar-nav .nav-link[href="#news-updates"],
.navbar-nav .nav-link[href="#resources"] {
    color: rgba(255, 255, 255, 0.85);
}

/* Section spacing and backgrounds */
#success-stories {
    background: white;
}

#testimonials {
    background: #f8f9fa;
}

#news-updates {
    background: white;
}

#resources {
    background: #f8f9fa;
}

/* Responsive design */
@media (max-width: 768px) {
    .case-study-card,
    .testimonial-card,
    .news-card,
    .resource-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .metrics-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .testimonial-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .resource-icon {
        font-size: 2.5rem;
    }
}

/* Animation effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-study-card,
.testimonial-card,
.news-card,
.resource-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
.content-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: var(--text-light);
}

.content-loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #e9ecef;
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .case-study-card,
    .testimonial-card,
    .news-card,
    .resource-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}