* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.heart-container {
    position: absolute;
    animation: heartPop 2s ease-out forwards;
    user-select: none;
    -webkit-user-select: none;
}

/* NEW: Styling for the SVG heart shape itself */
.heart-svg {
    width: 24px;
    height: 24px;
    /* The 'fill' property controls the SVG's color */
    fill: red;
    /* Default color, will be overridden by JS */
}

/* Defines the animation steps */
@keyframes heartPop {
    0% {
        /* Start: at the click point, fully visible */
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        /* End: 150px above and completely faded out */
        transform: translateY(-150px) scale(0.8);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.search-section {
    padding: 15rem 0;
    text-align: center;
    position: relative;
}

.intern-section {
    background-image: url('../Imgs/servicePageImgs/Verify_BG_Landscape.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.search-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-title {
    font-size: 2.5rem;
    color: #1e1d1d;
    margin-bottom: 1rem;
    font-weight: 700;
}

.search-title :hover {
    text-decoration: none;
}

.search-title span {
    color: #0056b3;
}

.search-description {
    color: #666;
    margin: 2rem 0;
    font-size: 1.1rem;

}

.search-box {
    display: flex;
    max-width: 600px;
    padding: 2rem 0;
    margin: 0 auto;
    gap: 1rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #0d6dfdb8;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.search-button {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0056d3 0%, #004bb5 100%);
    outline: none;
}

.search-button:active {
    transform: translateY(0);
}

.search-button:hover {
    background: #0056d3;
}

.navigation-links {
    margin: 3rem 0;
}

.navigation-links a {
    color: #262525;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navigation-links a:hover {
    color: #0d6efd;
}

.header {
    color: white;
    background: transparent;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(26, 55, 173, 0.112);

}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

.main-card {
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.student-info {
    padding: 2.5rem;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
}

.student-info h2 {
    color: #0d6efd;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    background: rgb(255, 255, 255);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.2rem;
    color: #212529;
    font-weight: 600;
}


.certificate-section h2 {
    color: #0d6efd;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0;
    text-align: center;
}

.certificate-viewer {
    width: 100%;
    height: 570px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    filter: blur(10px);
    transition: filter 0.5s ease;
}

.certificate-section iframe.loaded {
    filter: blur(0);
}

.download-section {
    text-align: center;
    padding: 1rem 0;
}

.download-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0056d3 100%);
    color: white !important;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(13, 110, 253, 0.4);
    background: linear-gradient(135deg, #0056d3 0%, #004bb5 100%);
}

.download-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hidden {
    display: none !important;
}

/* Go-Back Button Styles */

#GoBckBtn {
    display: none;
}

.bckBtn {
    position: absolute;
    top: 100px;
    left: 40px;
    z-index: 1000;
    border: none;
    padding-bottom: 40px;
    outline: none;
}

.buttonBck {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    outline: none;
    border: none;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    background: linear-gradient(135deg, #0d6dfdbf 0%, #0d55c1 100%);
}

/* The text inside the button */
.text {
    position: absolute;
    left: 50px;
    /* Positioned just outside the initial button area */
    font-size: 1rem;
    font-weight: 600;
    color: #ecf0f1;
    opacity: 0;
    /* Hidden by default */
    white-space: nowrap;
    /* Prevents text wrapping */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

/* The SVG icon container */
.iconBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 0;
    height: 50px;
    width: 50px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.iconBtn svg {
    width: 22px;
    height: 22px;
    fill: #ecf0f1;
}

/* Hover state for the button */
.buttonBck:hover {
    width: 15 0px;
    border-radius: 30px;
    outline: none
}

.buttonBck:hover .text {
    opacity: 1;
    left: 60px;
}

.buttonBck:hover .iconBtn {
    transform: translateX(10px);
}

.buttonBck:active {
    transform: scale(0.95);
}

/* Navigation Links Styles */
.nav-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 15px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.nav-link:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transform: scale(1.05);
}

.nav-link .icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease-in-out;
}

/* Specific Link Hover Effects */
.home-link:hover {
    background-color: #1f2937;
    color: #ffffff;
}

.home-link:hover .icon {
    transform: translateX(-0.25rem);
}

.contact-link:hover {
    background-color: #2563eb;
    color: #ffffff;
}

.contact-link:hover .icon {
    transform: scale(1.1);
}


/* verify */
.badge-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    background-color: #4CAF50;
    border-radius: 999px;
    padding: 8px 20px 8px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    color: white;
}

.verified-badge-text {
    font-weight: 600;
    font-size: 18px;
    margin-right: 15px;
    letter-spacing: 0.3px;
}

.verified-badge-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.checkmark-svg {
    width: 18px;
    height: 18px;
    stroke: #4CAF50;
    /* Color of the checkmark */
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Responsive Styles */
@media (min-width: 640px) {
    .nav-links-container {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .content-wrapper h1 {
        font-size: 2.25rem
    }
}

/* Media Query */

@media (max-width: 768px) {
    .container {
        padding: 1rem 0.5rem;
    }

    .header h1 {
        font-size: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .student-info {
        padding: 1rem;
    }

    .certificate-section {
        padding: 1.5rem;
    }

    .certificate-viewer {
        height: 500px;
    }

    .download-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 650px) {
    .search-title {
        font-size: 2rem;
    }

    .search-description {
        font-size: 1rem;
    }

    .search-box {
        flex-direction: column;
        align-items: center;
    }

    .search-input {
        width: 80%;
    }

    .search-button {
        padding: 15px 22px;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .intern-section {
        background-image: url('../Imgs/servicePageImgs/Verify_BG_Portrait.svg');
        background-repeat: no-repeat;
        background-position: center;
        height: auto;

    }

    .main-card {
        margin-top: 50px;
    }

    .bckBtn {
        left: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .certificate-viewer {
        height: 400px;
    }

    .info-item {
        padding: 1rem;
    }

    .certificate-viewer {
        width: 100%;
        height: 250px;
        border: none;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;

    }

    .certificate-section {
        width: 100%;
    }

    .search-section {
        padding: 7rem 0;
    }
}