@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --iqac-primary: #1B9E98;
    --iqac-primary-dark: #147a75;
    --iqac-secondary: #140d45;
    --iqac-text: #333;
    --iqac-bg: #f7f7f7;
    --white: #ffffff;
    --iqac-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --iqac-glass-bg: rgba(255, 255, 255, 0.8);
    --iqac-glass-border: rgba(255, 255, 255, 0.3);
    --iqac-accent: #FF7043;
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #f7f7f7, #e0f2f1, #e8f5e9, #f7f7f7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--iqac-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.modern-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .modern-container {
        margin: 20px auto;
        padding: 0 15px;
    }
}

.modern-card {
    background: var(--iqac-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--iqac-glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--iqac-shadow);
    margin-bottom: 30px;
}

.modern-header {
    background: linear-gradient(135deg, var(--iqac-secondary), var(--iqac-primary));
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    box-shadow: var(--iqac-shadow);
    position: relative;
}

.header-home-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 10;
}

.header-home-btn:hover {
    background: var(--white);
    color: var(--iqac-primary-dark);
    transform: translateY(-2px);
}

.modern-header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
}

@media (max-width: 768px) {
    .modern-header {
        padding: 30px 15px;
        margin-bottom: 25px;
        border-radius: 0 0 20px 20px;
    }
}

.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .modern-grid {
        grid-template-columns: 1fr;
    }
}

.modern-sidebar {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--iqac-shadow);
}

@media (max-width: 768px) {
    .modern-sidebar {
        padding: 15px;
        margin-bottom: 20px;
    }

    .modern-sidebar a.modern-btn {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

.modern-sidebar h3 {
    color: var(--iqac-secondary);
    border-bottom: 2px solid var(--iqac-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modern-sidebar ul {
    list-style: none;
    padding: 0;
}

.modern-sidebar li {
    margin-bottom: 10px;
}

.modern-sidebar a.modern-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    background-color: var(--iqac-primary);
    color: var(--white);
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.modern-sidebar a.modern-btn:hover {
    background-color: var(--iqac-primary-dark);
    transform: translateX(5px);
}

.modern-link-sub {
    display: block;
    font-size: 0.9rem;
    color: var(--iqac-secondary);
    margin: 5px 0 10px 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.modern-link-sub:hover {
    color: var(--iqac-primary);
}

/* Sidebar Sub-link Grid */
.sub-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
    background: rgba(27, 158, 152, 0.05);
    border-radius: 8px;
    margin: 5px 0 15px 10px;
}

.sub-link-grid .modern-link-sub {
    margin: 0;
    padding: 5px;
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(27, 158, 152, 0.1);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sub-link-grid .modern-link-sub:hover {
    background: var(--iqac-primary);
    color: var(--white);
    border-color: var(--iqac-primary);
}

@media (max-width: 600px) {
    .sub-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* AQAR Grid Styles */
.aqar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.aqar-item {
    background: var(--white);
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--iqac-secondary);
    font-weight: 600;
}

.aqar-item:hover {
    box-shadow: var(--iqac-shadow);
    transform: translateY(-5px);
    border-color: var(--iqac-primary);
}

.modern-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--iqac-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.modern-btn:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
}

.modern-btn:hover {
    background-color: var(--iqac-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

/* Member Card */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .member-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .member-grid {
        grid-template-columns: 1fr;
    }
}

.member-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* enhanced shadow */
    border-left: 4px solid var(--iqac-primary);
    transition: all 0.3s ease;
    /* added transition */
    position: relative;
    /* added for any pseudo elements if needed */
    overflow: hidden;
    /* added */
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--iqac-accent);
    /* change border color on hover */
}

.member-card img {
    transition: transform 0.5s ease;
}

.member-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.member-card h4 {
    margin: 0 0 5px;
    color: var(--iqac-secondary);
    font-size: 1.1rem;
}

.member-card p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Responsive Layout */
.layout-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

img {
    max-width: 100%;
    height: auto;
}

.main-content {
    flex: 3;
    min-width: 300px;
}

.sidebar-right {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 900px) {
    .layout-wrapper {
        flex-direction: column;
    }
}

/* Feedback Form Styles */
.roll-badge {
    background: var(--iqac-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    margin: 10px 0;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feedback-legend {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    background: #f0f7f6;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.feedback-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feedback-table th,
.feedback-table td {
    padding: 15px;
    border: 1px solid #eee;
    text-align: center;
}

.feedback-table th:first-child,
.feedback-table td:first-child {
    text-align: left;
    width: 50%;
}

.feedback-table th {
    background: var(--iqac-primary);
    color: white;
    font-weight: 500;
}

.feedback-table tr:nth-child(even) {
    background: #fafafa;
}

.feedback-table input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--iqac-accent);
}

/* Feedback Form Styles */
.feedback-form-header {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--iqac-shadow);
    margin: 30px auto;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    border-top: 5px solid var(--iqac-primary);
}

.feedback-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.feedback-input-group label {
    font-weight: 700;
    color: var(--iqac-secondary);
    font-size: 1.1rem;
}

.feedback-input-group span {
    font-weight: 500;
    color: #555;
    font-size: 1.05rem;
}

.feedback-input-group input[type="text"] {
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    width: 80%;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.feedback-input-group input[type="text"]:focus {
    border-color: var(--iqac-primary);
    box-shadow: 0 0 0 4px rgba(27, 158, 152, 0.1);
    outline: none;
}

.submit-container {
    text-align: center;
    margin: 10px 0 0;
    width: 100%;
}

.modern-btn {
    background: var(--iqac-primary);
    color: var(--white);
    border: none;
    padding: 14px 60px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(27, 158, 152, 0.3);
    width: 80%;
}

.modern-btn:hover {
    background: var(--iqac-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 158, 152, 0.3);
}

/* Content Sections */
.bp-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bp-section:last-child {
    border-bottom: none;
}

.bp-section p {
    margin-bottom: 12px;
}

.bp-section ul {
    list-style-type: none;
    padding-left: 20px;
}

.bp-section ul li {
    position: relative;
    margin-bottom: 8px;
}

.bp-section ul li::before {
    content: "•";
    color: var(--iqac-accent);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

@media (max-width: 768px) {

    .feedback-table,
    #customers {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    .feedback-table th,
    .feedback-table td,
    #customers th,
    #customers td {
        min-width: 120px;
        /* Ensure content doesn't squash too much */
    }

    .feedback-table th:first-child,
    .feedback-table td:first-child,
    #customers th:first-child,
    #customers td:first-child {
        min-width: 200px;
        /* Specific width for the question column */
        position: sticky;
        left: 0;
        background: white;
        z-index: 1;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    }

    .feedback-table th:first-child,
    #customers th:first-child {
        background: var(--iqac-primary);
        z-index: 2;
    }
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--iqac-accent);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--iqac-primary);
    transform: scale(1.1);
}

/* Modern Footer */
.modern-footer {
    background: var(--iqac-primary);
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .modern-footer {
        padding: 30px 15px;
        margin-top: 30px;
    }

    .modern-card {
        padding: 20px;
    }

    .roll-badge {
        font-size: 1rem;
        padding: 6px 15px;
    }
}