/* Student Grievance Redressal Section Styles */

.grievance-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.grievance-header {
    background: linear-gradient(135deg, var(--dark-blue), #0052b3);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 62, 143, 0.2);
    position: relative;
    overflow: hidden;
}

.grievance-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(180deg); opacity: 0.8; }
}

.college-info {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.college-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.college-location {
    font-size: 18px;
    font-weight: 600;
    color: var(--light-blue);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.college-affiliation,
.college-decision {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    line-height: 1.6;
}

.college-code {
    font-size: 16px;
    color: #ffffff;
    margin-top: 15px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.college-code strong {
    font-weight: 700;
    letter-spacing: 1px;
}

.grievance-content {
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.grievance-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.grievance-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--light-blue), var(--darkkpink));
    border-radius: 2px;
}

.grievance-intro {
    background: linear-gradient(135deg, #f0f7fb 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 10px;
    border-left: 5px solid var(--light-blue);
    margin-bottom: 45px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.grievance-intro p {
    font-size: 16px;
    color: #333;
    line-height: 1.9;
    margin-bottom: 18px;
    text-align: justify;
}

.grievance-intro p:last-child {
    margin-bottom: 0;
}

.complaint-section {
    margin-top: 40px;
}

.complaint-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.complaint-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background-color: #ffffff;
}

.complaint-table thead {
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    position: sticky;
    top: 0;
    z-index: 10;
}

.complaint-table th {
    padding: 20px 25px;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--light-blue);
}

.complaint-table th:first-child {
    width: 80px;
    text-align: center;
}

.complaint-table th:nth-child(2) {
    width: 40%;
}

.complaint-table th:nth-child(3) {
    width: auto;
}

.complaint-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.complaint-table tbody tr:hover {
    background: linear-gradient(90deg, #f0f7fb 0%, #ffffff 100%);
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--light-blue);
}

.complaint-table tbody tr:last-child {
    border-bottom: none;
}

.complaint-table td {
    padding: 22px 25px;
    font-size: 15px;
    color: #333;
    vertical-align: middle;
}

.complaint-table td:first-child {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-blue);
    text-align: center;
}

.complaint-table td:nth-child(2) {
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.6;
}

.complaint-type {
    display: block;
    font-size: 13px;
    color: #6c757d;
    font-weight: 400;
    margin-top: 5px;
    font-style: italic;
}

.complaint-link {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.complaint-link::before {
    content: '🔗 ';
    margin-right: 5px;
}

.complaint-link:hover {
    color: var(--darkkpink);
    text-decoration: none;
    transform: translateX(5px);
}

.complaint-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--light-blue), var(--darkkpink));
    transition: width 0.3s ease;
}

.complaint-link:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 992px) {
    .grievance-section {
        padding: 50px 0;
    }

    .grievance-header {
        padding: 35px 25px;
    }

    .college-name {
        font-size: 26px;
    }

    .grievance-content {
        padding: 40px 30px;
    }

    .grievance-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .grievance-section {
        padding: 40px 0;
    }

    .grievance-header {
        padding: 30px 20px;
    }

    .college-name {
        font-size: 22px;
    }

    .college-location {
        font-size: 16px;
    }

    .college-affiliation,
    .college-decision {
        font-size: 13px;
    }

    .college-code {
        font-size: 14px;
        padding: 10px 20px;
    }

    .grievance-content {
        padding: 30px 20px;
    }

    .grievance-title {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .grievance-intro {
        padding: 25px;
    }

    .grievance-intro p {
        font-size: 14px;
    }

    .complaint-table th,
    .complaint-table td {
        padding: 15px 18px;
        font-size: 13px;
    }

    .complaint-table td:first-child {
        font-size: 16px;
    }

    .complaint-link {
        font-size: 12px;
    }

    .complaint-table tbody tr:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .grievance-header {
        padding: 25px 15px;
    }

    .college-name {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .college-location {
        font-size: 14px;
    }

    .grievance-content {
        padding: 25px 15px;
    }

    .grievance-title {
        font-size: 20px;
        padding-bottom: 15px;
    }

    .grievance-title::after {
        width: 70px;
        height: 3px;
    }

    .grievance-intro {
        padding: 20px;
        border-left-width: 3px;
    }

    .complaint-table th,
    .complaint-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .complaint-table th:first-child {
        width: 50px;
    }

    .complaint-type {
        font-size: 11px;
    }
}