/* ==========================================================================
   JobLinkBD — Shared Site Theme
   Palette matched to index.php / site-header.php / site-footer.php / blog.php
   cyan #33B6CB · deep #16788B · ink #0E2A33 · jade #2A9D8F
   paper #F6F8F9 · rule #DCE5E8 · tint #E7F4F7 · muted #5B7480
   success #1F7A4D · danger #B4442E
   Include on every page with: <link rel="stylesheet" href="/assets/css/site-theme.css">
   ========================================================================== */

:root {
    --cyan: #33B6CB;
    --deep: #16788B;
    --ink: #0E2A33;
    --jade: #2A9D8F;
    --paper: #F6F8F9;
    --rule: #DCE5E8;
    --tint: #E7F4F7;
    --muted: #5B7480;
    --success: #1F7A4D;
    --danger: #B4442E;

    /* kept for backwards compatibility with older markup */
    --primary-color: var(--deep);
    --primary-dark: var(--ink);
    --secondary-color: var(--cyan);
    --text-color: var(--ink);
    --light-text: var(--muted);
    --border-color: var(--rule);
    --bg-light: var(--paper);
    --footer-text: var(--muted);
}

body {
    font-family: "Hind Siliguri", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: "Plus Jakarta Sans", "Hind Siliguri", system-ui, sans-serif;
    letter-spacing: -.015em;
}

/* ---------- Page header banner (used on job / listing detail pages) ---------- */
.job-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, var(--ink), var(--deep));
    color: #fff;
    padding: 3rem 0;
}

.sliding-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.sliding-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.05) 100%);
    animation: slide 12s linear infinite;
}

