/*
Theme Name: AlphaReach
Theme URI: https://alphareach.tech/
Author: AlphaReach
Description: Custom WordPress theme for AlphaReach Technologies.
Version: 1.1.0
Text Domain: alphareach
*/

:root {
    --primary-color: #0aec33;
    --dark-blue: #012641;
    --light-gray: #f2f2f2;
    --deep-black: #0f0f0f;
    --soft-gray: #eaeaea;
    --text-black: #0f0f0f;
    --marquee-speed: 8s;
    --font-family: 'Onest', sans-serif;
    --transition: all 0.3s ease;
}

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

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

/* Navigation Bar */

.navbar {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 0;
    z-index: 1000;
    width: 100%;
    border-bottom: var(--primary-color) 1px solid;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo {
    flex: 0;
}

.logo img {
    height: 45px;
    width: auto;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1002;
}

.profile-container {
    position: relative;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: var(--color-green) 2px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 10px;
}

/* For desktop - show on hover and click */
@media (min-width: 769px) {
    .profile-container:hover .profile-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* For mobile - show on click only */
@media (max-width: 768px) {
    .profile-container.active .profile-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

.nav-and-profile {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1002;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 19px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-green);
}

.login-btn {
    background: var(--deep-black);
    color: white;
    padding: 10px 30px;
    border-radius: 35px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.login-btn:hover {
    background: var(--deep-black);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1001;
}

.hamburger span {
    background: #333;
    height: 3px;
    width: 30px;
    margin: 5px 0;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
}

@media (max-width: 768px) {
    .nav-and-profile {
        gap: 0;
    }

    .right-section {
        order: -1;
        margin-left: auto;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        background: white;
        width: 100%;
        height: 100vh;
        padding: 80px 20px 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        transition: right 0.3s ease;
        justify-content: flex-start;
        gap: 20px;
        margin-left: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-link {
        font-size: 24px;
        padding: 15px 0;
    }

    .contact-btn {
        margin-top: 20px;
        padding: 15px 30px;
        font-size: 18px;
    }
}

/* --- Blog Hero Section --- */
.blog-hero {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 236, 51, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* --- Search & Filter --- */
.blog-controls {
    max-width: 1200px;
    margin: -2rem auto 3rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid var(--soft-gray);
    border-radius: 8px;
    font-family: var(--font-family);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tag-btn {
    padding: 0.5rem 1.2rem;
    background: var(--light-gray);
    border: none;
    border-radius: 20px;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.tag-btn.active {
    background: var(--primary-color);
    color: var(--deep-black);
}

.tag-btn:hover:not(.active) {
    background: var(--soft-gray);
}

/* --- Featured Post --- */
.featured-section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featured-img {
    height: 400px;
    background: #eee url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=800&q=80') center/cover;
}

.featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-label {
    display: inline-block;
    background: rgba(10, 236, 51, 0.1);
    color: #089d22;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-content p {
    color: #666;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
}

/* --- Blog Grid --- */
.blog-grid-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.grid-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.grid-header h3 {
    font-size: 1.8rem;
}

.blog-grid,
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid var(--soft-gray);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.card-img {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
}

.card-body {
    padding: 1.5rem;
}

.card-body h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.blog-card:hover h4 {
    color: var(--primary-color);
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* --- Admin Bar & Sticky Fixes --- */
.admin-bar .navbar {
    top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

/* Make sure mobile browsers scrolling doesn't clip the sticky header */
.navbar {
    top: 0;
    transition: top 0.3s ease;
}

/* --- Article Header --- */
.article-header {
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
    text-align: center;
}

.article-header .post-label {
    display: inline-block;
    background: rgba(10, 236, 51, 0.1);
    color: #089d22;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark-blue);
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
}

.article-meta .author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
}

.featured-image-wrapper {
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}

/* --- Article Content Layout --- */
.article-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
    align-items: start;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    padding-right: 2rem;
}

.table-of-contents {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table-of-contents h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents ul li a {
    text-decoration: none;
    color: var(--text-black);
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.table-of-contents ul li a:hover,
.table-of-contents ul li a.active {
    color: var(--primary-color);
    transform: translateX(5px);
}

.table-of-contents ul li ul {
    padding-left: 1rem;
    border-left: 2px solid var(--soft-gray);
    margin-top: 0.5rem;
}

.table-of-contents ul li ul li a {
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

.table-of-contents ul li.toc-h2 a {
    font-weight: 600;
}

.table-of-contents ul li.toc-h3 {
    padding-left: 1rem;
    border-left: 2px solid var(--soft-gray);
    margin-left: 0.25rem;
}

.table-of-contents ul li.toc-h3 a {
    font-size: 0.9rem;
    color: #4a5568;
}

.table-of-contents ul li.toc-h4 {
    padding-left: 1.8rem;
    border-left: 2px solid var(--soft-gray);
    margin-left: 0.25rem;
}

.table-of-contents ul li.toc-h4 a {
    font-size: 0.85rem;
    color: #718096;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-blue);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 0.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.article-content blockquote {
    border-left: 5px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--light-gray);
    border-radius: 5px;
    font-style: italic;
    color: #555;
    quotes: "\201C" "\201D" "\2018" "\2019";
}

/* --- Author Bio --- */
.author-bio {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--soft-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.author-bio .author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.author-info p {
    font-size: 0.95rem;
    color: #555;
}

/* --- Social Share --- */
.social-share {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.social-share h3 {
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
}

.share-buttons a.facebook {
    background-color: #3b5998;
}

.share-buttons a.twitter {
    background-color: #00acee;
}

.share-buttons a.linkedin {
    background-color: #0e76a8;
}

.share-buttons a.whatsapp {
    background-color: #25d366;
}

.share-buttons a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Media Query for Large Screens --- */
@media (min-width: 992px) {
    .article-container {
        padding-top: 3rem;
    }
}

/* --- Related Articles --- */
.related-articles {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.related-articles h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-blue);
    text-align: center;
}

/* --- Newsletter Section --- */
.newsletter-banner {
    background: var(--primary-color);
    padding: 4rem 2rem;
    text-align: center;
    margin-top: 0;
}

.newsletter-container {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--deep-black);
    font-weight: 600;
}

.newsletter-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 400;
}

.newsletter-form-inline {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.newsletter-form-inline input {
    flex: 1;
    max-width: 350px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 400;
}

.newsletter-form-inline button {
    background: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-family);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form-inline button:hover {
    opacity: 0.9;
}

/* Layout Utility Classes (Bootstrap Equivalents) */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.footer-section {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 992px) {
    .footer-about {
        flex: 0 0 35%;
        max-width: 35%;
    }
    .footer-links {
        flex: 0 0 20%;
        max-width: 20%;
    }
    .newsletter {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer-about, .newsletter {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
    .footer-links {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
}

/* Footer Section */
.footer {
    background-color: var(--text-black);
    color: white;
    padding: 60px 0 20px;
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-icons {
    margin-bottom: 30px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

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

.newsletter p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.newsletter-input {
    display: flex;
}

.newsletter-input input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px 0 0 4px;
}

.newsletter-input input:focus {
    outline: none;
}

.newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-input button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-input button:hover {
    background-color: #09d62d;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 12px;
    opacity: 0.6;
}

@media (max-width: 767px) {
    .footer-section {
        margin-bottom: 30px;
    }


    .footer .row {
        display: flex;
        flex-wrap: wrap;
    }


    .footer-about {
        width: 100%;
    }


    .footer-links {
        width: 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }


    .newsletter {
        width: 100%;
        margin-top: 15px;
    }
}

.static a {
    color: var(--dark-blue);
}

.static a:hover {
    color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-img {
        height: 300px;
    }

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

    .article-container {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .table-of-contents {
        max-width: 100%;
    }

    .article-header h1 {
        font-size: 2.5rem;
    }

}

@media (max-width: 768px) {

    .blog-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        min-width: 100%;
    }

    .newsletter-form-inline {
        flex-direction: column;
    }

    .blog-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }


    /* Social Share - Hide text on mobile, show only icons */
    .share-buttons a .share-text {
        display: none;
    }

    .share-buttons a {
        padding: 0.8rem 1rem;
        justify-content: center;
    }

    .share-buttons a i {
        margin: 0;
    }

    /* Newsletter form on mobile */
    .newsletter-form-inline input,
    .newsletter-form-inline button {
        width: 100%;
    }
}

/* --- Driver Recruitment Modal --- */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* subtle dark overlay */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(8px);
}

.popup-modal.show {
    opacity: 1;
    visibility: visible;
}

.popup-modal-content {
    background: #fff;
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.popup-modal.show .popup-modal-content {
    transform: scale(1);
}

/* Custom Scrollbar for modal */
.popup-modal-content::-webkit-scrollbar {
    width: 6px;
}
.popup-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}
.popup-modal-content::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 10px;
}
.popup-modal-content::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

.popup-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.popup-modal-close:hover {
    color: var(--dark-blue);
}

.popup-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.popup-modal-header h2 {
    color: var(--dark-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.popup-modal-header p {
    color: #666;
    font-size: 0.95rem;
}

#driver-recruitment-form .form-group {
    margin-bottom: 1.2rem;
}

#driver-recruitment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

#driver-recruitment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #666;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* Custom Input Wrappers based on Image */
.input-with-icon {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 236, 51, 0.15);
}

.input-wrapper i {
    color: #999;
    font-size: 1rem;
    margin-right: 10px;
}

.input-wrapper .country-code {
    color: #666;
    font-weight: 600;
    margin-right: 10px;
}

#driver-recruitment-form input[type="text"],
#driver-recruitment-form input[type="tel"] {
    width: 100%;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

#driver-recruitment-form input[type="text"]:focus,
#driver-recruitment-form input[type="tel"]:focus {
    outline: none;
    box-shadow: none;
}

.section-label {
    font-size: 0.8rem !important;
    color: #555 !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    margin-bottom: 0.8rem !important;
}

/* Company Grid */
.company-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.brand-checkbox {
    display: none;
}

.brand-card {
    height: 6rem;
    border: 2px solid var(--soft-gray, #e5e5e5);
    border-radius: var(--input-radius, 8px);
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    border-color: #ccc;
    transform: translateY(-2px);
}

.brand-checkbox:checked+.brand-card {
    border-color: var(--primary-color);
    background-color: #f0fdf4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.check-icon {
    display: none;
    color: var(--primary-color);
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    border-radius: 50%;
}

.brand-checkbox:checked+.brand-card .check-icon {
    display: block;
}

.brand-logo {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.popup-submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: var(--dark-blue);
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    margin-top: 0.5rem;
}

.popup-submit-btn:hover {
    background: #09d82f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 236, 51, 0.3);
}

.form-message {
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

@media (max-width: 600px) {
    #driver-recruitment-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .company-radio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .popup-modal-content {
        padding: 1.5rem;
    }
}

/* Custom Input Error and Shake */
.custom-input.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* --- FAQ Accordion Styles --- */
.faq-accordion-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-accordion {
    background: #ffffff;
    border: 1px solid var(--soft-gray, #eaeaea);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition, all 0.3s ease);
}

.faq-accordion[open] {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color, #0aec33);
}

.faq-summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-blue, #012641);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-summary::-webkit-details-marker {
    display: none;
}

.faq-summary:hover {
    color: var(--primary-color, #0aec33);
}

.faq-summary .faq-icon {
    font-size: 1rem;
    color: var(--primary-color, #0aec33);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-accordion[open] .faq-summary .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: #4a5568;
    line-height: 1.7;
    animation: accordion-slide-down 0.4s ease-out forwards;
}

@keyframes accordion-slide-down {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Floating Bottom-Right "Apply Delivery Partner" CTA Button (Single Blog Posts)
   ========================================================================== */
.floating-delivery-partner-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    left: auto;
    z-index: 995;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color, #0aec33);
    color: #000000 !important;
    text-decoration: none !important;
    padding: 12px 22px;
    border-radius: 50px;
    font-family: var(--font-family, 'Onest', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(10, 236, 51, 0.7);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.25s ease, 
                background-color 0.2s ease;
    animation: floating-signal-pulse 2.2s infinite ease-out;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Pulsing radar signal wave animation around the button */
@keyframes floating-signal-pulse {
    0% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 
                    0 0 0 0 rgba(10, 236, 51, 0.75);
    }
    50% {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 
                    0 0 0 14px rgba(10, 236, 51, 0);
    }
    100% {
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 
                    0 0 0 0 rgba(10, 236, 51, 0);
    }
}

/* Motorcycle / delivery icon */
.floating-delivery-partner-btn .floating-btn-icon {
    font-size: 1.15rem;
    color: #000000;
    transition: transform 0.3s ease;
}

/* Text */
.floating-delivery-partner-btn .floating-btn-text {
    color: #000000;
    white-space: nowrap;
    font-weight: 800;
}

/* Hover & Focus states */
.floating-delivery-partner-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background-color: #0dfa38;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28), 0 0 0 16px rgba(10, 236, 51, 0.2);
    color: #000000 !important;
}

.floating-delivery-partner-btn:hover .floating-btn-icon {
    transform: translateX(2px) scale(1.1);
}

.floating-delivery-partner-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .floating-delivery-partner-btn {
        bottom: 16px;
        right: 16px;
        left: auto;
        padding: 10px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .floating-delivery-partner-btn .floating-btn-icon {
        font-size: 1rem;
    }
}

/* Hide on Print */
@media print {
    .floating-delivery-partner-btn {
        display: none !important;
    }
}