
/* =====================================
   CAREERBRIDGE PAKISTAN
   PROFESSIONAL BROWN & CREAM THEME
===================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #faf7f2;
    color: #4b382b;
    line-height: 1.7;
}

a {
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1180px;
    margin: auto;
}

/* NAVIGATION */
.navbar {
    background: #fffdf9;
    padding: 16px 0;
    box-shadow: 0 3px 18px rgba(75, 56, 43, 0.09);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    color: #563b2b;
    font-size: 25px;
    font-weight: 800;
    white-space: nowrap;
}

.logo span {
    color: #b77945;
}

.navbar nav {
    margin-left: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 18px;
}

.nav-links a {
    color: #594535;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #b77945;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    border: none;
    background: #efe3d5;
    color: #563b2b;
    padding: 9px 13px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 11px 21px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.25s;
}

.btn-primary {
    background: #805333;
    color: white;
}

.btn-primary:hover {
    background: #654027;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #805333;
    border-color: #c9a98c;
}

.btn-outline:hover {
    background: #f4e9dd;
}

/* HERO */
.hero {
    padding: 105px 0;
    background:
        linear-gradient(
            90deg,
            rgba(55, 37, 26, 0.92),
            rgba(92, 61, 39, 0.78),
            rgba(120, 83, 54, 0.35)
        ),
        url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1800&q=85");
    background-size: cover;
    background-position: center;
    color: white;
}

.hero .container {
    text-align: left;
}

.hero h1 {
    max-width: 720px;
    color: white;
    font-size: clamp(34px, 5vw, 55px);
    line-height: 1.2;
    margin-bottom: 22px;
}

.hero h1 span {
    color: #e9c9a9;
}

.hero p {
    max-width: 650px;
    color: #f7eee6;
    font-size: 17px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-buttons .btn-outline {
    background: rgba(255,255,255,0.95);
}

/* SEARCH BAR */
.search-section {
    position: relative;
    z-index: 2;
    margin-top: -38px;
}

.search-box {
    background: white;
    padding: 23px;
    border-radius: 15px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr auto;
    gap: 13px;
    box-shadow: 0 10px 35px rgba(75, 56, 43, 0.12);
}

.search-box input,
.search-box select {
    min-width: 0;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #e5d9cd;
    border-radius: 8px;
    background: #fffdf9;
    color: #4b382b;
    font-size: 14px;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #a87952;
    box-shadow: 0 0 0 3px #f1e5d9;
}

/* GENERAL SECTIONS */
.section {
    padding: 65px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 36px;
}

.section-title h2 {
    color: #563b2b;
    font-size: 32px;
    margin-bottom: 9px;
}

.section-title p {
    color: #887665;
}

/* CATEGORIES */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card {
    background: white;
    border: 1px solid #eee4da;
    border-radius: 15px;
    padding: 27px;
    box-shadow: 0 5px 18px rgba(75,56,43,0.05);
    transition: 0.25s;
}

.category-card:hover,
.job-card:hover,
.internship-card:hover,
.scholarship-card:hover,
.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(75,56,43,0.12);
}

.card-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1e5d9;
    border-radius: 13px;
    font-size: 27px;
    margin-bottom: 17px;
}

.category-card:nth-child(2) .card-icon {
    background: #eee5dc;
}

.category-card:nth-child(3) .card-icon {
    background: #f6e8dc;
}

.category-card:nth-child(4) .card-icon {
    background: #f3e7d4;
}

.category-card:nth-child(5) .card-icon {
    background: #e9e5d9;
}

.category-card:nth-child(6) .card-icon {
    background: #f5eadc;
}

.category-card h3,
.job-card h3,
.internship-card h3,
.scholarship-card h3,
.resource-card h3 {
    color: #563b2b;
    font-size: 19px;
    margin-bottom: 9px;
}

.category-card p,
.job-card p,
.internship-card p,
.scholarship-card p,
.resource-card p {
    color: #887665;
    font-size: 14px;
}

/* JOB CARDS */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.job-card,
.internship-card,
.scholarship-card,
.resource-card {
    background: white;
    border: 1px solid #eee4da;
    border-radius: 15px;
    padding: 27px;
    box-shadow: 0 5px 18px rgba(75,56,43,0.05);
    transition: 0.25s;
}

.job-card h3 {
    margin-top: 15px;
}

.job-company {
    font-weight: bold;
    color: #9b704c !important;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 17px 0;
    color: #887665;
    font-size: 13px;
}

.job-card .btn {
    margin-top: 18px;
}

