:root {
    --royal-blue: #1a1e45; /* Deep Royal Blue from sample */
    --royal-light: #262c5e;
    --salmon: #ff6b6b;     /* The pinkish/red button color from sample */
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Navigation */
.navbar {
    background: var(--royal-blue);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-menu a:hover { color: var(--salmon); }

.nav-btn {
    border: 1px solid var(--white);
    padding: 8px 20px;
    border-radius: 20px;
}

.nav-btn:hover {
    background: var(--white);
    color: var(--royal-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
}

/* Hero Section */
.hero {
    background: var(--royal-blue);
    padding: 80px 0 100px 0;
    color: var(--white);
    position: relative;
}

/* Skewed Bottom edge for modern look */
.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-form {
    background: var(--white);
    padding: 5px;
    border-radius: 50px;
    display: flex;
    max-width: 450px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-form input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    border-radius: 50px 0 0 50px;
    outline: none;
}

.hero-form button {
    background: var(--salmon);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-form button:hover {
    transform: scale(1.05);
}

.hero-image {
    position: relative;
    text-align: center;
}

.floating-img {
    width: 100%;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
}

/* Decorative Cards on Hero Image */
.float-card {
    position: absolute;
    background: var(--white);
    color: var(--text-dark);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    z-index: 2;
}

.card-1 { top: 20%; left: 0; animation: float 5s ease-in-out infinite; }
.card-2 { bottom: 20%; right: 0; animation: float 7s ease-in-out infinite; }

.float-card i { color: var(--salmon); font-size: 1.2rem; }

/* Trusted Brands */
.brands-strip {
    padding: 80px 0 40px 0; /* Extra top padding to clear skew */
    text-align: center;
}

.brand-icon {
    font-size: 2rem;
    color: #cbd5e1;
    margin: 0 20px;
}

/* Sections */
.section-white { padding: 80px 0; background: var(--white); }
.section-blue { padding: 80px 0; background: var(--royal-blue); color: var(--white); }

.section-header { margin-bottom: 60px; }
.accent-text { color: var(--salmon); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.section-header h2 { font-size: 2.5rem; color: var(--text-dark); margin-bottom: 15px; }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--royal-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.feature-card p { color: #666; line-height: 1.6; }

/* Split Grid (Deep Dive) */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.content-side h2 { font-size: 2.5rem; margin-bottom: 20px; }
.check-list li { margin-bottom: 15px; font-size: 1.1rem; }
.check-list i { color: var(--salmon); margin-right: 10px; }
.image-side img { width: 100%; border-radius: 20px; }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--salmon);
    color: var(--salmon);
    padding: 12px 30px;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 600;
}
.btn-outline:hover { background: var(--salmon); color: var(--white); }

/* Stats & Widgets */
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.stat-box { text-align: center; padding: 20px; }
.stat-box h3 { font-size: 3rem; color: var(--royal-blue); font-weight: 800; }
.stat-box p { color: #666; }

.widget-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.widget-card {
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.widget-card .tag {
    background: var(--salmon);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
}

.widget-card h4 { margin: 15px 0 10px 0; font-size: 1.2rem; }
.widget-card a { color: var(--royal-blue); font-weight: 600; font-size: 0.9rem; }

/* CTA Section */
.cta-section {
    background: var(--royal-light);
    padding: 80px 0;
    color: var(--white);
}

.btn-salmon {
    background: var(--salmon);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Footer */
footer {
    background: #0f122b;
    padding: 60px 0 20px 0;
    color: #a0a0a0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 { color: var(--white); margin-bottom: 20px; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; }
.footer-col a { display: block; margin-bottom: 10px; transition: var(--transition); }
.footer-col a:hover { color: var(--salmon); padding-left: 5px; }

.copyright {
    text-align: center;
    border-top: 1px solid #262c5e;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-grid, .split-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-form { flex-direction: column; background: transparent; box-shadow: none; }
    .hero-form input { border-radius: 50px; margin-bottom: 10px; width: 100%; }
    .hero-form button { width: 100%; }
    
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--royal-blue);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .nav-menu.active { display: flex; }
    
    /* Hide floating cards on small mobile to avoid clutter */
    .float-card { display: none; }
}

/* --- Tool Page Specific Styles --- */

/* Page Headers */
.page-header {
    background: var(--royal-blue);
    padding: 120px 0 80px 0; /* Space for fixed navbar */
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-header h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header p { color: #cbd5e1; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Forms & Tools Container */
.tool-container {
    max-width: 800px;
    margin: -50px auto 50px auto; /* Overlap effect */
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--royal-blue); }
.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}
.form-input:focus { border-color: var(--salmon); outline: none; }
textarea.form-input { resize: vertical; min-height: 120px; }

/* Resume Split Layout */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: -50px auto 50px auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.resume-editor { background: var(--white); padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.resume-preview { 
    background: white; 
    padding: 40px; 
    min-height: 600px; 
    border: 1px solid #ddd; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    /* Paper look */
}

/* Job Cards (Find & Explore) */
.job-search-bar {
    display: flex;
    gap: 10px;
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}
.job-search-bar input { border: none; flex: 1; padding: 10px 20px; outline: none; }
.job-search-bar button { padding: 12px 30px; border-radius: 40px; }

.job-list { display: grid; gap: 20px; }
.job-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.job-card:hover { border-color: var(--salmon); transform: translateX(5px); }

.job-info h3 { font-size: 1.2rem; color: var(--royal-blue); margin-bottom: 5px; }
.job-info p { color: #666; font-size: 0.9rem; }
.job-tags span {
    background: #f0f4ff; color: var(--royal-blue);
    padding: 4px 10px; border-radius: 5px; font-size: 0.8rem; margin-right: 5px;
}
.tag-visa { background: #dcfce7 !important; color: #166534 !important; }

/* Company Directory (Explore) */
.company-card {
    display: flex; gap: 20px; align-items: start;
    background: var(--white); padding: 25px; border-radius: 15px; border: 1px solid #eee;
}
.co-logo {
    width: 60px; height: 60px; background: #f8f9fa; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--royal-blue);
}

@media (max-width: 768px) {
    .tool-container { margin-top: 20px; width: 95%; padding: 20px; }
    .resume-grid { grid-template-columns: 1fr; margin-top: 20px; }
    .job-card, .company-card { flex-direction: column; align-items: flex-start; gap: 15px; }
    .job-search-bar { flex-direction: column; border-radius: 15px; }
    .job-search-bar button { width: 100%; }
}

/* Fix for Salmon/Primary Buttons with long text */
.btn-salmon, .btn-primary, .btn-outline {
    white-space: normal !important; /* Allow text to wrap to next line */
    height: auto !important;        /* Allow height to grow */
    min-height: 48px;               /* Minimum touch target size */
    padding: 12px 24px;
    text-align: center;
    line-height: 1.4;               /* Better spacing for multi-line text */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;                /* Prevent overflowing screen width */
    word-wrap: break-word;
}

/* Fix for Navbar Z-Index (Menu not clicking) */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10000 !important; /* Extremely high to sit above everything */
    width: 100%;
    background: var(--royal-blue);
}

/* Ensure Mobile Menu is clickable */
.menu-toggle {
    position: relative;
    z-index: 10001; /* Higher than navbar background */
}

.nav-menu.active {
    z-index: 9999;
}

/* --- Blog Preview Image Snippet --- */
.blog-preview-img-box {
    width: 100%;
    aspect-ratio: 4 / 3; /* Forces exact 4:3 ratio responsively */
    border-radius: 16px; /* Smooth curved edges */
    overflow: hidden; /* Keeps the curves intact when image zooms */
    background-color: #f8f9fa; /* Placeholder color before image loads */
    position: relative; /* Needed for the floating tag */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Soft premium shadow */
    cursor: pointer;
}

.blog-preview-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the image perfectly without stretching */
    transition: transform 0.4s ease; /* Smooth hover transition */
}

/* Hover Zoom Effect */
.blog-preview-img-box:hover img {
    transform: scale(1.05);
}

/* Optional: Floating Category Tag */
.blog-category-tag {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--royal-blue, #1a1e45); /* Uses your brand blue */
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}