@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif !important;
}
:root {
    --primary-red: #d32f2f;
    --primary-red-hover: #b71c1c;
    --primary-red-light: #ffebee;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --navbar-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

button, input, select, textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SECTION PADDING */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--off-white);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-red-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* HEADER & NAVBAR */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 38px;
    height: 38px;
}
.logo img {
  width: 190px !important;
  max-width: 190px !important;
  height: auto !important;
  max-height: 85px !important;
  object-fit: contain !important;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-red);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text span {
    font-size: 11px;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: #444;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--dark-text);
    transition: var(--transition-normal);
}

/* HIRING BANNER */




/* HERO SECTION */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(200, 16, 46, 0.4) 100%), url('images/98.png') no-repeat center center/cover;
    padding: 160px 0 180px;
    color: var(--white);
    text-align: left;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* STATS STRIP */
.stats-strip-container {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-strip {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 30px;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--light-gray);
    padding: 0 10px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: var(--primary-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
}

.stat-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.stat-details h3 {
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 800;
}

.stat-details p {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

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

/* SERVICE CARDS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 35px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red-light);
}

.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50px;
    background-color: var(--primary-red-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    margin-bottom: 20px;
    transition: var(--transition-normal);
}

.service-card:hover .service-card-icon {
    background-color: var(--primary-red);
    color: var(--white);
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.service-card p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-card .read-more {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-card .read-more:hover {
    gap: 8px;
}

.view-all-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* PROJECTS GRID & CARDS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.project-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 19px;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.project-details-list {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-details-list li {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.project-details-list li svg {
    width: 16px;
    height: 16px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.project-details-list strong {
    color: var(--dark-text);
    font-weight: 600;
}

.project-details-link {
    font-size: 14px;
    color: var(--primary-red);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--light-gray);
    padding-top: 15px;
}

.project-details-link:hover {
    gap: 10px;
}

/* FILTER TABS */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--light-text);
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-tab:hover {
    background-color: var(--light-gray);
    color: var(--dark-text);
}

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

/* TRUSTED PARTNERS */
.partners-section {
    padding: 60px 0;
    border-top: 1px solid var(--light-gray);
    background-color: var(--white);
}
.partners-logos {
    display: flex;              /* flex container enable karo */
    flex-direction: row;        /* horizontal layout ke liye */
    justify-content: space-between; /* logos ke beech horizontal spacing */
    align-items: center;        /* vertically center align kare */
    flex-wrap: nowrap;          /* ek line me sab logos rahe */
    gap: 40px;                  /* logos ke beech ka gap */
    padding-top: 20px;
    padding-bottom: 20px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;               /* original color dikhe */
    opacity: 1;
    margin: 0 10px;             /* logos ke sides me spacing */
    width: 60px;
    height: auto;
}

.partner-logo svg, 
.partner-logo img {
    width: 60px;
    height: auto;
}

.partner-logo.zte {
    font-size: 32px;
    font-weight: 800;
    color: #0050b3;
    font-family: sans-serif;
    letter-spacing: -1px;
}

.partner-logo.zong {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    color: #e02020;
    font-weight: 700;
    line-height: 1;
}

.partner-logo.telenor {
    font-size: 24px;
    font-weight: 700;
    color: #00a0e9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.partner-logo.jazz {
    font-size: 28px;
    font-weight: 900;
    color: #ffcc00;
    font-style: italic;
    background-color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    text-shadow: 2px 2px #d32f2f;
}

.partner-logo.mobiserve {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
}

/* CERTIFICATIONS BAR */
.certifications-bar {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 24px 0;
    font-size: 12px;
    font-weight: 600;
}

.certifications-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-item svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.cert-text {
    line-height: 1.3;
}

.cert-text span {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

/* FOOTER */
.footer {
    background-color: #111111;
    color: #cccccc;
    padding: 70px 0 30px;
    font-size: 14px;
}

.footer h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-red);
}

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

.footer-col-about .logo {
    margin-bottom: 20px;
}

.footer-col-about p {
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: #222222;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    transition: var(--transition-normal);
}

.social-link:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbbbbb;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 4px;
}

