/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #fafafa;
    --foreground: #0a0a0f;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #f0f2f5;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --card: #ffffff;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-2xl {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    width: 100%;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--foreground);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 700;  /* Bold for better visibility */
    text-decoration: none;
    color: var(--foreground);
    transition: color 0.2s;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--foreground);
}

.mobile-nav {
    display: none;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--foreground);
    transition: color 0.2s;
}

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

/* Footer */
.footer {
    width: 100%;
    background-color: var(--background);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.footer-content {
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    margin-right: 0.5rem;
}

.footer-brand span {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--muted-foreground);
    transition: color 0.2s;
}

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

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

.footer-contact li {
    display: flex;
    align-items: flex-start;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Main Content */
main {
    flex: 1;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, 
        #f0f4ff 0%,      /* Soft blue */
        #e8f0fe 25%,     /* Light blue */
        #f0fdf4 75%,     /* Light green tint */
        #e0f2fe 100%     /* Sky blue */
    );
    padding: 4rem 0;
    overflow: hidden;  /* Can use overflow: hidden because dropdown is position: fixed */
}

/* Dot pattern overlay for hero - diagonal/rhombus effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1.5px, transparent 1.5px);
    background-size: 6px 6px;
    background-position: 0 0, 9px 9px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto 1rem;
}

/* Dark mode for hero */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, 
        #0a1628 0%,      /* Deep blue-black */
        #0f1e33 50%,     /* Dark blue */
        #0a1628 100%     /* Deep blue-black */
    );
}

[data-theme="dark"] .hero::before {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.18) 1.5px, transparent 1.5px);
}

/* Tracking Form */
.tracking-form {
    max-width: 1020px;
    margin: 0 auto;
}

.tracking-form h2 {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.tracking-form form {
    display: flex;
    gap: 0.75rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 1rem 0 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 48px;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--muted);
}

.btn-sm {
    height: 36px;
    padding: 0 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 56px;
    padding: 0 2rem;
    font-size: 1.125rem;
}

.tracking-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 0.75rem;
}

/* Section */
.section {
    padding: 4rem 0;
}

.section-muted {
    background-color: var(--muted);
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carrier-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: transform 0.3s;
}

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

.carrier-card-icon svg {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.5rem;
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
    flex: 1;
    margin-bottom: 1rem;
}

.card-button {
    margin-top: auto;
}

/* Feature Card */
.feature-card {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--muted-foreground);
}

/* Benefits */
.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    color: var(--primary);
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 20px;
    height: 20px;
}

.benefit-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Search Bar */
.search-bar {
    max-width: 28rem;
    margin: 0 auto 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
}

.pagination button.active {
    background-color: var(--primary);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    padding: 0 0.5rem;
}

/* Carrier Page */
.carrier-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.carrier-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrier-icon-large svg {
    width: 40px;
    height: 40px;
}

.carrier-info {
    text-align: center;
}

.carrier-info h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.carrier-info p {
    color: var(--muted-foreground);
}

.tracking-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.tracking-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tracking-card form {
    display: flex;
    gap: 0.75rem;
}

/* Content */
.content {
    max-width: none;
}

.content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

