@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-padding-top: 100px;
}
:root {
    --primary-gradient: linear-gradient(to bottom, var(--primary-color) 0%, var(--secondary-color) 100%);
    --primary-color: #c0f3ff;
    --secondary-color: #149BC6;
    --text-dark: #061F32;
    --text-light: #D6F4FB;
    --bg-light: #D6F4FB;
    --white: #ffffff;
    --shining: #82fdff;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --border-radius: 15px;
    --container-width:95%;
}

body {
    font-family: "Poppins", sans-serif;
    background: var(--primary-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    position: relative;
    
}
.header {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px auto;
    position: sticky;
    top: 20px;
    z-index: 1000;
    width:var(--container-width);
}

.hdleft {
    overflow: hidden;
    height: 80px;
    width: 50%;
    display: flex;
    justify-content: left;
    align-items: center;
    margin:0 0 0 -100px;
}
.hdleft img {
    width: 520px;
    height: 320px;
    margin:30px 0 0 0;
}
@media (max-width: 768px) {
    .hdleft{
        margin:0 0 0 -50px;
        width:80%;
    }
    .hdleft img {
        width: 450px;
        height: 250px;
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo-text {
    width: 300px;
    height: 50px;
    position: absolute;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin:0 0 0 50px;
}

.nav-item {
    position: relative;
}
.authbuttons-hide {
    display: none;
}
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 17px;
    border:none;
    background: transparent;
    font-family: "Poppins", sans-serif;
}
.nav-link a{
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 17px;
    border:none;
    background: transparent;
}

.nav-link:hover {
    color: var(--text-dark);
    background: var(--bg-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}
.home-links{
    position: absolute;
    right:20px;
    display: flex;
    justify-content: flex-end;
    gap:20px;
    width:50%;
    height:50px;
}

@media (max-width: 768px) {

  .home-links {
    position: absolute;
    top: 100px;
    right: 0;
    width: 250px;
    height:auto;
    background: var(--white);
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    text-align: right;
    border-radius: var(--border-radius);
  }

  .home-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}


.home-link{
    color:var(--text-dark);
    text-decoration:none;
    font-weight: 600;
    padding:10px 20px;
    transition:all 0.3s ease;
    position: relative;
}
.home-link:hover{
    background-color: var(--primary-color);
}
.home-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.home-link:hover::after {
    width: 100%;
}


.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    color: var(--text-dark);
    background: var(--bg-light);
    transform: translateX(5px);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn,
.signup-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.login-btn {
    background: var(--bg-light);
    border:1px solid var(--bg-light);
}

.login-btn:hover {
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    background-color: var(--white);
}

.signup-btn {
    background: var(--primary-gradient);
    color: var(--text-dark);
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
@media (max-width:768px){
    .hamburger {
        display: flex;
    }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none;
     position: fixed;
        top: 80px;
        left: 0;
        width: 100vw;
        background: var(--white);
        display: none;
        flex-direction: column;
        padding: 1rem;
        z-index: 999999;
  }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
  }
   .nav-item,
    .authbuttons-hide {
        width: 100%;
        text-align: center;
    }
      .nav-link {
        justify-content: flex-start;
        width: 100%;
    }

  .dropdown {
    opacity: 0;
    visibility: hidden;
    position: static;
  }

  .nav-item.open .dropdown {
    opacity: 1;
    visibility: visible;
  }
  .authbuttons-hide{
    margin:20px 0 0 0;
    display: inline-block;
  }
}

.footer {
    background: var(--white);
    padding: 2rem 0;
    border-radius: var(--border-radius);
    margin: 2rem auto 20px;
    width:var(--container-width);
    display: block;
}
#footer-container{
    width:100%;
    max-width: var(--container-width);
    margin:0 auto;
    background-color: none;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 250px);
    justify-content: space-evenly;
    gap:30px;
    width:100%;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background:var(--text-dark);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-links h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}
.foot-link ul li a{
    color:var(--text-dark);
    display: inline-block;
    border-radius: var(--border-radius);
    font-weight: 500;

}
.footer-links li {
    margin-bottom: 0.75rem;
}
#tel{
    font-weight:500;
}
.footer-links a {
    color: var(--text-dark);
    font-weight:500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
    
}

