/* css/style.css */

:root {
    --primary: #1e3a8a;          /* Vibrant Royal Blue */
    --primary-light: #3b82f6;    /* Bright Blue */
    --secondary: #0d9488;        /* Teal */
    --secondary-hover: #0f766e;
    --accent: #f59e0b;           /* Gold/Amber */
    --background: #f8fafc;       /* Clean Light Slate Gray */
    --card-bg: rgba(255, 255, 255, 0.85);
    --text: #0f172a;             /* Dark Slate Text */
    --text-muted: #475569;       /* Slate Muted Text */
    --border: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}

body {
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background Lights */
.bg-glow-1, .bg-glow-2 {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}

.bg-glow-1 {
    background: radial-gradient(circle, #93c5fd 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, #ddd6fe 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

/* Typography & Layout */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: #1e293b;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(to right, #1d4ed8, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    -webkit-text-fill-color: white;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-btn {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 10px;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.nav-btn::after {
    display: none !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.15);
}

/* Stat Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.stat-num {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(to right, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: #0f172a;
}

.section-header p {
    color: var(--text-muted);
}

/* Grid & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ppepp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.ppepp-card-1, 
.ppepp-card-2, 
.ppepp-card-3, 
.ppepp-card-4, 
.ppepp-card-5 { 
    grid-column: span 1; 
}

@media (max-width: 768px) {
    .ppepp-grid {
        grid-template-columns: 1fr;
    }
    .ppepp-card-1, 
    .ppepp-card-2, 
    .ppepp-card-3, 
    .ppepp-card-4, 
    .ppepp-card-5 {
        grid-column: span 1 !important;
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1e293b;
}

.card p {
    color: var(--text-muted);
    font-size: 14.5px;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* News Section styling */
.news-card {
    overflow: hidden;
    padding: 0;
}

.news-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e2e8f0;
    position: relative;
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-img {
    transform: scale(1.05);
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #1e293b;
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    color: #1d4ed8;
    gap: 10px;
}

/* Document & Audits Library Page styling */
.filter-bar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    box-shadow: var(--glass-shadow);
}

.filter-input {
    flex-grow: 1;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.filter-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.filter-select {
    min-width: 150px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: #2563eb;
}

/* Table Design (Premium) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    color: #334155;
}

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

tr:hover td {
    background: rgba(37, 99, 235, 0.015);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Footer styling */
footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e1b4b 100%);
    color: #ffffff;
    border-top: 1px solid var(--border);
    padding: 60px 0 30px 0;
    margin-top: auto;
}

footer h3, footer h4 {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    margin-bottom: 16px;
    font-weight: 800;
}

.footer-info p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

/* Profile Details UI */
.profile-content {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--glass-shadow);
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h3 {
    font-size: 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.profile-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
    border-radius: 2px;
}

.profile-section p, .profile-section li {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.8;
}

.profile-section ul {
    padding-left: 20px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 38px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 16px 0;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0 40px 0;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .profile-content {
        padding: 20px;
    }
}
