body {
    font-family: 'Segoe UI', sans-serif;
    background: url('https://static.xingcdn.com/crate/login-360fc939/background-bf0cd5740250d8de53a3c4542317da8f.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    margin: 0;
    padding: 20px;
    min-width: 480px;
}

.container {
    max-width: 1200px;
    min-width: 480px;
    margin: auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 24px;
}

.badge {
    background-color: #A259FF;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
}

/* LAYOUT WRAPPER */
.page-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* LEFT PROFILE SIDEBAR */
.profile-container {
    position: sticky;
    top: 20px;                  /* distance from top while scrolling */
    align-self: flex-start;    /* ensures it doesn't stretch inside flex */
    width: 30%;
    min-width: 225px;
    height: fit-content;       /* only as tall as content */
    background-color: rgba(1, 127, 81, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
    color: white;
}

#image{
    position: relative;
    overflow: hidden;
}
#image,#profile-photo{
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 10px;
}
#image > a{
    position: absolute;
    top:0;
    left:0;
    background: rgba(0,0,0,0.5) !important;
    height: 100%;
    width: 100%;
    display: none;
}
#image > a > i{
    -webkit-text-stroke: 1px #ffffffdd;
    padding: 40%;
}
#image:hover a{
    display: block;
}
#name{
    font-size: 23px !important;
    line-height: 20px !important;
}
#about,.card > ul > li{
    padding: 0 0 0 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}
#about{
    font-size: 20px !important;
    padding: 0 !important;
}
#name, #about > p{
    font-weight: bolder;
    font-family: 'Open Sans', sans-serif;
}
#email{
    font-size: 15px !important;
    font-weight: bold !important;
    font-family: 'Cutive Mono',monospace;
}
#college,#email,#year-graduation,#education,#more-about,#telephone,#fax{
    color: #555;
    font-size: 13.5px;
}
strong,span{
    color: black;
    font-size: 16px;
}
#social-links,#about{
    display: inline-block;
}
#social-links{
    margin-bottom: 12px;
}
#social-links a{
    margin: 0 10px;
}
#edit-intro{
    display: block;
    color:#097bbf;
    font-family: 'Nunito', sans-serif;
}
.fab{
    font-size: 1.1em;
}
.fab,.fas{
    color: whitesmoke;
}

#about > a{
    top: 4px;
    right: 8px;
}
.edit{
    top: 19px;
    right: 10px;
}
#about > a, .edit{
    position: absolute;
    font-size: 15px !important;
}
.stroke-transparent {
 -webkit-text-stroke: 1px #000;
 -webkit-text-fill-color: transparent;
}
.blue{
    color: #097bbf !important;
    font-size: 13px;
}
.stroke-transparent-blue {
 -webkit-text-stroke: 1px #097bbf;
 -webkit-text-fill-color: transparent;
}


/* RIGHT JOB CARD SECTION */
.card-container {
    width: 70%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.card-section {
    width: 100%;
    background-color: rgba(1, 127, 81, 0.3); /* same as .profile-container */
    border-radius: 12px;
    padding: 16px 20px;
    box-sizing: border-box;
    color: white;
    margin-bottom: 20px;
}

.card-section p {
    margin: 0;
    line-height: 1.2; /* reduce vertical spacing */
    padding: 4px 0;   /* optional fine-tuning */
    font-size: 1.5em;
}

.card-section > p > i{
    font-size: 24px;
}



/* New wrapper */
.card-holder {
    display: flex;
    justify-content: flex-start; /* default left-aligned */
}
.card-holder-section h3 {
    color: darkgreen;       /* font color */
    font-size: 22px;        /* font size */
    padding: 0 10px;        /* left and right inner padding */
    margin: 0;              /* optional: remove default top/bottom spacing */
    line-height: 1.4;       /* optional: improve readability on multiple lines */
}
.card-holder-section span {
    font-size: 20px;
    color: rgb(1, 48, 1);           /* optional subtle gray */
    display: block;        /* optional: breaks onto a new line */
    margin-top: 6px;       /* optional spacing from previous content */
}



/* CARD DESIGN — UNCHANGED */
.card {
    background-color: #1E1E26;
    border-radius: 16px;
    padding: 16px;
    width: 300px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card > p{
    color: #0e141e;
    font-weight: bolder;
    font-size: 18px;
    line-height: 2;
    
}
.card > p > i{
    font-size:18px;
}

.card-alt {
    background-color: #D1F1F8;
    color: #1E1E26;
}
/* Right-aligned variant (applies to .card-alt inside) */
.card-alt {
    margin-left: auto;
}

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

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
}

.icon-group {
    margin-left: auto; /* pushes it to the right in a flex container */
    display: flex;
    gap: 5px;
}
.icon-group span {
    font-size: 18px;
    cursor: pointer;
}


.card-body h2 {
    font-size: 18px;
    margin: 10px 0;
}

.card-footer {
    background-color: #2A2A33;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    text-align: center;
    color: #ccc;
    margin-top: 10px;
}

.person-name {
    font-size: 14px;
    margin: 8px 0;
}

.location {
    color: #999;
    font-size: 14px;
}

.company {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}
.company span {
    color: white;
}
.company span2 {
    color: black;
}

.company img {
    width: 40px;     /* or any size you prefer */
    height: auto;    /* maintains aspect ratio */
    max-height: 40px;
    object-fit: contain;
}

.skills-wrapper {
    display: flex;
    flex-direction: column;
}

.skills {
    font-size: 14px;
    margin: 10px 0 4px;
    display: flex;
    justify-content: flex-start; /* default left-aligned */
}

/*.skills span {
    float: right;
}*/

.skills-alt {
    font-size: 14px;
    margin: 10px 0 4px;
    display: flex;
    justify-content: flex-start; /* default left-aligned */
}

/*.skills-alt span {
    float: right;
}*/

.bar {
    height: 6px;
    background: #444;
    border-radius: 3px;
    margin-top: 4px;
    width: 100%;
}

.bar-1 {
    background: linear-gradient(
        to right,
        #444 0%,   /* left gray section (0%) */
        #00ff99 0%,/* start green */
        #00ff99 20%,/* end green (25% span) */
        #444 25%    /* right gray section (75%) */
    );
}

.bar-2 {
    background: linear-gradient(
        to right,
        #444 20%,   /* left gray section (25%) */
        #00ff99 25%,/* start green */
        #00ff99 45%,/* end green (50% span) */
        #444 50%    /* right gray section (50%) */
    );
}

.bar-3 {
    background: linear-gradient(
        to right,
        #444 45%,   /* left gray section (50%) */
        #00ff99 50%,/* start green */
        #00ff99 70%,/* end green (75% span) */
        #444 75%    /* right gray section (25%) */
    );
}

.bar-4 {
    background: linear-gradient(
        to right,
        #444 70%,   /* left gray section (75%) */
        #00ff99 75%,/* start green */
        #00ff99 95%,/* end green (100% span) */
        #444 100%    /* right gray section (0%) */
    );
}

/* Bar alignment modifiers */
.bar-pos-1 {
    text-align: left;
}
.bar-pos-2 {
    text-align: center;
    padding-left: 25%;
}
.bar-pos-3 {
    text-align: center;
    padding-left: 50%;
}
.bar-pos-4 {
    text-align: right;
    padding-left: 75%;
}

.salary {
    font-size: 14px;
    margin: 10px 0;
}

.spacer {
    width: 300px; /* same as .card width */
    height: 55%;  /* 55% of typical card height (~55% of 360px ≈ 198px) */
    min-height: 198px;
    visibility: hidden;
}

.section-title22 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgb(2, 75, 65);
}

