/* RICS Accreditation Interactive Blog Styles */

/* Progress Timeline for Certification Process */
.certification-timeline {
    position: relative;
    padding: 2rem 0;
    margin: 3rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 3rem;
}

.timeline-item::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.3);
    z-index: 2;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% + 20px);
    background: linear-gradient(180deg, var(--primary-color), transparent);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0, 61, 130, 0.15);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Interactive Requirements Grid */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.requirement-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.requirement-card::before {
    content: attr(data-icon);
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 3rem;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.requirement-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.15);
}

.requirement-card:hover::before {
    opacity: 0.2;
    transform: scale(1.2) rotate(10deg);
}

.requirement-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.requirement-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Interactive FAQ Accordion */
.faq-accordion {
    margin: 2rem 0;
}

.faq-accordion-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-accordion-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
}

/* Statistics Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 61, 130, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Benefits Lists with Icons */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.benefits-list li {
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefits-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.1);
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.benefits-list li strong {
    color: var(--primary-color);
}

/* Training Content Sections */
.training-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.topic-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 61, 130, 0.15);
    border-top-color: var(--secondary-color);
}

.topic-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.topic-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* CPR Part 35 Principles */
.cpr-principles {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 2px solid var(--primary-color);
}

.cpr-principles h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.principle-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 5px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.principle-item:hover {
    transform: translateX(10px);
}

.principle-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.principle-item p {
    color: var(--text-color);
    line-height: 1.7;
}

/* Enhanced Key Takeaway */
.enhanced-takeaway {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    padding: 2.5rem;
    border-radius: 15px;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 61, 130, 0.15);
}

.enhanced-takeaway::before {
    content: '🎓';
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 5rem;
    opacity: 0.1;
}

.enhanced-takeaway h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.enhanced-takeaway ul {
    list-style: none;
    padding: 0;
}

.enhanced-takeaway li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.enhanced-takeaway li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-item::before {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .timeline-item::after {
        left: 19px;
    }
    
    .requirements-grid,
    .stats-container,
    .training-topics {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}
