/* =========================================
   ESTO - CERTIFICATIONS PAGE CSS
   ========================================= */

/* --- GLOBALS --- */
:root {
    --navy: #0f172a;
    --blue: #005b96;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
}

/* --- 1. HERO SECTION --- */
.cert-hero {
    height: 60vh;
    background: var(--navy);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shield-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/shield-pattern.png'); /* Optional texture */
    opacity: 0.05;
    background-size: 100px;
}

.hero-label {
    font-family: 'Rajdhani', sans-serif;
    color: #60a5fa;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-blue { color: #60a5fa; }

.hero-desc {
    font-family: 'Barlow', sans-serif;
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}


/* --- 2. VALUE PROPOSITION --- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.value-item {
    padding: 30px;
    border-right: 1px solid var(--border);
}
.value-item:last-child { border-right: none; }

.value-item i {
    font-size: 2.5rem;
    color: var(--blue);
    margin-bottom: 20px;
}

.value-item h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--navy);
}


/* --- 3. CERTIFICATE VAULT GRID --- */
.cert-vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* THE VAULT CARD */
.vault-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.vault-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--blue);
}

/* Header: ID and Status */
.card-header {
    background: #f1f5f9;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.cert-id {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #64748b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.status-dot {
    width: 10px; height: 10px;
    background: #10b981; /* Green = Active */
    border-radius: 50%;
    box-shadow: 0 0 5px #10b981;
}

/* Body: Icon and Text */
.card-body {
    padding: 30px 25px;
    text-align: center;
}

.icon-stamp {
    width: 60px; height: 60px;
    border: 2px solid var(--navy);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--navy);
    border-radius: 4px;
}

.icon-stamp.green { border-color: #10b981; color: #10b981; }
.icon-stamp.orange { border-color: #f59e0b; color: #f59e0b; }
.icon-stamp.blue { border-color: #0ea5e9; color: #0ea5e9; }

.vault-card h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--navy);
}

.importance {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
}

/* Footer: Action and Animation */
.card-footer {
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden; /* Contains the scan line */
}

.view-btn {
    display: block;
    width: 100%;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    background: white;
    z-index: 2;
    position: relative;
}

.view-btn:hover {
    background: var(--navy);
    color: white;
}
/* --- SPACING UPDATES --- */

/* 1. Space under "Our Accreditations" Title */
.cert-vault-grid {
    margin-top: 20px; /* Increases the gap between the Title and the Cards */
}


/* SCANNING ANIMATION */
.scan-line {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: 1;
}

.vault-card:hover .scan-line {
    left: 200%; /* Moves quickly across on hover */
    transition: 1s ease-in-out;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .value-grid { grid-template-columns: 1fr; border: none; }
    .value-item { border-right: none; border-bottom: 1px solid var(--border); }
    .hero-title { font-size: 3rem; }
}