.footer-logo {
    overflow: hidden;
    height: 100px;
    width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 0 -90px;
}
.footer-logo img {
    width: 450px;
    height: 250px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-dark);
}
#foot-break {
    display: none;
}
@media (max-width:1500px){
    .footer-content{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }
}
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
    }
    .authbuttons-hide {
        display: block;
    }
    .nav-link {
        padding: 1rem;
        display: block;
        width: 100%;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(102, 126, 234, 0.05);
        margin-top: 0.5rem;
        display: none;
    }

    .nav-item:hover .dropdown {
        display: block;
    }

    .auth-buttons {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}


.internship-container {
            width:var(--container-width);
            margin: 0 auto;
            background-color: var(--bg-light);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 20px;
        }

        h2.section-title {
            margin-bottom: 20px;
            font-size: 2.5em;
            text-align: center;
        }

        /* --- 💳 Card Styles (Shared) --- */
        .card {
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            background-color: var(--text-dark);
            transition: transform 0.2s;
            display: flex;
            flex-direction: column;
            max-width:300px;
        }

        .card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }

        .card-top {
            position: relative;
            height: 150px; /* Fixed height for image area */
            overflow: hidden;
        }

        .card-top img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Ensures the image covers the area without distortion */
            display: block;
        }

        .card-bottom {
            padding: 15px;
            flex-grow: 1; /* Allows bottom part to fill remaining space */
        }

        .card-title {
            font-size: 1.1em;
            font-weight: bold;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color:var(--white)
        }

        .card-meta {
            font-size: 0.85em;
            color: var(--secondary-color);
            display: flex;
            flex-direction: column; /* Stacked meta data */
        }

        .card-meta span {
            margin-top: 5px;
        }
        
        .card-meta .rating {
            color: #f2ff00;
            font-weight: bold;
        }


        /* --- 📱 Mobile/Tab View (Default - Accordion) --- */
        .category-accordion {
            display: block; /* Default for mobile */
        }

        .accordion-item {
            border-bottom: 1px solid var(--border-color);
        }

        .accordion-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 10px;
            cursor: pointer;
            background-color: var(--card-bg);
            font-weight: bold;
            font-size: 1.1em;
            transition: all 0.3s ease;
        }
        
        .accordion-header.active {
            color: var(--secondary-color);
            background-color: var(--light-bg);
        }

        .accordion-icon {
            font-size: 1.5em;
            transition: transform 0.3s;
        }

        .accordion-header.active .accordion-icon {
            transform: rotate(45deg); /* Plus sign to X or minus */
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out;
            background-color: var(--light-bg);
        }

        .accordion-content-inner {
            padding: 10px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

        /* --- 🖥️ Desktop View (Filterable Grid) --- */
        .desktop-layout {
            display: none; /* Hidden by default on mobile */
            gap: 20px;
            max-height: 700px; /* Fixed parent height */
            margin:20px 0 0 0;
            
        }

        .desktop-categories {
            width: 280px;
            flex-shrink: 0; /* Prevents category list from shrinking */
        }
        
        .category-title {
            padding: 15px;
            margin-bottom: 5px;
            cursor: pointer;
            background-color: var(--white);
            border-radius: 4px;
            font-weight: 500;
            transition: background-color 0.2s, color 0.2s;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-title:hover {
            background-color: var(--light-bg);
        }

        .category-title.selected {
            background-color: var(--text-dark);
            color: var(--white);
            font-weight: bold;
        }

        .desktop-cards-container {
            flex-grow: 1;
            overflow-y: auto; /* Makes this right side scrollable */
            padding-right: 15px; /* Space for scrollbar */
            
        }

        .desktop-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
            grid-auto-flow: row;
            padding: 20px; /* Extra padding at the bottom of the scroll area */
        }

        /* --- 📏 Media Query for Desktop (Requirement 2) --- */
        @media (min-width: 768px) {
            .category-accordion {
                display: none; /* Hide accordion on desktop */
            }

            .desktop-layout {
                display: flex; /* Show filterable layout on desktop */
            }
            
        }
        

        .whatsapp {
            display: flex;
            align-items: center;
            justify-content: center;
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 3;
            background-color: #25D366;
            height: 60px;
            border-radius: 30px;
            color: white;
            cursor: pointer;
            text-decoration: none;
            transition: box-shadow 0.3s ease;
            width: auto;
            padding: 20px 20px;
        }

        .whatsapp:hover {
            box-shadow: 0 0 20px #25d366;
        }
        @media (max-width: 768px){
            .whatsapp{
                right:50px;
            }
        }


/*-----------Certification Verification Section-------------*/
.container {
            width: var(--container-width);
            margin: 20px auto 0;
            background-color: var(--bg-light);
            border-radius:var(--border-radius);
            padding: 20px;
        }

        /* --- Section 1: Search --- */
        .search-section {
            text-align: center;
            margin-bottom: 40px;
            padding: 20px;
        }

        .search-group {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 20px;
        }

        .search-group input {
            padding: 12px 20px;
            border-radius: var(--border-radius);
            border: 1px solid var(--secondary-color);
            width: 100%;
            max-width: 400px;
            outline: none;
            font-family: "Poppins", sans-serif;
            font-size: 1rem;
            transition:all 0.3s ease;
        }
        .search-group input:focus{
            border:1px solid var(--text-dark);
            box-shadow: 0 0 10px var(--text-dark);
        }
        .search-group button {
            padding: 12px 30px;
            background: var(--secondary-color);
            color: var(--white);
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: bold;
            transition:all 0.3s ease;
            font-size: 1rem;
        }

        .search-group button:hover {
            background-color: var(--text-dark);
        }

        /* --- Section 2: Verification Details (Success) --- */
        .verification-card {
            background: var(--white);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            display: none; /* Hidden by default */
            max-width: 1000px;
            margin:0 auto 20px;
            border:1px solid var(--secondary-color);
        }

        .card-header {
            display: flex;
            padding: 40px;
            align-items: center;
            background:var(--bg-light);
            color: var(--text-dark);
        }
        .card-footer p{
            font-weight:600;
        }
        .card-footer p span{
            font-size:1.2rem;
            font-weight: 700;
        }
        #cand-name{
            font-weight: 800;
            font-size: 30px;
            color:var(--text-dark);
        }
        #internship-name, #roll-no{
            font-weight:700;
            font-size: 20px;
            color:var(--text-dark);
        }
        .header-left { flex: 0 0 70%; font-size: 1rem; line-height: 1.6; padding-right: 20px; }
        .header-right { flex: 0 0 30%; display: flex; justify-content: center; }

        .badge-placeholder {
            width: 120px; height: 120px;
            display: flex; align-items: center; justify-content: center;
        }
        .badge-placeholder img{
            width:250%;
            height:250%;
        }
        .card-body { padding: 40px 20px; text-align: center; }
        .table-container { margin-top: 20px; overflow-x: auto; }
        table { width: 100%; max-width: 700px; margin: 0 auto; border-collapse: collapse; text-align: left; }
        th, td { padding: 15px; border-bottom: 1px solid #eee; }
        th { color: var(--secondary-color); width: 40%; }

        .card-footer { padding: 30px; text-align: center; background: #f9f9f9; }
        .tick-mark-space img { width: 150px; height: 150px; fill: #28a745; }

        /* --- Section 3: Error State --- */
        .error-card {
            background-color: #ffe0de;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 50px 20px;
            text-align: center;
            display: none; /* Hidden by default */
            border: 1px solid rgba(216, 0, 12, 0.2);
        }

        .error-icon img {
            width: 100px;
            height: 100px;
            fill: var(--error-text);
            margin-bottom: 15px;
        }

        .error-message {
            color: var(--error-text);
            font-size: 1.1rem;
            font-weight: 500;
            
            max-width:550px;
            padding:30px;
            border-radius: var(--border-radius);
            margin:0 auto;
        }
        .error-message span{
            font-weight: 700;
            font-size: 1.5rem;
        }
        /* --- Responsive Logic --- */
        @media (max-width: 768px) {
            .search-group { flex-direction: column; align-items: center; }
            .search-group input { max-width: 100%; }
            .card-header { flex-direction: column-reverse; text-align: center; padding: 30px 20px; }
            .header-left { flex: 0 0 100%; margin-top: 20px; padding: 0; }
            .header-right { flex: 0 0 100%; }
        }