/* =========================
   Subdomain Header
   ========================= */
.subdomain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

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

.subdomain-logo {
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo-search { color: #1a73e8; }
.logo-inactive { color: #999; }

.section-label {
    background: #1a73e8;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   Login Button Styling
   ========================= */
.sign-in {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.sign-in:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.sign-in-icon {
    font-size: 16px;
}

/* =========================
   Navigation
   ========================= */
.subdomain-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.nav-item {
    padding: 10px 20px;
    text-decoration: none;
    color: #666;
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-item:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

.nav-item.active {
    background: #1a73e8;
    color: white;
}

/* =========================
   Main Content - Full Width
   ========================= */
.subdomain-main {
    width: 100%;
    max-width: 1600px; /* wider content on large screens */
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================
   Search Hero
   ========================= */
.search-hero {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
    border-radius: 10px;
    margin-bottom: 40px;
    max-width: 100%;
}

.search-hero h1 {
    font-size: 42px;
    color: #202124;
    margin-bottom: 30px;
}

.search-box-large {
    display: flex;
    gap: 10px;
    max-width: 1200px; /* keeps inputs readable on wide screens */
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box-large input,
.search-box-large select {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid #dadce0;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.search-box-large input:focus,
.search-box-large select:focus {
    border-color: #1a73e8;
}

.search-btn {
    padding: 15px 40px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #1557b0;
}

/* =========================
   Quick Links
   ========================= */
.quick-links h2 {
    margin-bottom: 20px;
    color: #202124;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.quick-card {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.quick-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #1a73e8;
}

.quick-card h3 {
    color: #1a73e8;
    margin-bottom: 10px;
}

.quick-card p {
    color: #666;
    font-size: 14px;
}

/* =========================
   Featured Jobs
   ========================= */
.featured-jobs h2 {
    margin-bottom: 20px;
    color: #202124;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
}

.job-card {
    background: white;
    border: 1px solid #dadce0;
    border-radius: 10px;
    padding: 25px;
    transition: box-shadow 0.3s;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.job-card h3 {
    color: #202124;
    margin-bottom: 5px;
}

.company {
    color: #1a73e8;
    font-weight: 600;
    margin-bottom: 10px;
}

.location, .salary {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.apply-btn {
    margin-top: 15px;
    padding: 10px 25px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.apply-btn:hover {
    background: #1557b0;
}

/* =========================
   Sticky Footer
   ========================= */
html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.subdomain-main {
    flex: 1; /* allows main content to expand and push footer down */
}

/* Footer styling same as index.html */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    color: #666;
    font-size: 14px;
}
.footer a {
    text-decoration: none;
    color: #666;
    margin-left: 20px;
}
.footer a:hover {
    text-decoration: underline;
}

/* =========================
   Mobile Responsive
   ========================= */
@media (max-width: 768px) {
    .subdomain-header {
        padding: 15px 20px;
    }
    
    .subdomain-logo {
        font-size: 22px;
    }
    
    .subdomain-nav {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .nav-item {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .search-box-large {
        flex-direction: column;
    }
    
    .search-box-large input,
    .search-box-large select,
    .search-btn {
        width: 100%;
    }
    
    .filters-bar {
        flex-direction: column;
    }
    
    .filter-input,
    .filter-select,
    .filter-btn {
        width: 100%;
    }
    
    .sign-in {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
}

/* ================= Header Login Button ================= */
.header-right a.sign-in {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: #1a73e8;
    color: white;
    transition: background 0.3s;
}

.header-right a.sign-in:hover {
    background: #1557b0;
}

/* =========================
   Pagination
   ========================= */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.page-btn:hover {
    background: #1557b0;
}

.page-number {
    padding: 8px 14px;
    border-radius: 20px;
    background: #e8f0fe;
    color: #1a73e8;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.page-number.active {
    background: #1a73e8;
    color: white;
}

.page-number:hover:not(.active) {
    background: #cce0ff;
}