/* Main Page Header */
.about-header {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: center;
    padding: 0 20px;
}
.about-header h1 { font-size: 36px; margin: 0; }
.about-header p { font-size: 18px; color: #6B7280; margin-top: 10px; }

/* Accordion Item Styling */
.feature-explainer {
    max-width: 900px;
    margin: 0 auto;
    background-color: transparent;
    border-bottom: 1px solid #E5E7EB;
}
.feature-explainer:first-of-type {
    border-top: 1px solid #E5E7EB;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 10px;
    cursor: pointer;
    position: relative; /* Needed for mobile icon positioning */
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #EEF2FF;
    color: #4F46E5;
    font-size: 20px;
}

.feature-title {
    flex-grow: 1;
    min-width: 0; /* Allows text container to shrink and wrap */
}
.feature-title h3 { margin: 0 0 8px 0; font-size: 20px; color: #111827; }
.feature-title p {
    color: #6B7280;
    line-height: 1.6;
    margin: 8px 0 0 0; /* Consistent margin for when it's visible */
    overflow: hidden;  /* Important for the max-height animation */
    
    /* Define the default state for the animation */
    opacity: 1;
    max-height: 1000px; /* Give it a starting height, large enough for your text */
    
    /* Define the transition */
    transition: all 0.3s ease-in-out;
}


.expand-icon {
    margin-left: 15px;
    font-size: 18px;
    color: #9CA3AF;
    transition: transform 0.3s ease;
}

/* Expanded Content */
.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.content-inner {
    padding: 0 10px 30px 80px; /* Desktop indentation */
}
.content-inner p, .content-inner li {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    overflow-wrap: break-word; /* Ensures long words wrap */
}
.content-inner ul { padding-left: 20px; }


/* Expanded State Styling */
.feature-explainer.expanded .expand-icon {
    transform: rotate(180deg);
}
.feature-explainer.expanded .feature-content {
    /* Use a large value to ensure it always fits the content */
    max-height: 5000px; 
}
.feature-explainer.expanded .feature-title p {
    max-height: 0;
    opacity: 0;
    margin: 0; /* Remove margin when hidden to fully collapse the space */
}

/* Branding Footer Styling */
.branding-footer {
    margin-top: 80px;
    margin-left: 0;
    margin-right: 0;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
}
.login-branding { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 15px 15px; max-width: 400px; margin: 0 auto; }
.login-branding strong { font-size: 60px; font-weight: 800; color: #D1D5DB; text-align: right; padding-right: 15px; }
.login-branding span { font-size: 28px; font-weight: 500; color: #9CA3AF; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .content-inner {
        padding-left: 75px;
    }
}

@media (max-width: 480px) {
    .feature-header {
        align-items: flex-start;
    }
    .content-inner {
        padding-left: 25px;
    }
}