/* Hero Section Styles */
.hero {
    display: flex;
    max-width: 1440px;
    gap: 2em;
    justify-content: space-between;
    margin: 5em auto;
    padding: 0 2em;
}

.text {
    width: 40%;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: sans-serif;
}

.text__short {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: #479A7E;
}

.text__title {
    line-height: 1.1;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.text__description {
    line-height: 145%;
    font-size: 1em;
    font-weight: 300;
    padding-bottom: 1em;
}

.text__button {
    width: fit-content;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    color: #479A7E;
    background-color: white;
    padding: 1em 2em;
    border-radius: 0.5em;
    border: 2px solid #479A7E;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 600;
}

.text__button:hover {
    background-color: #479A7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(71, 154, 126, 0.3);
}

.grid__container {
    min-width: 60%;
    display: grid;
    grid-gap: .5em;
    grid-template-columns: repeat(8, 1fr);
}

.grid__item {
    background-color: grey;
    border-radius: 0.5em;
}

.one {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    background-image: url(//unsplash.it/400/400);
    background-position: center;
    background-size: cover;
}

.two { 
    grid-column: 2 / 5;
    grid-row: 1 / 4;
    background-image: url(//unsplash.it/900/900);
    background-position: center;
    background-size: cover;
}

.three {
    grid-column: 5 / 6;
    grid-row: 1 / 2;
    background-image: url(//unsplash.it/500/400);
    background-position: center;
    background-size: cover;
}

.four {
    grid-column: 6 / 7;
    grid-row: 1 / 2;
    background-color: #FDF5DD;
    border-radius: 0 0 100px 0;
    -moz-border-radius: 0 0 100px 0;
    -webkit-border-radius: 0 0 100px 0;
}

.five {
    grid-column: 5 / 7;
    grid-row: 2 / 4;
    background-image: url(//unsplash.it/400/500);
    background-position: center;
    background-size: cover;
}

.six {
    grid-column: 7 / 8;
    grid-row: 2 / 3;
    background-color: #D3F0EE;
    border-radius: 0 100px 0 0;
    -moz-border-radius: 0 100px 0 0;
    -webkit-border-radius: 0 100px 0 0;
}

.seven {
    grid-column: 7 / 8;
    grid-row: 3 / 4;
    background-image: url(//unsplash.it/500/500);
    background-position: center;
    background-size: cover;
}

.eight {
    grid-column: 8 / 9;
    grid-row: 3 / 4;
    border-radius: 50%;
    background-color: #CED7ED;
}

.nine {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    background-color: #FADEE0;
    border-radius: 100px 0 0 0;
    -moz-border-radius: 100px 0 0 0;
    -webkit-border-radius: 100px 0 0 0;
}

.ten {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
    background-image: url(//unsplash.it/300/300);
    background-position: center;
    background-size: cover;
}

.eleven {
    grid-column: 3 / 5;
    grid-row: 4 / 6;
    background-image: url(//unsplash.it/700/700);
    background-position: center;
    background-size: cover;
}

.twelve {
    grid-column: 5 / 6;
    grid-row: 4 / 5;
    background-image: url(//unsplash.it/300/500);
    background-position: center;
    background-size: cover;
}

@media (max-width: 900px) {
    .grid__container {
        min-width: 50%;
        height: 400px;
        margin-top: 50px;
    }
}

@media (max-width: 780px) {
    .hero {
        flex-direction: column-reverse;
        margin: 2em auto;
        padding: 0 1em;
    }
    
    .text {
        width: 100%;
    }
}

/* Search Form Styles */
.search-section {
    position: relative;
    overflow: hidden;
}

/* Remove all blue focus rings and outlines from search form inputs */
.search-form-container .search-input:focus,
.search-form-container .search-input:focus-visible,
.search-form-container .search-input-group:focus,
.search-form-container .search-input-group:focus-within,
.search-form-container .search-input-group:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
    border-color: transparent !important;
}

.search-form-wrapper {
    position: relative;
}

.search-form-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.search-form-container:focus-within {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: #d1d5db;
    transform: translateY(-1px);
    outline: none;
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s ease;
    position: relative;
    min-height: 56px;
    border: none;
    outline: none;
    box-shadow: none;
}

.search-form-container:focus-within .search-input-group {
    background: white;
}

.search-input-group:focus-within {
    background: white;
    box-shadow: none;
    border: none;
    outline: none;
    transform: scale(1.01);
}

.search-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.search-input-group:focus-within .search-icon {
    color: #6b7280;
    transform: scale(1.05);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1f2937;
    width: 100%;
    font-weight: 400;
    padding: 0;
    line-height: 1.5;
    box-shadow: none;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-input:focus::placeholder {
    color: #d1d5db;
}

.search-divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
    transition: all 0.2s ease;
}

.search-form-container:focus-within .search-divider {
    background: #d1d5db;
}

@media (min-width: 768px) {
    .search-form-container {
        flex-direction: row;
        gap: 0;
        padding: 6px;
    }
    
    .search-input-group {
        padding: 18px 20px;
        border-radius: 10px;
        min-height: 56px;
    }
    
    .search-divider {
        width: 1px;
        height: 44px;
        margin: 0 8px;
        background: #e5e7eb;
    }
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #479A7E 0%, #3a8a6d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(71, 154, 126, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .search-button {
        width: auto;
        min-width: 140px;
        margin-top: 0;
        padding: 18px 36px;
    }
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.search-button:hover::before {
    left: 100%;
}

.search-button:hover {
    background: linear-gradient(135deg, #3a8a6d 0%, #479A7E 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 154, 126, 0.4);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(71, 154, 126, 0.3);
}

.search-button-text {
    position: relative;
    z-index: 1;
}

.search-button-icon {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.search-button:hover .search-button-icon {
    transform: scale(1.1) rotate(5deg);
}

.search-suggestions {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.search-suggestions a {
    transition: all 0.2s ease;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.search-suggestions a:hover {
    border-bottom-color: #9ca3af;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced focus states */
.search-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.search-input:focus-visible {
    outline: none;
    box-shadow: none;
    border: none;
}

.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    -webkit-text-fill-color: #1f2937;
}

/* Smooth transitions for all interactive elements */
.search-form-container,
.search-input-group,
.search-icon,
.search-button {
    will-change: transform;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .search-form-container {
        padding: 6px;
    }
    
    .search-input-group {
        padding: 18px 20px;
        min-height: 56px;
    }
    
    .search-button {
        padding: 14px 24px;
    }
}

/* Categories Section Styles */
.categories-section {
    border-top: 1px solid #e5e7eb;
}

.category-card {
    display: block;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    height: 160px;
    border: 1px solid #f3f4f6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background Images for each category */
.category-card-freight {
    background-image: url('https://images.unsplash.com/photo-1601581875329-54e5b83a8f0e?w=800&q=80');
}

.category-card-air {
    background-image: url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?w=800&q=80');
}

.category-card-sea {
    background-image: url('https://images.unsplash.com/photo-1559827260-dc66d52bef19?w=800&q=80');
}

.category-card-warehouse {
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=800&q=80');
}

.category-card-express {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=800&q=80');
}

.category-card-logistics {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=800&q=80');
}

.category-card-customs {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=800&q=80');
}

.category-card-cargo {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=800&q=80');
}

/* Dark overlay to ensure text readability */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    z-index: 0;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.category-card-freight:hover {
    border-color: #8b5cf6;
}

.category-card-air:hover {
    border-color: #06b6d4;
}

.category-card-sea:hover {
    border-color: #0ea5e9;
}

.category-card-warehouse:hover {
    border-color: #f59e0b;
}

.category-card-express:hover {
    border-color: #ef4444;
}

.category-card-logistics:hover {
    border-color: #3b82f6;
}

.category-card-customs:hover {
    border-color: #10b981;
}

.category-card-cargo:hover {
    border-color: #6366f1;
}

.category-card:hover::before {
    opacity: 0.85;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-freight:hover::before {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-air:hover::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-sea:hover::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-warehouse:hover::before {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-express:hover::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-logistics:hover::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-customs:hover::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-cargo:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.category-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-count {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: auto;
}

.count-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 4px;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card:hover .count-number {
    color: #3b82f6;
}

.category-card-freight:hover .count-number {
    color: #8b5cf6;
}

.category-card-air:hover .count-number {
    color: #06b6d4;
}

.category-card-sea:hover .count-number {
    color: #0ea5e9;
}

.category-card-warehouse:hover .count-number {
    color: #f59e0b;
}

.category-card-express:hover .count-number {
    color: #ef4444;
}

.category-card-logistics:hover .count-number {
    color: #3b82f6;
}

.category-card-customs:hover .count-number {
    color: #10b981;
}

.category-card-cargo:hover .count-number {
    color: #6366f1;
}

.count-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-heading {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.category-card:hover .category-heading {
    border-top-color: #3b82f6;
}

.category-card-freight:hover .category-heading {
    border-top-color: #8b5cf6;
}

.category-card-air:hover .category-heading {
    border-top-color: #06b6d4;
}

.category-card-sea:hover .category-heading {
    border-top-color: #0ea5e9;
}

.category-card-warehouse:hover .category-heading {
    border-top-color: #f59e0b;
}

.category-card-express:hover .category-heading {
    border-top-color: #ef4444;
}

.category-card-logistics:hover .category-heading {
    border-top-color: #3b82f6;
}

.category-card-customs:hover .category-heading {
    border-top-color: #10b981;
}

.category-card-cargo:hover .category-heading {
    border-top-color: #6366f1;
}

.category-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card:hover .category-title {
    color: #3b82f6;
}

.category-card-freight:hover .category-title {
    color: #8b5cf6;
}

.category-card-air:hover .category-title {
    color: #06b6d4;
}

.category-card-sea:hover .category-title {
    color: #0ea5e9;
}

.category-card-warehouse:hover .category-title {
    color: #f59e0b;
}

.category-card-express:hover .category-title {
    color: #ef4444;
}

.category-card-logistics:hover .category-title {
    color: #3b82f6;
}

.category-card-customs:hover .category-title {
    color: #10b981;
}

.category-card-cargo:hover .category-title {
    color: #6366f1;
}

/* Responsive Categories */
@media (max-width: 640px) {
    .category-card {
        height: 140px;
        padding: 20px;
    }
    
    .count-number {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .category-card {
        height: 150px;
    }
}

/* Recent Listings Section Styles */
.recent-listings-section {
    border-top: 1px solid #e5e7eb;
}

.listing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-2px);
}

.listing-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

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

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

.listing-category-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Different colors for category tags - you can add specific classes in HTML if needed */
.listing-card:nth-child(1) .listing-category-tag {
    background: rgba(139, 92, 246, 0.95); /* Purple */
}

.listing-card:nth-child(2) .listing-category-tag {
    background: rgba(6, 182, 212, 0.95); /* Cyan */
}

.listing-card:nth-child(3) .listing-category-tag {
    background: rgba(14, 165, 233, 0.95); /* Sky Blue */
}

.listing-card:nth-child(4) .listing-category-tag {
    background: rgba(245, 158, 11, 0.95); /* Amber */
}

.listing-card:nth-child(5) .listing-category-tag {
    background: rgba(239, 68, 68, 0.95); /* Red */
}

.listing-card:nth-child(6) .listing-category-tag {
    background: rgba(99, 102, 241, 0.95); /* Indigo */
}

.listing-content {
    background: white;
}

.listing-company-name {
    color: #1f2937;
    transition: color 0.3s ease;
}

.listing-card:hover .listing-company-name {
    color: #3b82f6;
}

.listing-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #6b7280;
}

.listing-item {
    font-size: 0.875rem;
}

.listing-item a {
    transition: color 0.2s ease;
    word-break: break-word;
}

.listing-item a:hover {
    color: #3b82f6;
}

.port-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.listing-card:hover .port-tag {
    background: #dbeafe;
    color: #3b82f6;
}

.action-button {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: #f3f4f6;
}

.action-button.like-button:hover {
    background: #fee2e2;
    color: #ef4444;
}

.action-button.comment-button:hover {
    background: #dbeafe;
    color: #3b82f6;
}

.like-button:hover svg {
    color: #ef4444;
    transform: scale(1.1);
}

.comment-button:hover svg {
    color: #3b82f6;
    transform: scale(1.1);
}

/* Responsive Listings */
@media (max-width: 768px) {
    .listing-image-wrapper {
        height: 200px;
    }
    
    .listing-content {
        padding: 1rem;
    }
    
    .listing-company-name {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .listing-image-wrapper {
        height: 180px;
    }
}

/* Top Likes Section Styles */
.top-likes-section {
    border-top: 1px solid #e5e7eb;
}

.top-liked-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-liked-card:hover {
    transform: translateY(-2px);
}

.top-likes-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    z-index: 2;
}

.top-likes-badge svg {
    width: 20px;
    height: 20px;
}

.top-likes-count {
    font-size: 0.875rem;
    font-weight: 700;
}

.top-liked-card .top-likes-badge {
    animation: pulse-heart 2s ease-in-out infinite;
}

@keyframes pulse-heart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


.top-liked-card .like-button {
    color: #ef4444;
}

.top-liked-card .like-button:hover {
    color: #dc2626;
    background: #fee2e2;
}

.top-liked-card .listing-company-name:hover {
    color: #ef4444;
}

/* Footer Styles */
.footer {
    background: white;
}

.footer-logo h3 {
    color: #1f2937;
}

.footer-heading {
    color: #1f2937;
    margin-bottom: 1rem;
}

.footer-link {
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #3b82f6;
    transform: translateX(2px);
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-social-link:nth-child(1):hover {
    background: #1877f2;
}

.footer-social-link:nth-child(2):hover {
    background: #1da1f2;
}

.footer-social-link:nth-child(3):hover {
    background: #0a66c2;
}

.footer-social-link:nth-child(4):hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

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

.footer-icon {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
}

.footer-copyright {
    color: #6b7280;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        text-align: center;
    }
}

/* CTA Section Styles */
.cta-section {
    border-top: 1px solid #e5e7eb;
}

.cta-button {
    transition: all 0.2s ease;
    transform: translateY(0);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

@media (max-width: 640px) {
    .cta-section {
        padding: 2.5rem 0;
    }
    
    .cta-section .bg-white {
        padding: 1.5rem !important;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        max-width: 280px;
    }
}

/* About Page Styles */
.about-hero {
    border-bottom: 1px solid #e5e7eb;
}

.about-content {
    line-height: 1.8;
}

.about-section {
    margin-bottom: 3rem;
}

.about-card {
    transition: all 0.3s ease;
}

.about-icon-wrapper {
    transition: transform 0.3s ease;
}

.about-card:hover .about-icon-wrapper {
    transform: scale(1.1);
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #3b82f6;
    transform: translateY(-4px);
}

.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 0;
    }
    
    .about-hero h1 {
        font-size: 2rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .about-icon-wrapper {
        width: 48px;
        height: 48px;
        padding: 0.75rem;
    }
    
    .about-icon-wrapper svg {
        width: 24px;
        height: 24px;
    }
}

/* About Page CTA Styles */
.about-cta-section {
    margin-top: 4rem;
}

.about-cta-card {
    position: relative;
    overflow: hidden;
}

.about-cta-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100px 100px;
}

.about-cta-icon {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

.about-cta-button {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.about-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.about-cta-button-secondary {
    transition: all 0.3s ease;
    white-space: nowrap;
}

.about-cta-button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

@media (max-width: 640px) {
    .about-cta-card {
        padding: 2rem !important;
    }
    
    .about-cta-card h2 {
        font-size: 1.75rem;
    }
    
    .about-cta-card p {
        font-size: 1rem;
    }
    
    .about-cta-button,
    .about-cta-button-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .about-cta-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* Latest Updates Page Styles */
.latest-hero {
    border-bottom: 1px solid #e5e7eb;
}

.latest-updates-section {
    background: #f9fafb;
}

.update-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-card:hover {
    transform: translateY(-4px);
    border-color: #3b82f6;
}

.update-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f4f6;
}

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

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

.update-date-badge {
    position: absolute;
    top: 12px;
    /* left: 12px; */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 12px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.update-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.update-month {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.update-content {
    background: white;
}

.update-meta {
    margin-bottom: 1rem;
}

.update-category {
    display: inline-block;
}

.update-time {
    flex-shrink: 0;
}

.update-title {
    min-height: 3rem;
    transition: color 0.2s ease;
}

.update-description {
    min-height: 4.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.update-read-more {
    transition: all 0.2s ease;
}

.update-read-more:hover {
    transform: translateX(4px);
}

/* Pagination Styles */
.pagination-wrapper {
    margin-top: 3rem;
}

.pagination-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 40px;
}

.pagination-btn:hover {
    transform: translateY(-2px);
}

.pagination-btn-active {
    background: #3b82f6;
    color: white;
}

/* Responsive Latest Updates */
@media (max-width: 768px) {
    .update-image-wrapper {
        height: 180px;
    }
    
    .update-title {
        min-height: auto;
    }
    
    .update-description {
        min-height: auto;
    }
}

/* Listings Page Styles */
.listings-hero {
    border-bottom: 1px solid #e5e7eb;
}

.listings-search-filter {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.listings-grid-section {
    background: #f9fafb;
}

.view-details-btn {
    transition: all 0.2s ease;
}

.view-details-btn:hover {
    transform: translateX(4px);
}

/* Sort Select Styles */
.sort-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
    min-width: 180px;
}

.sort-select:hover {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sort-select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Listings Search Input Styles */
.listings-search-filter input,
.listings-search-filter select {
    font-size: 0.875rem;
}

.listings-search-filter input:focus,
.listings-search-filter select:focus {
    border-color: #3b82f6;
    outline: none;
}

@media (max-width: 768px) {
    .listings-search-filter {
        padding: 1rem;
    }
    
    .listings-search-filter .grid {
        grid-template-columns: 1fr;
    }
    
    .listings-search-filter .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .listings-search-filter .flex > div {
        width: 100%;
    }
}

/* Custom Scrollbar Styles */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #2563eb);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #1d4ed8);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f1f1f1;
}

/* Optional: Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loader Component Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #F5F1E3 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

/* Hide body content when loader is visible */
body.loading {
    overflow: hidden;
}

body.loading #main-content {
    display: none !important;
    visibility: hidden;
}

.steering-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.steering {
    width: 300px;
    height: 300px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/3/34/Steering_wheel_ship_1.png') center no-repeat;
    background-size: 100%;
    position: relative;
    animation: rotateWheel 5s infinite;
}

.loader-text {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: 0.1em;
}

@keyframes rotateWheel {
    0% {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    20% {
        -ms-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    40% {
        -ms-transform: rotate(90deg);
        -moz-transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }
    60% {
        -ms-transform: rotate(270deg);
        -moz-transform: rotate(270deg);
        -webkit-transform: rotate(270deg);
        transform: rotate(270deg);
    }
    80% {
        -ms-transform: rotate(180deg);
        -moz-transform: rotate(180deg);
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    100% {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

/* Responsive Loader */
@media (max-width: 640px) {
    .steering {
        width: 200px;
        height: 200px;
    }
    
    .loader-text {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

