* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: #000000;
    z-index: 100;
    padding: 2rem 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: url('https://res.cloudinary.com/dtz12bkck/image/upload/v1760101683/ea82775a-887d-40ed-9e60-584e96f7c655_bf46d7.jpg') center/cover;
    margin: 0 auto 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.02em;
}

.nav-main {
    list-style: none;
    padding: 0 1.5rem;
}

.nav-main-item {
    margin-bottom: 0.5rem;
}

.nav-main-link {
    display: block;
    padding: 0.85rem 1.25rem;
    color: #8E8E93;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-main-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 4rem 3rem;
    overflow-y: auto;
}

.section-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 0;
    opacity: 1;
}

/* Typography */
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #8E8E93;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Callout (testimonial) */
.callout {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin: 1.25rem 0 2rem;
}

.callout--accent {
    border-left: 4px solid #007AFF;
}

.callout-text {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.muted {
    color: #8E8E93;
    font-size: 0.9rem;
}

/* Small feature headings and metadata used in community cards */
.feature-title {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.feature-sub {
    color: #8E8E93;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.feature-meta {
    color: #86868b;
    font-size: 0.85rem;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.card-subtitle {
    font-size: 0.95rem;
    color: #007AFF;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.card-description {
    color: #8E8E93;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Timeline */
.timeline-experience {
    position: relative;
    padding-left: 3rem;
}

.timeline-experience::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 2rem;
    bottom: 2rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 1;
}

.timeline-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 2rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #007AFF;
    border: 2px solid #000000;
    z-index: 10;
}

.timeline-date-left {
    font-size: 0.9rem;
    color: #8E8E93;
    font-weight: 500;
}

.timeline-duration {
    font-size: 0.8rem;
    color: #8E8E93;
    font-weight: 400;
}

.timeline-header {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.image-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    display: inline-block;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

/* Small layout and panel helpers used to replace inline styles */
.hstack {
    display: flex;
    align-items: center;
    flex: 1;
}

.vstack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel--muted {
    color: #8E8E93;
}

/* Utility helpers used by education/certifications badges */
.img-80 {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
}

.mb-1 {
    margin-bottom: 1rem;
}

.badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #8E8E93;
}

.timeline-content-header {
    flex: 1;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 0.9rem;
    color: #8E8E93;
}

.expand-icon {
    font-size: 1.2rem;
    color: #8E8E93;
    transition: transform 0.3s ease;
}

.timeline-item.expanded .expand-icon {
    transform: rotate(180deg);
}

.timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(255, 255, 255, 0.03);
}

.timeline-item.expanded .timeline-details {
    max-height: 2000px;
}

.timeline-details-content {
    padding: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    opacity: 1;
}

.feature-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Make the injected "View CV" nav item stand out (blue) without affecting other links */
#openPdfNav {
    background: #007AFF !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-left: 3px solid #005FCC !important;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.12);
}

#openPdfNav:hover {
    background: #0066e6 !important;
    color: #ffffff !important;
}

#openPdfNav:focus {
    outline: 3px solid rgba(0, 122, 255, 0.18);
    outline-offset: 3px;
}

/* Axis media: responsive image/video and small gap above */
.axis-media {
    margin-top: 1rem;
}

.axis-media .media-item img,
.axis-media .media-item video {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

/* CV button used on contact page */
.cv-cta {
    display: block;
}

.cv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #007AFF;
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 6px 18px rgba(0, 122, 255, 0.12);
}

.cv-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 122, 255, 0.16);
}

.cv-button:focus {
    outline: 3px solid rgba(0, 122, 255, 0.18);
    outline-offset: 3px;
}

/* PDF modal viewer styles */
.pdf-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    padding: 2rem;
}

.pdf-modal.open {
    display: flex;
}

.pdf-modal .pdf-container {
    width: min(1100px, 100%);
    height: 80vh;
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
}

.pdf-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
}

.pdf-modal .modal-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pdf-modal iframe {
    border: none;
    width: 100%;
    height: calc(100% - 56px);
    background: #ffffff;
}

.pdf-modal .modal-close {
    background: #222222;
}

.feature-box-content {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Horizontal cards */
.horizontal-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.horizontal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.horizontal-card-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin: 3rem 0 4rem;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 24px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: cover;
    display: block;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #8E8E93;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #8E8E93;
    font-style: italic;
    margin: 1rem 0;
}

.hero-subtitle-proclaimed {
    margin: 1rem 0;
    color: #8E8E93;
    font-size: 1.1rem;
}

/* Biography Section */
.bio-section {
    margin: 4rem 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #E5E5E7;
    margin-bottom: 2.5rem;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

.bio-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Connect cards */
.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.connect-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    opacity: 1;
}

.connect-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Waqt showcase */
.waqt-showcase {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    opacity: 1;
}

.waqt-modes {
    display: grid;
    /* corrected: use 3 columns and valid gap value */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.mode-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 1;
}

