/**
 * CertiVal - Public Certificate Verification & High-Fidelity Previewer Styles
 */

:root {
    --public-bg: #070a13;
    --card-bg: rgba(15, 23, 42, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #0284c7;
    --primary-glow: rgba(56, 189, 248, 0.3);
    --accent: #38bdf8;
    --success: #10b981;
    --danger: #ef4444;
}

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

body.public-body {
    background-color: var(--public-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(30, 27, 75, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(3, 105, 161, 0.25) 0px, transparent 50%);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.public-navbar {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0284c7, #6366f1);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
}

.brand-name span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-name small {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.secure-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-public-link {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-public-link:hover {
    color: #38bdf8;
}

.btn-public-login {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #f8fafc;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-public-login:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(2, 132, 199, 0.4);
}

/* ==========================================================================
   HOMEPAGE DNI SEARCH PORTAL STYLES
   ========================================================================== */

.home-container {
    max-width: 1100px;
    margin: 0 auto;
}

.home-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    box-shadow: 0 0 15px rgba(2, 132, 199, 0.2);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* Search Card & Input Group */
.search-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 27, 75, 0.4) 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(2, 132, 199, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 760px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(11, 15, 25, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.search-field-icon {
    font-size: 1.35rem;
    color: #38bdf8;
    margin-right: 0.85rem;
}

.search-main-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-family: inherit;
    outline: none;
    min-width: 0;
}

.search-main-input::placeholder {
    color: #64748b;
    font-size: 0.95rem;
}

.btn-search-submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
}

.search-quick-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.hint-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #38bdf8;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
}

/* Student Summary Header */
.student-summary-card {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.student-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0284c7, #10b981);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
    flex-shrink: 0;
}

.student-label {
    display: block;
    font-size: 0.7rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.student-name {
    font-size: 1.4rem;
    color: #fff;
    margin: 0.15rem 0 0.4rem;
}

.student-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #cbd5e1;
    flex-wrap: wrap;
}

/* Certificate Results Grid */
.certificates-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.cert-result-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    border-color: rgba(255, 255, 255, 0.1);
}

.cert-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
}

.cert-result-header {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.85rem;
}

.cert-code-tag {
    font-family: monospace;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.cert-course-title {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

.cert-info-list {
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
}

.cert-info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.cert-info-row:last-child {
    border-bottom: none;
}

.info-k {
    color: #94a3b8;
}

.info-v {
    color: #f1f5f9;
    font-weight: 600;
}

.cert-result-footer {
    margin-top: auto;
    padding-top: 0.75rem;
}

/* No Results Card */
.no-results-card {
    max-width: 600px;
    margin: 2rem auto;
    border-color: rgba(239, 68, 68, 0.3);
}

.no-results-icon {
    font-size: 3rem;
    color: #f87171;
    margin-bottom: 0.75rem;
}

/* Trust Highlights Grid */
.trust-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.trust-card {
    text-align: center;
    padding: 1.75rem 1.25rem;
}

.trust-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.trust-card h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.trust-card p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .search-input-group {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .search-field-icon {
        display: none;
    }

    .search-main-input {
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .btn-search-submit {
        width: 100%;
    }

    .student-summary-card {
        flex-direction: column;
        text-align: center;
    }

    .student-meta {
        justify-content: center;
    }

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

    .d-none-mobile {
        display: none !important;
    }
}

/* Public Content Wrapper */
.public-content {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    padding: 1.5rem 1rem 3rem;
}

.verify-page-wrapper {
    width: 100%;
}

/* ==========================================================================
   VERIFICATION HERO STATUS BANNER
   ========================================================================== */
.cert-status-hero {
    text-align: center;
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.cert-status-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-valid {
    background: linear-gradient(145deg, rgba(6, 78, 59, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.hero-revoked {
    background: linear-gradient(145deg, rgba(127, 29, 29, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.75px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.hero-valid .hero-status-pill {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.hero-revoked .hero-status-pill {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.hero-cert-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.hero-cert-desc {
    font-size: 0.92rem;
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================================
   MAIN VERIFICATION GRID
   ========================================================================== */
.verify-main-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.75rem;
    align-items: start;
}

/* ==========================================================================
   OFFICIAL DIPLOMATIC CERTIFICATE CARD
   ========================================================================== */
.diploma-card {
    background: linear-gradient(145deg, #0b1120 0%, #111827 50%, #070a13 100%);
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(217, 119, 6, 0.1);
    position: relative;
}

.diploma-border-inner {
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 14px;
    padding: 2rem 1.75rem;
    background: radial-gradient(circle at 50% 15%, rgba(30, 41, 59, 0.3), transparent 70%);
}

.diploma-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.diploma-logo {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0284c7, #10b981);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(2, 132, 199, 0.4);
    flex-shrink: 0;
}

.diploma-org-text h3 {
    font-family: 'Cinzel', 'Outfit', serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.diploma-org-text small {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.3;
}

.ruc-tag {
    display: inline-block;
    margin-top: 0.25rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.68rem;
    color: #38bdf8;
    font-family: monospace;
}

.diploma-divider {
    text-align: center;
    position: relative;
    margin: 1.75rem 0 1.25rem;
}

.diploma-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(251, 191, 36, 0.3), transparent);
}

.diploma-divider span {
    position: relative;
    background: #0d1424;
    padding: 0 1rem;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #f59e0b;
}

/* Student Section */
.diploma-student {
    text-align: center;
    margin-bottom: 1.25rem;
}

.student-fullname {
    font-family: 'Cinzel', 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, #ffffff 40%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.student-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e0f2fe;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.85rem;
}

.diploma-intro {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* Course Box */
.diploma-course-box {
    text-align: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.diploma-course-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1.35;
}

/* Metrics Grid */
.diploma-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.metric-item {
    background: rgba(11, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.metric-lbl {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 0.25rem;
}

.metric-val {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f1f5f9;
}

.font-mono {
    font-family: monospace;
    font-size: 0.78rem;
    color: #38bdf8;
}

/* ==========================================================================
   PRIMARY DIRECT DOWNLOAD CTA BUTTON & ACTIONS
   ========================================================================== */
.diploma-cta-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-direct-download {
    width: 100%;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1.15rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4), 0 0 15px rgba(56, 189, 248, 0.3);
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-direct-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.6), 0 0 25px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 50%, #4338ca 100%);
}

.btn-direct-download:active {
    transform: translateY(0);
}

.btn-direct-download > i {
    font-size: 1.75rem;
    color: #ffffff;
    flex-shrink: 0;
}

.btn-text-wrap {
    text-align: left;
}

.btn-main-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.btn-sub-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.2rem;
}

.diploma-secondary-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-action-outline {
    flex: 1;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #f1f5f9;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #94a3b8;
    color: #fff;
}

.btn-action-whatsapp {
    flex: 1;
    min-width: 160px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #25d366;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-action-whatsapp:hover {
    background: #25d366;
    color: #000;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   SYLLABUS & MODULES CARD
   ========================================================================== */
.syllabus-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.syllabus-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.syllabus-icon {
    width: 40px;
    height: 40px;
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.syllabus-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.15rem;
}

.syllabus-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
}

.modules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.module-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
}

.module-num {
    width: 22px;
    height: 22px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.module-text {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

/* ==========================================================================
   SIDEBAR: QR CODE & AUTHORITY CARDS
   ========================================================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qr-card-header, .authority-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.qr-card-header h4, .authority-header h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
}

.qr-box-center {
    text-align: center;
}

.qr-white-frame {
    background: #ffffff;
    padding: 0.85rem;
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.qr-image {
    width: 160px;
    height: 160px;
    display: block;
}

.qr-instruction {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.url-copy-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.url-input-btn-group {
    display: flex;
    gap: 0.35rem;
}

.url-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    color: #94a3b8;
    font-family: monospace;
    font-size: 0.72rem;
    outline: none;
    min-width: 0;
}

.btn-copy-action {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-copy-action:hover {
    background: #0284c7;
}

.btn-copy-action.copied {
    background: #10b981;
}

/* Authority Card Details */
.authority-details {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.78rem;
}

.auth-row {
    padding-bottom: 0.45rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.auth-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.auth-k {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.auth-v {
    color: #cbd5e1;
    line-height: 1.35;
}

.text-info {
    color: #38bdf8;
    text-decoration: none;
}

/* Footer */
.public-footer {
    border-top: 1px solid var(--border-color);
    background: rgba(7, 10, 19, 0.9);
    padding: 2rem 1.5rem;
    margin-top: auto;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.public-footer p {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE FIXES (Flawless Mobile Layout)
   ========================================================================== */
@media (max-width: 1024px) {
    .verify-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .public-content {
        padding: 1rem 0.75rem 2rem;
    }

    .cert-status-hero {
        padding: 1.25rem 0.85rem;
        margin-bottom: 1.25rem;
        border-radius: 14px;
    }

    .hero-cert-title {
        font-size: 1.35rem;
    }

    .hero-cert-desc {
        font-size: 0.82rem;
    }

    .diploma-card {
        padding: 0.75rem;
        border-radius: 16px;
    }

    .diploma-border-inner {
        padding: 1.25rem 0.85rem;
        border-radius: 10px;
    }

    .diploma-header {
        flex-direction: column;
        text-align: center;
        gap: 0.65rem;
        padding-bottom: 0.85rem;
    }

    .diploma-logo {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .diploma-org-text h3 {
        font-size: 1.15rem;
    }

    .student-fullname {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .diploma-course-name {
        font-size: 1.05rem;
    }

    .diploma-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .metric-item {
        padding: 0.6rem 0.4rem;
    }

    .metric-val {
        font-size: 0.82rem;
    }

    .btn-direct-download {
        padding: 0.95rem 1rem;
        gap: 0.75rem;
    }

    .btn-direct-download > i {
        font-size: 1.4rem;
    }

    .btn-main-label {
        font-size: 0.95rem;
    }

    .btn-sub-label {
        font-size: 0.68rem;
    }

    .diploma-secondary-actions {
        flex-direction: column;
    }

    .btn-action-outline, .btn-action-whatsapp {
        width: 100%;
        min-width: unset;
        padding: 0.65rem 0.75rem;
    }

    .syllabus-card {
        padding: 1rem 0.85rem;
    }

    .qr-image {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .student-fullname {
        font-size: 1.2rem;
    }

    .hero-cert-title {
        font-size: 1.2rem;
    }

    .diploma-course-box {
        padding: 0.75rem 0.65rem;
    }
}