/* Spacing */
.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-10 {
    margin-bottom: 2.5rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .tracking-form form {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .carrier-header {
        flex-direction: row;
        align-items: center;
    }
    
    .carrier-info {
        text-align: left;
    }
    
    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tracking-form form {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/* ========================================
   DARK MODE SYSTEM
   Automatically switches based on user preference
   ======================================== */

/* Dark mode color variables */
[data-theme="dark"] {
    --background: #141517;
    --foreground: #ededed;
    --card: #242424;
    --card-foreground: #ededed;
    --popover: #242424;
    --popover-foreground: #ededed;
    --primary: #3b82f6;
    --primary-foreground: #ffffff;
    --secondary: #2a2a2a;
    --secondary-foreground: #ededed;
    --muted: #2a2a2a;
    --muted-foreground: #a1a1a1;
    --accent: #2a2a2a;
    --accent-foreground: #ededed;
    --destructive: #dc2626;
    --destructive-foreground: #ededed;
    --border: #2a2a2a;
    --input: #2a2a2a;
    --ring: #3b82f6;
}

/* Dark mode smooth transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark mode toggle button */
/* Old floating dark mode toggle - HIDDEN */
.dark-mode-toggle {
    display: none;
}

/* Dark mode toggle in navigation */
.dark-mode-toggle-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-mode-toggle-nav:hover {
    background-color: var(--muted);
    border-color: var(--primary);
}

.dark-mode-toggle-nav svg {
    width: 20px;
    height: 20px;
    color: var(--foreground);
}

/* Hide sun in light mode, hide moon in dark mode */
[data-theme="light"] .dark-mode-toggle-nav .moon-icon,
[data-theme="light"] .dark-mode-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .dark-mode-toggle-nav .sun-icon,
[data-theme="light"] .dark-mode-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle-nav .moon-icon,
[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle-nav .sun-icon,
[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: block;
}

/* Tracking hero - modern gradient with subtle pattern */
.tracking-hero {
    position: relative;
    background: linear-gradient(135deg, 
        #f0f4ff 0%,      /* Soft blue */
        #e8f0fe 25%,     /* Light blue */
        #f0fdf4 75%,     /* Light green tint */
        #e0f2fe 100%     /* Sky blue */
    );
    padding: 3rem 0 3.5rem;
    overflow: hidden;  /* Can use overflow: hidden because dropdown is position: fixed */
}

/* Diagonal dot pattern overlay - rhombus effect */
.tracking-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1.5px, transparent 1.5px);
    background-size: 6px 6px;
    background-position: 0 0, 9px 9px;
    pointer-events: none;
}

/* Tracking hero - gradient for dark mode */
[data-theme="dark"] .tracking-hero {
    background: linear-gradient(135deg, 
        #0a1628 0%,      /* Deep blue-black */
        #0f3737 50%,     /* Dark teal */
        #0a1628 100%     /* Deep blue-black */
    );
}

/* Dark mode dot pattern - stronger */
[data-theme="dark"] .tracking-hero::before {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.18) 1.5px, transparent 1.5px);
}

/* Footer darker in dark mode */
[data-theme="dark"] footer {
    background-color: #050505;
    border-top-color: #1a1a1a;
}

/* ========================================
   17TRACK API DIALOG CUSTOMIZATION
   Critical fixes from original programmer
   ======================================== */

/* Main dialog container */
.jcTrkApiDialog {
    width: 600px;
    margin-top: -15px;
    max-width: 100%;
}

/* Dialog iframe styling */
.jcTrkApiDialog iframe {
    border-radius: 6px !important;
    border: 1px solid var(--border);
}

/* CRITICAL: Increased height to avoid scrolling - programmer's fix */
.jcTrackIframe {
    height: 750px !important;
    min-height: 750px !important;
}

/* Track container */
#track_container {
    height: 500px;
    display: block;
    overflow: hidden;
}