.footer-contact-info li {
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.footer-contact-info svg {
    width: 18px;
    height: 18px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-cert-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.footer-badge {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

.footer-badge svg {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
    margin-bottom: 6px;
}

.footer-badge p {
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}

.footer-badge span {
    font-size: 9px;
    color: #888888;
    display: block;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--primary-red);
}

/* PAGE HERO BANNERS (Red) */
.page-hero {
    background: linear-gradient(rgba(200, 16, 46, 0.95), rgba(150, 8, 30, 0.95)), url('https://images.unsplash.com/photo-1573164713714-d95e436ab8d6?auto=format&fit=crop&w=1920&q=80') center center/cover;
    padding: 80px 0 90px;
    color: var(--white);
    text-align: center;
}

.page-hero h1 {
    font-size: 44px;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ABOUT PAGE SPECIFICS */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-red);
    border-radius: 8px;
    z-index: -1;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.about-content p {
    color: var(--light-text);
    margin-bottom: 16px;
}

.about-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.about-detail-item {
    background-color: var(--off-white);
    border-left: 3px solid var(--primary-red);
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
}

.about-detail-item h4 {
    font-size: 14px;
    color: var(--light-text);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.about-detail-item p {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0;
}

/* MISSION & VISION */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.mv-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.mv-card-icon svg {
    width: 28px;
    height: 28px;
}

.mv-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.mv-card p {
    color: var(--light-text);
    font-size: 15px;
    margin-bottom: 0;
}

/* ORG CHART */
.org-chart-wrapper {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.org-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    position: relative;
}

.org-node {
    background-color: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    padding: 12px 24px;
    box-shadow: var(--shadow-sm);
    min-width: 220px;
    z-index: 2;
}

.org-node.ceo {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
}

.org-node.ceo h4 {
    color: var(--primary-red);
}

.org-node h4 {
    font-size: 15px;
    margin-bottom: 2px;
}

.org-node p {
    font-size: 12px;
    color: var(--light-text);
}

.org-branches {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 100%;
    flex-wrap: wrap;
    position: relative;
}

/* PRESENCE PAGE SPECIFICS */
.presence-grid {
    display: grid;
    grid-template-columns: 5fr 4fr;
    gap: 40px;
}

.presence-map-wrapper {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.pakistan-map-svg {
    width: 100%;
    height: auto;
    max-height: 550px;
}

.map-marker {
    cursor: pointer;
    transition: var(--transition-fast);
}

.map-marker circle {
    fill: var(--primary-red);
    stroke: var(--white);
    stroke-width: 2;
    transition: var(--transition-fast);
}

.map-marker circle.pulse {
    fill: var(--primary-red);
    opacity: 0.4;
    animation: markerPulse 2s infinite ease-out;
}

.map-marker:hover circle {
    fill: var(--dark-text);
    r: 8px;
}

@keyframes markerPulse {
    0% { r: 5px; opacity: 0.8; }
    100% { r: 16px; opacity: 0; }
}

.map-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-md);
}

.office-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.office-item {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.office-item:hover {
    border-color: var(--primary-red);
    transform: translateX(5px);
}

.office-num {
    width: 32px;
    height: 32px;
    border-radius: 50px;
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--light-text);
    transition: var(--transition-fast);
}

.office-item:hover .office-num {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.office-info h4 {
    font-size: 15px;
    color: var(--dark-text);
}

.office-info p {
    font-size: 12px;
    color: var(--light-text);
}

/* EMPLOYEE HR PORTAL LOGIN SECTION (on presence page bottom) */
.employee-portal-section {
    border-top: 1px solid var(--light-gray);
    padding: 80px 0;
    background-color: var(--off-white);
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.portal-login-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.portal-login-card h3 {
    font-size: 22px;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.portal-login-card p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 24px;
}

.portal-dashboard-mockup {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-dashboard-mockup h3 {
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.portal-system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.portal-system-card {
    background-color: var(--off-white);
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
}

.portal-system-card:hover {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
    transform: translateY(-2px);
}

.portal-system-card svg {
    width: 28px;
    height: 28px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.portal-system-card p {
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-text);
}

/* CONTACT PAGE SPECIFICS */
.contact-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 40px;
}

.contact-form-wrapper {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-form-wrapper p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-group label span {
    color: var(--primary-red);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--white);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-feedback {
    font-size: 12px;
    color: var(--primary-red);
    margin-top: 4px;
    display: none;
}

.captcha-mock {
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.captcha-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.captcha-checkbox input {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.captcha-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 9px;
    color: var(--light-text);
}

.captcha-logo svg {
    width: 28px;
    height: 28px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.office-info-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.office-info-card h4 {
    font-size: 18px;
    color: var(--primary-red);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-info-card h4 svg {
    width: 20px;
    height: 20px;
}

.office-details-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.office-card-details li {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 12px;
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.office-card-details svg {
    width: 16px;
    height: 16px;
    color: var(--primary-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.office-map-placeholder {
    width: 100%;
    height: 120px;
    background-color: #e5e5e5;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.office-map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.map-pin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-red);
}

.map-pin-overlay svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.routing-inquiry-box {
    background-color: var(--primary-red-light);
    border-radius: 8px;
    padding: 24px;
    border-left: 4px solid var(--primary-red);
}

.routing-inquiry-box h5 {
    font-size: 15px;
    color: var(--primary-red-hover);
    margin-bottom: 8px;
}

.routing-inquiry-box p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 0;
}

/* CAREERS PAGE SPECIFICS */
.careers-banner-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 30px 40px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    gap: 20px;
}

.careers-banner-card h3 {
    font-size: 24px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

.careers-banner-card p {
    color: var(--light-text);
    margin-bottom: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.benefit-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
}

.benefit-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 0;
}

.jobs-list-wrapper {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.job-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1fr;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition-fast);
}

.job-row:last-child {
    border-bottom: none;
}

.job-row:hover {
    background-color: var(--off-white);
}

.job-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.job-title svg {
    width: 18px;
    height: 18px;
    color: var(--primary-red);
}

.job-meta-item {
    font-size: 14px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.job-meta-item svg {
    width: 16px;
    height: 16px;
    color: var(--light-text);
}

.job-row .btn {
    justify-self: end;
}

.resume-cta-card {
    background-color: var(--off-white);
    border: 1px dashed var(--primary-red);
    border-radius: 8px;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.resume-cta-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resume-cta-icon svg {
    width: 26px;
    height: 26px;
}

.resume-cta-left h4 {
    font-size: 17px;
    margin-bottom: 4px;
}

.resume-cta-left p {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 0;
}

/* SUBMIT CV / ASK PORTAL SECTION */
.careers-forms-section {
    padding: 80px 0;
    border-top: 1px solid var(--light-gray);
    background-color: var(--white);
}

.careers-forms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.careers-form-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.careers-form-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.careers-form-card p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 24px;
}

.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-upload-wrapper:hover {
    border-color: var(--primary-red);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content svg {
    width: 32px;
    height: 32px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.file-upload-text {
    font-size: 13px;
    color: var(--light-text);
}

.file-upload-text strong {
    color: var(--primary-red);
}

.file-name-display {
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary-red-hover);
    font-weight: 600;
}

/* RECRUITMENT CONTACT BAR */
.recruitment-contact-bar {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 30px 0;
    margin-top: 60px;
    border-radius: 8px;
}

.recruitment-contact-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.recruitment-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recruitment-contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-red);
}

.recruitment-contact-text h5 {
    font-size: 13px;
    color: #888888;
    text-transform: uppercase;
}

.recruitment-contact-text p {
    font-size: 15px;
    font-weight: 600;
}

/* SUCCESS TOASTS & MODALS */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #2e7d32;
    color: var(--white);
    padding: 16px 24px;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-normal);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    padding: 35px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition-normal);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text);
}

.modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.modal-content p {
    color: var(--light-text);
    font-size: 15px;
    margin-bottom: 20px;
}

.modal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.modal-content li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark-text);
}

/* =========================================================================
   AUTHENTICATION & LOGIN STYLES
   ========================================================================= */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-color: var(--off-white);
    padding: 40px 20px;
}

.login-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.login-card h2 {
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 10px;
    text-align: center;
}

.login-card-subtitle {
    font-size: 14px;
    color: var(--light-text);
    text-align: center;
    margin-bottom: 30px;
}

.demo-accounts {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.demo-accounts h4 {
    font-size: 13px;
    color: var(--light-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.demo-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.demo-pill {
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition-fast);
}

.demo-pill:hover {
    border-color: var(--primary-red);
    background-color: var(--primary-red-light);
    color: var(--primary-red);
}

.alert-danger {
    background-color: #fde8e8;
    color: #e02424;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 4px solid #e02424;
}

/* =========================================================================
   HR PORTAL PRIVATE DASHBOARD STYLES
   ========================================================================= */
.portal-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f4f6f9;
}

.portal-sidebar {
    width: 260px;
    background-color: #111;
    color: #bbb;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
}

.portal-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-sidebar-header .logo-text {
    font-size: 20px;
    color: var(--white);
}

.portal-sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.portal-menu-item {
    margin-bottom: 4px;
}

.portal-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #bbbbbb;
    transition: var(--transition-fast);
    border-left: 4px solid transparent;
}

.portal-menu-link:hover, .portal-menu-link.active {
    color: var(--white);
    background-color: #1c1c1c;
    border-left-color: var(--primary-red);
}

.portal-menu-link svg {
    width: 18px;
    height: 18px;
    color: #888;
}

.portal-menu-link:hover svg, .portal-menu-link.active svg {
    color: var(--primary-red);
}

.portal-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid #222;
    font-size: 12px;
}

.portal-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.portal-topnav {
    height: 70px;
    background-color: var(--white);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.portal-topnav-title {
    font-size: 20px;
    font-weight: 700;
}

.portal-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--primary-red);
}

