/* Hyaaunnivaa Research Centre - Custom Stylesheet */
:root {
    --primary: #990000;
    --primary-dark: #770000;
    --primary-light: #c81e1e;
    --accent: #d97706;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-heading: #1e293b;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: #f1f5f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.border-primary-custom {
    border-color: var(--primary) !important;
}

/* Header & Navigation */
.navbar-brand img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.top-bar {
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.85rem;
}

.nav-link {
    font-weight: 500;
    color: #334155;
    transition: color 0.2s ease-in-out;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e1b18 0%, #3f0909 50%, #1e293b 100%);
    color: #ffffff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.badge-custom {
    background-color: rgba(217, 119, 6, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(217, 119, 6, 0.4);
    padding: 0.4em 0.8em;
    font-weight: 600;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Cards & Grid */
.custom-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.team-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
}

.avatar-circle {
    width: 70%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    object-fit: cover;
}

.category-pill {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35em 0.75em;
    border-radius: 20px;
    display: inline-block;
}

.pill-academic { background: #e0f2fe; color: #0369a1; }
.pill-managerial { background: #fef3c7; color: #b45309; }
.pill-patrons { background: #fce7f3; color: #be185d; }

/* Filter Tabs */
.nav-pills-custom .nav-link {
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    color: #475569;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-pills-custom .nav-link.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    margin-top: auto;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}

/* Admin Styling */
.admin-sidebar {
    background: #1e293b;
    min-height: calc(100vh - 60px);
    color: #ffffff;
}

.admin-sidebar a {
    color: #94a3b8;
    padding: 0.75rem 1.25rem;
    display: block;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    text-decoration: none;
    font-weight: 500;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background: var(--primary);
    color: #ffffff;
}

/* Install App Instructions - 20% Reduced Typography */
.install-card .install-card-title {
    font-size: 1.4rem !important;
}
.install-card .install-card-icon {
    font-size: 2rem !important;
}
.install-card .install-note {
    font-size: 0.82rem !important;
}
.install-card .install-steps-list {
    font-size: 1rem !important;
    line-height: 1.5;
}
.install-card .install-steps-list .list-group-item {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    font-size: 1rem !important;
}

/* Mobile Responsive Scaling (Approx 30% reduction for all elements) */
@media (max-width: 768px) {
    /* Scale down the base root font size so all rem-based sizes shrink automatically */
    html {
        font-size: 12px !important; /* ~25% reduction globally */
    }
    
    body {
        font-size: 14px !important;
    }

    .hero-title {
        font-size: 1.8rem !important; /* Drastically reduced for mobile */
        margin-bottom: 0.5rem !important;
    }

    /* Scale headings */
    h1 { font-size: 1.7rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.15rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }

    /* Top bar adjustments */
    .top-bar .container {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        gap: 0.25rem;
    }
    .top-bar {
        font-size: 0.75rem;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .top-bar .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Navbar logo sizing */
    .navbar-brand img {
        height: 40px !important; /* Reduced from 52px */
    }

    /* Scale down paddings on mobile */
    .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .my-5 { margin-top: 2rem !important; margin-bottom: 2rem !important; }
    
    /* Buttons */
    .btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
}