/* Responsive dialog for mobile */
@media screen and (max-width: 800px) {
    .jcTrkApiDialog {
        width: 100% !important;
        left: 0px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .jcTrackIframe {
        height: 600px !important;
    }
}

@media screen and (max-width: 640px) {
    .jcTrkApiDialog {
        margin-top: 0;
    }
    
    .jcTrackIframe {
        height: 500px !important;
    }
}

/* 17track dialog dark mode fix */
[data-theme="dark"] .jcTrkApiDialog {
    background-color: #1a1a1a !important;
}

[data-theme="dark"] .jcTrkApiDialog iframe {
    border-color: var(--border);
    /* Invert iframe content for dark mode */
    filter: invert(0.92) hue-rotate(180deg) brightness(1.08) !important;
    transition: filter 0.3s ease;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .dark-mode-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .dark-mode-toggle svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}


/* ========================================
   HEADER STYLES
   ======================================== */

.header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .header {
    background-color: rgba(10, 10, 10, 0.8);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 2rem;
    gap: 3rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.logo-number,
.logo-text {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    transition: color 0.2s ease;
}

.logo-number {
    color: var(--primary);
    letter-spacing: -0.05em;
    font-weight: 950;
    margin-right: 0.15em;
}

.logo-text {
    color: var(--foreground);
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-weight: 700;  /* Bold for better visibility */
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.01em;  /* Slightly spaced for emphasis */
}

.nav-link svg {
    flex-shrink: 0;
}

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

/* Mobile header */
@media (max-width: 640px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.875rem;
    }
}


/* ========================================
   FOOTER STYLES - DARKER BACKGROUND
   ======================================== */

.footer {
    background-color: #171d24;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 1.5rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 1.5rem;
    justify-items: start;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-description {
    color: #d1d5db;
    line-height: 1.6;
}

.footer-text {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

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

.copyright {
    color: #d1d5db;
    font-size: 0.875rem;
    margin: 0;
}

/* Footer mobile */
@media (max-width: 640px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* ========================================
   TRACKING WIDGET STYLES
   ======================================== */

.tracking-widget {
    width: 100%;
    margin: 2rem 0;
}

.tracking-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.tracking-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 1020px;
    margin: 0 auto;
}

.tracking-input {
    flex: 1;
    width: 100%;  /* Ensure full width */
    max-width: 920px;
    height: 50px;  /* Increased from 48px */
    padding: 0 1rem;  /* Horizontal padding only */
    font-size: 1.25rem;  /* Increased from 1rem */
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--foreground);
    transition: border-color 0.2s ease;
}

.tracking-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tracking-button {
    height: 50px;  /* Increased from 48px to match input */
    padding: 0 2rem;  /* Horizontal padding only */
    white-space: nowrap;
    font-size: 1.0625rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recent Tracking Numbers */
.tracking-input-wrapper {
    position: relative;
    flex: 1;
    width: 100%;  /* Ensure full width */
    z-index: 10000 !important;  /* Very high to ensure wrapper is above everything */
}

.recent-tracking {
    position: fixed;  /* Fixed positioning - not affected by parent overflow */
    /* top, left, width set by JavaScript */
    margin-top: 0;  /* No margin needed with fixed positioning */
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);  /* Stronger shadow for visibility */
    z-index: 99999 !important;  /* Absolutely on top */
    max-width: 920px;
    max-height: 300px;  /* Allow space for all 5 items */
    overflow-y: auto;   /* Enable scrolling if needed */
}

.recent-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--card);  /* Ensure solid background */
}

.recent-tracking-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-foreground);
}

.recent-tracking-clear {
    font-size: 0.75rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.recent-tracking-clear:hover {
    background-color: var(--muted);
}

.recent-tracking-list {
    padding: 0.5rem;
    background-color: var(--card);  /* Ensure background covers text */
}

.recent-tracking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9375rem;
    background-color: var(--card);  /* Solid background by default */
}

.recent-tracking-item:hover {
    background-color: var(--muted);
}

.recent-tracking-number {
    font-family: 'Courier New', monospace;
    color: var(--foreground);
}

.recent-tracking-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.recent-tracking-remove:hover {
    background-color: var(--destructive);
    color: white;
}

.recent-tracking-remove svg {
    width: 14px;
    height: 14px;
}

/* Tracking results container */
#YQContainer {
    margin-top: 2rem;
    min-height: 400px;
}

