/* 
   Innovation For Humanity - Unified Stylesheet
   Typography: Jost (Google Font)
   Base: Bootstrap 5
*/

@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #037B79; /* Original Teal */
    --primary-dark: #025e5c;
    --primary-light: #D3FFEF;
    --text-dark: #1a252f;
    --text-muted: #5d6d7e;
    --bg-light: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --footer-bg: rgba(33, 37, 41, 0.85);
}

/* Base Layout */
body {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    /* Restore Loved SVG Background */
    background-image: url('../img/site_bg.svg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, 
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }

/* Navbar Styling */
.navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-brand span {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark) !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Fix sharp blue buttons to Teal */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 2.5rem;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Cards */
.custom-card {
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1.5rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    height: 100%;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(3, 123, 121, 0.1) !important;
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Footer with Glass Effect */
footer {
    background: rgba(33, 37, 41, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255,255,255,0.9);
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.25rem 0;
}

footer .nav-link:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* Dashboard Styles */
.dashboard-sidebar {
    height: 100%;
    min-height: 80vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar-header {
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(0,0,0,0.03);
    color: var(--primary-color);
}

.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* Pagination fix */
.pagination .page-link {
    color: var(--primary-color);
}
.pagination .active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Prose Styling */
.prose {
    line-height: 1.8;
    color: #34495e;
}

.prose h2, .prose h3 {
    color: var(--primary-color);
    margin-top: 2rem;
}

/* Utils */
.bg-primary-light { background-color: var(--primary-light) !important; }
.text-muted { color: var(--text-muted) !important; }