/* Custom styles for FasterLogistics - Picton Blue Theme */

.hero-section {
    min-height: 100vh;
    color: white;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
}

/* Mobile responsive improvements for hero section */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 20px 0 0 0;
        display: block;
    }
    
    .hero-content {
        padding: 20px 0 15px 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    /* Navbar mobile adjustments */
    .navbar {
        padding: 15px 0;
        min-height: 70px;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 2px 0;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding: 15px 0 0 0;
        display: block;
    }
    
    .hero-content {
        padding: 15px 0 10px 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Navbar small mobile adjustments */
    .navbar {
        padding: 12px 0;
        min-height: 65px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(46, 170, 220, 0.7), rgba(30, 144, 255, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero section for sub-pages */
.hero-section-small {
    padding: 80px 0;
    color: white;
    position: relative;
}

.navbar {
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #2eaadc;
    min-height: 80px;
}

.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none;
}

.navbar-transparent .navbar-brand,
.navbar-transparent .nav-link {
    color: white !important;
}

/* Navigation links styling */
.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 12px 20px;
    margin: 0 5px;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Navbar container enhancements */
.navbar .container {
    position: relative;
}

.navbar .navbar-collapse {
    justify-content: flex-end;
}

/* Navbar brand enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    text-decoration: none;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-transparent .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-transparent .navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255,255,255,0.5);
}

.navbar-transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Logo styles */
.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: transparent;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    height: 50px;
    width: auto;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Footer logo styles */
footer .navbar-brand img {
    background: transparent;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Logo in transparent navbar (homepage) */
.navbar-transparent .navbar-brand img {
    background: transparent;
    mix-blend-mode: normal;
    filter: brightness(1.2) contrast(1.1);
}

/* Logo in sticky navbar */
.navbar.sticky .navbar-brand img {
    background: transparent;
    mix-blend-mode: multiply;
    filter: brightness(1.1) contrast(1.1);
}

/* Sticky header behavior */
.navbar.sticky {
    background-color: #2eaadc !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    padding: 10px 0;
}

.navbar.sticky .navbar-brand,
.navbar.sticky .nav-link {
    color: white !important;
}

/* Ensure sub-pages have proper spacing for fixed navbar */
body:not(.homepage) main {
    padding-top: 80px;
}

/* Homepage specific spacing for hero section */
.homepage .hero-section {
    padding-top: 80px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255,255,255,0.8) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.service-card {
    text-align: center;
    padding: 0;
    background: white;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2eaadc, #1e90ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
    background: white;
}

/* Responsive service images */
@media (max-width: 768px) {
    .service-image-container {
        height: 180px;
    }
    
    .service-content {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .service-image-container {
        height: 160px;
    }
    
    .service-content {
        padding: 12px;
    }
    
    .service-content h4 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .service-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Service detail cards */
.service-detail-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon-large {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, #2eaadc, #1e90ff); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.service-icon-medium {
    width: 80px;
    height: 80px;
    /* background: linear-gradient(135deg, #2eaadc, #1e90ff); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 50px;
}

.stats-section {
    background: linear-gradient(135deg, #2eaadc, #1e90ff);
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
}

.contact-info-centered {
    position: absolute !important;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
}

.contact-info-item {
    padding: 15px 10px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-2px);
}

/* Mobile responsive improvements for contact info */
@media (max-width: 768px) {
    .hero-section {
        position: relative;
        min-height: auto;
        padding-bottom: 0;
    }
    
    .contact-info-centered {
        position: relative !important;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
        padding: 10px 0;
    }
    
    .contact-info {
        padding: 20px 15px;
        margin: 0 10px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .contact-info-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .contact-info-item:last-child {
        margin-bottom: 0;
    }
    
    .contact-info .row {
        margin: 0;
    }
    
    .contact-info .col-12 {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: auto;
        padding-bottom: 0;
    }
    
    .contact-info-centered {
        margin-top: 0;
        margin-bottom: 0;
        padding: 8px 0;
    }
    
    .contact-info {
        padding: 15px 10px;
        margin: 0 5px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .contact-info-item {
        padding: 15px 10px;
    }
    
    .contact-info-item h5 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .contact-info-item p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .contact-info-item i {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
}

.btn-primary-custom {
    background: linear-gradient(135deg, #2eaadc, #1e90ff);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(46, 170, 220, 0.3);
    color: white;
}

footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    border-bottom: 1px solid #34495e;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

main {
    flex: 1;
}

.card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

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

.services-content,
.about-content,
.company-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-summary {
    border-left: 4px solid #2eaadc;
}

.pagination .page-link {
    color: #2eaadc;
}

.pagination .page-item.active .page-link {
    background-color: #2eaadc;
    border-color: #2eaadc;
}

.badge {
    font-size: 0.75em;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.sidebar .card {
    margin-bottom: 20px;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Team page styles */
.team-member-card {
    padding: 30px 20px;
    transition: all 0.3s ease;
}

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

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #e9ecef;
}

.team-social-links a {
    transition: color 0.3s ease;
}

.team-social-links a:hover {
    color: #2eaadc !important;
}

/* Team position styling */
.team-position {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2eaadc;
    margin-bottom: 15px;
    line-height: 1.3;
}

.team-member-card {
    transition: all 0.3s ease;
    padding: 25px 20px;
    border-radius: 15px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.team-member-photo {
    margin-bottom: 20px;
}

.team-photo {
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-member-card:hover .team-photo {
    border-color: #2eaadc;
    transform: scale(1.05);
}

.team-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 4px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsive team styles */
@media (max-width: 768px) {
    .team-position {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .team-member-card {
        padding: 20px 15px;
    }
    
    .team-member-photo {
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .team-position {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .team-member-card {
        padding: 15px 12px;
    }
    
    .team-photo,
    .team-photo-placeholder {
        width: 100px;
        height: 100px;
    }
}

.department-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.department-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.department-icon {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, #2eaadc, #1e90ff); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.5rem;
}

.value-icon {
    width: 80px;
    height: 80px;
    /* background: linear-gradient(135deg, #2eaadc, #1e90ff); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

/* Contact page styles */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #2eaadc;
    box-shadow: 0 0 0 0.2rem rgba(46, 170, 220, 0.25);
}

.contact-info-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.contact-icon {
    color: #2eaadc;
    min-width: 40px;
}

.office-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.office-icon {
    color: #2eaadc;
}

/* Accordion styles */
.accordion-button:not(.collapsed) {
    background-color: #e7f3ff;
    color: #2eaadc;
    border-color: #2eaadc;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(46, 170, 220, 0.25);
    border-color: #2eaadc;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232eaadc'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232eaadc'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* About page styles */
.company-logo-wrapper {
    position: relative;
}

.company-logo {
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.company-logo-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.company-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.divider-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #2eaadc, transparent);
}

.divider-icon {
    margin: 0 20px;
    padding: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(46, 170, 220, 0.3);
}

.description-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-left: 5px solid #2eaadc;
    transition: all 0.3s ease;
}

.description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.description-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.description-icon {
    font-size: 1.5rem;
    color: #2eaadc;
    margin-right: 15px;
}

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

.info-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-header-custom {
    background: linear-gradient(135deg, #2eaadc, #1e90ff);
    color: white;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.card-body-custom {
    padding: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item-icon {
    color: #2eaadc;
    margin-right: 15px;
    margin-top: 3px;
    min-width: 20px;
}

.contact-item-content {
    flex: 1;
}

.contact-link {
    color: #2eaadc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1e90ff;
    text-decoration: underline;
}

.address-text {
    color: #666;
    line-height: 1.6;
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.quick-link-item:hover {
    background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
    color: #2eaadc;
    border-left-color: #2eaadc;
    transform: translateX(5px);
}

.quick-link-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.fallback-content {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.fallback-icon {
    opacity: 0.7;
}

.alert-custom {
    background: linear-gradient(135deg, #e7f3ff, #f0f8ff);
    border: 1px solid #b3d9ff;
    color: #2c5aa0;
    border-radius: 15px;
    padding: 20px;
    font-size: 1.1rem;
}

/* Responsive adjustments for about page */
@media (max-width: 768px) {
    .company-divider {
        margin: 1.5rem 0;
    }
    
    .divider-line {
        width: 40px;
    }
    
    .divider-icon {
        margin: 0 15px;
        padding: 8px;
    }
    
    .description-card {
        padding: 20px;
    }
    
    .card-header-custom {
        padding: 15px 20px;
    }
    
    .card-body-custom {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-item-icon {
        margin-bottom: 8px;
        margin-right: 0;
    }
}