﻿ 
 
.hero-card,
.double-card,
.single-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    display: block;
    transition: .25s;
}

.topic-card, .hero-card, .single-card {
    width: 94vw;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border: 3px solid #e8a847; */
    border-radius: 18px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    position: relative;
    box-shadow: 0 0 0 3px rgb(220 166 54 / 30%), 0 4px 15px rgba(0, 0, 0, .25);
    height: 14vh;
    min-height: 80px;
}


    .hero-card:hover,
    .double-card:hover,
    .single-card:hover {
        transform: scale(1.02);
    }

    .hero-card::before,
    .double-card::before,
    .single-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0,0,0,.15), rgba(0,0,0,.78) );
    }

.card-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 10px 0px 10px;
    text-align-last: left;
}

.card-title {
    font-size: large;
    font-weight: 500;
    margin-bottom: 2px;
    color: #d1970a;
}

.card-subtitle {
    font-size: medium;
    line-height: 1.2;
    color: #e2e8f0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.progress-wrap {
    margin-top: 16px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.progress {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,.18);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient( 90deg, #22c55e, #4ade80 );
}
 
.double-card {
    width: 44vw;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* border: 3px solid #e8a847; */
    border-radius: 18px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    position: relative;
    box-shadow: 0 0 0 3px rgb(220 166 54 / 30%), 0 4px 15px rgba(0, 0, 0, .25);
    height: 14vh;
    min-height: 80px;
}



/* ==========================================
   SECURITY LEARNING PAGE
========================================== */

.back-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 14px;
    background: #1e293b;
    color: white;
    font-size: 20px;
    cursor: pointer;
}
  
.topics-grid {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
 
    .topic-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 180deg, rgba(0,0,0,.15), rgba(0,0,0,.85) );
    }

.buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    border: none;
    padding: 12px;
    border-radius: 14px;
    font-weight: 700;
    color: white;
    font-size: 14px;
}

.learn-btn {
    background: #2563eb;
}

.exam-btn {
    background: #16a34a;
}
 

@media (max-width:700px) {
    .topics-grid {
        grid-template-columns: 1fr;
    }
}