/* Custom scrollbar */
::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #efefef;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c4c4c4;
}

/* Tabs styling */
.tabs {
    margin-bottom: 0px;
    position: relative;
}

/* Tab content container - WIDER */
.tab-content {
    padding: 40px 10px;
    color: #000;
    background-color: white;
    max-width: 95%;
    margin: 0 auto;
    width: 95%;
}

/* Main tab panes */
.tab-pane {
    display: none;
    width: 100%;
}

.tab-pane.is-active {
    display: block;
    width: 100%;
}

/* Sub-tab panes */
.subtab-pane {
    display: none;
    width: 100%;
}

.subtab-pane.is-active {
    display: block;
    width: 100%;
    animation: fadeIn 0.3s ease-in-out;
}

/* Fade animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sub-tabs wrapping for many tabs */
#world-subnav,
#us-subnav {
    width: 100%;
    margin: 0 auto 2rem auto;
}

#world-subnav .tabs,
#us-subnav .tabs {
    width: 100%;
}

#world-subnav .tabs ul,
#us-subnav .tabs ul {
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    width: 100%;
}

#world-subnav .tabs li,
#us-subnav .tabs li {
    margin: 2px;
    flex-shrink: 0;
}

#world-subnav .tabs a,
#us-subnav .tabs a {
    padding: 0.5em 1em;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Post cards */
.post-card {
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

.post-card .card-content {
    padding: 1.5rem;
}

.post-card .title {
    margin-bottom: 0.5rem;
}

/* Posts container - wider grid */
.posts-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

/* Coming soon styling */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.coming-soon .icon {
    color: #3273dc;
}

/* Centered content */
.cent {
    display: block;
    margin: 10px auto;
    padding: 5px;
    border: 1px solid #ccc;
}

/* Video container */
.video {
    display: block;
    margin: 0 auto;
}

/* Responsive embed container */
.embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Make container wider than Bulma default */
.container {
    max-width: 1400px !important;
    width: 95% !important;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .tab-content {
        padding: 20px 5px;
        max-width: 100%;
        width: 100%;
    }
    
    .tabs.is-large {
        font-size: 1rem;
    }
    
    #world-subnav .tabs a,
    #us-subnav .tabs a {
        padding: 0.4em 0.75em;
        font-size: 0.8rem;
    }
    
    .posts-container {
        grid-template-columns: 1fr;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 10px;
    }
}

/* Very large screens */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1600px !important;
        width: 90% !important;
    }
    
    .tab-content {
        max-width: 1600px;
        width: 100%;
    }
}

/* Print styles */
@media print {
    .tabs,
    .navbar,
    .card-footer {
        display: none !important;
    }
    
    .tab-pane,
    .subtab-pane {
        display: block !important;
        width: 100% !important;
    }
    
    .post-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }

    /* Fix negative margin between title and subtitle */
    .title:not(.is-spaced)+.subtitle {
    margin-top: 0 !important;
}
}