.job-tag {
    display: inline-block;
    background: #f1e5d9;
    color: #805333;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

/* INTERNSHIPS AND SCHOLARSHIPS */
.internship-grid,
.scholarship-grid,
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.internship-card .job-tag {
    margin-top: 17px;
}

.internship-card h3,
.scholarship-card h3 {
    margin-bottom: 12px;
}

.scholarship-card .btn {
    margin-top: 18px;
}

/* CV BUILDER */
.cv-builder {
    max-width: 950px;
    margin: auto;
    padding: 30px;
    background: #f5eee6;
    border: 1px solid #e8d8c8;
    border-radius: 17px;
}

.cv-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 19px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    color: #594535;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 7px;
}

.full-width {
    grid-column: 1 / -1;
}

.cv-form textarea {
    min-height: 100px;
    resize: vertical;
}

.cv-preview {
    background: white;
    border: 1px solid #e5d9cd;
    padding: 30px;
    margin: 25px 0;
    border-radius: 12px;
    text-align: left;
    min-height: 120px;
}

.cv-preview h2 {
    color: #563b2b;
}

#printCV {
    margin-top: 8px;
}

/* OFFICIAL RESOURCES */
.official-resources {
    background: #f0e6dc;
    padding: 70px 20px;
    margin-top: 40px;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    color: #563b2b;
    font-size: 32px;
}

.section-heading p {
    color: #887665;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1150px;
    margin: auto;
}

.resource-card {
    text-align: left;
    background: white;
}

.resource-card:nth-child(even) {
    background: #fffaf5;
}

.resource-card a {
    display: inline-block;
    margin-top: 15px;
    color: #9b6338;
    font-weight: bold;
    font-size: 13px;
}

/* ABOUT */
.about-section {
    background: #efe5da;
    border-radius: 18px;
    margin-bottom: 60px;
}

.about-content {
    max-width: 750px;
    margin: auto;
    text-align: center;
}

.about-content h2 {
    color: #563b2b;
    margin-bottom: 18px;
    font-size: 30px;
}

.about-content p {
    color: #776451;
    margin-bottom: 12px;
}

/* APPLICATION MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(55, 37, 26, 0.7);
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: white;
    padding: 35px;
    border-radius: 16px;
    text-align: left;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.modal-content h2 {
    color: #563b2b;
    margin-bottom: 10px;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: #f1e5d9;
    color: #563b2b;
    border: none;
    border-radius: 7px;
    padding: 4px 11px;
    font-size: 25px;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background: #493326;
    color: white;
    padding: 55px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px;
    text-align: left;
}

.footer h3,
.footer h4 {
    color: white;
    margin-bottom: 13px;
}

.footer p {
    color: #e5d7ca;
    font-size: 14px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #e5d7ca;
    font-size: 14px;
}

.footer-links a:hover {
    color: #e8bd95;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.16);
    margin-top: 35px;
    padding-top: 18px;
    text-align: center;
}

/* CAREER GUIDES */
.career-guides {
    max-width: 1100px;
    margin: 60px auto;
    padding: 30px 20px;
}

.career-guides .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.guide-card {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-left: 4px solid #a8754c;
}

.guide-card h3 {
    color: #563b2b;
    margin-bottom: 10px;
}

.guide-card a {
    display: inline-block;
    color: #9b6338;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
    .navbar .container {
        gap: 12px;
    }

    .nav-links {
        gap: 11px;
    }

    .nav-links a {
        font-size: 13px;
    }
}

@media (max-width: 950px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar nav {
        margin-left: 0;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid,
    .jobs-grid,
    .internship-grid,
    .scholarship-grid,
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .navbar .container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .navbar nav {
        display: none;
        width: 100%;
    }

    .navbar nav.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 0;
        gap: 12px;
    }

    .nav-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding: 70px 0;
        background-position: center;
    }

    .hero .container {
        text-align: center;
    }

    .hero h1 {
        font-size: 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .search-section {
        margin-top: 20px;
    }

    .search-box {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .jobs-grid,
    .internship-grid,
    .scholarship-grid,
    .resource-grid,
    .resources-grid,
    .cv-form,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cv-builder {
        padding: 18px;
    }

    .full-width {
        grid-column: auto;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2,
    .section-heading h2 {
        font-size: 26px;
    }

    .footer-grid {
        text-align: center;
    }
}

/* PRINT CV */
@media print {
    body * {
        visibility: hidden;
    }

    #cvPreview,
    #cvPreview * {
        visibility: visible;
    }

    #cvPreview {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
    }
}
