/* Styles for resources/views/resources/views/frontend/pages/certificates.blade.php — moved out of the view's inline <style> blocks. */

/* Hero Section */
.certificates-hero {
    background: linear-gradient(135deg, #103a67 0%, #0056b3 100%);
    /* 4rem, matching the contact hero. Was 60px, which is not a step
       on any scale this project uses and left this page starting its
       content 12px lower than the other hero page. */
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Halve the hero on phones, as the contact hero already does. Without
   this the two hero pages opened at 64px and 32px of space above their
   first line on a 375px screen. */
@media (max-width: 768px) {
    .certificates-hero {
        padding: 2rem 0;
    }
}

.certificates-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(100px, -50px);
}

.certificates-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.certificates-hero .lead {
    font-size: 1.3rem;
    font-weight: 500;
}

/* Certificate Card - Premium Design */
.certificate-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #103a67, #f1bf1a, #103a67);
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(204, 0, 0, 0.25);
    border-color: #103a67;
}

.certificate-image-frame {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(204, 0, 0, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid rgba(204, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.certificate-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.1), transparent);
    pointer-events: none;
}

.certificate-image-frame img,
.certificate-image-frame i {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 1;
    transition: transform 0.3s ease;
}

.certificate-card:hover .certificate-image-frame img,
.certificate-card:hover .certificate-image-frame i {
    transform: scale(1.1);
}

.certificate-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #103a67;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificate-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex: 1;
}

.certificate-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16,58,103,0.1), rgba(241,191,26,0.1));
    color: #103a67;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 12px;
    border: 1px solid rgba(16,58,103,0.2);
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #103a67;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #f1bf1a, transparent);
    border-radius: 2px;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(16,58,103,0.05) 0%, rgba(241,191,26,0.05) 100%);
    border-left: 5px solid #103a67;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-box h5 {
    color: #103a67;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-box p {
    color: #555;
    margin-bottom: 0;
}
