/* Grievance Redressal Page Styles */

* {
    box-sizing: border-box;
}

.grievance-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f3f8 100%);
    width: 100%;
    overflow-x: hidden;
}

.grievance-section .container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
}

/* Content Wrapper */
.content-wrapper {
    margin-bottom: 2rem;
    width: 100%;
}

/* Card Styling */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid #2a9d8f;
    width: 100%;
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Titles */
.section-title {
    color: #1a1a1a;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #2a9d8f;
}

.subsection-title {
    color: #2a2a2a;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Paragraphs */
.content-card p {
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* Lists */
.resolution-process,
.ombudsman-process,
.excluded-complaints,
.additional-responsibilities {
    list-style: none;
    padding: 0;
}

.resolution-process li,
.ombudsman-process li,
.excluded-complaints li,
.additional-responsibilities li {
    background: #f9fafb;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2a9d8f;
    color: #4a4a4a;
    line-height: 1.7;
}

.resolution-process li strong,
.ombudsman-process li strong,
.excluded-complaints li strong,
.additional-responsibilities li strong {
    color: #2a9d8f;
}

/* Contact Channels */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.channel-item {
    background: #f0f8f7;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #d4edea;
}

.channel-item h4 {
    color: #2a9d8f;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.channel-item p {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.channel-hours {
    font-weight: 500;
    color: #2a2a2a;
}

.note {
    color: #e77f4a;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Placeholder Text */
.placeholder {
    
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-style: italic;
    
}

/* Escalation Levels */
.escalation-levels {
    margin-top: 1.5rem;
}

.escalation-item {
    margin-bottom: 2rem;
}

.escalation-item:last-child {
    margin-bottom: 0;
}

/* Officer Details */
.officer-details {
    background: #f0f8f7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.25rem;
}

.officer-details h4 {
    color: #2a9d8f;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.officer-details h4:first-child {
    margin-top: 0;
}

.officer-details p {
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.officer-details a {
    color: #2a9d8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.officer-details a:hover {
    color: #1e8b7d;
    text-decoration: underline;
}

/* RBI Contact */
.rbi-contact {
    background: #f0f8f7;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2a9d8f;
    margin-top: 1.25rem;
}

.rbi-contact p {
    margin-bottom: 0.75rem;
}

.rbi-contact a {
    color: #2a9d8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rbi-contact a:hover {
    color: #1e8b7d;
    text-decoration: underline;
}

/* Turnaround Time Table */
.tat-table-container {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.tat-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tat-table thead {
    background: #2a9d8f;
}

.tat-table th {
    color: white;
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.tat-table td {
    padding: 1.25rem;
    border-bottom: 1px solid #e0e0e0;
    color: #4a4a4a;
    font-size: 0.95rem;
}

.tat-table tbody tr:last-child td {
    border-bottom: none;
}

.tat-table tbody tr:hover {
    background: #f5f7fa;
}

/* Links */
.content-card a {
    color: #2a9d8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: #1e8b7d;
    text-decoration: underline;
}

/* Escalation Matrix Summary */
.escalation-summary {
    background: #f0f8f7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #2a9d8f;
}

.escalation-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.escalation-list li {
    color: #4a4a4a;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Matrix 3 List */
.matrix3-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.matrix3-list li {
    color: #4a4a4a;
    margin-bottom: 1rem;
    line-height: 1.8;
    text-align: justify;
}

.matrix3-list li:last-child {
    margin-bottom: 0;
}

/* Closure Communications */
.closure-communications {
    list-style: lower-alpha;
    padding-left: 1.5rem;
    margin: 0.75rem 0 0 0;
}

.closure-communications li {
    color: #4a4a4a;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Ombudsman Roles List */
.ombudsman-roles-list {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0;
}

.ombudsman-roles-list li {
    color: #4a4a4a;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.ombudsman-roles-list li:last-child {
    margin-bottom: 0;
}

/* Resolution Process */
.resolution-letters {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.resolution-letters li {
    background: #f9fafb;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border-left: 4px solid #2a9d8f;
    color: #4a4a4a;
    line-height: 1.7;
    text-align: justify;
}

.resolution-letters li:last-child {
    margin-bottom: 0;
}

.category-card {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2a9d8f;
}

.category-card h4 {
    color: #2a9d8f;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #d4edea;
}

.subcategory {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.subcategory:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.subcategory strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.subcategory ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory ul li {
    color: #4a4a4a;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.subcategory ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2a9d8f;
    font-weight: bold;
}

.category-card > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-card > ul li {
    color: #4a4a4a;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-card > ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a9d8f;
    font-weight: bold;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grievance-section {
        padding: 2rem 0;
    }

    .grievance-section .container {
        padding: 0 1rem;
    }

    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .subsection-title {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .content-card p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .contact-channels {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .resolution-process li,
    .ombudsman-process li,
    .excluded-complaints li,
    .additional-responsibilities li {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }

    .officer-details {
        padding: 1rem;
    }

    .officer-details h4 {
        font-size: 0.95rem;
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .officer-details p {
        font-size: 0.9rem;
    }

    .tat-table th,
    .tat-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .category-card {
        padding: 1.25rem;
    }

    .subcategory ul li,
    .category-card > ul li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .grievance-section {
        padding: 1.5rem 0;
        width: 100%;
    }

    .grievance-section .container {
        width: 100%;
        padding: 0 0.75rem;
        margin: 0 auto;
    }

    .content-wrapper {
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .content-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
        width: 100%;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .subsection-title {
        font-size: 1rem;
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }

    .content-card p {
        font-size: 0.9rem;
    }

    .contact-channels {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .channel-item {
        padding: 1rem;
    }

    .channel-item h4 {
        font-size: 1rem;
    }

    .resolution-process li,
    .ombudsman-process li,
    .excluded-complaints li,
    .additional-responsibilities li {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .tat-table-container {
        font-size: 0.85rem;
        overflow-x: auto;
    }

    .tat-table th,
    .tat-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }

    .category-card {
        padding: 1rem;
    }

    .category-card h4 {
        font-size: 1rem;
    }

    .subcategory strong {
        font-size: 0.95rem;
    }

    .subcategory ul li,
    .category-card > ul li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
        margin-bottom: 0.4rem;
    }

    .rbi-contact {
        padding: 1rem;
    }

    .officer-details {
        padding: 1rem;
    }
}
