/* Import Google Fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Header and Navigation */
header {
    background: #fff;
    color: #333;
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

nav > ul {
    margin-left: auto;
}

nav > .nav-buttons {
    margin-left: auto;
}

.logo h1 {
    color: #0075a5;
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
    margin: 0;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-top: 10px;
    max-height: 40px;
}

.logo a {
    text-decoration: none;
}

.logo a:visited {
    color: #0075a5;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    font-weight: 400;
    font-size: 1rem;
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #0075a5;
    transform: translateY(-1px);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    max-width: 200px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
}

.btn-secondary {
    background: #6c757d;
    color: #000000;
    border: 1px solid #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    width: auto;
    min-width: 120px;
    height: 40px;
    box-sizing: border-box;
    margin: 0 0.5rem;
    background: linear-gradient(00deg, #ff9f0b 0%, #f5c314 100%);
}

.btn-secondary:hover {
    background: #5a6268;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
    background: linear-gradient(00deg, #f5c314 0%, #ff9f0b 100%);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    min-width: 150px;
    height: 40px;
    box-sizing: border-box;
    margin: 0 0.5rem;
    background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 117, 165, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005a85 0%, #0075a5 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 117, 165, 0.4);
    text-decoration: none;
}

.btn-link {
    color: #333;
    background: transparent;
    padding: 0.75rem 1rem;
    min-width: 80px;
}

.btn-link:hover {
    color: #0075a5;
    background: transparent;
}

/* Main content */
main {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 200px);
}

section {
    text-align: center;
   /* margin: 4rem 0;*/
}

h2 {
    color: #076f8d;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 500;
    position: relative;
}

h2::after {
  /*  content: '';*/
    display: block;
    width: 50px;
    height: 3px;
    background: #87CEEB;
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: #D1D7E1;
    /*padding: 4rem 2rem;*/
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1200px;
    width: 100%;
}

.hero-text {
    flex: 0 0 60%;
}

.hero-text h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.training-hero h1 {
    margin-top: 2rem;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-hero {
    background: #28a745;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-hero:hover {
    background: #218838;
    color: #fff;
}

.hero-profile {
    flex: 0 0 20%;
}

.profile-info {
    flex: 0 0 21%;
    background-color: white;
    padding: 5px;
    margin-top: -100px;
}

.profile-card {
   /* background: #fff;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
       padding: 2rem;
   */
    border-radius: 0;
    
    overflow: hidden;
    text-align: center;
   
}

.profile-image {
    width: 100%;
   /* height: 180px;*/
    object-fit: cover;
    border-radius: 0px;
  /*  margin-bottom: 1.5rem;*/
}

.profile-image-placeholder {
    width: 100%;
    height: 180px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.checkmark {
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.company-info p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.company-logo {
    width: 100px;
    height: auto;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
   /* max-width: 600px;*/
   /* margin-left: auto;
    margin-right: auto; */
}

/* Call to Action */
.cta {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.cta:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: #fff;
    text-decoration: none;
}

.card .cta {
    display: inline-block;
    text-align: right;
    margin-top: 1rem;
    width: auto;
    padding: 0.75rem 1.5rem;
}

.login-form .cta {
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 1rem;
}

.cta.primary {
    background: #28a745;
    color: #fff;
}

.cta.primary:hover {
    background: #218838;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.login-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

/* Footer */
footer {
    background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 2rem 2rem 270px;
    margin-top: 4rem;
    margin-left: 0;
    box-shadow: 0 4px 15px rgba(0, 117, 165, 0.3);
}

footer p {
    color: #fff;
    margin: 0;
    font-weight: 500;
}

footer a {
    color: #87CEEB;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ADD8E6;
    text-decoration: underline;
}

/* Forms */
form {
   /*  max-width: 600px;
    margin: 2rem auto;*/
    padding: 0;
    /*background: white;*/
    border-radius: 15px;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.login-form {
    max-width: 400px;
    margin: 4rem auto;
    padding: 1.4rem;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-footer {
    max-width: 400px;
    margin: 1rem auto 0;
    text-align: center;
}

.login-form h2 {
    color: #076f8d;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 500;
}

form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #076f8d;
}

input, textarea, select {
    display: block;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 0px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
   
}

.project-form-container input,
.project-form-container textarea,
.project-form-container select,
.login-form input,
.login-form textarea,
.login-form select,
.form-container input,
.form-container textarea,
.form-container select {
    width: 100%;
}

.form-container input[type="radio"] {
    width: auto;
    display: inline;
    padding: 0;
    margin: 0;
    margin-right: 0.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
    background: white;
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    width: 100%;
    background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%);
    color: #fff;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 117, 165, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 117, 165, 0.4);
}



/* Specific buttons for actions */
button[style*="background-color: #20B2AA"] {
    background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%) !important;
    color: #fff !important;
    width: auto !important;
    padding: 0.75rem 1.5rem !important;
    margin-right: 0.5rem;
}

button[style*="background-color: #dc3545"] {
    background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%) !important;
    color: #fff !important;
    width: auto !important;
    padding: 0.75rem 1.5rem !important;
}

/* Freelancers Section */
.freelancers-section {
    /*padding: 4rem 2rem;*/
    background: #fff;
}

.freelancer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.freelancer-card-link:hover .freelancer-card-horizontal {
    transform: translateY(-3px);
}

/* Smaller freelancer cards for project view */
.small-cards .freelancer-card-horizontal {
    min-width: 200px;
    max-width: 250px;
    padding: 0.75rem;
}

.small-cards .freelancer-image-horizontal {
    width: 60px;
    height: 60px;
}

.small-cards .freelancer-details h4 {
    font-size: 1rem;
}

.small-cards .freelancer-skill {
    font-size: 0.8rem;
}

.small-cards .freelancer-location {
    font-size: 0.7rem;
}

/* Smaller bid cards */
.small-bid-cards .project-card {
    padding: 1.4rem;
    width: 300px;
    flex: 0 0 auto;
}

.small-bid-cards .project-card h3 {
    font-size: 1.4rem;
}

.small-bid-cards .project-card p {
    font-size: 1rem;
}

.small-bid-cards .project-card .btn-project {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.freelancers-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0;
    max-width: 100%;
    margin: 0 auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
    background-color: #d1d7e1;
}

.freelancers-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Horizontal Freelancer Cards */
.freelancer-card-horizontal {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    border: 2px solid #e9ecef;
}

.freelancer-card-horizontal:hover {
    transform: translateY(-3px);
}

.freelancer-image-container {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.freelancer-image-horizontal {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.freelancer-image-horizontal:hover {
    border-color: #0075a5;
}

.freelancer-image-placeholder-horizontal {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
    transition: border-color 0.3s ease;
}

.freelancer-image-placeholder-horizontal:hover {
    border-color: #0075a5;
}

.freelancer-details {
    flex: 1;
    text-align: left;
    min-width: 0; /* Allow text to wrap */
}

.freelancer-details h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.25rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.freelancer-skill {
    color: #28a745;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.freelancer-location {
    color: #666;
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legacy vertical freelancer cards (for backward compatibility) */
.freelancer-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
   /*width: 200px;*/
    transition: transform 0.3s ease;
}

.freelancer-card:hover {
    transform: translateY(-5px);
}

.freelancer-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.freelancer-image-placeholder {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.freelancer-company p {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.company-logo-small {
    width: 60px;
    height: auto;
}

/* Dashboard and Cards */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;

    margin-left: 0px;
}

.freelancer-layout .dashboard {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .dashboard, .freelancer-layout .dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard, .freelancer-layout .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard, .freelancer-layout .dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.freelancer-layout .dashboard {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.5rem;
}

@media (min-width: 1200px) {
    .freelancer-layout .dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: white;
    padding: 1rem;
    border-radius: 0;
    transition: all 0.3s ease;
    /*border: 1px solid #e9ecef;*/
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
    max-width: 800px;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
}

.card::before {
    content: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #076f8d;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.applications-list {
    margin-top: 1.5rem;
}

.application-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #20B2AA;
    border: 1px solid #ddd;
}

.application-item p {
    margin-bottom: 0.75rem;
}

.application-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.application-actions form {
    width: 100%;
    max-width: 200px;
}

.application-actions button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: white;
}

.btn-accept {
    background: #28a745 !important;
    color: white !important;
    width: 200px !important;
}

.btn-reject {
    background: #dc3545 !important;
    color: white !important;
    width: 200px !important;
}

.application-actions button[type="submit"]:first-of-type {
    background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%);
    color: #fff;
}

.application-actions button[type="submit"]:last-of-type {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.application-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Messages */
.messages {
    margin-bottom: 2rem;
}

.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message::before {
    font-size: 1.2rem;
    font-weight: bold;
}

.message.error::before {
    content: '⚠️';
}

.message.success::before {
    content: '✅';
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert::before {
    font-size: 1.2rem;
    font-weight: bold;
}

.alert.alert-error::before {
    content: '⚠️';
}

.alert.alert-success::before {
    content: '✅';
}

/* Override for dashboard counts */
.dashboard .card p[style*="color: green"] {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    margin-bottom: 0.5rem !important;
}

/* Dashboard count styles */
.dashboard-count {
    font-size: 4em;
    font-weight: bold;
    margin: 0.5rem 0;
    text-align: center;
}

.project-count {
    color: #28a745; /* green */
}

.pending-count {
    color: #fd7e14; /* orange */
}

.payments-count {
    color: #28a745; /* green */
}

.unpaid-count {
    color: #fd7e14; /* orange */
}

p.earnings-count {
    color: #28a745; /* green */
}

/* Application Details Styles */
.application-details-card {
    background: white;
    border-radius: 0;
    padding: 2rem;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.application-details-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.application-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.application-header h3 {
    color: #076f8d;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.training-badge {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.application-content {
    margin-bottom: 2rem;
}

.application-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-section {
    margin-bottom: 1.5rem;
}

.info-section h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.info-section p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.cover-letter {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #87CEEB;
    font-style: italic;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.info-value {
    color: #666;
    text-align: right;
    font-size: 0.9rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-accepted {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.application-actions {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 1rem;
}

.action-form {
    display: inline-block;
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

/* Training Management Styles */
.training-card .action-buttons {
    margin-top: 1rem;
    justify-content: center;
}
/* Responsive Design */
@media (max-width: 1300px) {
    nav {
        padding: 0 1rem;
    }

    .nav-menu li a {
        font-size: 0.9rem;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .btn {
        font-size: 0.9rem;
        min-width: 120px;
    }

    .btn-link {
        min-width: 70px;
    }
}

@media (max-width: 1024px) {
    .nav-menu li a {
        font-size: 0.9rem;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    .nav-buttons .btn {
        font-size: 0.9rem;
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    header {
        position: static;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-menu li {
        margin: 0;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .nav-buttons .btn {
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text {
        order: -1;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-profile {
        flex: none;
        width: 100%;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .freelancers-section {
        padding: 2rem 1rem;
    }

    .freelancers-container {
        flex-direction: column;
        align-items: center;
    }

    .freelancer-card {
        width: 100%;
        max-width: 300px;
    }

    .freelancer-card-horizontal {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        max-width: 280px;
        min-width: 250px;
    }

    .freelancer-image-container {
        flex: none;
    }

    .freelancer-details {
        text-align: center;
    }

    .freelancers-container {
        padding: 0.5rem 0;
        gap: 1rem;
    }

    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    form {
        padding: 0;
        margin: 1rem;
    }

    button[style*="background-color"] {
        width: 100% !important;
        margin: 0.5rem 0 !important;
    }

    /* Application Details Responsive */
    .application-details-card {
        padding: 1.5rem;
    }

    .application-header h3 {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem;
    }

    .info-value {
        text-align: left;
        font-weight: 500;
    }

    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .action-form {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }

    .cta {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

/* Loading animation placeholder */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}


/* Sidebar Layout */
.company-layout, .freelancer-layout, .admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
   /*background: linear-gradient(135deg, #333333 0%, #2c2c2c 100%);*/
   background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 1.5rem 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    z-index: 999;
    overflow-y: auto;
    border-right: 1px solid rgba(32, 178, 170, 0.1);
}

.sidebar-user {
    text-align: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.sidebar-user p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.sidebar-user .username {
    color: #20B2AA;
    font-weight: 500;
    font-size: 1.1rem;
}

/* User avatar */

.sidebar h2 {
    color: #20B2AA;
    text-align: center;
    margin: 1rem 0 1.5rem;
    font-size: 1.4rem;
    padding: 0 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar ul {
    list-style: none;
    padding: 0 1rem;
}

.sidebar ul li {
    margin: 0.1rem 0;
    position: relative;
}


.sidebar ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.2rem 1rem 0.1rem 3.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 400;
    position: relative;
}

.sidebar ul li a span:first-child {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar ul li a:hover {
    background: transparent;
    color: #0075a5;
    transform: translateY(-1px);
    box-shadow: none;
}

.sidebar ul li a:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: #20B2AA;
}

.sidebar ul li a:hover span:first-child {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: #20B2AA;
}

.sidebar ul li a.active {
    background: linear-gradient(135deg, #20B2AA 0%, #1a9b8d 100%);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar ul li a.active::before {
    opacity: 1;
    transform: translateY(-50%);
    color: white;
}

.sidebar ul li a.active span:first-child {
    opacity: 1;
    transform: translateY(-50%);
    color: white;
}

/* Menu icons */
.sidebar .menu-dashboard::before {
    content: '📊';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-manage-projects::before,
.sidebar .menu-browse-projects::before {
    content: '🏗️';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-manage-training::before,
.sidebar .menu-browse-trainings::before,
.sidebar .menu-manage-trainings::before {
    content: '🎓';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-view-applications::before {
    content: '👁️';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-training-calendar::before {
    content: '📅';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-my-disputes::before,
.sidebar .menu-dispute-management::before {
    content: '⚠️';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-update-profile::before {
    content: '👤';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-my-applications::before {
    content: '📄';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-my-assignments::before {
    content: '✅';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-subscription-plans::before,
.sidebar .menu-manage-subscription-plans::before {
    content: '👑';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-analytics::before {
    content: '📈';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-system-settings::before {
    content: '⚙️';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-user-management::before {
    content: '👥';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-kyc-verification::before {
    content: '🆔';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-commission-management::before {
    content: '💰';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-payment-requests::before {
    content: '💰';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-fraud-detection::before {
    content: '🛡️';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-home::before {
    content: '🏠';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-login::before {
    content: '🔐';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.sidebar .menu-register::before {
    content: '📝';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.main-content {
    margin-left: 250px;
    flex: 1;
   
    max-width: calc(100% - 250px);
    position: relative;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #333;
    padding: 0 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
.page-title h2 {
    color: #0075a5;
    font-weight: 700;
    font-size: 1.8rem;
    text-decoration: none;
    margin: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    font-weight: 400;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f8f9fa;
}

.search-input:hover {
    color: #0075a5;
    transform: translateY(-1px);
}
    width: 100%;
    margin: 0 auto;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #333;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Profile Dropdown Styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.header-profile-pic {
    width: 32px;
    height: 32px;
    max-width: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    object-fit: cover;
}

.header-profile-pic:hover {
    border-color: #0075a5;
    transform: scale(1.05);
}

.header-profile-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-profile-placeholder:hover {
    border-color: #0075a5;
    transform: scale(1.05);
}

.profile-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 150px;
}

.profile-dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.profile-dropdown-menu a:hover {
    background: #f8f9fa;
    color: #0075a5;
}

.profile-dropdown-menu.show {
    display: block;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 0.5rem;
}

.notification-bell {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0075a5;
}

.notification-bell:hover {
    border-color: #0075a5;
    background: #e3f2fd;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.notification-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 50px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1001;
    min-width: 300px;
    max-width: 400px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown-menu.show {
    display: block;
}

.notification-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #0075a5;
}

.notification-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.notification-message {
    color: #666;
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-time {
    color: #999;
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

header {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        max-width: 100%;
        padding: 0 1rem 1rem 1rem;
    }

    .main-header {
        margin: -1rem -1rem 1.5rem -1rem;
        padding: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .main-content .dashboard,
    .main-content form {
        margin-top: 1rem;
    }

    footer {
        padding: 2rem 1rem;
    }
}
/* Skill Badges */
.skill-badge {
    display: inline-block;
    background: #f8f9fa;
    color: #333;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.25rem 0 0;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: #e9ecef;
    color: #333;
    transform: translateY(-1px);
}
/* Search Bar */
.search-form {
    flex: 1;
  /*  max-width: 400px;*/
    margin: 0;
}

.search-filter-form {
    display: flex;
    /*width: 100%;*/
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.search-filter-form input {
    width: auto !important;
}

.main-header .search-form,
nav .search-form {
    margin: 0;
    padding: 5px;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.skills-input {
    width: auto;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.skills-checkbox {
    /*width: auto;*/
    margin-right: 0.5rem;
}

.search-input:focus {
    border-color: #87CEEB;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.search-input::placeholder {
    color: #666;
}

/* Responsive Search */
@media (max-width: 768px) {
    .search-form {
        margin: 0 1rem;
        max-width: 250px;
    }

    .search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
/* Public Profile Page Styles */
.profile-hero {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%);
    color: #333;
    margin-bottom: 2rem;
    overflow: hidden;
    min-height: 300px;
}

.profile-hero-default .profile-image-default {
    position: static !important;
    margin: 0 auto 1rem !important;
}

.profile-hero-top-left .profile-image-top-left {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
}

.profile-hero-top-right .profile-image-top-right {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
}

.profile-hero-bottom-left .profile-image-bottom-left {
    position: absolute !important;
    bottom: 1rem !important;
    left: 1rem !important;
}

.profile-hero-bottom-right .profile-image-bottom-right {
    position: absolute !important;
    bottom: 1rem !important;
    right: 1rem !important;
}

.profile-hero .profile-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.profile-hero .profile-image .profile-image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1rem;
}

.profile-hero-top-left .profile-image-top-left,
.profile-hero-top-right .profile-image-top-right,
.profile-hero-bottom-left .profile-image-bottom-left,
.profile-hero-bottom-right .profile-image-bottom-right {
    width: 150px !important;
    height: 150px !important;
    margin-bottom: 0 !important;
}

.profile-hero-top-left .profile-image-top-left img,
.profile-hero-top-right .profile-image-top-right img,
.profile-hero-bottom-left .profile-image-bottom-left img,
.profile-hero-bottom-right .profile-image-bottom-right img {
    width: 150px !important;
    height: 150px !important;
}

.profile-hero-top-left .profile-image-top-left,
.profile-hero-top-right .profile-image-top-right,
.profile-hero-bottom-left .profile-image-bottom-left,
.profile-hero-bottom-right .profile-image-bottom-right {
    width: 150px !important;
    height: 150px !important;
    margin-bottom: 0 !important;
    border-radius: 50% !important;
   /* border: 5px solid white !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;*/
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #666 !important;
    font-size: 1rem !important;
}

.profile-hero-top-left .profile-image-top-left .profile-image-placeholder img,
.profile-hero-top-right .profile-image-top-right .profile-image-placeholder img,
.profile-hero-bottom-left .profile-image-bottom-left .profile-image-placeholder img,
.profile-hero-bottom-right .profile-image-bottom-right .profile-image-placeholder img {
    width: 150px !important;
    height: 150px !important;
}

.profile-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 700;
}

.profile-hero .username {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 0;
    font-weight: 400;
}

.profile-details {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-bio {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.profile-bio h2 {
    color: #076f8d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.profile-bio p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

.profile-info p {
    font-size: 1.1rem;
    color: #333;
    margin: 1rem 0;
}

.skills-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
}

.skills-section h2 {
    color: #076f8d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.profile-actions {
    text-align: center;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 2rem 1rem;
    }

    .profile-hero h1 {
        font-size: 2.5rem;
    }

    .profile-details {
        padding: 0 1rem;
        flex-direction: column;
        gap: 2rem;
    }

    .profile-bio, .skills-section {
        padding: 2rem 1.5rem;
        min-width: auto;
    }

    .profile-hero-top-left .profile-image-top-left,
    .profile-hero-top-right .profile-image-top-right,
    .profile-hero-bottom-left .profile-image-bottom-left,
    .profile-hero-bottom-right .profile-image-bottom-right {
        position: static;
        margin: 0 auto 1rem;
    }

    .profile-hero-top-left .profile-image-top-left img,
    .profile-hero-top-right .profile-image-top-right img,
    .profile-hero-bottom-left .profile-image-bottom-left img,
    .profile-hero-bottom-right .profile-image-bottom-right img {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }

    .profile-hero-top-left .profile-image-top-left .profile-image-placeholder,
    .profile-hero-top-right .profile-image-top-right .profile-image-placeholder,
    .profile-hero-bottom-left .profile-image-bottom-left .profile-image-placeholder,
    .profile-hero-bottom-right .profile-image-bottom-right .profile-image-placeholder {
        width: 200px;
        height: 200px;
        margin-bottom: 1rem;
    }
}
/* View Project Cards Layout */
.project-cards {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.project-cards .card:first-child {
    flex: 1;
    max-width: 100%;
}

.project-cards .card:last-child {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 200px;
}

@media (max-width: 768px) {
    .project-cards {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .project-cards .card {
        flex: 0 0 auto;
        min-width: auto;
        max-width: none;
    }
}

/* Profile Completeness Card */
.profile-completeness-card {
    text-align: center;
    max-width: 250px;
}

.profile-completeness-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.profile-completeness-card .progress-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    width: 100%;
   /* margin: 1rem 0;*/
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.profile-completeness-card .progress-fill {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.profile-completeness-card .completeness-text {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    /* margin-bottom: 1rem;*/
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

.profile-completeness-card .cta {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    display: block;
    margin: 0 auto;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
    white-space: nowrap !important;
}

.profile-completeness-card .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4) !important;
}

/* Profile and KYC Cards Wrapper */
.profile-kyc-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Profile Completeness Card */
.profile-completeness-card {
    text-align: center;
    padding: 15px;
    max-width: 250px;
    flex: 1;
    min-width: 200px;
}

/* KYC Card */
.kyc-card {
    text-align: center;
    max-width: 250px;
    flex: 1;
    min-width: 200px;
}

.kyc-card h3 {
    color: #FF9800;
    margin-bottom: 1rem;
}

.kyc-card .kyc-status {
    margin-bottom: 1rem;
}

.kyc-card .kyc-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.kyc-card .cta {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
    white-space: nowrap !important;
}

.kyc-card .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4) !important;
}

.kyc-card .status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-completeness-card, .kyc-card {
        max-width: 100%;
    }
}
/* Earnings Card Styles */
.earnings-card {
    max-width: 200px;
    text-align: center;
}

.earnings-card h3 {
    color: #0075a5;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.earnings-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.earnings-card th {
    background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 500;
}

.earnings-card td {
    padding: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.earnings-card tr:last-child td {
    border-bottom: none;
}

.earnings-card .earnings-amount {
    text-align: right;
    font-weight: bold;
    color: #28a745;
}

.earnings-card .no-earnings {
    color: #6c757d;
    font-style: italic;
    padding: 1rem;
}

/* Responsive for small screens */
@media (max-width: 768px) {
    .earnings-card table {
        font-size: 0.8em;
    }
    
    .earnings-card th,
    .earnings-card td {
        padding: 0.4rem 0.3rem;
    }
}
.earnings-card {
    grid-column: 1 / -1;
    max-width: none;
}
.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard .earnings-card {
    margin-top: 1rem;
}
/* Dashboard Stats Row */
.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard .earnings-card {
    margin-top: 1rem;
}
.company-layout .dashboard .card {
   /* max-width: 400px;*/
}
.company-layout .dashboard {
    gap: 0.25rem;
    margin-top: 1rem;
}

.dashboard-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-rows .card {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-rows .card .card-image {
    flex: 0 0 150px;
    text-align: center;
}

.dashboard-rows .card .card-content {
    flex: 1;
}

.company-layout .dashboard-rows .card {
    display: flex;
    flex-direction: column;
}

.dashboard-chart-row {
    display: block;
    margin-top: 2rem;
    width: 100%;
    padding: 0 0 2rem 0;
}

.dashboard-chart-row .card {
    padding: 1.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
}

.dashboard-chart-row canvas {
    max-height: 300px;
}
/* Monthly User Registrations Card - Full Width */
.monthly-user-registrations {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    width: 100%;
    grid-column: 1 / -1;
    max-width: none;
    animation: fadeIn 0.6s ease-out;
}

.monthly-user-registrations::before {
    content: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%);
}

.monthly-user-registrations:hover {
    transform: translateY(-5px);
}

.monthly-user-registrations h3 {
    color: #076f8d;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
}

.monthly-user-registrations p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.status-paid {
    color: #28a745;
    font-weight: bold;
}
/* Grid span utilities */
.span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .span-2 {
        grid-column: span 1;
    }
}

/* Project View Cards - Two Column Layout */
.project-content {
    margin-top: 1rem;
}

.project-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-overview-card {
    background: #fff;
    border-radius: 0;
    padding: 1.4rem;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.project-overview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.project-overview-card::before {
    content: none;
}

.project-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.project-overview-card .project-header {
    border-bottom: none;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

.project-header h2 {
    color: #333;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.company-name {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.project-description {
    margin-top: 1rem;
    line-height: 1.6;
    color: #555;
    font-size: 1rem;
}

.project-description h3 {
    color: #076f8d;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-details-card {
    background: #fff;
    border-radius: 0;
    padding: 1.4rem;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.project-details-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.project-details-card::before {
    content: none;
}

.project-details-card h3 {
    color: #076f8d;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.project-details-card h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #ffffff;
}

.detail-item:last-child {
    margin-bottom: 1.5rem;
}

.detail-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%);
    border-radius: 8px;
    flex-shrink: 0;
}

.detail-content h4 {
    color: #333;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content .budget-amount {
    color: #28a745;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.detail-content .deadline-date {
    color: #0075a5;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.skills-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.skills-section h4 {
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-list {
    display: flex;
  
    justify-content: flex-start;
    gap: 0.25rem;
}

.action-card {
    background: #fff;
    border-radius: 0;
    padding: 1.4rem;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.action-card::before {
    content: none;
}

.action-card h3 {
    color: #0075a5;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.action-card p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.login-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.login-text a {
    color: #0075a5;
    text-decoration: none;
    font-weight: 500;
}

.login-text a:hover {
    text-decoration: underline;
}

/* Responsive Design for Two-Column Project Cards */
@media (max-width: 1024px) {
    .project-content {
        flex-direction: column;
        gap: 2rem;
    }

    .project-main, .project-sidebar {
        flex: none;
        width: 100%;
    }

    .project-sidebar {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .project-header h2 {
        font-size: 1.8rem;
    }

    .project-description h3 {
        font-size: 1.5rem;
    }

    .project-description p {
        font-size: 1rem;
    }

    .project-details-card {
        padding: 1.5rem;
    }

    .project-details-card h3 {
        font-size: 1.4rem;
    }

    .detail-item {
        padding: 0.75rem;
    }

    .detail-icon {
        font-size: 1.2rem;
        width: 35px;
        height: 35px;
    }

    .detail-content .budget-amount {
        font-size: 1.2rem;
    }

    .detail-content .deadline-date {
        font-size: 1rem;
    }

    .action-card {
        padding: 1.5rem;
    }

    .action-card h3 {
        font-size: 1.3rem;
    }

    .action-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .project-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .project-header h2 {
        font-size: 1.5rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .detail-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .detail-icon {
        align-self: center;
    }

    .project-sidebar {
        max-width: none;
    }
}

.profile-placeholder {
    font-size: 3rem;
    margin: 0 auto 0.5rem;
    text-align: center;
    opacity: 0.8;
    display: block;
}

/* Profile picture in sidebar */
.profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(32, 178, 170, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 0 auto 0.5rem;
    display: block;
    transition: all 0.3s ease;
}

.profile-pic:hover {
    border-color: #20B2AA;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(32, 178, 170, 0.3);
}

/* Vertical Tabs for update profile */
.vertical-tabs {
    display: flex;
    gap: 0;
    margin-top: 1rem;
}

.tab-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    width: 200px;
    border-right: 2px solid #e9ecef;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 8px 0 0 8px;
}

.tab-nav li {
    margin: 0;
    width: 100%;
}

.tab-link {
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #666;
    border-bottom: none;
    border-right: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
    width: 100%;
}

.tab-link.active {
    color: #076f8d;
    border-right-color: #076f8d;
    background: #f8f9fa;
    font-weight: 500;
}

.tab-link:hover {
    color: #076f8d;
    background: #f8f9fa;
}

.tab-contents {
    flex: 1;
    padding-left: 2rem;
    background: white;
    border-radius: 0 8px 8px 0;
    padding: 1.5rem;
    box-shadow: -4px 0 10px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive for vertical tabs */
@media (max-width: 768px) {
    .vertical-tabs {
        flex-direction: column;
    }
    
    .tab-nav {
        flex-direction: row;
        width: auto;
        border-right: none;
        border-bottom: 2px solid #e9ecef;
        border-radius: 8px 8px 0 0;
    }
    
    .tab-nav li {
        margin: 0 0 0 1rem;
    }
    
    .tab-link {
        border-right: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1rem;
        border-radius: 8px 8px 0 0;
    }
    
    .tab-link.active {
        border-bottom-color: #076f8d;
        border-right-color: transparent;
    }
    
    .tab-contents {
        padding-left: 0;
        padding: 1.5rem;
        border-radius: 0 0 8px 8px;
        box-shadow: none;
    }
}
/* Star Rating */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  font-size: 2rem;
  line-height: 2.5rem;
  margin-bottom: 1rem;
}
.star-rating input {
  display: none;
}
.star-rating label {
  color: #ddd;
  cursor: pointer;
  margin: 0 0.1rem;
  transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f5b301;
}
/* Average Rating Stars */
.star-display {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1.5rem;
}

.star-display .star {
  color: #ddd;
  margin: 0 0.1rem;
  transition: color 0.2s;
}

.star-display .star.filled {
  color: #f5b301;
}

.star-display .star.half {
  color: #f5b301;
  text-shadow: 0 0 0.5px #ddd;
  position: relative;
}

.star-display .star.half::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 50%;
  background: #ddd;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.star-display .rating-text {
   margin-left: 1rem;
   font-size: 1rem;
   color: #666;
   font-weight: 500;
}

.star-icon {
   color: yellow;
}
.project-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.main-column {
    flex: 1;
    min-width: 0;
}

.sidebar-column {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: fit-content;
    min-width: 250px;
}

@media (max-width: 1024px) {
    .project-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .main-column, .sidebar-column {
        flex: none;
        width: 100%;
    }
}
/* Updated Profile Details Layout */
.profile-details {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.profile-bio {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    flex: 7;
    min-width: 400px;
}

.skills-section {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    flex: 2;
    min-width: 250px;
}

@media (max-width: 1024px) {
    .profile-details {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .profile-bio, .skills-section {
        flex: none;
        width: 100%;
        min-width: auto;
    }
}
.privacy-label {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.95rem;
    color: #666;
}

.privacy-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
    margin-bottom: 0;
}

.privacy-label strong {
    color: #333;
    margin-left: 0.25rem;
}

/* Skills Grid Section */
.skills-section {
    background: #fff;
    padding: 3rem 2rem;
}

.skills-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.skills-container h2 {
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.skills-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.technologies-section {
    
    padding: 0.5rem 2rem;
}

.technologies-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-left {
    flex: 0 0 40%;
    max-width: 40%;
}

.technologies-header {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Clients section specific layout */
#clients-section .technologies-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

#clients-section .clients-left {
    flex: none;
    max-width: none;
    width: 100%;
}

#clients-section .technologies-header {
    flex: none;
    order: -1; /* Move header above carousel */
}

.technologies-header h2 {
    margin: 0 0 0.5rem 0;
    color: #076f8d;
    font-size: 2.5rem;
    font-weight: 500;
}

.technologies-header .technologies-subtitle {
    margin: 0;
    font-size: 1rem;
    color: #666;
    line-height: 1.4;
}

.technologies-carousel {
    flex: 1;
    position: relative;
    height: 120px; /* Reduced height to fit content better */
    margin: 0rem auto 0;
}

.tech-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.tech-group.active {
    opacity: 1;
}

.skill-card {
    background: #fff;
    border-radius: 0;
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

/* Removed the upper thick line from skill cards */

.skill-card:hover {
    background: linear-gradient(135deg, #005a85 0%, #0075a5 100%);
    color: #fff;
    transform: translateY(-2px);
    border-color: #0075a5;
    box-shadow: 0 6px 20px rgba(0, 117, 165, 0.4);
}

.skill-card:hover::before {
    background: linear-gradient(135deg, #204ECF 0%, #1a3ba8 100%);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    color: #fff;
}

.skill-card h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.skill-card:hover h3 {
    color: #fff;
}

.skill-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
    transition: all 0.3s ease;
}

.skill-card:hover p {
    color: #fff;
}

/* Technologies Card Styles - matching Skills Grid */
.tech-card {
   /* background: #fff;*/
    border-radius: 0;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
   /* border: 2px solid #e9ecef;*/
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: #204ECF;
}

.tech-card img {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.tech-card:hover img {
    transform: scale(1.1);
}

/* Clients Container Wrapper */
.clients-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Scroll Arrows */
.scroll-arrow {
    background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 117, 165, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.scroll-arrow:hover {
    background: linear-gradient(135deg, #005a85 0%, #0075a5 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 117, 165, 0.4);
}

.left-arrow {
    left: -20px;
}

.right-arrow {
    right: -20px;
}

/* Clients Container - Horizontal Scrolling */
.clients-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1rem 0;
    max-width: 100%;
    margin: 0 auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.clients-container::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Client Card Styles - for horizontal scrolling */
.client-card {
    background: #fff;
    border-radius: 0;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    min-width: 120px;
    flex-shrink: 0;
}

.client-card:hover {
    transform: translateY(-5px);
    border-color: #204ECF;
}

.client-card img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    display: block;
    transition: all 0.3s ease;
}

.client-card:hover img {
    transform: scale(1.1);
}

/* Responsive Design for Skills Grid */
@media (max-width: 1200px) {
    .skills-grid {
        gap: 1.2rem;
    }

    .skill-card {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.2rem;
    }

    .skill-card {
        padding: 1.4rem 1rem;
    }

    .skill-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .skills-section {
        padding: 2.5rem 1rem;
    }

    .skills-container h2 {
        font-size: 1.9rem;
    }

    .skills-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .skill-card {
        padding: 1.3rem 0.9rem;
    }

    .skill-icon {
        font-size: 2rem;
        margin-bottom: 0.7rem;
    }

    .skill-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.7rem;
    }

    .skill-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Horizontal Tabs */
.tab-nav-horizontal {
    display: flex;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-link-horizontal {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    text-align: center;
    box-shadow: none;
}

.tab-link-horizontal:hover {
    color: #000000;
    /*background: linear-gradient(135deg, #076f8d 0%, #0099cc 100%);*/
    background: linear-gradient(00deg, #ff9f0b 0%, #f5c314 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 111, 141, 0.3);
    border-radius: 0px;

}

.tab-link-horizontal.active {
    color: #fff;
    background: linear-gradient(135deg, #124958 0%, #076f8d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 73, 88, 0.4);
    border-radius: 0px;
}

.tab-content-horizontal {
    display: none;
    padding-left: 10px;
}

.tab-content-horizontal.active {
    display: block;
}

.applications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-left: 10px;
}

.applications-grid .card {
    width: 400px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .applications-grid {
        justify-content: center;
    }

    .applications-grid .card {
        width: 100%;
        max-width: 400px;
    }
}

/* Combined Cards Section */
.combined-cards-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.combined-cards-container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Certifications Section */
.certifications-section {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
}

.certifications-section .card {
    padding: 2rem;
    height: 100%;
}

.certifications-section h2 {
    color: #076f8d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    position: relative;
}

.certifications-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.certifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.certification-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.certification-card::before {
    content: '🏆';
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.certification-card h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    padding-right: 1.8rem;
}

.certification-card p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.certification-card p strong {
    color: #333;
    font-weight: 600;
}

.certification-card a {
    color: #0075a5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.certification-card a:hover {
    color: #005a85;
    text-decoration: underline;
}

/* Educational Qualifications Section */
.educational-qualifications-section {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
}

.educational-qualifications-section .card {
    padding: 2rem;
    height: 100%;
}

.educational-qualifications-section h2 {
    color: #076f8d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    position: relative;
}

.educational-qualifications-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.educational-qualifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.subcard {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.subcard::before {
    content: '🎓';
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 1.2rem;
    opacity: 0.7;
}

.subcard h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    padding-right: 1.8rem;
}

.subcard p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.subcard p strong {
    color: #333;
    font-weight: 600;
}

/* Social Profiles Card */
.social-profiles-card {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
}

.social-profiles-card .card {
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.social-profiles-card h2 {
    color: #076f8d;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
}

.social-profiles-card h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    min-width: 120px;
    height: 40px;
    box-sizing: border-box;
    margin: 0 0.25rem;
    background: linear-gradient(00deg, #124958 0%, #076f8d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 117, 165, 0.3);
    white-space: nowrap;
}

.social-link:hover {
    background: linear-gradient(135deg, #005a85 0%, #0075a5 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 117, 165, 0.4);
    text-decoration: none;
}

/* Responsive for combined cards */
@media (max-width: 1024px) {
    .combined-cards-container {
        flex-direction: column;
        gap: 2rem;
    }

    .certifications-section,
    .educational-qualifications-section,
    .social-profiles-card {
        min-width: auto;
        max-width: none;
        flex: none;
    }
}

@media (max-width: 768px) {
    .combined-cards-section {
        padding: 0 1rem;
    }

    .combined-cards-container {
        gap: 1.5rem;
    }

    .certifications-section .card,
    .educational-qualifications-section .card,
    .social-profiles-card .card {
        padding: 1.5rem;
    }

    .certifications-section h2,
    .educational-qualifications-section h2,
    .social-profiles-card h2 {
        font-size: 1.8rem;
    }

    .certifications-list,
    .educational-qualifications-list {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .certification-card,
    .subcard {
        padding: 1rem;
    }

    .certification-card h3,
    .subcard h3 {
        font-size: 1rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .social-profiles-card {
        padding: 0 1rem;
    }

    .social-profiles-card .card {
        padding: 1.5rem;
    }

    .social-profiles-card h2 {
        font-size: 1.8rem;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}
    
    /* Projects Section */
    .projects-section {
        background: #fff;
        padding: 2rem 2rem;
    }
    
    .projects-container {
        max-width: 1200px;
        margin: 0 auto;
        text-align: center;
    }
    
    .projects-container h2 {
        color: #333;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .projects-subtitle {
        font-size: 1.2rem;
        color: #666;
        margin-bottom: 3rem;
        line-height: 1.6;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin-bottom: 3rem;
        margin:10px;
    }
    
    .project-card {
        background: #fff;
        border-radius: 0;
        padding: 1.4rem;
        text-align: left;
        transition: all 0.3s ease;
        border: 2px solid #e9ecef;
        position: relative;
        overflow: hidden;
        /*box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
    }
    
    .project-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        border-color: #87CEEB;
    }
    
    .project-card h3 {
        color: #333;
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .project-meta {
        margin-bottom: 1rem;
    }
    
    .company-name {
        color: #333;
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 1rem;
        display: block;
    }
    
    .price-date-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .status-created-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .budget-amount {
        color: #28a745;
        font-weight: 700;
        font-size: 1.2rem;
        background: none;
        border: none;
        padding: 0;
    }
    
    .deadline-date {
        color: #0075a5;
        font-weight: 600;
        font-size: 1rem;
        background: none;
        border: none;
        padding: 0;
        text-align: right;
    }
    
    .project-skills {
        margin-bottom: 1rem;
    }
    
    .project-skills p {
        color: #666;
        font-size: 1rem;
        margin-bottom: 0.8rem;
        font-weight: 500;
    }
    
    .skills-list {
        display: flex;
        
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    .no-skills {
        color: #999;
        font-style: italic;
        font-size: 0.9rem;
    }
    
    .project-description {
        color: #666;
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .btn-project {
        display: block;
        background: linear-gradient(135deg, #0075a5 0%, #0099cc 100%);
        color: #fff;
        padding: 0.8rem 2rem;
        text-decoration: none;
        border-radius: 5px;
        font-size: 1rem;
        font-weight: 500;
        transition: all 0.3s ease;
        border: none;
        cursor: pointer;
        margin: 1rem 0 0 auto;
        width: fit-content;
        box-shadow: 0 4px 15px rgba(0, 117, 165, 0.3);
        text-align: center;
    }
    
    .btn-project:hover {
        background: linear-gradient(135deg, #005a85 0%, #0075a5 100%);
        color: #fff;
        transform: translateY(-2px);
        text-decoration: none;
        box-shadow: 0 6px 20px rgba(0, 117, 165, 0.4);
        margin: 1rem 0 0 auto;
    }
    
    .projects-actions {
        text-align: center;
        margin-top: 2rem;
    }
    
    .no-projects {
        text-align: center;
        color: #666;
        font-size: 1.1rem;
        grid-column: 1 / -1;
        padding: 2rem;
    }
    
    /* Responsive Design for Projects */
    @media (min-width: 1200px) {
        .projects-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 1024px) {
        .projects-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
    
        .project-card {
            padding: 1.2rem;
        }
    }
    
    @media (max-width: 768px) {
        .projects-section {
            padding: 1.5rem 1rem;
        }
    
        .projects-container h2 {
            font-size: 2rem;
        }
    
        .projects-subtitle {
            font-size: 1.1rem;
            margin-bottom: 2rem;
        }
    
        .projects-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    
        .project-card {
            padding: 1.1rem 0.9rem;
        }
    
        .project-card h3 {
            font-size: 1.3rem;
            margin-bottom: 0.8rem;
        }
    
        .company-name {
            font-size: 0.95rem;
            margin-bottom: 0.8rem;
        }
    
        .price-date-row {
            gap: 0.8rem;
        }
    
        .budget-amount {
            font-size: 1.1rem;
        }
    
        .deadline-date {
            font-size: 0.95rem;
            text-align: right;
        }
    
        .project-description {
            font-size: 0.95rem;
            margin-bottom: 1.5rem;
        }
    
        .btn-project {
            padding: 0.7rem 1.8rem;
            font-size: 0.95rem;
        }
    }
    
    @media (max-width: 480px) {
        .projects-section {
            padding: 1rem 1rem;
        }
    
        .projects-container h2 {
            font-size: 1.8rem;
        }
    
        .projects-subtitle {
            font-size: 1rem;
        }
    
        .project-card {
            padding: 0.9rem 0.6rem;
        }
    
        .project-card h3 {
            font-size: 1.2rem;
            margin-bottom: 0.7rem;
        }
    
        .company-name {
            font-size: 0.9rem;
            margin-bottom: 0.7rem;
        }
    
        .price-date-row {
            gap: 0.6rem;
        }
    
        .budget-amount {
            font-size: 1rem;
        }
    
        .deadline-date {
            font-size: 0.9rem;
            text-align: right;
        }
    
        .project-description {
            font-size: 0.9rem;
            margin-bottom: 1.2rem;
        }
    
        .btn-project {
            padding: 0.6rem 1.5rem;
            font-size: 0.9rem;
        }
    
        .skills-list {
            gap: 0.3rem;
        }
    }

@media (max-width: 480px) {
    .skills-section {
        padding: 2rem 1rem;
    }

    .skills-container h2 {
        font-size: 1.7rem;
    }

    .skills-subtitle {
        font-size: 0.95rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.2rem 0.8rem;
    }

    .skill-icon {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }

    .skill-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .skill-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
}

/* Our Clients Section Specific Styling */
.clients-section {
    background: white;
   
    padding: 4rem 2rem;
}

/* Responsive Design for Technologies Carousel */
@media (max-width: 1200px) {
    .technologies-container {
        gap: 1.5rem;
    }

    .tech-group.active {
        gap: 1.2rem;
    }

    .tech-card {
        padding: 1.5rem 1.2rem;
    }
}

@media (max-width: 1024px) {
    .technologies-container {
        gap: 1rem;
    }

    .tech-group.active {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }

    .tech-card {
        padding: 2.4rem 2rem;
    }

    .tech-card img {
        width: 5.5rem;
        height: 5.5rem;
        margin-bottom: 0.8rem;
        max-height: 180px;
    }
}

@media (max-width: 768px) {
    .technologies-section {
        padding: 2.5rem 1rem;
    }

    .technologies-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .clients-left {
        max-width: none;
    }

    .technologies-header {
        flex: none;
    }

    .technologies-header h2 {
        font-size: 1.9rem;
    }

    .technologies-header .technologies-subtitle {
        font-size: 0.95rem;
    }

    .tech-group.active {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .tech-card {
        padding: 2.3rem 1.9rem;
    }

    .tech-card img {
        width: 5rem;
        height: 5rem;
        margin-bottom: 0.7rem;
        max-height: 170px;
    }
}

@media (max-width: 480px) {
    .technologies-section {
        padding: 2rem 1rem;
    }

    .technologies-header h2 {
        font-size: 1.7rem;
    }

    .technologies-header .technologies-subtitle {
        font-size: 0.9rem;
    }

    .tech-group.active {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .tech-card {
        padding: 2.2rem 1.8rem;
    }

    .tech-card img {
        width: 4.5rem;
        height: 4.5rem;
        margin-bottom: 0.6rem;
        max-height: 160px;
    }
}
/* Timeline Section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.timeline-card {
    background: #f8f9fa !important;
    border-radius: 10px !important;
    padding: 2rem 1.5rem !important;
    text-align: left !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.timeline-card:hover {
    transform: translateY(-5px);
    border-color: #204ECF;
}

.timeline-card h2 {
    color: #076f8d;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-card h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #87CEEB 0%, #ADD8E6 100%);
    margin: 0.5rem 0;
    border-radius: 2px;
}

.timeline-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive for Timeline */
@media (max-width: 768px) {
    .timeline {
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .timeline-card {
        padding: 1.5rem 1rem;
    }

    .timeline-card h2 {
        font-size: 1.5rem;
    }

    .timeline-card p {
        font-size: 0.95rem;
    }
}

/* Responsive for Clients Arrows */
@media (max-width: 768px) {
    .scroll-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .left-arrow {
        left: -15px;
    }

    .right-arrow {
        right: -15px;
    }
}

/* Project Card Grid Layout */
.card-grid {
    display: grid;
    grid-template-columns: 150px 1fr 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.5rem;
    margin-top: 1rem;
    align-items: start;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 0px;
    width: 100%;
}

.profile-pic {
    grid-column: 1;
    grid-row: 1 / span 2;
    text-align: center;
   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.status {
    grid-column: 2;
    grid-row: 1;
    padding: 0.5rem;
}

.amount {
    grid-column: 3;
    grid-row: 1;
    padding: 0.5rem;
}

.deadline {
    grid-column: 4;
    grid-row: 1;
    padding: 0.5rem;
}

.description {
    grid-column: 2 / span 3;
    grid-row: 2;
    padding: 0.5rem;
}

.experience {
    grid-column: 2;
    grid-row: 3;
    padding: 0.5rem;
}

.payment-status {
    grid-column: 2;
    grid-row: 4;
    padding: 0.5rem;
}

.assignment-status {
    grid-column: 4;
    grid-row: 4;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0.25rem;
    }

    .profile-pic {
        grid-column: 1;
        grid-row: 1;
    }

    .status, .amount, .deadline, .description, .experience, .payment-status, .assignment-status {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Training Card Responsive Design */
@media (max-width: 768px) {
    .dashboard-rows .card > div[style*="display: flex; gap: 1rem; align-items: flex-start;"] {
        flex-direction: column;
        gap: 1rem;
    }

    .dashboard-rows .card > div[style*="display: flex; gap: 1rem; align-items: flex-start;"] > div:first-child {
        width: 100% !important;
        text-align: center;
    }

    .dashboard-rows .card > div[style*="display: flex; gap: 1rem; align-items: flex-start;"] > div:last-child > div[style*="display: grid; grid-template-columns: repeat(3, 1fr);"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dashboard-rows .card > div[style*="display: flex; gap: 1rem; align-items: flex-start;"] > div:last-child > div[style*="grid-column: span 3;"] {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .dashboard-rows .card > div[style*="display: flex; gap: 1rem; align-items: flex-start;"] > div:last-child > div[style*="display: grid; grid-template-columns: repeat(3, 1fr);"] {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .dashboard-rows .card > div[style*="display: flex; gap: 1rem; align-items: flex-start;"] > div:last-child > div[style*="grid-column: span 3;"] {
        grid-column: span 1;
    }
}

/* Trainings and Projects Section */
.trainings-projects-section {
    background: #fff;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.tp-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}

.tp-column {
    flex: 1;
    min-width: 300px;
    min-height: 250px;
    background: #f8f9fa;
    padding: 2rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.tp-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #87CEEB;
}

.tp-column h2 {
    color: #076f8d;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tp-column p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}


/* Responsive for Trainings and Projects Section */
@media (max-width: 768px) {
    .trainings-projects-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .tp-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .tp-column {
        min-width: auto;
        padding: 1.5rem;
    }

    .tp-column h2 {
        font-size: 1.8rem;
    }

    .tp-column p {
        font-size: 0.95rem;
    }

}
.application-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.application-row .left {
    flex: 0 0 80px;
    text-align: center;
}

.application-row .right {
    flex: 1;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}
.profile-pic-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.5rem;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Terms Agreement Checkbox Styling */
.terms-agreement {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.terms-agreement input[type="checkbox"] {
    margin: 0;
    padding: 0;
    width: auto;
}

/* Enhanced Modal Styles for Educational Qualification */
#education-modal .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid #e9ecef;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

#education-modal .modal-content h3 {
    color: #076f8d;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #87CEEB;
    padding-bottom: 0.5rem;
}

#education-modal .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

#education-modal .close:hover {
    color: #076f8d;
}

#education-modal input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#education-modal input:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

#education-modal .btn {
    min-width: 100px;
}
/* Public View Freelancers Page Styles */
.main-with-sidebar {
    display: flex;
    width: 100%;
    padding: 10px;
}

.filter-sidebar {
    width: 250px;
    padding: 15px;
    background-color: #f8f9fa;
    border-right: 1px solid #ddd;
    margin-right: 15px;
}

.filter-sidebar h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.filter-group input[type="checkbox"] {
    margin-right: 5px;
}

.freelancers-section {
    flex: 1;
    padding: 0px;
    margin-top: -55px;
}

.freelancers-section h2 {
    text-align: left;
}

.freelancers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 15px;
}

.freelancer-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0px;
    position: relative;
}

.freelancer-image {
    width: 100%;
   /* height: 150px;*/
    object-fit: cover;
}

.freelancer-image-placeholder {
    width: 100%;
    height: 150px;
    background-color: #87CEEB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 2em;
}

.freelancer-content {
    padding: 15px;
    padding-bottom: 60px;
}

.freelancer-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.freelancer-username {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.freelancer-rating {
    margin-bottom: 10px;
}

.freelancer-bio {
    flex-grow: 1;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.freelancer-skills {
    margin-bottom: 10px;
}

.skills-list {
    display: flex;
   
    gap: 5px;
}

.freelancer-location {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.kyc-verified {
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 0.8em;
    margin-left: 5px;
}