/* =========================
   GLOBAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #172033;
    background: #f8faff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 75px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid #eeeeee;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #172033;
}

.logo span,
.footer-logo span {
    color: #4f46e5;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 15px;
    color: #555;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #4f46e5;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.login-btn {
    background: transparent;
    color: #4f46e5;
    padding: 10px 18px;
}

.register-btn {
    background: #4f46e5;
    color: white;
    padding: 11px 20px;
    border-radius: 7px;
}

.register-btn:hover {
    background: #3730a3;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 530px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    background:
        linear-gradient(
            rgba(79, 70, 229, 0.94),
            rgba(67, 56, 202, 0.94)
        );
}

.hero-content {
    width: 850px;
    padding: 50px 20px;
}

.hero-small {
    color: #c7d2fe;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    color: white;
    font-size: 55px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #fde68a;
}

.hero-description {
    color: #e0e7ff;
    max-width: 650px;
    margin: auto;
    line-height: 1.7;
    font-size: 17px;
}


/* =========================
   SEARCH
========================= */

.search-box {
    background: white;
    padding: 10px;
    margin: 35px auto 0;
    max-width: 750px;
    display: flex;
    gap: 10px;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.search-box input,
.search-box select {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px;
    font-size: 14px;
    background: white;
}

.search-box button {
    background: #f59e0b;
    color: white;
    padding: 0 25px;
    border-radius: 7px;
    font-weight: bold;
}

.search-box button:hover {
    background: #d97706;
}


/* =========================
   STATS
========================= */

.stats {
    max-width: 1100px;
    margin: -35px auto 70px;
    position: relative;

    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);

    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-card {
    text-align: center;
    padding: 30px 15px;
    border-right: 1px solid #eeeeee;
}

.stat-card:last-child {
    border-right: none;
}

.stat-card h2 {
    color: #4f46e5;
    margin-bottom: 7px;
}

.stat-card p {
    color: #777;
}


/* =========================
   INTERNSHIPS
========================= */

.internships {
    max-width: 1150px;
    margin: auto;
    padding: 30px 20px 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title p,
.section-label {
    color: #4f46e5;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 35px;
    margin: 10px 0;
}

.section-title span {
    color: #777;
}


/* =========================
   INTERNSHIP CARDS
========================= */

.internship-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.internship-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 22px;
    transition: 0.3s;
}

.internship-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.09);
}

.company-logo {
    width: 55px;
    height: 55px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 25px;
    margin-bottom: 18px;
}

.job-type {
    color: #4f46e5;
    background: #eef2ff;
    padding: 5px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
}

.card-content h3 {
    margin: 15px 0 8px;
}

.company {
    color: #555;
    margin-bottom: 12px;
}

.card-content > p {
    font-size: 13px;
    color: #777;
}

.skills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.skills span {
    background: #f3f4f6;
    padding: 6px 9px;
    border-radius: 5px;
    font-size: 11px;
}

.card-bottom {
    border-top: 1px solid #eee;
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-bottom strong {
    font-size: 13px;
    color: #222;
}

.card-bottom button {
    background: #4f46e5;
    color: white;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.card-bottom button:hover {
    background: #3730a3;
}


/* =========================
   ABOUT
========================= */

.about {
    background: #eef2ff;
    padding: 80px 10%;
}

.about div {
    max-width: 700px;
}

.about h2 {
    font-size: 35px;
    margin: 15px 0;
}

.about p:not(.section-label) {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about button {
    background: #4f46e5;
    color: white;
    padding: 13px 20px;
    border-radius: 7px;
}


/* =========================
   FOOTER
========================= */

footer {
    background: #111827;
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.footer-logo {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 12px;
}

footer > p {
    color: #9ca3af;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.footer-links a {
    color: #d1d5db;
    font-size: 14px;
}

.copyright {
    font-size: 12px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .navbar {
        padding: 0 4%;
    }

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 40px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box button {
        padding: 14px;
    }

    .stats {
        margin: 20px;
        grid-template-columns: repeat(2, 1fr);
    }

    .internship-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 500px) {

    .nav-buttons {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}
/* =========================
   INTERNSHIP PAGE
========================= */

.page-header {

    background: #eef2ff;

    text-align: center;

    padding: 70px 20px;

}

.page-header p {

    color: #4f46e5;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;

}

.page-header h1 {

    font-size: 42px;

    margin-bottom: 12px;

}

.page-header span {

    color: #666;

}


/* =========================
   FILTER
========================= */

.filter-section {

    background: white;

    padding: 25px 20px;

    border-bottom: 1px solid #eee;

}

.filter-container {

    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns:
        2fr
        1fr
        1fr
        1fr
        auto;

    gap: 12px;

    align-items: end;

}

.filter-box {

    display: flex;

    flex-direction: column;

    gap: 7px;

}

.filter-box label {

    font-size: 12px;

    font-weight: bold;

    color: #555;

}

.filter-box input,
.filter-box select {

    height: 45px;

    border: 1px solid #ddd;

    border-radius: 7px;

    padding: 0 12px;

    outline: none;

    font-size: 13px;

}

.filter-box input:focus,
.filter-box select:focus {

    border-color: #4f46e5;

}

.filter-button {

    height: 45px;

    background: #4f46e5;

    color: white;

    padding: 0 20px;

    border-radius: 7px;

    font-weight: bold;

}

.filter-button:hover {

    background: #3730a3;

}


/* =========================
   RESULTS
========================= */

.internship-list {

    max-width: 1150px;

    margin: auto;

    padding: 50px 20px 80px;

}

.results-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}

.results-header h2 {

    font-size: 25px;

}

.results-header span {

    color: #777;

    font-size: 14px;

}


/* =========================
   SAVE BUTTON
========================= */

.card-top {

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.save-button {

    width: 35px;

    height: 35px;

    border-radius: 50%;

    background: #f3f4f6;

    font-size: 17px;

}

.save-button:hover {

    background: #eef2ff;

}

.save-button.saved {

    color: #ef4444;

    background: #fee2e2;

}


/* =========================
   NO RESULTS
========================= */

.no-results {

    display: none;

    text-align: center;

    padding: 80px 20px;

}

.no-results h2 {

    margin-bottom: 10px;

}

.no-results p {

    color: #777;

}


/* =========================
   RESPONSIVE FILTER
========================= */

@media (max-width: 900px) {

    .filter-container {

        grid-template-columns: 1fr 1fr;

    }

    .filter-button {

        width: 100%;

    }

}


@media (max-width: 600px) {

    .page-header h1 {

        font-size: 30px;

    }

    .filter-container {

        grid-template-columns: 1fr;

    }

    .results-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 8px;

    }

}