/* Mobile tracking form */
@media (max-width: 640px) {
    .tracking-form-wrapper {
        padding: 0;
    }
    
    .tracking-form {
        flex-direction: column;
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .tracking-input {
        width: 100%;
        max-width: 100%;
        height: 52px;  /* Slightly taller on mobile for better UX */
    }
    
    .tracking-button {
        width: 100%;
        height: 52px;  /* Match input height on mobile */
    }
}


/* ========================================
   AD CONTAINER STYLES
   ======================================== */

.ad-container {
    display: block;
    margin: 1.5rem auto;
}

.ad-header {
    text-align: center;
    margin: 0.25rem auto 1rem; /* Reduced top margin for tighter spacing */
}

.ad-responsive {
    width: 100%;
    max-width: 728px;
    margin: 2rem auto;
    overflow: hidden;
}

.ad-responsive svg {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Mobile ad responsive */
@media (max-width: 768px) {
    .ad-responsive {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }
}

.ad-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Dark mode ad adjustments */
[data-theme="dark"] .ad-container svg rect {
    fill: #1a1a1a;
    stroke: #333;
}

[data-theme="dark"] .ad-container svg text {
    fill: #666;
}


/* ========================================
   SEARCH SYSTEM
   ======================================== */

/* Mobile search toggle button (hidden on desktop) */
.search-toggle-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-toggle-mobile:hover {
    background-color: var(--muted);
    border-color: var(--primary);
}

.search-toggle-mobile svg {
    color: var(--foreground);
}

/* Search input wrapper */
.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-container {
    position: relative;
    max-width: 500px;
    flex: 0 0 500px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--foreground);
    transition: background-color 0.2s ease;
}

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

.search-result-item:hover {
    background-color: var(--muted);
}

.search-result-item.no-results {
    color: var(--muted-foreground);
    cursor: default;
}

.search-result-item.no-results:hover {
    background-color: transparent;
}

.search-result-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-name mark {
    background-color: var(--primary);
    color: white;
    padding: 0 0.25rem;
    border-radius: 2px;
}

.search-result-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

.search-result-more {
    padding: 0.75rem 1rem;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

/* Mobile search */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    
    .search-results {
        max-height: 300px;
    }
}


/* ========================================
   RESPONSIVE HEADER WITH SEARCH
   ======================================== */

/* Medium tablet - reduce search width but keep inline */
@media (max-width: 1024px) and (min-width: 769px) {
    .search-container {
        flex: 0 1 300px;
        max-width: 300px;
    }
}

/* Small tablet - search goes to new row */
@media (max-width: 768px) and (min-width: 641px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .search-container {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* Mobile - search becomes icon toggle */
@media (max-width: 768px) {
    /* Show mobile search toggle button */
    .search-toggle-mobile {
        display: flex;
    }
    
    /* Hide search input wrapper by default */
    .search-input-wrapper {
        display: none;
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 0;
        right: 0;
        z-index: 1001;
    }
    
    /* Show input when search is active */
    .search-container.active .search-input-wrapper {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        padding: 0.5rem 1rem;
        background-color: var(--background);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* Search results on mobile when search is active */
    .search-container.active .search-results {
        position: fixed;
        top: calc(70px + 3rem);
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 1rem;
        border-radius: 0;
    }
    
    /* Adjust search container */
    .search-container {
        flex: 0 0 auto;
        max-width: none;
        order: 0;
    }
    
    /* Full width search input on mobile when open */
    .search-container.active .search-input {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Landscape - Show search as field, not icon */
@media (max-width: 768px) and (orientation: landscape) {
    .search-toggle-mobile {
        display: none;
    }
    
    .search-input-wrapper {
        display: flex;
        position: relative;
    }
    
    .search-container {
        flex: 1 1 auto;
        max-width: 500px;
    }
}

@media (max-width: 640px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .nav {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .nav-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-left: -1rem;
    }
    
    .dark-mode-toggle-nav {
        width: 32px;
        height: 32px;
    }
}


/* ========================================
   CARRIER PAGE LAYOUT
   ======================================== */

.carrier-page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.carrier-main-content {
    min-width: 0;
}

.carrier-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

/* In-Content Ad Slot */
.ad-in-content {
    text-align: center;
    margin: 30px auto;
    max-width: 100%;
    min-height: 250px; /* Prevent CLS (Cumulative Layout Shift) */
    clear: both;
}

.ad-in-content .ad-container {
    margin: 0 auto;
}

/* Official Website Box */
.official-website-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--muted);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.official-website-box svg:first-child {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--primary);
}

.official-website-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.official-website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
    transition: opacity 0.2s ease;
}

.official-website-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.official-website-link svg {
    flex-shrink: 0;
}

/* Contact Information Container (Phone + Website) */
.contact-info-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.contact-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background-color: var(--muted);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    flex: 1;
}

.contact-info-box svg:first-child {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--primary);
}

.contact-info-box strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--foreground);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
    transition: opacity 0.2s ease;
}

.contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-link svg {
    flex-shrink: 0;
}

/* Mobile Responsive - Stack contact boxes vertically */
@media (max-width: 768px) {
    .contact-info-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-info-box {
        flex: none;
    }
}

/* Carrier Logo Placeholder */
/* Carrier Header with Logo */
.carrier-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.carrier-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.carrier-title-row .tracking-hero-title {
    margin-bottom: 0;
}

.carrier-header-text {
    flex: 1;
    text-align: left;
}

.carrier-logo-wrapper {
    flex-shrink: 0;
}

.carrier-logo-image {
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
    background-color: var(--muted);
    border: 2px solid var(--border);
    padding: 0.5rem;
}

/* Tracking Hero */
.tracking-hero-content {
    position: relative;
    max-width: 950px;
    margin: 0 auto;
    z-index: 1;
}

.tracking-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tracking-hero-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 0.75rem; /* Reduced from 1.25rem for tighter spacing */
}

/* Carrier Content Styling */
.carrier-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.carrier-content h2:first-of-type {
    margin-top: 0.5rem;
}

.carrier-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.carrier-content p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.carrier-content p:last-child {
    margin-bottom: 0;
}

/* Content Links - ONLY within paragraphs (not cards!) */
.carrier-content p a,
.intro-section p a,
.features-section p a,
.content-section p a {
    color: #2563eb; /* Blue 600 - light mode */
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.carrier-content p a:hover,
.intro-section p a:hover,
.features-section p a:hover,
.content-section p a:hover {
    color: #1d4ed8; /* Blue 700 - darker on hover */
}

/* Dark mode - Better contrast */
[data-theme="dark"] .carrier-content p a,
[data-theme="dark"] .intro-section p a,
[data-theme="dark"] .features-section p a,
[data-theme="dark"] .content-section p a {
    color: #60a5fa; /* Blue 400 - lighter for dark mode */
}

[data-theme="dark"] .carrier-content p a:hover,
[data-theme="dark"] .intro-section p a:hover,
[data-theme="dark"] .features-section p a:hover,
[data-theme="dark"] .content-section p a:hover {
    color: #93c5fd; /* Blue 300 - even lighter on hover */
}

/* FAQ Section */
.faq-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.faq-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    padding: 1.25rem 1.5rem;
    color: var(--foreground);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--muted);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--muted-foreground);
}

.faq-active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--muted-foreground);
}

/* Related Carriers */
.related-carriers {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.related-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.related-carriers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.related-carrier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    min-height: 110px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.2s ease;
    text-align: center;
}

