/* Marine and Ports Page Styles */

/* Font Classes */
.font-jcb-bold-condensed {
    font-family: 'JCBEuro BoldCondensed Regular', sans-serif;
}

.font-jcb-bold {
    font-family: 'JCBEuro Bold Regular', sans-serif;
}

.font-jcb-roman {
    font-family: 'JCBEuro Roman Regular', sans-serif;
}

/* Hero Background */
.hero-marine {
    position: relative;
    overflow: hidden;
}

/* Hero Buttons */
.hero-marine a {
    text-decoration: none;
}

.hero-marine .border-2.border-white {
    border: 2px solid #ffffff !important;
}

/* Marine Solutions Section */
section h2.font-jcb-bold-condensed {
    font-weight: 400;
}

section h3.font-jcb-bold {
    font-weight: 400;
}

section h4.font-jcb-bold {
    font-weight: 400;
}

/* Remove list style and keep only checks */
section ul {
    list-style: none;
    padding-left: 0;
}

/* Table Styling */
table {
    border-collapse: collapse;
}

table thead tr {
    border: none !important;
}

table thead th {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

table thead th + th {
    border-left: none !important;
}

table tbody tr {
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

table tbody td {
    border: none !important;
}

table tbody tr:last-child {
    border-bottom: none;
}

/* Table container */
.table-container {
    overflow-x: visible;
}

/* Mobile table adjustments - Convert to cards */
@media (max-width: 768px) {
    .table-container {
        overflow-x: visible !important;
    }
    
    /* Remove table background and shadow on mobile */
    .table-container table {
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* Section title on mobile */
    .max-w-7xl h2.text-4xl {
        font-size: 24px !important;
    }
    
    /* Hide table header on mobile */
    table thead {
        display: none;
    }
    
    /* Style table as cards */
    table tbody {
        display: block;
    }
    
    table tbody tr {
        display: block;
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }
    
    table tbody td {
        display: block;
        padding: 8px 0 !important;
        border: none !important;
        font-size: 14px !important;
        position: relative;
        padding-left: 50% !important;
    }
    
    table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        font-weight: 600;
        font-size: 12px;
        color: #000;
        text-transform: uppercase;
    }
    
    /* Style specific cells */
    table tbody td:first-child {
        font-weight: 600;
        font-size: 16px !important;
        padding: 12px !important;
        margin: -15px -15px 15px -15px;
        background-color: #000;
        color: #fff;
        text-align: center;
        border-radius: 8px 8px 0 0;
    }
    
    table tbody td:first-child:before {
        display: none;
    }
    
    table tbody td:last-child {
        color: #FAA747;
        font-weight: 600;
    }
}

/* Industry Navigation */
.industry-nav {
    background: #f8f8f8;
    border-bottom: 2px solid #FAA747;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Adjust position for different screen sizes */
@media (max-width: 899px) {
    .industry-nav {
        top: 80px !important;
    }
}

@media (min-width: 900px) and (max-width: 948px) {
    .industry-nav {
        top: 95px !important;
    }
}

@media (min-width: 949px) and (max-width: 1024px) {
    .industry-nav {
        top: 110px !important;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .industry-nav {
        top: 120px !important;
        padding-top: 0 !important;
    }
}

/* Center navigation items on medium-large screens */
@media (min-width: 1025px) and (max-width: 1400px) {
    .industry-nav .flex {
        justify-content: center;
    }
    
    .industry-nav .max-w-7xl {
        text-align: center;
    }
}

/* Mobile/Tablet adjustments for industry nav position */
@media (max-width: 948px) {
    .industry-nav {
        z-index: 40;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border-bottom: 2px solid #FAA747;
        padding-top: 10px;
    }
    
    .industry-nav .flex {
        display: flex;
        overflow-x: visible;
        padding: 0 15px;
        gap: 0;
        width: max-content;
    }
    
    .industry-nav .max-w-7xl {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        position: relative;
        scrollbar-width: thin;
        scrollbar-color: #FAA747 #f0f0f0;
    }
    
    /* Style scrollbar for webkit browsers */
    .industry-nav .max-w-7xl::-webkit-scrollbar {
        height: 6px;
    }
    
    .industry-nav .max-w-7xl::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    
    .industry-nav .max-w-7xl::-webkit-scrollbar-thumb {
        background: #FAA747;
        border-radius: 3px;
    }
    
    .industry-nav .max-w-7xl::-webkit-scrollbar-thumb:hover {
        background: #e89637;
    }
}

@media (min-width: 949px) and (max-width: 1024px) {
    .industry-nav {
        z-index: 40;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        border-bottom: 2px solid #FAA747;
        padding-top: 0;
    }
    
    .industry-nav .flex {
        display: flex;
        overflow-x: visible;
        padding: 0 15px;
        gap: 0;
        width: max-content;
    }
    
    .industry-nav .max-w-7xl {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        position: relative;
        scrollbar-width: thin;
        scrollbar-color: #FAA747 #f0f0f0;
    }
    
    /* Style scrollbar for webkit browsers */
    .industry-nav .max-w-7xl::-webkit-scrollbar {
        height: 6px;
    }
    
    .industry-nav .max-w-7xl::-webkit-scrollbar-track {
        background: #f0f0f0;
    }
    
    .industry-nav .max-w-7xl::-webkit-scrollbar-thumb {
        background: #FAA747;
        border-radius: 3px;
    }
    
    .industry-nav .max-w-7xl::-webkit-scrollbar-thumb:hover {
        background: #e89637;
    }
    
    /* Remove fade indicator on mobile as it causes issues */
}

.industry-nav-item {
    position: relative;
    padding: 10px 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
    font-size: 12px;
}

.industry-nav-item:hover {
    background: #FAA747;
    color: #000;
}

.industry-nav-item.active {
    background: #000;
    color: #FAA747;
}

/* Marine Gallery Grid */
.marine-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.marine-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.marine-card:hover {
    transform: scale(1.05);
}

.marine-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marine-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

/* Utility Classes for Tailwind-like styling */
.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-white {
    background-color: #ffffff;
}

.bg-black {
    background-color: #000000;
}

.bg-glow-yellow {
    background-color: #FAA747;
}

.text-white {
    color: #ffffff;
}

.text-black {
    color: #000000;
}

.text-glow-yellow {
    color: #FAA747;
}

.text-gray-700 {
    color: #374151;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.uppercase {
    text-transform: uppercase;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.border-2 {
    border-width: 2px;
}

.border-white {
    border-color: #ffffff;
}

.border-glow-yellow {
    border-color: #FAA747;
}

.border-b {
    border-bottom-width: 1px;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
    transition-property: color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Ensure flex container allows scrolling */
.industry-nav .flex {
    flex-wrap: nowrap;
    min-width: 0;
}

.relative {
    position: relative;
}

.sticky {
    position: sticky;
}

.top-\[80px\] {
    top: 80px;
}

.z-40 {
    z-index: 40;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-\[500px\] {
    min-height: 500px;
}

.w-20 {
    width: 5rem;
}

.h-1 {
    height: 0.25rem;
}

.object-cover {
    object-fit: cover;
}

.p-8 {
    padding: 2rem;
}

/* Hover states */
.hover\:bg-gray-50:hover {
    background-color: #f9fafb;
}

.hover\:bg-white:hover {
    background-color: #ffffff;
}

.hover\:text-black:hover {
    color: #000000;
}

.hover\:bg-black:hover {
    background-color: #000000;
}

.hover\:text-white:hover {
    color: #ffffff;
}

.hover\:bg-glow-yellow:hover {
    background-color: #FAA747;
}

.hover\:text-glow-yellow:hover {
    color: #FAA747;
}

/* Responsive Grid */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:top-\[128px\] {
        top: 136px;
    }
    
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Responsive navigation adjustments */
@media (min-width: 1025px) and (max-width: 1400px) {
    .industry-nav-item {
        padding: 10px 10px;
        font-size: 11px;
    }
    
    .industry-nav-item i {
        font-size: 11px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .industry-nav-item {
        padding: 10px 8px;
        font-size: 11px;
    }
}

/* Keep full size on mobile/tablet */
@media (max-width: 1024px) {
    .industry-nav-item {
        padding: 15px 20px !important;
        font-size: 13px !important;
        flex-shrink: 0;
        white-space: nowrap;
        border: none;
        background: transparent;
        position: relative;
        color: #666;
        font-weight: 500;
    }
    
    .industry-nav-item i {
        display: none !important;
    }
    
    .industry-nav-item.active {
        color: #000;
        background: transparent;
    }
    
    .industry-nav-item.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: #FAA747;
    }
    
    .industry-nav-item:first-child {
        margin-left: -15px;
    }
}