 :root {
    /* New AI Color Scheme */
    --bg-color: #1a202c; /* Very dark blue, almost black */
    --card-color: rgba(45, 55, 72, 0.787); /* Dark gray-blue for cards */
    --primary-accent: #63e2b8; /* Bright Neon Cyan/Green */
    --secondary-accent: #805AD5; /* Vibrant Purple */
    --text-light: #e2e8f0f9;
    --text-medium: #f3f7fce2;
    /* --text-strong: #FFFFFF; Pure white for highlights */
    --border-color: rgba(99, 226, 183, 0.2); /* Neon border */
    --shadow-color: rgba(99, 226, 183, 0.5); /* Neon shadow */

    --prim-color: #5A67D8; /* A vibrant, modern purple-blue */
    --glow-color: #63e2b7; /* A bright neon blue/cyan for glow effects */
    --bg-color: #1a202c; 
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem; /* Adjusted padding for better spacing */
}

.page-title-header {
    text-align: center;
    margin-bottom: 3rem; /* Increased margin */
    padding: 1.5rem;
    border-radius: 16px; /* Added border-radius */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-title-header:hover {
    transform: translateY(-5px); /* Changed to upward movement */
    box-shadow: 0 12px 40px 0 rgba(99, 226, 120, 0.39);
}

.page-title-header h1 {
    font-size: 2.5rem; /* Increased font size */
    font-weight: 700;
    margin-bottom: 0.5rem;
     background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.page-title-header p {
    font-size: 1.1rem; /* Increased font size */
    color: var(--text-medium);
}

.cards-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted minmax for better fit */
    gap: 2rem;
}

.info-card {
    background: rgba(45, 55, 72, 0.49);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem; /* Increased padding */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    display: flex;
    flex-direction: column;
    font-weight: 700;
    line-height: 1.6; /* Adjusted line-height */
}

.info-card.full-width-card {
    grid-column: 1 / -1;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgb(99, 226, 184);
}

.info-card h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.info-card h2 .sub-heading {
    color: var(--text-medium);
    font-weight: 400;
    font-size: 1rem;
}
.info-card p { color: var(--text-light); }
.highlight { font-weight: 600; color: var(--text-strong); }

.info-box-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.info-box-container.exam-pattern {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.info-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.172);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-weight: 900;
}

.info-box:hover {
    transform: scale(1.05);
    background: rgba(99, 226, 184, 0.256); /* Use primary accent color for hover */
}

.info-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-strong);
}

.department-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.department-card {
    background: rgba(0, 0, 0, 0.194);
    padding: 1.5rem;
    border-radius: 10px;
}

.department-card h3 {
    font-size: 1.1rem;
    color: var(--text-strong);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.post-count {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-accent);
}

.department-card ul { list-style-position: inside; padding-left: 0; }
.department-card li { font-size: 0.99rem; color: var(--text-light); margin-bottom: 0.5rem; }

.link-container {
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn { background: transparent; border: 1px solid var(--glow-color); color: var(--glow-color);
font: var(--text-strong) !important;
     

}

.btn:hover {
   background: var(--glow-color); color:#f6f5f5 ; transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
    font: var(--glow-color);
}

.btn.secondary { background: transparent; border: 1px solid var(--glow-color); color: var(--glow-color);
font: var(--text-strong); 
}
 
.btn.secondary:hover { background-color: var(--primary-accent); color: #f6f5f5; }

.how-to-apply-list {
    color: var(--text-light);
    font-weight: 600;
}

.table-layout {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    color: var(--text-light);
    font-weight: 800;
}

.table-header, .table-row, .table-footer {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.table-row:last-of-type, .table-footer { border-bottom: none; }
.table-row:hover { background-color: rgba(99, 226, 184, 0.348); }
.table-header { background-color: rgba(0, 0, 0, 0.181); font-weight: 700; color: var(--text-strong); }
.table-footer { background-color: rgba(0, 0, 0, 0.2); font-weight: 600; }
.table-cell { padding: 12px 15px; text-align: center; flex: 1 1 0; }
.table-cell:first-child { flex-grow: 2; text-align: left; }
.table-cell.total { font-weight: 800; color: var(--primary-accent); }

.faq-container {
    max-width: 800px;
    margin: 40px auto; /* Centered with auto margin */
    padding: 0; /* Padding removed, handled by items */
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px; /* Increased padding */
    border-left: 4px solid var(--primary-accent);
    background-color: rgba(45, 55, 72, 0.5); /* Use card color */
    border-radius: 9px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    margin: 0 0 10px;
    font-size: 1.1rem; /* Adjusted size */
    color: var(--primary-accent);
}

.faq-item p {
    margin: 0;
    font-size: 1rem; /* Adjusted size */
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* --- =================== --- */
/* --- MEDIA QUERIES (RESPONSIVE DESIGN) --- */
/* --- =================== --- */

/* For Tablets (e.g., iPads) */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 3rem 1rem;
    }

    .page-title-header h1 {
        font-size: 2rem;
    }
    
    .page-title-header p {
        font-size: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }
    
    .table-layout {
        display: block; /* Stack table cells */
    }

    .table-header {
        display: none; /* Hide header in stacked view */
    }

    .table-row {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
    }
    
    .table-cell {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px;
        text-align: right; /* Align value to the right */
        border-bottom: 1px solid var(--border-color);
    }

    .table-cell:last-child {
        border-bottom: none;
    }
    
    .table-cell::before {
        content: attr(data-label); /* Add labels for context */
        font-weight: bold;
        text-align: left;
        color: var(--text-medium);
        margin-right: 1rem;
    }

    .table-cell:first-child {
        justify-content: center; /* Center the post name */
        background-color: rgba(0,0,0,0.2);
        font-weight: bold;
        color: var(--text-strong);
    }
    
    .table-cell:first-child::before {
        display: none; /* Hide label for the main title cell */
    }
    
    .table-footer {
        display: block;
        border-top: 2px solid var(--border-color);
    }
 
}

/* For Mobile Phones */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 7rem 1rem;
    }
    
    .cards-grid-container {
        grid-template-columns: 1fr; /* Single column on small phones */
    }
    
    .page-title-header h1 {
        font-size: 1.8rem;
    }

    .department-container {
        grid-template-columns: 1fr;
    }
    
    .faq-container {
        margin: 20px auto;
    }

    .link-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

