/* ============================================= */
/* == Master of the High Court Page Specific Styles == */
/* ============================================= */

:root {
    --master-primary-color: #2c3e50; /* Dark Slate Blue */
    --master-secondary-color: #1abc9c; /* Turquoise */
    --master-light-bg: #ecf0f1; /* Light Grey */
    --master-text-color: #34495e; /* Wet Asphalt */
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(44, 62, 80, 0.6); /* Based on primary color */
    --glass-blur: 9px;
    --glass-border-color: rgba(255, 255, 255, 0.3);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.09);
    --card-border-radius: 10px;
}

/* --- General Page Structure --- */
.master-content .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.master-content .content-section {
    margin-bottom: 50px;
    padding: 35px; /* Slightly more padding */
    background-color: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.master-content .content-section:hover:not(.glass-effect):not(.glass-effect-light) {
     box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
}

/* Glass Effects */
.master-content .glass-effect,
.master-content .glass-effect-light {
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--card-shadow);
    position: relative;
}

.master-content .glass-effect {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.master-content .glass-effect-light {
    background: rgba(236, 240, 241, 0.75); /* Based on light bg */
    backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) / 1.5));
}

.master-content h2 {
    color: var(--master-primary-color);
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--master-secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.9em;
    font-weight: 600;
}

.master-content h2 i {
    font-size: 0.9em;
    color: var(--master-secondary-color);
}

.master-content h3 {
    color: var(--master-primary-color);
    margin-top: 20px;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.master-content h3 i {
    font-size: 0.9em;
    color: var(--master-secondary-color);
}

.master-content p,
.master-content li {
    line-height: 1.75;
    margin-bottom: 12px;
    color: var(--master-text-color);
}

.master-content ul,
.master-content ol {
    padding-left: 25px;
}

.master-content strong {
    font-weight: 600;
    color: #2c3e50; /* Darker for emphasis */
}

.master-content a {
    color: var(--master-secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.master-content a:hover {
    color: var(--master-primary-color);
    text-decoration: underline;
}

/* --- Hero Section --- */
.master-hero {
    background: url('../images/master1.jpg') no-repeat center center/cover; /* Placeholder - replace */
    position: relative;
    color: #fff;
    text-align: center;
    padding: 100px 20px; /* Increased padding for more dramatic effect */
    overflow: hidden; /* For parallax overflow */
}

/* Parallax effect */
.parallax-hero {
    background-attachment: fixed;
    background-position: center 30%;
    transition: background-position 0.3s ease-out;
}

/* Hero overlay with gradient */
.hero-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.7) 0%, rgba(44, 62, 80, 0.85) 100%);
    z-index: 1;
    /* Enhanced with subtle animation */
    animation: gradientShift 15s ease infinite;
}

.master-hero.glass-effect-dark::before {
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.master-hero .container {
    position: relative;
    z-index: 2;
}

.master-hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* Added subtle animation */
    animation: fadeInDown 1s ease-out forwards;
}

