/* ==================== Department Page Specific Styles ==================== */

/* Department Detail Cards Grid */
.dept-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Department Detail Card */
.dept-detail-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #F0FDFA;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Card Gradient Background */
.dept-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #70F8BA, #4FD1A1, #2DD4BF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dept-detail-card:hover::before {
    opacity: 1;
}

.dept-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(112, 248, 186, 0.25);
    border-color: #70F8BA;
}

/* Department Header */
.dept-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dept-header svg {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(112, 248, 186, 0.3));
}

.dept-header img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(112, 248, 186, 0.3));
}

.dept-header h3 {
    font-size: 1.4rem;
    color: #134E4A;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

/* Department Description */
.dept-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex-grow: 0;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Department Info Grid */
.dept-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #F0FDFA 0%, #ECFDF5 100%);
    border-radius: 12px;
    border: 1px solid #D1FAE5;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-item .label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #134E4A;
    background: linear-gradient(135deg, #70F8BA, #2DD4BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Department Features List */
.dept-features {
    list-style: none;
    margin-bottom: 1rem;
    padding: 0;
    flex-grow: 1;
}

.dept-features li {
    padding: 0.5rem 0;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    border-bottom: 1px solid #F0FDFA;
    transition: all 0.2s ease;
}

.dept-features li:last-child {
    border-bottom: none;
}

.dept-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #70F8BA, #4FD1A1);
    color: #134E4A;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.dept-features li:hover {
    padding-left: 0.5rem;
    color: #134E4A;
}

/* Explore Button */
.btn-explore {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #70F8BA 0%, #4FD1A1 50%, #2DD4BF 100%);
    color: #134E4A;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(112, 248, 186, 0.3);
    margin-top: auto;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(112, 248, 186, 0.5);
    background: linear-gradient(135deg, #5FE7A9 0%, #3EC090 50%, #1CC3AE 100%);
}

/* Provincial Grid */
.provincial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Provincial Card */
.provincial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #70F8BA;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.provincial-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(112, 248, 186, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.provincial-card:hover {
    box-shadow: 0 8px 32px rgba(112, 248, 186, 0.2);
    transform: translateX(8px);
    border-left-color: #2DD4BF;
}

.provincial-card h3 {
    color: #134E4A;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.provincial-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.province-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.province-stats span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #F0FDFA, #ECFDF5);
    border-radius: 8px;
    color: #134E4A;
    font-weight: 600;
    border: 1px solid #D1FAE5;
}

.province-stats span::before {
    content: '●';
    color: #70F8BA;
    font-size: 1.2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.25rem;
    color: #134E4A;
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #70F8BA, #2DD4BF);
    border-radius: 2px;
}

.departments-section {
    margin-bottom: 5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dept-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .dept-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dept-detail-card {
        min-height: auto;
        max-height: none;
        padding: 2rem;
    }

    .dept-header h3 {
        font-size: 1.25rem;
    }

    .dept-description {
        height: auto;
        -webkit-line-clamp: unset;
    }

    .dept-features {
        max-height: none;
    }

    .provincial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .provincial-card {
        padding: 2rem;
    }

    .provincial-card h3 {
        font-size: 1.2rem;
    }

    .province-stats {
        flex-direction: column;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Info Boxes Section */
.info-boxes-section {
    margin-bottom: 4rem;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.info-box {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #F0FDFA;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #70F8BA, #4FD1A1, #2DD4BF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.info-box:hover::before {
    transform: scaleX(1);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(112, 248, 186, 0.25);
    border-color: #70F8BA;
}

.info-box .label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: block;
}

.info-box .value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #70F8BA, #2DD4BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1.2;
}

.info-box .value a {
    background: linear-gradient(135deg, #70F8BA, #2DD4BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: inherit;
    font-weight: inherit;
}

.info-box .value a:hover {
    background: linear-gradient(135deg, #5FE7A9, #1CC3AE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive for Info Boxes */
@media (max-width: 1024px) {
    .info-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .info-boxes {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-box {
        padding: 1.5rem 1rem;
    }

    .info-box .value {
        font-size: 1.75rem;
    }
}

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

.dept-detail-card {
    animation: fadeInUp 0.6s ease backwards;
}

.dept-detail-card:nth-child(1) { animation-delay: 0.1s; }
.dept-detail-card:nth-child(2) { animation-delay: 0.2s; }
.dept-detail-card:nth-child(3) { animation-delay: 0.3s; }
.dept-detail-card:nth-child(4) { animation-delay: 0.1s; }
.dept-detail-card:nth-child(5) { animation-delay: 0.2s; }
.dept-detail-card:nth-child(6) { animation-delay: 0.3s; }

.info-box {
    animation: fadeInUp 0.5s ease backwards;
}

.info-box:nth-child(1) { animation-delay: 0.1s; }
.info-box:nth-child(2) { animation-delay: 0.15s; }
.info-box:nth-child(3) { animation-delay: 0.2s; }
.info-box:nth-child(4) { animation-delay: 0.25s; }

/* Salary Page Specific Styles */
.salary-table-container {
    margin: 2rem 0;
    overflow-x: auto;
}

.salary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.salary-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.salary-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.salary-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.salary-table tbody tr:hover {
    background: var(--background);
}

.salary-table tbody tr:last-child td {
    border-bottom: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--primary-color);
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.info-card p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.benefits-list {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.benefit-item h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-item ul {
    list-style: none;
    padding: 0;
}

.benefit-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.benefit-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.salary-components {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.salary-components li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.salary-components li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    line-height: 1;
}

.example-calculation {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.example-calculation h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.example-calculation p {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
}

.comparison-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.comparison-card ul {
    list-style: none;
    padding: 0;
}

.comparison-card li {
    padding: 0.5rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.comparison-card li:last-child {
    border-bottom: none;
}

.updates-timeline {
    margin: 2rem 0;
}

.update-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.update-item:last-child {
    border-bottom: none;
}

.update-date {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.update-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.update-content p {
    color: var(--text-light);
    margin: 0;
}

.career-timeline {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.career-stage {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-color);
}

.career-stage h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.career-stage p {
    margin: 0.25rem 0;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .salary-table {
        font-size: 0.85rem;
    }
    
    .salary-table th,
    .salary-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .update-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .comparison-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
}
