/* CSS Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #f3f4f6;
    --card-bg: #f9f9f9;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --btn-color: #d1d5db;
    --btn-hover: #9ca3af;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header Styling --- */
header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

/* --- Main Content Layout --- */
main {
    flex: 1;
    max-width: 900px;
    width: 90%;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 1rem;
}

.hero-section h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* --- Cards --- */
.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* --- Verification Form --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.input-field {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: #cbd5e1;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    border: none;
    background-color: var(--btn-color);
    color: #4b5563;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.submit-btn:hover {
    background-color: var(--btn-hover);
    color: #ffffff;
}

/* --- Result Section ("No Data" State) --- */
.result-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.placeholder-icon {
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.result-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

/* --- Certificate Details Table Styling --- */
.detail-card {
    background-color: #ffffff;
    padding: 2rem !important;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333333;
    padding-bottom: 0.75rem;
}

.detail-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.badge-icon {
    width: 28px;
    height: 28px;
    color: #1a1a1a;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.detail-table tr {
    border-bottom: 1px solid #d1d5db;
}

/* Row Background Highlights */
.detail-table tr.highlight-row {
    background-color: #f9f9f9;
}

/* Distinct Gap Row */
.detail-table tr.spacer-row {
    height: 20px;
    border-bottom: none;
}

.detail-table td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Left Column Styling */
.detail-table td.label {
    width: 35%;
    font-weight: 600;
    color: #6b7280;
}

/* Right Column Styling */
.detail-table td.value {
    width: 65%;
    color: #4b5563;
}

.highlight-text {
    font-weight: 600;
}

/* Image Wrapper Box */
.product-image-container {
    width: 100px;
    height: 100px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Footer Accent Row */
.detail-table tr.footer-row {
    border-top: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    background-color: #f3f4f6;
}

.footer-text {
    text-align: center;
    font-weight: 700;
    color: #4b5563;
    letter-spacing: 0.5px;
    padding: 0.75rem !important;
}

/* --- Mobile Menu Button (Hidden by default on Desktop) --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
}
/* --- Media Queries for Mobile Responsiveness --- */
@media (max-width: 768px) {
    header {
        position: relative; /* Context for absolute menu positioning */
        padding: 1rem 5%;
    }

    .menu-toggle {
        display: block; /* Show hamburger button on smaller viewports */
    }

    /* Transform navigation layout into a responsive dropdown block */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 100;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    /* Active utility class toggled via JavaScript */
    nav.active {
        display: flex;
    }

    nav a {
        margin: 0.75rem 5%;
        font-size: 1.05rem;
    }

    main {
        margin: 1.5rem auto;
        padding: 0 0.25rem;
    }

    .card {
        padding: 1.5rem;
    }

    /* Table Responsiveness adjustments */
    .detail-card {
        padding: 1.25rem !important;
    }

    .detail-table td.label {
        width: 45%;
        padding: 0.75rem 0.5rem;
    }

    .detail-table td.value {
        width: 55%;
        padding: 0.75rem 0.5rem;
    }
}

/* --- Contact & About Page Extra Layouts --- */
.contact-container {
    display: flex;
    gap: 1.5rem;
}

.contact-container .card {
    flex: 1;
}

.info-card h2, .about-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.info-item p, .info-item a {
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
}

.info-item a:hover {
    text-decoration: underline;
}

/* Textarea adjustment for the contact form */
.textarea-field {
    border-radius: 16px !important;
    resize: vertical;
}

/* Form block adjustments */
.form-card .form-group div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* About Page Styles */
.about-card p {
    line-height: 1.7;
    color: #4b5563;
    font-size: 1.05rem;
}

.values-grid {
    display: flex;
    gap: 1.5rem;
}

.value-box {
    flex: 1;
    padding: 1.75rem !important;
}

.value-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.value-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Mobile Responsiveness Updates --- */
@media (max-width: 768px) {
    .contact-container, .values-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.detail-footer{
    margin-top: 30px;
    text-align: center;
}