@keyframes slide {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.job-header .container { position: relative; z-index: 2; }

.slide-in-left  { animation: slideInLeft 0.8s ease-out forwards; opacity: 0; }
.slide-in-right { animation: slideInRight 0.8s ease-out forwards; opacity: 0; }

@keyframes slideInLeft  { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(50px);  opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.company-logo {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(14, 42, 51, 0.15);
    transition: transform 0.3s ease;
}
.company-logo:hover { transform: scale(1.05) rotate(-2deg); }

.job-title-heading {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
    margin-bottom: 10px;
}

.col-md-2, .col-md-10 { padding-right: 0; padding-left: 0; }

/* ---------- Job type badges ---------- */
.job-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.job-badge.freelance  { background-color: var(--jade); color: #fff; }
.job-badge.part-time  { background-color: var(--danger); color: #fff; }
.job-badge.full-time  { background-color: var(--cyan); color: #fff; }
.job-badge.other      { background-color: var(--muted); color: #fff; }

.job-type-label { font-size: 12px; padding: 3px 8px; border-radius: 6px; font-weight: 500; color: #fff; }
.label-success { background-color: var(--jade); }
.label-danger  { background-color: var(--danger); }
.label-warning { background-color: var(--cyan); color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background-color: #EDF3F5 !important;
    padding: 1rem 0 !important;
    border-bottom: 1px solid var(--rule) !important;
}
.breadcrumb-list { display: flex !important; flex-wrap: wrap !important; list-style: none !important; padding: 0 !important; margin: 0 !important; font-size: 0.9rem !important; font-weight: 500; }
.breadcrumb-item { display: flex !important; align-items: center !important; margin-right: 0 !important; }
.breadcrumb-link { color: var(--deep) !important; text-decoration: none !important; transition: all 0.3s ease !important; }
.breadcrumb-link:hover { color: var(--ink) !important; }
.breadcrumb-current { color: var(--muted) !important; }

/* ---------- Job summary card ---------- */
.job-summary-card { border-radius: 8px; box-shadow: 0 4px 6px rgba(14, 42, 51, 0.08); border: 1px solid var(--rule); margin-bottom: 2rem; }
.job-summary-header { background-color: var(--deep); color: #fff; padding: 1rem; border-radius: 8px 8px 0 0; }
.job-detail-item { padding: 1rem; border-bottom: 1px solid var(--rule); }
.job-detail-item:last-child { border-bottom: none; }
.job-detail-label { font-weight: 600; color: var(--deep); }

.btn-apply, .apply-btn {
    background: linear-gradient(135deg, var(--cyan), var(--deep));
    color: #fff;
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn-apply:hover, .apply-btn:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.job-section { background: #fff; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: 0 1px 2px rgba(14, 42, 51, 0.05); border: 1px solid var(--rule); }
.job-section-title { color: var(--deep); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--rule); font-size: 20px; font-weight: 600; }

.job-content { font-family: "Hind Siliguri", "Plus Jakarta Sans", sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); }
.job-content p { margin-bottom: 1rem; }
.job-content h1, .job-content h2, .job-content h3, .job-content h4, .job-content h5, .job-content h6 { margin-top: 1.5rem; margin-bottom: 1rem; font-weight: 600; color: var(--ink); }
.job-content ul, .job-content ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.job-content li { margin-bottom: 0.5rem; }
.job-content a { color: var(--deep); text-decoration: underline; }
.job-content a:hover { color: var(--ink); text-decoration: none; }
.job-content img { max-width: 100%; height: auto; display: block; margin: 1rem auto; border-radius: 6px; }

/* ---------- Company info / sidebar card ---------- */
.company-info-card { background: linear-gradient(135deg, var(--deep), var(--cyan)); padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(14, 42, 51, 0.14); margin-bottom: 30px; border: none; }

.recent-job-card { border: none; transition: all 0.3s ease-in-out; }
.recent-job-card:hover { box-shadow: 0 18px 34px -22px rgba(14, 42, 51, 0.45); transform: translateY(-2px); }
.recent-job-card img { object-fit: cover; }

/* ---------- Documents / images ---------- */
.job-section1 { display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; }
.pdf-container { position: relative; width: 100%; padding-bottom: 141.42%; height: 0; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--rule); border-radius: 4px; }
.pdf-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.job-image { max-width: 100%; height: auto; max-height: 1500px; border-radius: 6px; border: 1px solid var(--rule); object-fit: contain; display: block; }

/* ---------- Tag cloud ---------- */
.tagcloud a {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--deep);
    background-color: var(--tint);
    padding: 4px 12px;
    margin: 0 5px 5px 0;
    border-radius: 15px;
    text-decoration: none;
    border: 1px solid var(--rule);
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 1.4;
}
.tagcloud a:hover { color: #fff; background-color: var(--deep); border-color: var(--deep); text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(14, 42, 51, 0.15); }
.tagcloud i.fa-folder-open { color: var(--muted); margin-right: 8px; font-size: 0.9rem; vertical-align: middle; }

/* ---------- Tags + Social share combined bar ---------- */
.tags-and-social-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 3rem 0; margin-top: 0; padding: 2rem; background-color: var(--paper); border-radius: 8px; border: 1px solid var(--rule); }
.tags-section { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.tags-label { font-weight: 600; color: var(--ink); margin-right: 0.5rem; }
.tag-link { display: inline-block; padding: 0.35rem 0.8rem; background-color: var(--tint); color: var(--deep); border-radius: 50px; font-size: 0.85rem; text-decoration: none; border: 1px solid var(--rule); transition: all 0.3s ease; }
.tag-link:hover { background-color: var(--deep); color: #fff; border-color: var(--deep); }

.social-sharing-section { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.share-label { font-weight: 600; color: var(--ink); }
.social-buttons { display: flex; gap: 0.5rem; }
.social-button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; color: #fff;
    text-decoration: none; transition: all 0.3s ease;
}
.social-button:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(14, 42, 51, 0.2); }
.social-button.facebook { background-color: #3b5998; }
.social-button.twitter  { background-color: #1da1f2; }
.social-button.whatsapp { background-color: #25d366; }
.social-button.linkedin { background-color: #0077b5; }

/* ---------- Typography ---------- */
p { font-size: 14px; line-height: 1.6; }
.blog-info-link, .blog-info-link a, .blog-info-link i { font-size: 13px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
.post_item h3 { font-size: 0.9rem; margin-bottom: 5px; }

/* ---------- Footer ---------- */
.footer-area.footer-bg {
    background: linear-gradient(180deg, var(--tint) 0%, #BFE0E7 100%) !important;
    color: var(--ink) !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    border-top: 3px solid rgba(22,120,139,0.15) !important;
    font-family: "Inter", "Hind Siliguri", "Helvetica Neue", Arial, sans-serif !important;
}
.footer-tittle h4 { color: var(--deep) !important; font-weight: 700 !important; margin-bottom: 12px !important; font-size: 18px !important; }
.footer-pera p { color: var(--muted) !important; font-size: 14px !important; line-height: 1.6 !important; }
.footer-tittle ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-tittle ul li { margin-bottom: 8px !important; }
.footer-tittle ul li a { color: var(--ink) !important; text-decoration: none !important; transition: color .18s ease !important; }
.footer-tittle ul li a:hover { color: var(--deep) !important; text-decoration: underline !important; }

.footer-form .subscribe_form { display: flex !important; align-items: center !important; max-width: 340px !important; margin: 0 auto !important; border-radius: 50px !important; overflow: hidden !important; box-shadow: 0 4px 12px rgba(22,120,139,0.2) !important; background: #fff !important; }
#newsletter-form-email { flex: 1 !important; padding: 12px 16px !important; border: none !important; font-size: 14px !important; background: transparent !important; outline: none !important; color: var(--ink) !important; }
#newsletter-form-email::placeholder { color: var(--muted) !important; font-size: 13px !important; }
#newsletter-form-email:focus { background: var(--tint) !important; }
.email_icon { display: inline-flex !important; align-items: center !important; justify-content: center !important; min-width: 90px !important; height: 50px !important; border: none !important; border-radius: 0 50px 50px 0 !important; background: linear-gradient(135deg, var(--cyan), var(--deep)) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important; }
.email_icon:hover { transform: translateY(-3px) !important; box-shadow: 0 6px 16px rgba(22,120,139,0.35) !important; }

.footer-bottom { background: linear-gradient(90deg, var(--deep), var(--ink)) !important; padding: 16px 0 !important; }
.footer-copy-right p { margin: 0 !important; color: #fff !important; font-size: 14px !important; }
.footer-copy-right a { color: #fff !important; font-weight: 600 !important; text-decoration: none !important; }
.footer-copy-right a:hover { text-decoration: underline !important; }

.footer-social a { display: inline-flex !important; align-items: center !important; justify-content: center !important; width: 36px !important; height: 36px !important; margin-left: 8px !important; border-radius: 50% !important; background: rgba(255,255,255,0.2) !important; color: #fff !important; transition: all 0.2s ease-in-out !important; font-size: 14px !important; }
.footer-social a:hover { background: #fff !important; color: var(--deep) !important; transform: translateY(-3px) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .job-header { padding: 2rem 0; }
    .company-logo { width: 60px; height: 60px; margin-bottom: 1rem; }
    .job-title-heading { font-size: 1.3rem; }
    .job-detail-item { padding: 10px; }
    .footer-area.footer-bg { padding-top: 28px !important; padding-bottom: 28px !important; }
    .footer-tittle h4 { font-size: 16px !important; }
    .tags-and-social-container { flex-direction: column; align-items: flex-start; }
    .social-sharing-section { width: 100%; justify-content: space-between; }
}

@media (max-width: 576px) {
    .company-info-card { padding: 15px; }
    .recent-job-card { margin-bottom: 20px; }
    .job-section-title { font-size: 18px; }
}

@media (max-width: 480px) {
    .tag-link { padding: 0.25rem 0.6rem; font-size: 0.8rem; }
    .social-button { width: 32px; height: 32px; font-size: 0.9rem; }
}
