/*
Theme Name: AcademiaJobs
Theme URI: http://example.com/academiajobs
Author: AI
Author URI: http://example.com
Description: A modern job portal theme for academic and research positions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academiajobs
Tags: job-board, two-columns, modern
*/

/* Reset and Basic Setup */
:root {
    --primary-color: #007bff;
    /* Adjust based on exact brand */
    --primary-dark: #192862;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --accent-color: #00bfa5;
    --dark-blue: #1c2841;
    /* Footer and header dark tones */
    --hero-bg: #1c2841;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-blue);
    margin-bottom: 0.5em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 85% !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--white);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    z-index: 9;
}

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

.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--dark-blue);
}

.site-logo span {
    background: var(--accent-color);
    color: var(--white);
    width: 30px;
    height: 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    margin-right: 10px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-blue);
    cursor: pointer;
}

.main-navigation menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-signin {
    background: transparent;
    color: var(--text-color);
}

.btn-register {
    background: var(--accent-color);
    color: var(--white);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #101c3d, #1a3375);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
}

.hero-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 30px;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
}

.search-form input,
.search-form select {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-grow: 1;
    font-size: 1rem;
}

.search-form input:focus,
.search-form select:focus,
.search-form input:focus-visible,
.search-form select:focus-visible {
    border: 1px solid var(--border-color);
    outline: none;
}


select[name="branch_search"] {
    max-width: 200px !important;
}

.search-form .btn-search {
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 30px;
}

.popular-searches {
    font-size: 0.85rem;
    opacity: 0.8;
}

.popular-searches a {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin: 0 5px;
}

/* Sections */
.section {
    padding: 80px 0;
    background: var(--white);
}

.section-alt {
    background: var(--bg-light);
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 2rem;
    margin: 0 0 10px;
    width: fit-content;
    border-bottom: 4px solid var(--dark-blue);
}

.about-section h2.section-title {
    margin: auto;
    border: 0;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s;
}

.category-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 191, 165, 0.1);
    color: var(--accent-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-right: 20px;
}

.departments .category-info {
    width: calc(100% - 70px);
}

.category-info h3 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.category-info span {
    color: #666;
    font-size: 0.85rem;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.location-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.location-region {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--dark-blue);
}

.location-icon {
    color: var(--accent-color);
    margin-right: 10px;
}

.state-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.state-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #555;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.job-count {
    color: #aaa;
}

/* Two Column Layout */
.job-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 300px;
}

main#primary .single-job {
    padding: 50px 0;
}


.home .category-section a {
    color: var(--accent-color);
    font-weight: 500;
}


.single-job main#primary {
    background: #fff;
}

/* Job Cards */
.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.job-details {
    flex: 1;
}

.job-type {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 191, 165, 0.1);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 10px;
}

.job-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}

.job-maintitle {
    margin: 10px 0;
    font-size: 1.3rem;
}

.job-maintitle a {
    color: var(--dark-blue);
}

.job-info-row {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 15px;
}

.job-desc {
    font-size: 0.9rem;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 120px;
}

span.salary {
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 200px;
    overflow: hidden;
}

.btn-apply {
    background: var(--accent-color);
    color: var(--white);
    text-align: center;
}

.btn-apply:hover {
    background: var(--primary-dark);
    color: var(--white);
}


.btn-save {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    text-align: center;
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
}

.inst-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inst-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.inst-logo {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    color: var(--dark-blue);
}

.inst-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.inst-jobs {
    font-size: 0.8rem;
    color: #888;
}

.alert-widget {
    background: var(--dark-blue);
    color: var(--white);
    border: none;
}

.alert-widget .widget-title {
    color: var(--white);
}

.alert-widget p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.alert-widget input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.alert-widget button {
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
}

.page-template-all-jobs-template .job-layout {
    margin: 50px 0;
}

button#load-more-jobs {
    background: var(--dark-blue);
    color: var(--white);
}

.page-template-template-contact main {
	background: #fff;
}

.page-template-template-contact main .social-icons {
    justify-content: center;
    margin-top: 15px;
}

.page-template-template-contact main .social-icons a {
	background: var(--accent-color)
}

.page-template-template-contact main .social-icons .fab {
	color: #fff;
}

/* Footer */
.site-footer {
    background: #101c3d;
    color: #fff;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
    color: var(--white);
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo span {
    background: var(--accent-color);
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 0.8rem;
}

.footer-desc {
    opacity: 0.7;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.job-overview-list {
    padding-inline-start: 0;
    list-style-type: none;
}

.post-25 .overview-label {
    font-size: 15px;
    font-weight: 600;
}

.post-25 .overview-value {
    font-size: 15px;
}

.footer-widget-title {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .job-layout {
        flex-direction: column-reverse;
        gap: 0;
        margin-top: 0;
    }

    .sidebar {
        width: 100%;
        margin-top: 30px;
    }

    .home .sidebar {
        margin-top: 0;
    }

    .footer-widgets {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        width: 100%;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: var(--bg-light);
        margin-top: 15px;
        border-radius: 8px;
        padding: 10px 0;
    }

    .main-navigation menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        padding: 10px 0;
    }

    .main-navigation menu li:last-child {
        border-bottom: none;
    }

    .section {
        padding: 50px 0;
    }

    .container {
        max-width: 90%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form {
        background: transparent;
    }

    .search-form input,
    .search-form select {
        background: transparent;
        border: 1px solid #213f8c;
    }

    ::placeholder {
        color: #fff;
    }

    .search-form select,
    .search-form input {
        color: #fff;
        background: #162a5e;
    }

    .popular-searches a {
        display: inline-block;
        margin-bottom: 5px;
    }

    select[name="branch_search"] {
        max-width: 100% !important;
    }


    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }

    .job-card {
        flex-direction: column;
        gap: 15px;
    }

    .job-actions {
        flex-direction: row;
        width: 100%;
    }

    .job-actions .btn {
        flex: 1;
    }

    .job-dates {
        flex-direction: column;
    }
    
    .contact-card {
        padding: 30px 20px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .category-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }

    .state-list {
        grid-template-columns: 1fr;
    }

    .job-info-row {
        flex-direction: column;
        gap: 5px;
    }
}