.section-title22 img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* ensures the icon appears white on dark backgrounds */
}


/* Improved Media responsive layout and font size*/
/* 🔽 For tablets and below */
@media (max-width: 768px) {
  html {
    font-size: 17px; /* slightly larger base */
  }

  .card {
    width: 100%;
    padding: 16px;
  }

  .card-body h2 {
    font-size: 1.3em;
  }

  .skills,
  .skills-alt,
  .person-name,
  .salary,
  .location,
  .company span,
  .company span2 {
    font-size: 1.05em;
  }

  #name,
  #about p,
  #more-about,
  #education {
    word-break: break-word;
    font-size: 1.1em;
  }

  #education strong,
  #more-about span {
    word-break: break-word;
    font-size: 1.1em;
  }

  .card-section p {
    font-size: 1.5em;
    line-height: 1.5;
  }

  .card-holder-section h3 {
    font-size: 1.3em;
  }

  .card-holder-section span {
    font-size: 1.15em;
  }

  .icon-group span {
    font-size: 20px;
  }

  .badge {
    font-size: 14px;
  }

  .company img {
    width: 32px;
  }
}


/* 🔽 For mobile phones */
@media (max-width: 480px) {
  html {
    font-size: 18px; /* even larger base font for phones */
  }

  .card {
    width: 100%;
    padding: 14px;
  }

  .card-body h2 {
    font-size: 1.3em;
  }

  .about,
  .skills,
  .skills-alt,
  .person-name,
  .salary,
  .location,
  .company span,
  .company span2 {
    font-size: 1.1em;
  }

  .card-section p {
    font-size: 1.5em;
    line-height: 1.5;
  }

  .card-holder-section h3 {
    font-size: 1.3em;
  }

  .card-holder-section span {
    font-size: 1.1em;
  }

  .icon-group span {
    font-size: 22px;
  }

  .badge {
    font-size: 15px;
  }

  .company img {
    width: 30px;
  }
}


/* Media type responsive layout */

/* Mobile layout: stack content vertically, remove sticky behavior, make everything scrollable */

@media (max-width: 610px) {
  .page-layout {
    flex-direction: column;      /* stack profile above cards */
    align-items: center;         /* center content horizontally */
  }

  .profile-container {
    position: static;            /* disable sticky on mobile */
    width: 100%;                 /* take full width */
    min-width: unset;            /* remove desktop constraint */
    height: auto;                /* allow full scroll */
    margin-bottom: 20px;         /* spacing before card section */
  }

  .card-container {
    width: 100%;
    max-width: unset;
    padding: 0 10px;             /* side padding for better spacing */
  }

  .card-section {
    width: 100%;
  }

  .card-holder {
    justify-content: center !important; /* center cards */
  }

  .card {
    width: 100%;
    /*max-width: 450px;            /* cap width for readability */
  }
}