.related-carrier-card:hover {
    background-color: var(--muted);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.related-carrier-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.related-carrier-icon-placeholder {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #2563eb));
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.related-carrier-name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ad Group Bottom */
.ad-group-bottom {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Responsive Carrier Page */
@media (max-width: 1024px) {
    .carrier-page-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .carrier-sidebar {
        position: static;
        display: contents;
    }
    
    /* HIDE STICKY AD ON MOBILE - Compliance with Google AdSense */
    .carrier-sidebar > .ad-container {
        display: none !important;
    }
    
    /* Main content u sredini */
    .carrier-main-content {
        order: 0;
    }
    
    /* Related carriers MORA biti ispod FAQ - order: 1 */
    .carrier-sidebar > .related-carriers {
        order: 1 !important;
        max-width: 100%;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mobile landscape - hide sidebar ad completely */
    @media (orientation: landscape) {
        .carrier-page-layout {
            display: flex !important;
            flex-wrap: wrap !important;
            flex-direction: row !important;
        }
        
        .carrier-sidebar {
            display: contents !important;
            width: 100%;
        }
        
        /* HIDE SIDEBAR AD on mobile landscape */
        .carrier-sidebar > .ad-container {
            display: none !important;
        }
        
        /* Main content 100% width */
        .carrier-main-content {
            order: 0 !important;
            flex: 1 1 100% !important;
            width: 100%;
            margin-top: 1rem !important;
        }
        
        /* Related 100% width ISPOD FAQ */
        .carrier-sidebar > .related-carriers {
            order: 1 !important;
            flex: 1 1 100% !important;
            width: 100%;
            margin-top: 1rem;
        }
    }
}

/* REMOVED - No longer needed, sidebar ad always hidden on mobile */
    }
}

@media (max-width: 768px) {
    .tracking-hero-title {
        font-size: 2rem;
    }
    
    .tracking-hero-subtitle {
        font-size: 1rem;
    }
    
    .carrier-content h2 {
        font-size: 1.5rem;
    }
    
    .carrier-content h3 {
        font-size: 1.25rem;
    }
    
    .official-website-box {
        flex-direction: column;
        text-align: center;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .ad-group-bottom {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .faq-section h2 {
        font-size: 1.35rem;
    }
    
    .carrier-logo-image {
        width: 64px;
        height: 64px;
    }
    
    .tracking-hero-title {
        font-size: 1.75rem;
    }
}


/* ========================================
   HOMEPAGE STYLES
   ======================================== */

/* Home Hero */
/* Home hero uses .hero gradient defined above */

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-number {
    color: var(--primary);
}

.hero-text {
    color: var(--foreground);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Content Sections */
.home-content {
    padding: 4rem 0;
    padding-top: 6rem !important;  /* Force top padding */
}

.intro-section,
.features-section,
.popular-carriers-section,
.about-section {
    margin-bottom: 4rem;
}

.intro-section h2,
.features-section h2,
.popular-carriers-section h2,
.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.intro-section p,
.about-section p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--foreground);
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.section-intro {
    text-align: center;
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #93c5fd 0%, #bfdbfe 100%);
    color: white;
    border-radius: 16px;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    margin: 0;
}

/* Carriers Grid */
.carriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.carrier-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.3s ease;
}

.carrier-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.carrier-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--muted);
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.carrier-card-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--muted-foreground);
}

.carrier-card-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.5rem;
}

.carrier-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.carrier-card p {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    /* CSS line-clamp for uniform display */
    display: -webkit-box;
    -webkit-line-clamp: 3;  /* Show 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carrier-card-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.text-center {
    text-align: center;
}

/* Responsive Homepage */
@media (max-width: 768px) {
    .home-hero {
        padding: 3rem 0 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .carriers-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet - features 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    }
}


/* ========================================
   ALL CARRIERS PAGE
   ======================================== */

.page-header {
    position: relative;
    background: linear-gradient(135deg, 
        #f0f4ff 0%,      /* Soft blue - IDENTIČNO kao .tracking-hero */
        #e8f0fe 25%,     /* Light blue - IDENTIČNO kao .tracking-hero */
        #f0fdf4 75%,     /* Light green tint - IDENTIČNO kao .tracking-hero */
        #e0f2fe 100%     /* Sky blue - IDENTIČNO kao .tracking-hero */
    );
    border-bottom: 1px solid var(--border);
    padding: 3rem 0 5rem 0;
    text-align: center;
    overflow: hidden;
}

/* Dot pattern for page-header */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.15) 1.5px, transparent 1.5px);
    background-size: 6px 6px;
    background-position: 0 0, 9px 9px;
    pointer-events: none;
}

.page-header h1 {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.page-description {
    position: relative;
    z-index: 1;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Dark mode for page-header */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, 
        #142a4a 0%,
        #0e223e 50%,
        #0a1628 100%
    );
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

[data-theme="dark"] .page-header::before {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.18) 1.5px, transparent 1.5px);
    background-size: 6px 6px;
    background-position: 0 0;
}

/* Content section - clean background */
.content-section {
    background-color: var(--background);
    position: relative;
    z-index: 2;
    padding-top: 1.5rem;
}

.carriers-search-info {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    margin-bottom: 3.5rem;
}

.carriers-search-info p {
    margin: 0;
    color: var(--muted-foreground);
}

.carriers-search-info strong {
    color: var(--foreground);
}

.all-carriers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.carrier-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--foreground);
    transition: all 0.2s ease;
}

.carrier-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.carrier-list-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.carrier-list-logo-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--muted-foreground);
    text-align: center;
}