.portal-user-info {
    text-align: right;
}

.portal-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

.portal-user-role {
    font-size: 11px;
    color: var(--light-text);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.portal-body {
    padding: 30px;
    flex-grow: 1;
}

.portal-section-panel {
    display: none;
}

.portal-section-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* DASHBOARD STATS */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.metric-card {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.metric-card-details h4 {
    font-size: 13px;
    color: var(--light-text);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.metric-card-details p {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1;
}

.metric-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-card-icon svg {
    width: 24px;
    height: 24px;
}

/* DATA TABLES */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.data-table th {
    background-color: var(--off-white);
    color: var(--dark-text);
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 2px solid var(--light-gray);
}

.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--light-gray);
    color: #444;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: #fafafa;
}

/* BADGES */
.badge-status {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-status.new { background-color: #e3f2fd; color: #1e88e5; }
.badge-status.shortlisted { background-color: #e8f5e9; color: #43a047; }
.badge-status.interviewing { background-color: #fff8e1; color: #ffb300; }
.badge-status.offered { background-color: #f3e5f5; color: #8e24aa; }
.badge-status.rejected { background-color: #ffebee; color: #e53935; }

/* HIRING PIPELINE BOARD */
.pipeline-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: start;
}

.pipeline-col {
    background-color: #ebecf0;
    border-radius: 6px;
    padding: 12px;
    min-height: 400px;
}

.pipeline-col-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-col-count {
    background-color: #ccc;
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.pipeline-card {
    background-color: var(--white);
    border-radius: 4px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 8px;
    cursor: grab;
    transition: var(--transition-fast);
}

.pipeline-card:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.pipeline-card h5 {
    font-size: 14px;
    color: var(--dark-text);
    margin-bottom: 4px;
}

.pipeline-card p {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 8px;
}

.pipeline-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #999;
}

/* CALENDAR & SCHEDULING UI */
.scheduler-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.calendar-box {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month {
    font-size: 18px;
    font-weight: 700;
}

.calendar-nav-btn {
    background-color: var(--off-white);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-head {
    font-size: 12px;
    font-weight: 700;
    color: var(--light-text);
    padding: 8px 0;
}

.calendar-cell {
    aspect-ratio: 1.2;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6px;
    font-size: 12px;
    background-color: var(--white);
    cursor: pointer;
    position: relative;
}

.calendar-cell.inactive {
    background-color: #fafafa;
    color: #ccc;
}

.calendar-cell-num {
    font-weight: 600;
}

.calendar-event-dot {
    width: 100%;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 9px;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

/* CHAT BOX MOCKUP */
.chat-container {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    height: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: #f8f9fa;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13.5px;
    line-height: 1.5;
}

.chat-bubble.incoming {
    background-color: var(--white);
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 8px;
}

.chat-bubble.outgoing {
    background-color: var(--primary-red);
    color: var(--white);
    align-self: flex-end;
    border-radius: 8px 0 8px 8px;
}

.chat-bubble-time {
    font-size: 9px;
    color: #999;
    margin-top: 4px;
    text-align: right;
}

.chat-bubble.outgoing .chat-bubble-time {
    color: rgba(255,255,255,0.7);
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-col-about {
        grid-column: span 3;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-strip-container {
        margin-top: -40px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    .mv-grid {
        grid-template-columns: 1fr;
    }
    .presence-grid {
        grid-template-columns: 1fr;
    }
    .portal-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .careers-forms-grid {
        grid-template-columns: 1fr;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* PORTAL RESPONSIVE */
    .portal-wrapper {
        flex-direction: column;
    }
    .portal-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #222;
    }
    .portal-sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        justify-content: center;
    }
    .portal-menu-link {
        padding: 8px 16px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .portal-menu-link:hover, .portal-menu-link.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-red);
    }
    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    .scheduler-layout {
        grid-template-columns: 1fr;
    }
    .pipeline-board {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }
    .hamburger {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition-normal);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-link {
        font-size: 18px;
    }
    .hero {
        padding: 100px 0 120px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .stats-strip {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
        padding-bottom: 15px;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .partners-logos {
        gap: 20px;
    }
    .certifications-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col-about {
        grid-column: span 1;
    }
    .careers-banner-card {
        flex-direction: column;
        text-align: center;
    }
    .resume-cta-card {
        flex-direction: column;
        text-align: center;
    }
    .resume-cta-left {
        flex-direction: column;
    }
    .job-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px;
    }
    .job-row .btn {
        justify-self: start;
        margin-top: 8px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .office-details-layout {
        grid-template-columns: 1fr;
    }
    .office-map-placeholder {
        height: 150px;
    }
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

/* ===========================================================================
   LOGIN PAGE
   =========================================================================== */
.login-page-body {
    background: linear-gradient(135deg, #fafafa 0%, #f3f3f3 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.login-back-link {
    font-size: 14px;
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.login-back-link:hover { color: var(--primary-red); }

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.login-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 48px 44px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.09);
    text-align: center;
    animation: cardFadeIn 0.5s ease both;
}

@keyframes cardFadeIn {
    from { opacity:0; transform:translateY(20px); }
    to   { opacity:1; transform:translateY(0); }
}

.login-card.shake {
    animation: shakeCard 0.5s ease;
}
@keyframes shakeCard {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-8px); }
    40%     { transform: translateX(8px); }
    60%     { transform: translateX(-6px); }
    80%     { transform: translateX(6px); }
}

.login-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary-red-light);
    color: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.login-icon-wrap svg { width: 30px; height: 30px; }

.login-card h1 {
    font-size: 26px;
    color: var(--dark-text);
    margin-bottom: 8px;
}
.login-subtitle {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 24px;
}

/* Demo accounts strip */
.demo-accounts {
    background: #f9f9f9;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 28px;
    text-align: left;
}
.demo-label {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--white);
}
.demo-admin  { color: #d32f2f; border-color: #d32f2f; }
.demo-hr     { color: #1565c0; border-color: #1565c0; }
.demo-visitor{ color: #388e3c; border-color: #388e3c; }
.demo-btn:hover, .demo-btn.selected { color: var(--white); }
.demo-admin:hover,   .demo-admin.selected   { background: #d32f2f; }
.demo-hr:hover,      .demo-hr.selected      { background: #1565c0; }
.demo-visitor:hover, .demo-visitor.selected { background: #388e3c; }

/* Login form */
.login-form { text-align: left; }
.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon-wrap > svg:first-child {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #aaa;
    pointer-events: none;
}
.input-icon-wrap input {
    width: 100%;
    padding: 12px 44px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: var(--font-body);
}
.input-icon-wrap input:focus {
    border-color: var(--primary-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(211,47,47,0.1);
}
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    display: flex;
    align-items: center;
    padding: 4px;
    transition: color var(--transition-fast);
}
.toggle-password:hover { color: var(--primary-red); }

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #c62828;
    margin-bottom: 16px;
}

.login-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}
.btn-spinner { display: inline-flex; align-items: center; }
.spin-anim { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.login-footer-note {
    font-size: 11px;
    color: #bbb;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.access-denied-card { border-top: 4px solid var(--primary-red); }

/* Logged-in nav pill in public pages */
.nav-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-red-light);
    border: 1px solid rgba(211,47,47,0.2);
    border-radius: 24px;
    padding: 5px 14px 5px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-red);
    cursor: default;
}
.nav-user-pill-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.nav-logout-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: var(--light-text);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}
.nav-logout-btn:hover { background: var(--primary-red); color: #fff; }
.nav-hr-portal-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--primary-red);
    transition: all var(--transition-fast);
}
.nav-hr-portal-btn:hover { background: var(--primary-red); color: #fff; }

/* ===========================================================================
   HR PORTAL — SIDEBAR + DASHBOARD LAYOUT
   =========================================================================== */
.hr-portal-body {
    display: flex;
    min-height: 100vh;
    background: #f4f5f7;
    font-family: var(--font-body);
}

/* Sidebar */
.hr-sidebar {
    width: 260px;
    min-width: 260px;
    background: #1a1f2e;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.hr-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hr-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

/* User chip */
.hr-user-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hr-user-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--primary-red);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hr-user-avatar.small { width: 30px; height: 30px; font-size: 12px; }
.hr-user-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hr-user-name {
    font-size: 13px; font-weight: 600;
    color: #f0f0f0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hr-user-role-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    width: fit-content;
}
.hr-user-role-badge.role-admin  { background: rgba(211,47,47,0.2); color: #ef9a9a; }
.hr-user-role-badge.role-hr     { background: rgba(33,150,243,0.2); color: #90caf9; }
.hr-user-role-badge.role-visitor{ background: rgba(76,175,80,0.2); color: #a5d6a7; }

/* Nav */
.hr-nav { flex: 1; padding: 12px 0; }
.hr-nav ul { list-style: none; margin: 0; padding: 0; }
.hr-nav-item > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: #9ea3b0;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.hr-nav-item > a svg { width: 18px; height: 18px; flex-shrink: 0; }
.hr-nav-item > a span:first-of-type { flex: 1; }
.hr-nav-item:hover > a { color: #fff; background: rgba(255,255,255,0.06); }
.hr-nav-item.active > a {
    color: #fff;
    background: rgba(211,47,47,0.15);
    border-left-color: var(--primary-red);
}

.hr-badge {
    background: #2d3548;
    color: #9ea3b0;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    min-width: 20px;
    text-align: center;
}
.hr-badge-orange { background: rgba(245,124,0,0.2); color: #ffb74d; }
.hr-badge-red    { background: rgba(211,47,47,0.2); color: #ef9a9a; }

/* Sidebar footer */
.hr-sidebar-footer {
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hr-public-link, .hr-logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #9ea3b0;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}
.hr-public-link svg, .hr-logout-btn svg { width: 16px; height: 16px; }
.hr-public-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.hr-logout-btn:hover  { background: rgba(211,47,47,0.15); color: #ef9a9a; }

/* Main wrap */
.hr-main-wrap {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top bar */
.hr-topbar {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.hr-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hr-menu-toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--dark-text); border-radius: 2px;
}
.hr-topbar-title { font-size: 17px; font-weight: 700; color: var(--dark-text); flex: 1; }
.hr-topbar-right { display: flex; align-items: center; gap: 16px; }
.hr-topbar-user  { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--dark-text); }

/* Sections */
.hr-section { display: none; padding: 28px; }
.hr-section.active { display: block; }

.hr-content-header { margin-bottom: 24px; }
.hr-content-header h2 { font-size: 24px; color: var(--dark-text); margin-bottom: 4px; }
.hr-content-header p  { font-size: 14px; color: var(--light-text); }

/* Stats grid */
.hr-stats-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.hr-stat-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.hr-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.hr-stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hr-stat-icon svg { width: 24px; height: 24px; }
.hr-stat-info h3  { font-size: 24px; font-weight: 800; color: var(--dark-text); margin: 0 0 2px; }
.hr-stat-info p   { font-size: 12px; color: var(--light-text); margin: 0; }
.hr-stat-trend {
    position: absolute;
    bottom: 12px; right: 14px;
    font-size: 10px; font-weight: 600;
}
.hr-stat-trend.up   { color: #2e7d32; }
.hr-stat-trend.down { color: #c62828; }
.hr-stat-trend.neutral { color: #888; }

/* Cards */
.hr-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.hr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--light-gray);
    gap: 12px;
    flex-wrap: wrap;
}
.hr-card-header h3 { font-size: 16px; font-weight: 700; color: var(--dark-text); }

/* Table */
.hr-table-wrap { overflow-x: auto; }
.hr-table { width: 100%; border-collapse: collapse; }
.hr-table thead tr { background: #f8f8f8; }
.hr-table th {
    padding: 12px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--light-gray);
    white-space: nowrap;
}
.hr-table td {
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--dark-text);
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.hr-table tbody tr:hover { background: #fafafa; }
.hr-table tbody tr:last-child td { border-bottom: none; }
.hr-table small { font-size: 11px; color: var(--light-text); }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.status-badge.new         { background: #e3f2fd; color: #1565c0; }
.status-badge.shortlisted { background: #fff3e0; color: #e65100; }
.status-badge.interview   { background: #e8f5e9; color: #2e7d32; }
.status-badge.hired       { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.status-badge.rejected    { background: #ffebee; color: #c62828; }

/* Action buttons */
.hr-action-btn {
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--primary-red);
    color: #fff;
    transition: all 0.2s;
    margin-right: 4px;
}
.hr-action-btn:hover { background: var(--primary-red-hover); }
.hr-action-btn.secondary {
    background: var(--off-white);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}
.hr-action-btn.secondary:hover { background: #e0e0e0; }

/* Interview list */
.hr-interview-list { display: flex; flex-direction: column; }
.hr-interview-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}
.hr-interview-item:last-child { border-bottom: none; }
.hr-interview-item:hover { background: #fafafa; }
.hr-int-time {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-red);
    min-width: 90px;
    white-space: nowrap;
}
.hr-int-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hr-int-info strong { font-size: 14px; color: var(--dark-text); }
.hr-int-info span   { font-size: 12px; color: var(--light-text); }
.hr-int-status      { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }

/* Filter row */
.hr-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hr-select {
    padding: 7px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
.hr-select:focus { border-color: var(--primary-red); outline: none; }

/* Hiring pipeline */
.hr-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.hr-pipeline-col { border-right: 1px solid var(--light-gray); }
.hr-pipeline-col:last-child { border-right: none; }
.hr-pipeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
.hr-pipeline-header span {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
}
.hr-pipeline-item {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--dark-text);
    border-bottom: 1px solid #f0f0f0;
}
.hr-pipeline-item:last-child { border-bottom: none; }

/* CV cards */
.hr-cvs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.hr-cv-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hr-cv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.hr-cv-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.hr-cv-info { display: flex; flex-direction: column; gap: 3px; }
.hr-cv-info strong { font-size: 15px; color: var(--dark-text); }
.hr-cv-info span   { font-size: 13px; color: var(--light-text); }
.hr-cv-date        { font-size: 11px !important; color: #bbb !important; }
.hr-cv-actions     { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Messages */
.hr-messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 480px;
}
.hr-msg-list {
    border-right: 1px solid var(--light-gray);
    overflow-y: auto;
}
.hr-msg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}
.hr-msg-item:hover    { background: #fafafa; }
.hr-msg-item.active   { background: #fff5f5; border-left: 3px solid var(--primary-red); }
.hr-msg-item.unread .hr-msg-preview strong { color: var(--dark-text); }
.hr-msg-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hr-msg-preview { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hr-msg-preview strong { font-size: 13px; font-weight: 700; color: #555; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-msg-preview span   { font-size: 12px; color: var(--light-text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-msg-preview small  { font-size: 10px; color: #bbb; }
.hr-msg-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary-red);
    flex-shrink: 0;
}

.hr-msg-content { display: flex; flex-direction: column; }
.hr-msg-detail  { display: flex; flex-direction: column; flex: 1; }
.hr-msg-detail-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-gray);
    background: #fafafa;
}
.hr-msg-detail-from    { font-size: 16px; font-weight: 700; color: var(--dark-text); margin-bottom: 4px; }
.hr-msg-detail-subject { font-size: 14px; color: var(--light-text); margin-bottom: 4px; }
.hr-msg-detail-time    { font-size: 12px; color: #bbb; }
.hr-msg-detail-body {
    flex: 1;
    padding: 24px;
    font-size: 14px;
    color: var(--dark-text);
    line-height: 1.7;
}
.hr-msg-reply-box {
    padding: 16px 24px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 12px;
    align-items: flex-end;
}
.hr-msg-reply-box textarea {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-family: var(--font-body);
    resize: none;
    transition: border-color 0.2s;
}
.hr-msg-reply-box textarea:focus { border-color: var(--primary-red); outline: none; }

/* Records search */
.hr-search-input {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    width: 280px;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.hr-search-input:focus { border-color: var(--primary-red); outline: none; box-shadow: 0 0 0 3px rgba(211,47,47,0.08); }

/* HR applicant detail */
.hr-applicant-detail { text-align: left; padding: 8px 0; }
.hr-applicant-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.hr-applicant-row:last-of-type { border-bottom: none; }
.hr-applicant-row strong { min-width: 90px; color: var(--light-text); }
.hr-applicant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--light-gray);
}

/* HR Modal */
.hr-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.hr-modal {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.25s ease;
}
.hr-modal.show { transform: scale(1); opacity: 1; }
.hr-modal h3   { font-size: 20px; color: var(--dark-text); margin-bottom: 20px; }
.hr-modal-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none;
    font-size: 24px; color: #aaa; cursor: pointer; line-height: 1;
}
.hr-modal-close:hover { color: var(--primary-red); }

/* ===========================================================================
   HR PORTAL RESPONSIVE
   =========================================================================== */
@media (max-width: 1100px) {
    .hr-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hr-pipeline-grid { grid-template-columns: repeat(2, 1fr); }
    .hr-pipeline-col { border-bottom: 1px solid var(--light-gray); border-right: none; }
    .hr-pipeline-col:nth-child(odd) { border-right: 1px solid var(--light-gray); }
}
@media (max-width: 900px) {
    .hr-messages-layout { grid-template-columns: 1fr; }
    .hr-msg-list { border-right: none; border-bottom: 1px solid var(--light-gray); max-height: 250px; }
}
@media (max-width: 768px) {
    .hr-sidebar {
        transform: translateX(-100%);
    }
    .hr-sidebar.open {
        transform: translateX(0);
    }
    .hr-sidebar-close { display: block; }
    .hr-main-wrap { margin-left: 0; }
    .hr-menu-toggle { display: flex; }
    .hr-section { padding: 18px; }
    .hr-stats-grid { grid-template-columns: 1fr 1fr; }
    .hr-pipeline-grid { grid-template-columns: 1fr; }
    .hr-pipeline-col { border-right: none; border-bottom: 1px solid var(--light-gray); }
    .hr-cvs-grid { grid-template-columns: 1fr; }
    .hr-search-input { width: 100%; }
    .login-card { padding: 32px 22px; }
    .demo-btns { flex-wrap: wrap; }
    .login-header { padding: 14px 20px; }
}
@media (max-width: 480px) {
    .hr-stats-grid { grid-template-columns: 1fr; }
    .hr-card-header { flex-direction: column; align-items: flex-start; }
}
.logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}
.login-logo {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}
