/* --- HEADER --- */
.verify-header {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.8)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.verify-header h1 { font-size: 2.5rem; margin-bottom: 5px; }
.breadcrumb { color: #ccc; }

/* --- SEARCH SECTION --- */
.search-card {
    background: var(--white);
    max-width: 800px;
    margin: -60px auto 0; /* Header ke upar thora charha hua */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    border-top: 5px solid var(--secondary);
}

.search-header { text-align: center; margin-bottom: 30px; }
.search-header i { font-size: 3rem; color: var(--primary); margin-bottom: 10px; }
.search-header h3 { font-size: 1.8rem; color: var(--primary); }
.search-header p { color: #777; }

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Roll No bara, Year chota */
    gap: 20px;
    margin-bottom: 20px;
}

.input-wrap label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.input-wrap input, .input-wrap select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}
.input-wrap input:focus, .input-wrap select:focus { border-color: var(--secondary); }

.verify-btn { width: 100%; font-size: 1.1rem; }

/* --- RESULT SECTION --- */
.result-section {
    padding-bottom: 80px;
    background-color: #f9f9f9;
    padding-top: 40px;
}

/* Status Bar */
.status-bar {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-bar.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Grid for Details & Image */
.student-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Details ko zyada jagah */
    gap: 40px;
    align-items: start;
}

/* Details Card */
.details-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.details-card h3 { color: var(--primary); margin-bottom: 10px; }

/* Data Rows (Zebra Striping) */

.data-row:nth-child(even) { background-color: #f8f9fa; } /* Har doosri line gray */
.data-row:last-child { border-bottom: none; }

.label { font-weight: 600; color: #555; }
.value { font-weight: 500; color: var(--primary); text-align: right; }

.highlight-green { color: var(--secondary); font-weight: 700; }
.status-active { 
    background: var(--secondary); color: white; 
    padding: 2px 8px; border-radius: 4px; font-size: 0.8rem; 
}

/* Certificate Image */
.certificate-preview {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.cert-img-container {
    margin-top: 15px;
    border: 5px solid #eee;
    position: relative;
    overflow: hidden;
}

.cert-img-container img { width: 100%; display: block; transition: 0.3s; }
.cert-img-container:hover img { transform: scale(1.02); }

.note { font-size: 0.8rem; color: #999; margin-top: 10px; font-style: italic; }

/* Watermark over Image */
.watermark {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0,0,0,0.1);
    pointer-events: none;
}

/* --- RESPONSIVE --- */
/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 900px) {

    /* 1. Main Grid ko Flex Column banayen */
    .student-details-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        width: 100%; /* Full width confirm karein */
    }

    /* 2. Diploma Image ko Pehle number par layen */
    .certificate-preview {
        order: -1; /* Yeh sab se upar chala jaye ga */
        width: 100%;
    }

    /* 3. Details Card ko Second number par layen aur Width fix karein */
    .details-card {
        order: 1;
        width: 100%;
        /* Mobile par padding kam karein taake content right side tak jaye */
        padding: 20px; 
        box-sizing: border-box; /* Padding width ke andar shamil ho */
    }

    /* 4. Andar walay data ko 1 column karein */
    .info-grid-container {
        grid-template-columns: 1fr; /* Mobile par 2 columns nahi, 1 column */
        gap: 15px;
    }

    /* Optional: Agar data rows bhi full width nahi lag rahay */
    .data-row {
        width: 100%;
    }
}
/* --- NEW GRID LAYOUT CSS --- */

/* 1. Grid Container */
.info-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Equal Columns */
    gap: 15px; /* Boxes ke darmiyan fasla */
    margin-bottom: 10px;
}

/* 2. Individual Data Box Style */
.data-row {
    display: flex;
    flex-direction: column; /* Label upar, Value neechay */
    justify-content: center;
    padding: 15px;
    background-color: #f8f9fa; /* Halka gray background */
    border-radius: 8px;
    border: 1px solid #eee;
    transition: 0.3s;
}

/* Hover Effect Optional */
.data-row:hover {
    background-color: #fff;
    border-color: var(--secondary);
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

/* 3. Text Styling Update */
.label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-align: left; /* Pehle right tha, ab left */
}

/* 4. Full Width Rows (Status & Remarks) */
.full-row {
    flex-direction: row; /* Wapis 1 line mein */
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 15px 5px;
}
.full-row .label { margin-bottom: 0; }

/* 5. Mobile Responsive (Mobile pe wapis 1 column) */
@media (max-width: 600px) {
    .info-grid-container {
        grid-template-columns: 1fr; /* 1 Column on Mobile */
        gap: 10px;
    }
    
    /* Mobile pe wapis Side-by-Side dikhana ho to yeh use karein,
       warna Box style mobile pe bhi acha lagta hai. */
    /* .data-row { flex-direction: row; justify-content: space-between; } */
}