.carrier-list-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.375rem;
}

.carrier-list-content {
    flex: 1;
    min-width: 0;
}

.carrier-list-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.carrier-list-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    /* CSS line-clamp for uniform 2-line display */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.carrier-list-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: capitalize;
}

.carrier-list-arrow {
    flex-shrink: 0;
    color: var(--muted-foreground);
}

.carriers-bottom-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.carriers-bottom-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.carriers-bottom-cta p {
    font-size: 1.0625rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

/* Responsive All Carriers */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .all-carriers-grid {
        grid-template-columns: 1fr;
    }
    
    .carriers-bottom-cta {
        padding: 2rem 0;
    }
}


/* ========================================
   PRIVACY POLICY PAGE
   ======================================== */

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.privacy-section {
    margin-bottom: 3.5rem;  /* Povećano sa 3rem - više prostora između sekcija */
    padding: 1.5rem 0;  /* Dodato padding unutar sekcije */
}

.privacy-section:first-of-type {
    padding-top: 0;  /* Prvi section bez top padding */
}

.privacy-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;  /* Povećano sa 1rem */
    padding-bottom: 0.75rem;  /* Povećano sa 0.5rem */
    border-bottom: 2px solid var(--border);
}

.privacy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;  /* Povećano sa 1.5rem - više prostora pre subnaslova */
    margin-bottom: 1rem;  /* Povećano sa 0.75rem */
}

.privacy-section p {
    line-height: 1.8;  /* Povećano sa 1.75 - bolji line height */
    margin-bottom: 1.25rem;  /* Povećano sa 1rem */
    color: var(--foreground);
}

.privacy-section ul {
    margin: 1.25rem 0;  /* Povećano sa 1rem */
    padding-left: 2rem;
}

.privacy-section li {
    margin-bottom: 0.75rem;  /* Povećano sa 0.5rem - više prostora između list items */
    line-height: 1.7;  /* Povećano sa 1.6 */
}

.privacy-section strong {
    font-weight: 600;
    color: var(--foreground);
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 1.5rem 1rem;
    }
    
    .privacy-section {
        margin-bottom: 2.5rem;  /* Manje na mobilnom */
        padding: 1rem 0;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
    
    .privacy-section h3 {
        font-size: 1.125rem;
        margin-top: 1.5rem;  /* Manje na mobilnom */
    }
}


/* ========================================
   404 ERROR PAGE
   ======================================== */

