/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #70F8BA;
    --secondary-color: #4FD1A1;
    --accent-color: #2DD4BF;
    --background: #F0FDFA;
    --text-dark: #134E4A;
    --text-light: #1e293b;
    --white: #ffffff;
    --border-color: #CCFBF1;
    --shadow-sm: 0 1px 2px 0 rgba(112, 248, 186, 0.08);
    --shadow-md: 0 4px 6px -1px rgba(112, 248, 186, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(112, 248, 186, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(112, 248, 186, 0.25);
}

body {
    font-family: 'Arima Madurai', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* ==================== Navigation Header ==================== */
.navbar {
    background-color: var(--text-dark);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 101;
}

.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Dropdown Menu Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-toggle:hover {
    color: var(--primary-color);
}

.nav-dropdown-toggle::after {
    content: '▼';
    font-size: 0.65rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background-color: var(--text-dark);
    border: 1px solid rgba(112, 248, 186, 0.2);
    border-radius: 8px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:first-child {
    border-radius: 8px 8px 0 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0 0 8px 8px;
}

.nav-dropdown-menu a:hover {
    background-color: rgba(112, 248, 186, 0.1);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.btn-login {
    background-color: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, var(--background) 0%, #E0F9F4 100%);
     min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Section */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(112, 248, 186, 0.3));
}

.hero-text {
    text-align: center;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 500;
}

/* Right Section */
.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    text-align: left;
}

.title-highlight {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    text-align: left;
    position: relative;
    padding: 0.2rem 0;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 3px;
}

/* ==================== Page Header ==================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 4rem 0;
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-header-content p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.95;
}

/* ==================== Main Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.job-listing {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* ==================== Filters Sidebar ==================== */
.filters-sidebar {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: var(--shadow-md);
}

.filters-sidebar h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    cursor: pointer;
    margin-bottom: 0.8rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.salary-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==================== Jobs Container ==================== */
.jobs-container {
    display: grid;
    gap: 1.5rem;
}

/* ==================== Job Card ==================== */
.job-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

/* ==================== Job Detail Card ==================== */
.job-detail-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.job-detail-card:hover {
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.job-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.job-title-section h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.organization {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.badge-govt {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.job-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.detail-section {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.detail-section h4 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.detail-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.responsibility-list,
.requirement-list,
.highlight-list {
    list-style: none;
}

.responsibility-list li,
.requirement-list li,
.highlight-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    color: var(--text-light);
    position: relative;
    line-height: 1.6;
}

.responsibility-list li::before,
.requirement-list li::before,
.highlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.process-list {
    list-style: decimal-leading-zero;
    padding-left: 1.8rem;
}

.process-list li {
    padding: 0.6rem 0;
    color: var(--text-light);
    line-height: 1.6;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    padding: 0.6rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.benefit-list li::before {
    content: "💰";
    position: absolute;
    left: 0;
}

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

.doc-item {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.doc-item:hover {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
    transform: translateY(-2px);
}

.job-detail-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

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

.info-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.info-box .label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.info-box .value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-apply-large {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
}

.company-info {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--background);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-details h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.company-name {
    color: var(--text-light);
    font-size: 0.95rem;
}

.btn-bookmark {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.btn-bookmark:hover {
    transform: scale(1.2);
    color: #ff6b6b;
}

/* ==================== Job Meta (Badges) ==================== */
.job-meta {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-remote {
    background-color: #dbeafe;
    color: #0369a1;
}

.badge-onsite {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-fulltime {
    background-color: #dcfce7;
    color: #166534;
}

.badge-mid {
    background-color: #fcd34d;
    color: #78350f;
}

.badge-senior {
    background-color: #fbcfe8;
    color: #9d174d;
}

/* ==================== Job Description ==================== */
.job-description {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== Job Details Grid ==================== */
.job-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background-color: var(--background);
    border-radius: 6px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.detail-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================== Skills ==================== */
.skills {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.skill-tag {
    background-color: #f3f4f6;
    color: var(--primary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==================== Job Actions ==================== */
.job-actions {
    display: flex;
    gap: 1rem;
}

.btn-apply,
.btn-details {
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-apply {
    background-color: var(--primary-color);
    color: var(--white);
    flex: 1;
}

.btn-apply:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-details {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    flex: 1;
}

.btn-details:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 3rem 1.5rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #d1d5db;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ==================== Home Page Sections ==================== */
.welcome-section {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(112, 248, 186, 0.15), rgba(45, 212, 191, 0.15));
    border-radius: 16px;
    padding: 0.75rem;
}

.feature-icon svg {
    width: 48px;
    height: 48px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Departments Preview */
.departments-preview {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.dept-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.dept-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.dept-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.dept-card h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.dept-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.dept-count {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

/* Statistics Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #134E4A 0%, #0f3f37 100%);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(19, 78, 74, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(112, 248, 186, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(112, 248, 186, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(112, 248, 186, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(112, 248, 186, 0.2);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #70F8BA 0%, #2DD4BF 100%);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #70F8BA 0%, #2DD4BF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    position: relative;
}

.stat-number::after {
    content: '+';
    position: absolute;
    right: -0.5em;
    top: 0;
    font-size: 0.6em;
    opacity: 0.6;
}

.stat-box:first-child .stat-number::after,
.stat-box:nth-child(3) .stat-number::after {
    content: '';
}

.stat-label {
    font-size: 0.95rem;
    color: #CCFBF1;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.3px;
}


/* How It Works Section */
.how-it-works {
    margin-bottom: 4rem;
}

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

.step {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

.step h4 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== Responsive Design ==================== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .hero-container {
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--text-dark);
        flex-direction: column;
        gap: 0;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link.active::after {
        display: none;
    }

    .btn-login {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }

    /* Mobile Menu Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

    .title-line {
        font-size: 2rem;
        text-align: center;
    }

    .title-highlight {
        font-size: 2.5rem;
        text-align: center;
    }

    .title-highlight::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40%;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        font-size: 1rem;
    }

    /* Content Sections Mobile */
    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

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

    /* Features Mobile */
    .features-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    /* Departments Mobile */
    .dept-grid {
        grid-template-columns: 1fr;
    }

    .dept-card {
        padding: 1.5rem;
    }

    /* Stats Mobile */
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem 1rem;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Steps Mobile */
    .steps-container {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 1.75rem 1.5rem;
    }

    /* Job Listing Mobile */
    .job-listing {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        grid-column: 1;
        grid-row: 1;
        order: -1;
        margin-bottom: 1.5rem;
    }

    .job-card {
        padding: 1.5rem;
    }

    .job-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .job-actions {
        flex-direction: column;
    }

    /* Job Detail Mobile */
    .job-detail-card {
        padding: 1.5rem;
    }

    .job-detail-header {
        flex-direction: column;
        gap: 1rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .info-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Department Pages Mobile */
    .dept-detail-grid {
        grid-template-columns: 1fr;
    }

    .dept-detail-card {
        padding: 1.75rem;
    }

    .dept-info {
        grid-template-columns: 1fr;
    }

    /* About Page Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image svg {
        width: 250px;
        height: 250px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Page Mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.75rem;
    }

    /* Page Header Mobile */
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header-content h1 {
        font-size: 2rem;
    }

    .page-header-content p {
        font-size: 1rem;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section ul {
        padding-left: 0;
    }

    .social-links {
        justify-content: center;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media (max-width: 480px) {
    /* Navigation Small Mobile */
    .nav-container {
        padding: 0 1rem;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .nav-links {
        width: 80%;
        max-width: none;
        padding: 4rem 1.5rem 2rem;
    }

    .nav-link {
        font-size: 1rem;
        padding: 0.85rem 0;
    }

    /* Hero Small Mobile */
    .hero {
        padding: 1.5rem 0;
    }

    .hero-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .title-line {
        font-size: 1.5rem;
    }

    .title-highlight {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-image {
        max-width: 280px;
    }

    /* Content Sections Small Mobile */
    .container {
        padding: 1.5rem 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1.5rem;
    }

    /* Features Small Mobile */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
    }

    .feature-icon svg {
        width: 40px;
        height: 40px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }

    /* Departments Small Mobile */
    .dept-card {
        padding: 1.25rem;
    }

    .dept-card h4 {
        font-size: 1.05rem;
    }

    .dept-card p {
        font-size: 0.85rem;
    }

    .dept-count {
        font-size: 0.8rem;
        padding: 0.35rem 0.85rem;
    }

    /* Stats Small Mobile */
    .stats-section {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    /* Steps Small Mobile */
    .step {
        padding: 1.5rem 1rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .step h4 {
        font-size: 1.05rem;
    }

    .step p {
        font-size: 0.85rem;
    }

    /* Job Cards Small Mobile */
    .job-card {
        padding: 1rem;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }

    .company-details h3 {
        font-size: 1.1rem;
    }

    .company-name {
        font-size: 0.85rem;
    }

    .job-description {
        font-size: 0.9rem;
    }

    .job-meta {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .job-details-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .detail-label {
        font-size: 0.8rem;
    }

    .detail-value {
        font-size: 0.9rem;
    }

    .skills {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .btn-apply,
    .btn-details {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Job Detail Small Mobile */
    .job-detail-card {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .job-title-section h3 {
        font-size: 1.5rem;
    }

    .organization {
        font-size: 1rem;
    }

    .badge-govt {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .detail-section {
        padding: 1rem;
        border-left-width: 3px;
    }

    .detail-section h4 {
        font-size: 1.1rem;
    }

    .detail-section p,
    .responsibility-list li,
    .requirement-list li,
    .highlight-list li,
    .benefit-list li,
    .process-list li {
        font-size: 0.9rem;
    }

    .document-grid {
        grid-template-columns: 1fr;
    }

    .doc-item {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

    .info-box {
        padding: 1rem;
    }

    .info-box .label {
        font-size: 0.8rem;
    }

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

    .btn-apply-large {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Department Detail Small Mobile */
    .dept-detail-card {
        padding: 1.25rem;
    }

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

    .dept-description {
        font-size: 0.9rem;
    }

    .dept-info {
        padding: 0.85rem;
        gap: 0.85rem;
    }

    .info-item .label {
        font-size: 0.8rem;
    }

    .info-item .value {
        font-size: 1rem;
    }

    .btn-explore {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    /* Provincial Cards Small Mobile */
    .provincial-card {
        padding: 1.5rem;
    }

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

    .provincial-card p {
        font-size: 0.9rem;
    }

    .province-stats {
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* About Page Small Mobile */
    .about-text h2 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .about-image svg {
        width: 200px;
        height: 200px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .why-item {
        padding: 1.5rem;
    }

    .why-number {
        font-size: 2rem;
    }

    .why-item h3 {
        font-size: 1.1rem;
    }

    .why-item p {
        font-size: 0.9rem;
    }

    /* Contact Page Small Mobile */
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form-section h2 {
        font-size: 1.5rem;
    }

    .form-description {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 0.85rem;
        font-size: 1rem;
    }

    .contact-info-card,
    .faq-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 0.85rem;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto;
    }

    .contact-text h4 {
        font-size: 0.95rem;
    }

    .contact-text p {
        font-size: 0.85rem;
    }

    .faq-item h4 {
        font-size: 0.95rem;
    }

    .faq-item p {
        font-size: 0.85rem;
    }

    /* Page Header Small Mobile */
    .page-header {
        padding: 2.5rem 0 1.5rem;
    }

    .page-header-content {
        padding: 0 1rem;
    }

    .page-header-content h1 {
        font-size: 1.75rem;
    }

    .page-header-content p {
        font-size: 0.95rem;
    }

    /* Footer Small Mobile */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.85rem;
    }
}

/* ==================== Advanced Animations ==================== */

/* Keyframe Definitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInRotate {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(-5deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes drawLine {
    from {
        width: 0;
    }
    to {
        width: 60%;
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hero Section Advanced Animations */
.hero {
    animation: fadeIn 0.8s ease-out;
}

.hero-left {
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.hero-right {
    animation: fadeInRight 1s ease-out 0.2s both;
}

.hero-image svg {
    animation: float 6s ease-in-out infinite;
}

.hero-image svg circle {
    animation: pulse 4s ease-in-out infinite;
}

.title-line:first-child {
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.title-highlight {
    animation: fadeInUp 1s ease-out 0.6s both;
    background-size: 200% 200%;
    animation: fadeInUp 1s ease-out 0.6s both, gradientShift 3s ease infinite;
}

.title-line:last-child {
    animation: fadeInDown 0.8s ease-out 0.8s both;
}

.title-highlight::after {
    animation: drawLine 1.5s ease-out 1.2s both;
}

.hero-text {
    animation: fadeInUp 1s ease-out 1s both;
}

/* Card Animations */
.job-card {
    animation: fadeIn 0.5s ease;
}

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

.feature-card {
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-icon {
    animation: bounceIn 0.8s ease-out both;
}

.feature-card:hover .feature-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* Department Cards */
.dept-card {
    animation: slideInRotate 0.6s ease-out both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stats Animation */
.stats-section {
    animation: scaleIn 0.8s ease-out both;
    background-size: 200% 200%;
    animation: scaleIn 0.8s ease-out both, gradientShift 8s ease infinite;
}

.stat-box {
    animation: fadeInUp 0.8s ease-out both;
}

.stat-box:nth-child(1) { animation-delay: 0.2s; }
.stat-box:nth-child(2) { animation-delay: 0.3s; }
.stat-box:nth-child(3) { animation-delay: 0.4s; }
.stat-box:nth-child(4) { animation-delay: 0.5s; }

.stat-number {
    animation: bounceIn 1s ease-out both;
}

.stat-box:nth-child(1) .stat-number { animation-delay: 0.4s; }
.stat-box:nth-child(2) .stat-number { animation-delay: 0.5s; }
.stat-box:nth-child(3) .stat-number { animation-delay: 0.6s; }
.stat-box:nth-child(4) .stat-number { animation-delay: 0.7s; }

/* Steps Animation */
.step {
    animation: fadeInUp 0.6s ease-out both;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

.step-number {
    animation: rotateIn 0.8s ease-out both;
}

.step:nth-child(1) .step-number { animation-delay: 0.3s; }
.step:nth-child(2) .step-number { animation-delay: 0.4s; }
.step:nth-child(3) .step-number { animation-delay: 0.5s; }
.step:nth-child(4) .step-number { animation-delay: 0.6s; }

.step:hover .step-number {
    animation: pulse 1s ease-in-out infinite;
}

/* Section Headers */
.section-header {
    animation: fadeInDown 0.8s ease-out both;
}

.section-title {
    animation: fadeInUp 0.8s ease-out both;
}

/* Navigation Animation */
.navbar {
    animation: fadeInDown 0.6s ease-out;
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 100%;
}

/* Button Animations */
.btn-login,
.btn-apply,
.btn-details,
.btn-explore,
.btn-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-login::before,
.btn-apply::before,
.btn-explore::before,
.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-login:hover::before,
.btn-apply:hover::before,
.btn-explore:hover::before,
.btn-submit:hover::before {
    width: 300px;
    height: 300px;
}

/* Skill Tags Animation */
.skill-tag {
    animation: fadeIn 0.4s ease-out both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tag:nth-child(1) { animation-delay: 0.05s; }
.skill-tag:nth-child(2) { animation-delay: 0.1s; }
.skill-tag:nth-child(3) { animation-delay: 0.15s; }
.skill-tag:nth-child(4) { animation-delay: 0.2s; }
.skill-tag:nth-child(5) { animation-delay: 0.25s; }

/* Badge Animations */
.badge {
    animation: scaleIn 0.4s ease-out both;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.15s; }
.badge:nth-child(3) { animation-delay: 0.2s; }

/* Page Header Animation */
.page-header {
    animation: fadeIn 0.8s ease-out;
    background-size: 200% 200%;
    animation: fadeIn 0.8s ease-out, gradientShift 6s ease infinite;
}

.page-header-content h1 {
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

.page-header-content p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Form Animations */
.contact-form {
    animation: fadeInUp 0.8s ease-out both;
}

.form-group {
    animation: fadeInLeft 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }

/* Department Detail Cards */
.dept-detail-card {
    animation: fadeInUp 0.6s ease-out both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.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.4s; }

/* Info Boxes Animation */
.info-box {
    animation: scaleIn 0.6s ease-out both;
}

.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; }

/* Loading Animation for Images */
.hero-image,
.feature-icon,
.service-icon {
    animation: fadeIn 1s ease-out both;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Hover Effects with Animations */
.job-card:hover {
    animation: pulse 0.6s ease-in-out;
}

.dept-count {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-card:hover .dept-count {
    transform: scale(1.1);
}

/* Footer Animation */
.footer {
    animation: fadeInUp 0.8s ease-out both;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .hero-left,
    .hero-right {
        animation-duration: 0.8s;
    }

    .feature-card,
    .dept-card,
    .step {
        animation-duration: 0.5s;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== Page Header ==================== */
.page-header {
    background: linear-gradient(135deg, #70F8BA 0%, #4FD1A1 100%);
    padding: 5rem 0 3rem;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.page-header-content p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== Departments Page ==================== */
.departments-section {
    margin: 4rem 0;
}

.dept-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dept-detail-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.dept-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.dept-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dept-header svg {
    flex-shrink: 0;
}

.dept-header h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    font-weight: 600;
}

.dept-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.dept-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

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

.info-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

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

.dept-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.dept-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dept-features li::before {
    content: '';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-explore {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 248, 186, 0.3);
}

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

.provincial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.provincial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.provincial-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.provincial-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.province-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 700;
}

/* ==================== About Page ==================== */
.about-section {
    margin: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-section {
    margin: 4rem 0;
    padding: 3rem 0;
    background: white;
    border-radius: 20px;
}

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

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--background);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(112, 248, 186, 0.15), rgba(45, 212, 191, 0.15));
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.why-choose-section {
    margin: 4rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.why-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.why-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== Legal Pages (Privacy, Terms, Cookies) ==================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.legal-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out both;
}

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

.legal-section h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
}

.legal-section h3 {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin-top: 1.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.legal-list {
    list-style: none;
    margin: 1.25rem 0;
    padding-left: 0;
}

.legal-list li {
    padding: 0.75rem 0 0.75rem 2rem;
    color: var(--text-light);
    position: relative;
    line-height: 1.7;
    font-size: 1rem;
}

.legal-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.legal-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.contact-details-legal {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-top: 1rem;
}

.contact-details-legal p {
    margin-bottom: 0.5rem;
}

.contact-details-legal strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}

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

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

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

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

.legal-table tr:hover {
    background-color: var(--background);
}

/* ==================== Department Detail Pages ==================== */
.dept-detail-section {
    margin-bottom: 4rem;
}

.dept-overview-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--primary-color);
    animation: fadeInUp 0.6s ease-out both;
}

.dept-overview-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

.dept-overview-card p:last-child {
    margin-bottom: 0;
}

.info-boxes-section {
    margin-bottom: 4rem;
}

.detail-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out both;
}

.detail-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.detail-card h3:first-child {
    margin-top: 0;
}

.detail-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.detail-card ul.legal-list {
    margin-bottom: 2rem;
}

.detail-card strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================== Contact Page ==================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

.contact-form-section h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(112, 248, 186, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 248, 186, 0.3);
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card,
.faq-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.contact-info-card h2,
.faq-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-info-card > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
}

.contact-text h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ==================== Responsive - Tablets ==================== */
@media (max-width: 768px) {
    .page-header-content h1 {
        font-size: 2rem;
    }

    .dept-detail-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image svg {
        width: 250px;
        height: 250px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== Responsive - Mobile ==================== */
@media (max-width: 480px) {
    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header-content h1 {
        font-size: 1.75rem;
    }

    .page-header-content p {
        font-size: 1rem;
    }

    .dept-detail-card {
        padding: 1.5rem;
    }

    .services-grid,
    .why-grid,
    .provincial-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ==================== Button Styles ==================== */
.dept-card a,
a[href*=".html"][style*="inline-flex"] {
    cursor: pointer;
    position: relative;
}

.dept-card a:hover,
a[href*=".html"][style*="inline-flex"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.2);
}

.dept-card a:active,
a[href*=".html"][style*="inline-flex"]:active {
    transform: translateY(0);
}