.mode-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Custom scrollbar */
.main-content::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.main-content::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.main-content::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
    }

    .sidebar-header {
        text-align: center;
        margin-bottom: 1rem;
    }

    .sidebar-name {
        font-size: 1.2rem;
    }

    .nav-main {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .nav-main-item {
        margin-bottom: 0;
        flex: 0 0 auto;
    }

    .nav-main-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 2rem 1rem;
    }

    .section-content {
        padding: 0;
    }

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

    .hero-section {
        margin: 2rem 0;
    }

    .hero-avatar {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .bio-section {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .bio-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .card-grid,
    .connect-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .callout {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 0.75rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .bio-section {
        padding: 1.5rem 1rem;
    }

    .nav-main-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

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

    .callout {
        padding: 1rem;
    }
}

/* Added: missing profile / social icon styles */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-top: 1rem;
}

.icon-link {
    color: #8E8E93; /* fallback */
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.icon-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

/* Added: submenu, tabs, badges, and small utilities used in HTML */
/* Sidebar submenu */
.nav-sub {
    list-style: none;
    margin: 0.25rem 0 0 0;
    padding: 0 0 0 0.5rem;
    display: none; /* hidden by default; toggled by JS */
}
.nav-main-item.expanded > .nav-sub,
.nav-sub.show {
    display: block;
}
.nav-sub-link {
    display: block;
    color: #8E8E93;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease;
    font-size: 0.95rem;
}
.nav-sub-link:hover {
    background: rgba(255,255,255,0.04);
    color: #ffffff;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.expand-arrow {
    margin-left: auto;
    color: #8E8E93;
    transition: transform 0.18s ease, color 0.18s ease;
}
.nav-main-item.expanded > a .expand-arrow {
    transform: rotate(180deg);
    color: #ffffff;
}

/* Hero subtitle variant used in a few pages */
.hero-subtitle-proclaimed {
    font-size: 1.05rem;
    color: #8E8E93;
    text-align: center;
    margin-bottom: 1rem;
}

/* Tabs (centralized so inline styles can be removed if desired) */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8E8E93;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.18s ease;
}
.tab-button:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}
.tab-button.active {
    background: rgba(0,122,255,0.18);
    border-color: #007aff;
    color: #ffffff;
    font-weight: 600;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Small utility badge used on project pages */
.dev-badge {
    display: inline-block;
    background: #0066cc;
    color: #ffffff;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Single-file portfolio sections */
.section { display: none; }
.section.active { display: block; }

/* Contact page specific styles */
.section-subheading {
    color: #ffffff;
    margin: 2rem 0 1.5rem 0;
    text-align: center;
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connect-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    object-fit: contain;
    display: block;
}

/* ===== migrated page-specific rules & utilities ===== */
/* Callout / highlighted box used across multiple pages */
.callout {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}
.callout--accent { border-left: 4px solid #007aff; }
.callout .callout-text {
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.callout .muted { color: #8e8e93; font-size: 0.9rem; }

/* Metric grid used in experience / portfolio */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.metric-item { text-align: center; }
.metric-number { font-size: 2rem; color: #ffffff; font-weight: 700; }
.metric-number.accent { color: #007aff; }
.metric-label { color: #8e8e93; }

/* Reusable small info box */
.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #8e8e93;
    margin-bottom: 0.75rem;
}

/* Centered hero layout wrapper */
.center-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.center-hero .center-column { text-align: center; flex: 1; }
.center-hero .spacer { flex: 1; }

/* Image size helpers */
.img-40 { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto 1rem; }
.img-60 { width: 60px; height: 60px; object-fit: cover; display: block; }
.img-80 { width: 80px; height: 80px; object-fit: cover; display: block; }
.img-120 { width: 120px; height: 120px; object-fit: cover; display: block; border-radius: 24px; }

/* Community / simple card */
.community-card { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08); text-align: center; }

/* Project showcase */
.project-hero { background: rgba(255,255,255,0.05); padding: 2rem; border-radius: 18px; border: 1px solid rgba(255,255,255,0.1); max-width: 900px; margin: 0 auto; }
.project-hero-img { width: 120px; height: 120px; border-radius: 24px; margin: 0 auto 2rem; border: 1px solid rgba(255,255,255,0.1); object-fit: cover; display: block; }
.badge-holder { position: relative; display: inline-block; }
.dev-badge--absolute { position: absolute; top: -10px; left: -10px; }

/* Awards page specific rules (migrated from awards.html) */
.awards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.award-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 1rem;
    border-radius: 12px;
}
.award-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.06);
    background: #111;
    margin-right: 1rem;
}
.award-info { flex: 1 1 55%; }
.award-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; color: #fff; }
.award-meta { color: rgba(255,255,255,0.65); font-size: 0.95rem; margin-bottom: 0.5rem; }
.award-desc { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.award-image { flex: 0 0 320px; max-width: 40%; height: 180px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: #111; }

@media (max-width: 820px) {
    .award-card { flex-direction: column; align-items: flex-start; }
    .award-thumb { margin-bottom: 0.75rem; }
    .award-image { width: 100%; height: 220px; max-width: none; }
}

/* end migrated rules */

/* Small utility helpers used when refactoring inline styles */
.flex-1 { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-lg { gap: 1.5rem; }
.container-narrow { max-width: 900px; margin: 0 auto; }
.grid-auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.m-0 { margin: 0 !important; }
.text-center { text-align: center; }
/* spacing helpers */
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* View-Button Style (Used in Certification)*/
.horizontal-card {
    position: relative;
}

.view-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #007aff;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.view-button:hover {
    background-color: #005bbf;
}

.kpi-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .kpi-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.kpi-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    gap: 4px;
}


/* Hover effect */
.kpi-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

.kpi-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.kpi-value {
    font-size: 3rem;
    font-weight: 800;
    color: #007aff;
    line-height: 1;
    letter-spacing: 1px;
}

.kpi-prefix,
.kpi-suffix {
    font-size: 2rem;
    opacity: 0.85;
}

.kpi-label {
    font-size: 0.75rem;
    opacity: 0.75;
}

