/* ============================================================
   GLOBAL WEBSITE DESIGN
   ============================================================ */

/* ----- 1. Font Styling ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Primary Brand Colors */
    --ppm-primary: #0a2a3b;
    --ppm-secondary: #12445e;
    --ppm-accent: #167a9e;
    --ppm-accent-light: #7fc9e8;
    --ppm-accent-dark: #0e5f7a;
    
    /* Neutral Colors */
    --ppm-light: #f6fafd;
    --ppm-gray: #e8f0f6;
    --ppm-dark: #0a2533;
    --ppm-text: #1a3a4a;
    
    /* Status Colors */
    --ppm-success: #1d8b5e;
    --ppm-warning: #e3a73b;
    --ppm-danger: #c0392b;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --card-radius: 24px;
    --border-radius: 16px;
}

/* ----- 2. Colour Theme ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ppm-light);
    color: var(--ppm-text);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--ppm-dark);
    letter-spacing: -0.02em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; }

/* ----- 3. Container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

/* ----- Navigation Bar ----- */
.navbar {
    background: linear-gradient(145deg, var(--ppm-primary), var(--ppm-secondary)) !important;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 80px;
}

.navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* ----- Logo Styling (Far Left) ----- */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-right: 1.5rem;
    flex-shrink: 0;
    text-decoration: none;
}

.navbar-brand .logo-img {
    height: 42px;
    width: auto;
}

.navbar-brand .brand-name {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-sub {
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--ppm-accent-light);
    opacity: 0.9;
    display: inline-block;
}

/* ----- Navigation Links (Centered) ----- */
.navbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 40px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--ppm-accent-light);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.navbar .nav-link i {
    margin-right: 0.3rem;
}

/* ----- Auth Buttons (Far Right) ----- */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.auth-buttons .btn {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 40px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    min-height: 40px;
    border: none !important;
    transition: all 0.3s ease !important;
}

.auth-buttons .btn-outline-light {
    border: 1.5px solid rgba(255,255,255,0.3) !important;
    color: rgba(255,255,255,0.85) !important;
    background: transparent !important;
}

.auth-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: #fff !important;
    color: #fff !important;
    transform: translateY(-2px);
}

.auth-buttons .btn-primary {
    background: var(--ppm-accent) !important;
    color: #fff !important;
    border: none !important;
}

.auth-buttons .btn-primary:hover {
    background: var(--ppm-accent-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 122, 158, 0.4);
    color: #fff !important;
}

.auth-buttons .btn i {
    font-size: 0.85rem;
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--ppm-secondary);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 1rem !important;
    }
    
    .auth-buttons {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    
    .auth-buttons .btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
        min-height: 36px;
    }
    
    .navbar-brand .brand-sub {
        font-size: 0.65rem;
    }
    
    .navbar-brand .brand-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand .brand-sub {
        display: none;
    }
    
    .navbar-brand .logo-img {
        height: 32px;
    }
    
    .navbar-brand .brand-name {
        font-size: 1rem;
    }
    
    .navbar .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    .auth-buttons .btn {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.75rem !important;
        min-height: 32px;
    }
    
    .auth-buttons .btn i {
        font-size: 0.75rem;
    }
}

/* ============================================================
   BEAUTIFUL LINK STYLES
   ============================================================ */

/* ----- Default Link Styles ----- */
a {
    text-decoration: none;
    color: var(--ppm-accent);
    transition: all 0.3s ease;
    position: relative;
}

/* ----- View All Links ----- */
.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ppm-accent);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    background: var(--ppm-light);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.view-all-link:hover {
    background: #e8f4fa;
    border-color: var(--ppm-accent-light);
    transform: translateX(4px);
    color: var(--ppm-accent-dark);
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(6px);
}

/* ----- Contact Links ----- */
.contact-link {
    color: var(--ppm-text);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ppm-accent);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--ppm-accent);
}

