 /* ===================================================================
    TABLE OF CONTENTS
===================================================================
    1.  General & Body Styles
    2.  Accessibility
    3.  Navbar & Offcanvas Menu
    4.  Hero Section
    5.  "How It Works" Section
    6.  "Build Your Resume" / Multi-Bar Info Section
    7.  "All the Latest" / Blog Cards Section
    8.  Download Section
    9.  Footer
    10. Scroll to Top Button
    11. Responsive Media Queries
=================================================================== */

/* 1. General & Body Styles
------------------------------------------------------------------- */
body {
    padding-top: 80px; /* For fixed navbar */
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #f8f9fa; /* Light grey background */
}

/* 2. Accessibility
------------------------------------------------------------------- */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 3. Navbar & Offcanvas Menu
------------------------------------------------------------------- */
.navbar {
    backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease-in-out;
    padding: 20px 0;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 750;
    font-size: 1.40rem;
    color: #274D76 !important;
}

.navbar-brand img {
    height: 40px;
    object-fit: contain;
}

.nav-link,
.btn-rounded {
    font-weight: 500;
    transition: all 0.25s;
}

.nav-link {
    color: #333;
    margin: 0 10px;
}

.nav-link:hover {
    color: #4661E6;
    transform: translateY(-2px);
}

.btn-rounded {
    border-radius: 50px;
    padding: 8px 22px;
}

.btn-rounded:hover {
    box-shadow: 0 0 10px rgba(70, 97, 230, 0.4);
    transform: translateY(-1px);
}

.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon-custom {
    display: inline-block;
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.navbar-toggler-icon-custom span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    left: 0;
    transition: 0.3s ease;
    border-radius: 2px;
}

