/* ---- BASE STYLES ---- */
:root {
    --primary-blue: #16A4A0;       
    --primary-blue-hover: #128280; 
    --light-blue-bg: #E0F8F7;      
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-color: #f9fafb;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* --- NAVBAR --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  background: white;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.text-logo {
  color: var(--primary-blue);
  margin: 0;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
}

.nav-search-box {
  position: relative;
  flex: 0 1 300px;
}

.nav-search-box input {
  width: 100%;
  padding: 8px 20px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #f1f5f9;
  outline: none;
  font-size: 14px;
  transition: 0.3s;
}

.nav-search-box input:focus {
  background: #fff;
  border-color: var(--primary-blue);
}

.nav-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.nav-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-right a {
  text-decoration: none;
  color: #111;
}

.nav-item {
  text-align: center;
  font-size: 13px;
  cursor: pointer;
  color: #64748B;
  padding: 8px 12px;
  border-radius: 6px;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item i {
  font-size: 18px;
  margin-bottom: 4px;
}

.nav-item.active {
  background-color: var(--light-blue-bg);
  color: var(--primary-blue);
}

.nav-item.active a {
  color: var(--primary-blue);
}

.nav-item:hover {
  color: var(--primary-blue);
}

.nav-item:hover a {
  color: var(--primary-blue);
}

.burger-btn {
  display: none; 
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* ---- MAIN LAYOUT ---- */
.main-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ---- TABS ---- */
.tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: var(--white);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    transition: 0.2s;
}

.tab-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---- CARDS GENERAL ---- */
.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ---- COURSES GRID ---- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.course-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.course-content {
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.card-header i {
    color: var(--text-muted);
    cursor: pointer;
}

.subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.author {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.stats i {
    margin-right: 4px;
}

.text-warning {
    color: var(--warning);
}

/* ---- JOBS / COMPANIES LIST ---- */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.list-card {
    display: flex;
    justify-content: space-between;
    padding: 24px;
}

.card-left {
    display: flex;
    gap: 16px;
}

.logo-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.black-bg { background-color: #000; }
.green-bg { background-color: #1db954; }
.blue-bg { background-color: #0ea5e9; }

.list-details h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.meta-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0;
}

.meta-info span i { margin-right: 4px; }

.bottom-meta, .description {
    font-size: 13px;
    color: var(--text-muted);
}

.description { margin-top: 4px; }

.card-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.card-right.top-aligned {
    justify-content: flex-start;
}

.card-right i {
    color: var(--text-muted);
    cursor: pointer;
}

/* ---- SEARCH BOX (Content Area) ---- */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    outline: none;
    font-size: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: var(--primary-blue);
    color: white;
    font-size: 1rem;
    transition: background-color 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-btn:hover {
    background-color: var(--primary-blue-hover);
}

/* ---- BUTTONS & BADGES ---- */
.view-all-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

#view-all-btn {
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 6px 16px;
}

.btn-outline:hover{
    background-color: var(--primary-blue);
    color: var(--white);
    transition: all 0.2s ease-in-out;
}

.full-width {
    width: 100%;
    margin-top: 20px;
}

.mt-2 {
    margin-top: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.blue-badge {
    background-color: var(--light-blue-bg);
    color: var(--primary-blue);
}

.outline-badge {
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}

/* ---- FOOTER ---- */
footer {
    text-align: center;
    padding: 60px 20px 40px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.footer-links a:hover{
    color: var(--primary-blue-hover);
    transition: all 0.2s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 18px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* ---- RESPONSIVE ---- */

/* Tablet & Mobile Layout Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    
    .nav-search-box {
        display: none; 
    }

    .burger-btn {
        display: block; 
    }

    .nav-right {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 15px 0;
    }

    .nav-right.active {
        display: flex; 
    }

    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 30px;
        width: 100%;
        font-size: 16px;
        gap: 15px;
    }

    .nav-item i {
        margin-bottom: 0;
        width: 25px;
        text-align: center;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .list-card {
        flex-direction: column;
        gap: 20px;
    }
    
    .card-right {
        align-items: flex-start;
        flex-direction: row-reverse;
        justify-content: flex-end;
        gap: 16px;
    }
}