.contact-link:hover::after {
    width: 100%;
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */

.btn {
    padding: 0.7rem 2rem;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-primary {
    background: var(--ppm-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(22, 122, 158, 0.3);
}

.btn-primary:hover {
    background: var(--ppm-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 122, 158, 0.4);
    color: #fff;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--ppm-gray);
    color: var(--ppm-secondary);
}

.btn-secondary:hover {
    background: #d4e3ed;
    transform: translateY(-3px);
    color: var(--ppm-dark);
}

.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: translateX(4px);
}

.btn-success {
    background: var(--ppm-success);
    color: #fff;
}

.btn-success:hover {
    background: #14724b;
    transform: translateY(-3px);
    color: #fff;
}

.btn-success i {
    transition: transform 0.3s ease;
}

.btn-success:hover i {
    transform: translateX(4px);
}

.btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 0.9rem 2.8rem;
    font-size: 1.1rem;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    color: #fff;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 2rem !important;
    font-size: 0.95rem !important;
    border-radius: 40px !important;
}

.btn-sm {
    padding: 0.5rem 1.2rem !important;
    font-size: 0.85rem !important;
}

.btn-outline {
    background: transparent !important;
    color: var(--ppm-secondary, #12445e) !important;
    border: 2px solid var(--ppm-gray, #e8f0f6) !important;
}

.btn-outline:hover {
    background: var(--ppm-light, #f6fafd) !important;
    border-color: var(--ppm-accent-light, #7fc9e8) !important;
    transform: translateY(-2px) !important;
}

.btn-link {
    color: var(--ppm-accent, #167a9e);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}

.btn-link:hover {
    color: var(--ppm-accent-dark, #0e5f7a);
    gap: 0.6rem;
}

.btn-link-sm {
    color: var(--ppm-accent, #167a9e);
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.3s ease;
}

.btn-link-sm:hover {
    color: var(--ppm-accent-dark, #0e5f7a);
    gap: 0.4rem;
}

/* ----- Pulse Button (Special CTA) ----- */
.btn-pulse {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ppm-accent), var(--ppm-accent-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(22, 122, 158, 0.4);
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-pulse:hover::before {
    width: 300px;
    height: 300px;
}

.btn-pulse:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 35px rgba(22, 122, 158, 0.5);
    color: #fff;
}

.btn-pulse i {
    transition: transform 0.3s ease;
}

.btn-pulse:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* ----- Hero Buttons ----- */
.hero-actions .btn-primary {
    background: linear-gradient(135deg, #fff, var(--ppm-accent-light));
    color: var(--ppm-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    color: var(--ppm-dark);
}

.hero-actions .btn-secondary {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    color: #fff;
}

/* ============================================================
   GRID SYSTEMS
   ============================================================ */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 1.5rem;
}

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */

.dashboard-page {
    padding: 0 0 2rem 0;
}

/* ----- Dashboard Grid ----- */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* ----- User Profile Card - Top (Matches Profile Page) ----- */
.user-profile-card-top {
    background: linear-gradient(135deg, var(--ppm-primary), var(--ppm-secondary));
    border-radius: var(--card-radius);
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.user-profile-card-top .user-avatar-large {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.user-profile-card-top .user-avatar-large i {
    display: block;
}

.user-profile-card-top .user-card-content {
    flex: 1;
    min-width: 200px;
}

.user-profile-card-top .user-card-content h2 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
}

.user-profile-card-top .user-card-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.user-profile-card-top .user-card-content p i {
    margin-right: 0.5rem;
    width: 16px;
    opacity: 0.7;
}

.user-profile-card-top .user-status {
    flex-shrink: 0;
}

.user-profile-card-top .status-badge {
    display: inline-block;
    padding: 0.35rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-profile-card-top .status-badge .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.user-profile-card-top .status-badge.active .status-dot {
    background: #4CAF50;
}

.user-profile-card-top .status-badge.inactive .status-dot {
    background: #f44336;
}

.user-profile-card-top .status-badge.active {
    background: rgba(76, 175, 80, 0.25);
    border-color: rgba(76, 175, 80, 0.3);
}

.user-profile-card-top .status-badge.inactive {
    background: rgba(244, 67, 54, 0.25);
    border-color: rgba(244, 67, 54, 0.3);
}

/* ----- General Cards (Matches Profile Page) ----- */
.card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 2rem;
    border: 1px solid var(--ppm-gray);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: var(--ppm-accent-light);
}

.card .icon {
    font-size: 2.5rem;
    color: var(--ppm-accent);
    margin-bottom: 1rem;
}

.card h3, .card h4 {
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card .note {
    font-size: 0.9rem;
    color: #6a8a9a;
    background: var(--ppm-light);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    margin-top: auto;
}

/* ----- Info Rows (Matches Profile Page) ----- */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ppm-light);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    color: #7a9aaa;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: #0a2533;
    text-align: right;
}

.info-value.highlight {
    color: var(--ppm-accent);
    font-weight: 600;
}

/* ----- Status Badge ----- */
.status-badge {
    display: inline-block;
    padding: 0.25rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* ----- Days Remaining ----- */
.days-remaining {
    display: inline-block;
    padding: 0.15rem 1rem;
    background: #fff3cd;
    color: #856404;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.days-remaining i {
    margin-right: 0.3rem;
}

/* ----- Eligibility Note ----- */
.eligibility-note {
    font-size: 0.75rem;
    color: #7a9aaa;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: var(--ppm-light, #f6fafd);
    border-radius: 8px;
    border-left: 3px solid var(--ppm-warning, #e3a73b);
}

.eligibility-note i {
    margin-right: 0.3rem;
}

/* ----- Warning Box ----- */
.warning-box {
    background: #fff3cd;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    color: #856404;
    font-size: 0.8rem;
    border-left: 4px solid var(--ppm-warning, #e3a73b);
    margin-bottom: 0.5rem;
}

.warning-box i {
    margin-right: 0.4rem;
}

/* ============================================================
   APPLICATIONS TABLE
   ============================================================ */

.applications-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: var(--card-radius, 24px);
    border: 1px solid var(--ppm-gray, #e8f0f6);
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}

.applications-table thead {
    background: var(--ppm-light, #f6fafd);
}

.applications-table th {
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--ppm-dark, #0a2533);
    border-bottom: 2px solid var(--ppm-gray, #e8f0f6);
    white-space: nowrap;
}

.applications-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--ppm-gray, #e8f0f6);
    vertical-align: middle;
}

.applications-table tbody tr:hover {
    background: var(--ppm-light, #f6fafd);
}

.applications-table tbody tr:last-child td {
    border-bottom: none;
}

/* ----- Status Labels ----- */
.status-pending {
    background: #fff3cd;
    color: #856404;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-reviewing {
    background: #cce5ff;
    color: #004085;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-approved {
    background: #d4edda;
    color: #155724;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* ----- Empty State ----- */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: var(--card-radius, 24px);
    border: 1px solid var(--ppm-gray, #e8f0f6);
}

.empty-state i {
    font-size: 3rem;
    color: #c5dae6;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #7a9aaa;
    font-size: 1.1rem;
}

/* ============================================================
   SECTION & HERO
   ============================================================ */

.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--ppm-accent);
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* ----- Hero Banner ----- */
.hero {
    background-size: cover;
    background-position: center;
    background-color: var(--ppm-secondary);
    padding: 5rem 0;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,42,59,0.85) 0%, rgba(18,68,94,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    max-width: 800px;
}

.hero .subhead {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    max-width: 650px;
    margin: 1rem 0 1.5rem;
}

.hero .intro-box {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 1.5rem 2rem;
    border-radius: var(--card-radius);
    border-left: 5px solid var(--ppm-accent-light);
    max-width: 750px;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
}

.hero .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
    border: 1px solid var(--ppm-gray);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--ppm-accent-light);
}

.faq-question {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ppm-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--ppm-light);
}

.faq-question .icon {
    font-size: 1.8rem;
    color: var(--ppm-accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: #4a6a7a;
}

.faq-answer.open {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact-form-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    border: 1px solid var(--ppm-gray);
}

.form-control {
    border-radius: 40px;
    padding: 0.75rem 1.2rem;
    border: 1.5px solid var(--ppm-gray);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: #0a2533;
}

.form-control:focus {
    border-color: var(--ppm-accent);
    box-shadow: 0 0 0 4px rgba(22, 122, 158, 0.1);
    outline: none;
}

.form-control:disabled {
    background: #f5f8fa;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control.textarea {
    border-radius: var(--border-radius);
    resize: vertical;
    min-height: 80px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ppm-dark);
    margin-bottom: 0.4rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group small {
    display: block;
    color: #7a9aaa;
    font-size: 0.75rem;
    margin-top: 0.3rem;
}

/* ============================================================
   PROFILE PAGE - COMPLETE
   ============================================================ */

.profile-page {
    padding: 2rem 0 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e8f0f6;
}

.profile-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2533;
    margin: 0;
}

.profile-header p {
    color: #7a9aaa;
    margin: 0.2rem 0 0 0;
    font-size: 0.95rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ----- Profile Form Box ----- */
.profile-form-box {
    background: #ffffff;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e8f0f6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
    padding-top: 2rem;
    border-top: 2px solid #f0f5f9;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a2533;
    margin-bottom: 1.2rem;
}

.form-section h3 i {
    color: #167a9e;
    margin-right: 0.5rem;
    width: 24px;
}

/* ----- Password Wrapper ----- */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 3.5rem;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #7a9aaa;
    cursor: pointer;
    padding: 0.3rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #167a9e;
}

/* ----- Profile Sidebar ----- */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid #e8f0f6;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.profile-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0a2533;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f5f9;
}

.profile-card h3 i {
    color: #167a9e;
    margin-right: 0.5rem;
    width: 20px;
}

/* ----- User Card ----- */
.user-card {
    text-align: center;
    background: linear-gradient(135deg, #0a2a3b, #12445e);
    color: #fff;
    border: none;
}

.user-card .user-avatar {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
}

.user-card .user-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.3rem;
}

.user-card .user-email,
.user-card .user-phone {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.2rem;
}

.user-card .user-email i,
.user-card .user-phone i {
    margin-right: 0.4rem;
}

.user-card .user-status {
    margin-top: 0.8rem;
}

.user-card .status-badge {
    display: inline-block;
    padding: 0.25rem 1.5rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
}

.user-card .status-badge.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.user-card .status-badge.inactive {
    background: rgba(255,0,0,0.25);
    color: #fff;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.alert ul {
    margin: 0;
    padding-left: 1.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: var(--ppm-dark);
    color: #c5dae6;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer .disclaimer {
    background: rgba(255,255,255,0.04);
    border-left: 4px solid var(--ppm-accent-light);
    padding: 1.2rem 1.8rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.footer .disclaimer strong {
    color: rgba(255,255,255,0.9);
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    position: relative;
    padding-bottom: 2px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ppm-accent-light);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links .copyright {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 991px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-form-box {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.6rem;
    }
    .hero .subhead {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .user-profile-card-top {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .user-profile-card-top .user-card-content {
        text-align: center;
    }
    
    .user-profile-card-top .user-status {
        margin-top: 0.5rem;
    }
    
    .applications-table th,
    .applications-table td {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
    
    .applications-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
    
    .info-value {
        text-align: left;
    }
    
    .profile-form-box {
        padding: 1.2rem;
    }
    
    .profile-card {
        padding: 1.2rem;
    }
    
    .hero {
        padding: 3rem 0;
        min-height: 400px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero .intro-box {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }
    .hero .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .contact-form-box {
        padding: 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        text-align: center;
    }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    .btn { padding: 0.6rem 1.5rem; font-size: 0.85rem; }
    .section { padding: 2.5rem 0; }
}

@media (max-width: 576px) {
    .applications-table th,
    .applications-table td {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .applications-table th:last-child,
    .applications-table td:last-child {
        display: none;
    }
    
    .applications-table {
        min-width: 450px;
    }
    
    .profile-page {
        padding: 1rem 0 2rem;
    }
    
    .profile-header h1 {
        font-size: 1.4rem;
    }
    
    .form-section h3 {
        font-size: 1rem;
    }
    
    .user-card .user-avatar {
        font-size: 3rem;
    }
    
    .profile-card {
        padding: 1rem;
    }
    
    .container { padding: 0 1rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero .subhead { font-size: 0.95rem; }
    .card { padding: 1.2rem; }
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }
    .faq-answer {
        padding: 0 1rem;
    }
    .faq-answer.open {
        padding: 0 1rem 1rem;
    }
    .footer .disclaimer {
        padding: 1rem;
        font-size: 0.8rem;
    }
    .view-all-link {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }
}

/* ============================================================
   UTILITY HELPERS
   ============================================================ */

.text-accent { color: var(--ppm-accent); }
.text-dark-custom { color: var(--ppm-dark); }
.bg-accent-light { background: var(--ppm-light); }

.shadow-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.shadow-card:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.08);
}

.rounded-custom {
    border-radius: var(--card-radius);
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.text-muted {
    color: #7a9aaa;
}

.small {
    font-size: 0.85rem;
}

/* ----- Scroll Animation ----- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.list-unstyled-custom {
    list-style: none;
    padding: 0;
}

.list-unstyled-custom li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.list-unstyled-custom li:last-child {
    border-bottom: none;
}