.navbar-toggler-icon-custom span:nth-child(1) { top: 0; }
.navbar-toggler-icon-custom span:nth-child(2) { top: 7px; }
.navbar-toggler-icon-custom span:nth-child(3) { top: 14px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.offcanvas-end {
    width: 260px;
    background-color: #fff;
}

.offcanvas a {
    font-weight: 500;
    padding: 10px 0;
    color: #333;
}

.offcanvas a:hover {
    color: #4661E6;
}

/* 4. Hero Section
------------------------------------------------------------------- */
.hero-section {
    margin-top: 20px;
}

.hero-text h1 {
    font-weight: 700;
    font-size: 2.2rem;
}

.hero-text p {
    font-size: 1rem;
    color: #4b5563;
}

.hero-buttons .btn {
    margin-right: 10px;
    font-weight: 600;
    padding: 10px 20px;
    margin-bottom: 10px;
}

.stat-box {
    border-left: 2px solid #e2e8f0;
    padding-left: 15px;
}

.stat-box span {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-box small {
    color: #6b7280;
    display: block;
}

.resume-image {
    width: 100%;
    max-width: 100%;
    height: auto; /* Ensures aspect ratio is maintained */
}

.resume-card {
    border-radius: 12px;
    padding: 15px;
}

/* 5. "How It Works" Section
------------------------------------------------------------------- */
.hiw-section {
    min-height: 10vh;
    display: flex;
    align-items: center;
}

.hiw-section .preview-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.hiw-section .text-area h5 {
    color: #007bff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hiw-section .text-area h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

.hiw-section .text-area p {
    color: #666;
    font-size: 1.1rem;
    margin: 20px 0;
}

.primary-btn {
    background: linear-gradient(to right, #3a7bd5, #00d2ff);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    transition: 0.3s ease;
}

.primary-btn:hover {
    opacity: 0.9;
}

/* 6. "Build Your Resume" / Multi-Bar Info Section
------------------------------------------------------------------- */
.multi-bar {
    height: 5px;
    display: flex;
    margin: 2rem 0;
}

.multi-bar > div { flex: 1; }
.bar-red { background-color: #ea4335; }
.bar-blue { background-color: #4285f4; }
.bar-green { background-color: #34a853; }
.bar-yellow { background-color: #fbbc04; }

.card-text {
    max-width: 300px;
    margin: auto;
}

/* 7. "All the Latest" / Blog Cards Section
------------------------------------------------------------------- */
.container-main {
    padding-top: 4rem;
    padding-bottom: 4rem;
    max-width: 1200px; /* Limit content width */
}

.section-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: #212529; /* Dark text */
}

.card-custom {
    border: 1px solid #dee2e6; /* Light border */
    border-radius: 0.75rem; /* Rounded corners for cards */
    overflow: hidden; /* Ensures image corners are also rounded within the card */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    height: 100%; /* Ensure all cards in a row have same height */
    display: flex;
    flex-direction: column;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow on hover */
}

.card-body-custom {
    padding: 1.5rem;
    flex-grow: 1; /* Allows content to expand */
    display: flex;
    flex-direction: column; /* Always stack text and image vertically */
    justify-content: space-between; /* Pushes image to bottom if content is short */
}

.card-meta {
    font-size: 0.85rem;
    color: #6c757d; /* Grey text for meta info */
    margin-bottom: 0.5rem;
}

.card-meta strong {
    color: #0d6efd; /* Bootstrap primary blue for category */
    font-weight: 500;
}

.card-title-custom {
    font-size: 1.15rem;
    font-weight: 600;
    color: #212529; /* Dark text for title */
    line-height: 1.4;
    margin-bottom: 1rem; /* Space below title */
    flex-grow: 1; /* Allows title to take available height */
}

.card-image-wrapper {
    flex-shrink: 0; /* Prevents image from shrinking */
    width: 100%; /* Take full width of the card body */
    height: 180px; /* Fixed height for consistent cropping */
    border-radius: 0.5rem;
    overflow: hidden;
    margin-top: 1rem; /* Space between text and image */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container and is center-cropped */
    object-position: center; /* Explicitly center the image */
    border-radius: 0.5rem; /* Ensure image itself has rounded corners */
}

.load-more-btn {
    background-color: #fff;
    border: 1px solid #ced4da; /* Light grey border */
    color: #0d6efd; /* Bootstrap primary blue */
    padding: 0.75rem 2.5rem;
    border-radius: 0.5rem; /* More rounded */
    font-weight: 500;
    font-size: 1.05rem;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.load-more-btn:hover {
    background-color: #f1f4f8; /* Lighter blue on hover */
    border-color: #a7d9f7;
    color: #0a58ca;
}


/* 8. Download Section
------------------------------------------------------------------- */
.download-section {
    background-color: #ECFBFF;
    margin-top: 50px;
}

.download-section .col-lg-5 {
    padding: 20px;
}

.gemini-logo {
    font-weight: bold;
    font-size: 2.5rem;
}

.gemini-logo span:nth-child(1) { color: #4285f4; }
.gemini-logo span:nth-child(2) { color: #ea4335; }
.gemini-logo span:nth-child(3) { color: #fbbc05; }
.gemini-logo span:nth-child(4) { color: #34a853; }
.gemini-logo span:nth-child(5) { color: #9b59b6; }
.gemini-logo span:nth-child(6) { color: #00bcd4; }

.qr-container img {
    width: 120px;
}

.mobile-preview {
    position: relative;
    max-width: 360px;
    margin: auto;
    border: 2px solid #000;
    border-radius: 30px;
    overflow: hidden;
}

.mobile-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 60% 60%;
    background-position: center;
    background-repeat: no-repeat;
}

/* 9. Footer
------------------------------------------------------------------- */
.rs-footer {
    padding: 60px 0 30px 0;
    font-family: system-ui, sans-serif;
    background-color: #1A222F;
    color: #ffffff;
}

.rs-footer a {
    text-decoration: none;
    color: #adb5bd;
}

.rs-footer a:hover {
    color: #ffffff;
}

.rs-footer-bottom {
    border-top: 1px solid #495057;
    margin-top: 40px;
    padding-top: 20px;
    font-size: 14px;
    color: #ffffff;
}

.rs-footer-bottom a {
    color: #ffffff;
}

.accordion-item {
    background-color: #1A222F;
    border: none;
    margin-bottom: 5px;
    border-radius: 0.25rem;
    box-shadow: none !important;
}

.accordion-item:last-of-type {
    margin-bottom: 0;
}

.accordion-header {
    background-color: #1A222F;
}

.rs-accordion-button {
    position: relative;
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    padding-left: 1.5rem;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: none !important;
}

.rs-accordion-button:hover,
.rs-accordion-button:active,
.rs-accordion-button:not(.collapsed) {
    background-color: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.rs-accordion-button::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    border-color: #ffffff;
    transition: transform 0.3s ease;
    transform-origin: center;
    pointer-events: none;
}

.rs-accordion-button.collapsed::after {
    transform: translateY(-50%) rotate(45deg);
}

.rs-accordion-button:not(.collapsed)::after {
    transform: translateY(-50%) rotate(135deg);
}

.accordion-body {
    background-color: #1A222F;
    color: #adb5bd;
    padding-bottom: 0.5rem;
}

/* 10. Scroll to Top Button
------------------------------------------------------------------- */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, opacity 0.3s;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#scrollToTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

/* 11. Responsive Media Queries
------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    /* General */
    .qr-container {
        text-align: center;
    }
    .card-text {
        text-align: center;
    }
    
    /* Footer */
    .rs-desktop-footer {
        display: none;
    }

    /* Scroll to Top */
    #scrollToTopBtn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    /* Blog Cards Section */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .card-body-custom {
        padding: 1rem;
    }
    .card-title-custom {
        font-size: 1rem;
    }
    .card-meta {
        font-size: 0.75rem;
    }
    .card-image-wrapper {
        height: 150px;
        margin-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    /* Hero Section */
    .hero-text h1 {
        font-size: 1.6rem;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .stat-box {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-left: 0;
        padding-top: 10px;
    }
}

@media (min-width: 768px) {
    /* Footer */
    .rs-mobile-footer {
        display: none;
    }
}
      