/* ============================== */
/*          RESET STYLES         */
/* ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0 !important;
}


/* ============================== */
/*          BASE STYLES          */
/* ============================== */
body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #f4f6fa, #e7ecf5);
  color: #333;
  padding: 0;
  margin: 0;
}

.logo {
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  font-size: 26px;
  color: #2d9cdb;
}

/* ============================== */
/*       INTERNSHIP HERO         */
/* ============================== */

.internship-main {
  padding: -4rem -2rem;
}

.internship-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  min-height: 80vh;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

.text-side {
  flex: 1;
  text-align: center;
  max-width: 600px;
}

.text-side h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.text-side p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #555;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn {
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 10px;
  background: #2d9cdb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background: #247bb5;
}

.find-internships {
  background-color: #2d9cdb;
  color: #fff;
}

.find-internships:hover {
  background-color: #1c7bbf;
}

.post-internships {
  border: 2px solid #2d9cdb;
  background: transparent;
  color: #2d9cdb;
}

.post-internships:hover {
  background-color: #2d9cdb;
  color: #fff;
}

.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fffbe6;
  border: 1px solid #f9c100;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.category:hover {
  background-color: #fff1a8;
}

.icon {
  width: 32px;
  height: 32px;
  border-radius: 25%;
  padding: 5px;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.1); /* subtle glow */
  border-radius: 8px;
}


.image-side {
  flex: 1;
  text-align: center;
}

.image-side img {
  width: 100%;
  max-width: 450px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
  cursor: pointer;
  height: auto;
}

.image-side img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  filter: brightness(1.0) saturate(1.2);
}

/* ============================== */
/*         MEDIA QUERIES         */
/* ============================== */
@media (max-width: 768px) {
  .internship-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 2rem;
  }

  .image-side {
    width: 100%;
    order: -1;
  }

  .text-side {
    width: 100%;
    order: 1;
  }

  .text-side h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }

  .text-side p {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
  }

  .button-group {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    flex: 1 1 140px;
    max-width: 160px;
    margin-bottom: 10px;
  }

  .categories {
    justify-content: center;
  }

  .category {
    flex: 1 1 auto;
  }
}

/* ============================== */
/*    INTERNSHIP LIST SECTION    */
/* ============================== */
.internship-main-container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem 3%;
}

.internship-section {
  padding: 2rem 3%;
  background: #f9fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}

.section-header span {
  background-color: #ffeaa7;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-weight: bold;
  margin-left: 0.5rem;
}

.internship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* ============================== */
/*         INTERNSHIP CARD       */
/* ============================== */
.internship-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #e1e1e1;
}

.internship-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgb(29, 133, 161);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-header img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  padding: 5px;
}

.card-header h3 {
  font-size: 1.2rem;
  margin: 0;
  color: #222;
}

.card-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #444;
}

.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  background-color: #ececec;
  font-weight: 500;
}

/* ============================== */
/*       JOB CARD LIST VIEW      */
/* ============================== */
.section1-header {
  margin-bottom: 20px;
}

.section1-header h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: left;
}

.section1-header p {
  font-size: 1rem;
  color: #666;
  text-align: left;
  margin-bottom: 1.5rem;
}

.sub-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.sub-header-row p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

.sub-header-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.view-all-link {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #0070f3;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.view-all-link:hover {
  background-color: #e6f0ff;
  color: #0055cc;
  text-decoration: underline;
}

.job-card {
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background-color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid #e1e1e1;
  position: relative;
}

.job-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.job-cover {
  background: linear-gradient(to right, #4a90e2, #0070f3);
  height: 100px;
  position: relative;
}

.job-logo {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.job-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.job-content {
  padding: 16px;
}

.badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.badge.wfh {
  background-color: #f0f0f0;
  color: #333;
}

.badge.hiring {
  background-color: #ffdb57;
  color: #000;
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 4px;
}

.company-name {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

.stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
}

.stats div i {
  margin-right: 6px;
  color: #555;
}

.apply-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: #1e88e5;
  color: white;
  border-radius: 50%;
  padding: 8px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.job-card:hover .apply-arrow {
  background-color: #0f66d6;
}