.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-icon {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.error-help {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.error-help p {
    font-size: 0.9375rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.error-help strong {
    color: var(--foreground);
}

@media (max-width: 640px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-actions .btn {
        width: 100%;
    }
}


/* ========================================
   GUIDE/ARTICLE PAGES
   ======================================== */

.guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

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

.guide-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.guide-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guide-section p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.guide-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.guide-section li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.guide-section strong {
    font-weight: 600;
    color: var(--foreground);
}

.tracking-formats-list li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.guide-cta {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 3rem;
}

.guide-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.guide-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

@media (max-width: 768px) {
    .guide-content {
        padding: 1.5rem 1rem;
    }
    
    .guide-section h2 {
        font-size: 1.5rem;
    }
    
    .guide-section h3 {
        font-size: 1.125rem;
    }
    
    .guide-cta {
        padding: 2rem 1.5rem;
    }
}


/* ========================================
   PAGINATION
   ======================================== */

.pagination-wrapper {
    margin: 3rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.pagination-info {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-align: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: var(--muted);
    border-color: var(--primary);
}

.pagination-btn.pagination-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background-color: var(--background);
    color: var(--foreground);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background-color: var(--muted);
    border-color: var(--primary);
}

.pagination-number.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .pagination-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .pagination-number {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8125rem;
    }
    
    .pagination-info {
        font-size: 0.8125rem;
    }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 120px;  /* Elevated for sticky anchor ads */
    right: 20px;
    width: 3rem;
    height: 3rem;
    background-color: rgba(59, 130, 246, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background-color: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Dark mode */
[data-theme="dark"] .back-to-top {
    background-color: rgba(59, 130, 246, 0.7);
}

[data-theme="dark"] .back-to-top:hover {
    background-color: rgba(59, 130, 246, 0.9);
}

/* Dark mode card backgrounds */
[data-theme="dark"] .feature-card {
    background-color: #1b1d22;
}

[data-theme="dark"] .carrier-card {
    background-color: #1b1d22;
}

[data-theme="dark"] .carrier-list-item {
    background-color: #1b1d22;
}

[data-theme="dark"] .related-carrier-card {
    background-color: #1b1d22;
}

[data-theme="dark"] .official-website-box {
    background-color: #1b1d22;
}

[data-theme="dark"] .contact-info-box {
    background-color: #1b1d22;
}

[data-theme="dark"] .cta-box {
    background: linear-gradient(135deg, #1b1d22 0%, #151719 100%);
}

/* FAQ items - slightly different shade to distinguish open/closed */
[data-theme="dark"] .faq-item {
    background-color: #1b1d22;
}

[data-theme="dark"] .faq-active {
    background-color: #1f2127;  /* Slightly lighter when open */
}

[data-theme="dark"] .faq-question:hover {
    background-color: #22252b;  /* Hover state - slightly lighter */
}

/* Related carriers section */
[data-theme="dark"] .related-carriers {
    background-color: #1b1d22;
}

[data-theme="dark"] .related-carrier-card:hover {
    background-color: #1f2127;  /* Hover state */
}

/* Track Other Carriers hover states */
[data-theme="dark"] .carrier-list-item:hover {
    background-color: #1f2127;  /* Hover state */
}

[data-theme="dark"] .carrier-card:hover {
    background-color: #1f2127;  /* Hover state */
}

[data-theme="dark"] .feature-card:hover {
    background-color: #1f2127;  /* Hover state */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 120px;  /* Same as desktop for sticky ads */
        right: 20px;
        width: 2.75rem;
        height: 2.75rem;
    }
    
    .back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Related Carriers Responsive */
@media (max-width: 768px) {
    .related-carriers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .related-carrier-card {
        padding: 0.75rem;
    }
    
    .related-carrier-icon,
    .related-carrier-icon-placeholder {
        width: 48px;
        height: 48px;
    }
    
    .related-carrier-icon-placeholder {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .related-carriers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .related-carrier-card {
        padding: 0.625rem;
    }
    
    .related-carrier-icon,
    .related-carrier-icon-placeholder {
        width: 44px;
        height: 44px;
    }
    
    .related-carrier-icon-placeholder {
        font-size: 1rem;
    }
    
    .related-carrier-name {
        font-size: 0.75rem;
    }
}

/* ==============================================
   ALL-CARRIERS PAGE SPECIFIC
   ============================================== */

/* Most Popular and Recently Added sections - 6 columns on desktop */
.popular-carriers-section .related-carriers-grid,
.recent-carriers-section .related-carriers-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* Section titles alignment */
.popular-carriers-section h2,
.recent-carriers-section h2,
.all-carriers-az-section h2 {
    text-align: left;
    color: var(--foreground);
}

/* Dark mode support for new H2 titles */
[data-theme="dark"] .popular-carriers-section h2,
[data-theme="dark"] .recent-carriers-section h2,
[data-theme="dark"] .all-carriers-az-section h2 {
    color: var(--foreground);
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .popular-carriers-section .related-carriers-grid,
    .recent-carriers-section .related-carriers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 3 columns */
@media (max-width: 768px) {
    .popular-carriers-section .related-carriers-grid,
    .recent-carriers-section .related-carriers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==============================================
   CARRIER CONTENT - Lists (ul/ol)
   ============================================== */

/* Lists in carrier content - proper indentation */
.carrier-content ul,
.carrier-content ol {
    margin-left: 0;
    padding-left: 1.2rem;
    list-style-position: outside;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

.carrier-content li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
}

/* Nested lists */
.carrier-content ul ul,
.carrier-content ol ul,
.carrier-content ul ol,
.carrier-content ol ol {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
}

.tracking-statuses img {
    margin-right: 0.4rem;
    vertical-align: middle;
}