.master-hero .subtitle {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px; /* Added for spacing before CTA buttons */
    /* Added subtle animation */
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    animation: fadeIn 1.2s ease-out 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-cta .btn-primary {
    background-color: var(--master-secondary-color);
    color: #fff;
    border: 2px solid var(--master-secondary-color);
}

.hero-cta .btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-cta .btn-primary:hover {
    background-color: #16a085; /* Darker turquoise */
    border-color: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.hero-cta .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- Responsibilities Section --- */
.section-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 1rem auto 2rem;
    text-align: center;
    color: var(--dark-color);
}

.responsibilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.responsibility-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.responsibility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.responsibility-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.responsibility-card:hover:before {
    opacity: 1;
}

.card-header {
    padding: 20px 20px 10px;
    display: flex;
    align-items: center;
    background-color: rgba(245, 247, 250, 0.8);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-header h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
}

.card-content {
    padding: 15px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content ul {
    margin-bottom: 20px;
    flex: 1;
}

.card-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-content li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.card-link:hover i {
    transform: translateX(5px);
}

.responsibility-card li::before {
    content: '\f00c'; /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--master-secondary-color);
    font-size: 0.9em;
}

/* --- Estate Reporting Process Section --- */
.process-timeline {
    position: relative;
    margin: 50px 0;
    padding-left: 50px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: linear-gradient(to bottom, 
        var(--master-primary-color) 0%, 
        var(--master-secondary-color) 100%);
    z-index: 1;
}

.process-step {
    position: relative;
    margin-bottom: 50px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInStep 0.5s ease forwards;
    animation-delay: calc(var(--data-step) * 0.15s);
}

@keyframes fadeInStep {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-icon {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--master-primary-color), var(--master-secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

.step-content {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.step-content h3 {
    color: var(--master-primary-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: var(--master-text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.step-tip, .step-note {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.step-tip {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--master-secondary-color);
    color: var(--master-text-color);
}

.step-note {
    background-color: rgba(241, 196, 15, 0.1);
    border-left: 3px solid #f1c40f;
    color: var(--master-text-color);
}

.step-action {
    display: inline-block;
    margin-top: 10px;
    color: var(--master-primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.step-action:hover {
    color: var(--master-secondary-color);
}

.step-action i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.step-action:hover i {
    transform: translateX(5px);
}

.step-timeline {
    margin-top: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 3px solid var(--master-secondary-color);
}

.timeline-item {
    margin-bottom: 8px;
    padding-left: 5px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

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

.timeline-item span {
    font-weight: 600;
    color: var(--master-primary-color);
    min-width: 100px;
    display: inline-block;
    margin-right: 10px;
}

/* Adding data-step attribute styling for animation */
.process-step[data-step="1"] { --data-step: 1; }
.process-step[data-step="2"] { --data-step: 2; }
.process-step[data-step="3"] { --data-step: 3; }
.process-step[data-step="4"] { --data-step: 4; }
.process-step[data-step="5"] { --data-step: 5; }
.process-step[data-step="6"] { --data-step: 6; }

/* --- Estate Reporting Process Section --- */
.reporting-process-section .steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: steps-counter;
    margin-top: 30px;
    position: relative;
    /* Optional: Add a connecting line */
    /* &::before {
        content: '';
        position: absolute;
        left: 17px;
        top: 10px;
        bottom: 10px;
        width: 3px;
        background-color: var(--master-light-bg);
        z-index: 1;
    } */
}

.reporting-process-section .steps-list li {
    position: relative;
    padding-left: 60px; /* More space for number and line */
    margin-bottom: 30px;
    min-height: 40px; /* Ensure space for number */
}

.reporting-process-section .steps-list li .step-number {
    counter-increment: steps-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: var(--master-secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    z-index: 2; /* Above potential line */
}

.reporting-process-section .steps-list li .step-content strong {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--master-primary-color);
}

/* --- Document Checklist Section --- */
.checklist-container {
    margin-top: 30px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.checklist-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: rgba(236, 240, 241, 0.6);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.checklist-tabs .tab-btn {
    padding: 15px 20px;
    flex: 1;
    min-width: 140px;
    border: none;
    background: transparent;
    color: var(--master-text-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.checklist-tabs .tab-btn i {
    font-size: 1.2rem;
    color: var(--master-primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.checklist-tabs .tab-btn span {
    display: block;
    text-align: center;
}

.checklist-tabs .tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--master-secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.checklist-tabs .tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.checklist-tabs .tab-btn:hover i {
    transform: translateY(-2px);
    color: var(--master-secondary-color);
}

.checklist-tabs .tab-btn.active {
    background-color: #fff;
    color: var(--master-primary-color);
    font-weight: 600;
}

.checklist-tabs .tab-btn.active i {
    color: var(--master-secondary-color);
}

.checklist-tabs .tab-btn.active::after {
    transform: scaleX(1);
}

.checklist-content {
    padding: 0;
    background-color: #fff;
}

.checklist-content .tab-pane {
    display: none;
    padding: 0;
    animation: fadeIn 0.5s ease;
}

.checklist-content .tab-pane.active {
    display: block;
}

.checklist-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.05), rgba(44, 62, 80, 0.1));
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.checklist-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--master-primary-color), var(--master-secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.checklist-header h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--master-primary-color);
    flex: 1;
    padding: 0;
}

.checklist-subtitle {
    display: block;
    margin: 5px 0 0;
    color: var(--master-text-color);
    font-size: 0.95rem;
    font-style: italic;
    width: 100%;
    padding-left: 75px;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 25px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: rgba(236, 240, 241, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.document-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    background-color: rgba(236, 240, 241, 0.5);
}

.document-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--master-primary-color), var(--master-secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--master-primary-color);
}

.document-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--master-text-color);
}

.document-note {
    margin-top: 25px;
    padding: 15px 20px;
    background-color: rgba(241, 196, 15, 0.1);
    border-left: 3px solid #f1c40f;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.document-note i {
    font-size: 1.5rem;
    color: #f1c40f;
}

.document-note p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--master-text-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Contact Section --- */
.contact-details p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* --- FAQ Section --- */
.faq-accordion .faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.faq-accordion .faq-item:last-child {
    border-bottom: none;
}
.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 18px 0; /* More padding */
    font-size: 1.15em;
    font-weight: 600;
    color: var(--master-primary-color);
    cursor: pointer;
    position: relative;
    padding-right: 35px; /* Space for icon */
    transition: color 0.3s ease;
}
.faq-question:hover {
    color: var(--master-secondary-color);
}
.faq-question::after {
    content: '\f078'; /* chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    font-size: 0.9em;
    color: var(--master-secondary-color);
}
.faq-question.active::after {
    transform: translateY(-50%) rotate(180deg); /* chevron-up */
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 15px;
    background-color: rgba(236, 240, 241, 0.3); /* Subtle background for answer */
    border-radius: 0 0 5px 5px;
}
.faq-answer p {
    margin-bottom: 15px;
    padding-top: 10px; /* Space after opening */
}
.faq-answer.active {
    max-height: 400px; /* Adjust as needed */
    padding: 10px 15px 15px 15px;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .master-hero h1 {
        font-size: 2.5em;
    }
    .master-hero .subtitle {
        font-size: 1.1em;
    }
    .master-content h2 {
        font-size: 1.7em;
    }
    .responsibilities-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
    
    /* Process Timeline Adjustments */
    .process-timeline {
        padding-left: 40px;
    }
    .process-timeline::before {
        left: 20px;
    }
    .step-icon {
        left: -40px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .step-content {
        padding: 18px 20px;
    }
}

@media (max-width: 768px) {
    .master-hero {
        padding: 60px 15px;
    }
    .master-hero h1 {
        font-size: 2.1em;
    }
    .master-hero .subtitle {
        font-size: 1em;
    }
    .master-content .content-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    .master-content h2 {
        font-size: 1.6em;
    }
    .reporting-process-section .steps-list li {
        padding-left: 50px;
    }
    .reporting-process-section .steps-list li .step-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    .checklist-tabs .tab-link {
        font-size: 0.95em;
        padding: 8px 12px;
    }
    .faq-question {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .master-hero h1 {
        font-size: 1.9em;
    }
    .master-hero .subtitle {
        font-size: 0.95em;
    }
    .master-content h2 {
        font-size: 1.5em;
    }
    .master-content h3 {
        font-size: 1.3em;
    }
    .reporting-process-section .steps-list li {
        padding-left: 45px;
    }
     .reporting-process-section .steps-list li .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }
    .checklist-tabs {
        gap: 5px;
    }
    .checklist-tabs .tab-link {
        flex-basis: 48%; /* Two tabs per row */
        text-align: center;
    }
    .faq-question {
        font-size: 1em;
        padding-right: 30px;
    }
}

/* --- Scroll Animations --- */
@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-10deg) scale(0.9);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Animation Classes */
.card-icon, .document-icon, .step-icon, .checklist-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-icon.animated, .document-icon.animated, .step-icon.animated {
    animation: popIn 0.5s ease forwards;
}

.document-item {
    opacity: 0;
    transform: translateY(15px);
}

.document-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grid items */
.document-item:nth-child(1) { transition-delay: 0.05s; }
.document-item:nth-child(2) { transition-delay: 0.1s; }
.document-item:nth-child(3) { transition-delay: 0.15s; }
.document-item:nth-child(4) { transition-delay: 0.2s; }
.document-item:nth-child(5) { transition-delay: 0.25s; }
.document-item:nth-child(6) { transition-delay: 0.3s; }
.document-item:nth-child(7) { transition-delay: 0.35s; }